snaptrade-typescript-sdk 3.0.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.konfig/generate-id.txt +1 -1
- package/.konfigignore +3 -1
- package/README.md +107 -23
- package/api/account-information-api.ts +1075 -0
- package/api/api-disclaimer-api.ts +190 -0
- package/api/api-status-api.ts +128 -0
- package/api/authentication-api.ts +591 -0
- package/api/connections-api.ts +425 -0
- package/api/error-logs-api.ts +175 -0
- package/api/options-api.ts +758 -0
- package/api/portfolio-management-api.ts +3402 -0
- package/api/reference-data-api.ts +1076 -0
- package/api/trading-api.ts +1339 -0
- package/api/transactions-and-reporting-api.ts +391 -0
- package/api.ts +12 -11530
- package/base.ts +1 -2
- package/client.ts +55 -0
- package/common.ts +16 -54
- package/configuration.ts +33 -10
- package/dist/api/account-information-api.d.ts +525 -0
- package/dist/api/account-information-api.js +1049 -0
- package/dist/api/api-disclaimer-api.d.ts +102 -0
- package/dist/api/api-disclaimer-api.js +245 -0
- package/dist/api/api-status-api.d.ts +70 -0
- package/dist/api/api-status-api.js +203 -0
- package/dist/api/authentication-api.d.ts +280 -0
- package/dist/api/authentication-api.js +659 -0
- package/dist/api/connections-api.d.ts +214 -0
- package/dist/api/connections-api.js +470 -0
- package/dist/api/error-logs-api.d.ts +94 -0
- package/dist/api/error-logs-api.js +240 -0
- package/dist/api/options-api.d.ts +381 -0
- package/dist/api/options-api.js +728 -0
- package/dist/api/portfolio-management-api.d.ts +1624 -0
- package/dist/api/portfolio-management-api.js +3574 -0
- package/dist/api/reference-data-api.d.ts +481 -0
- package/dist/api/reference-data-api.js +1244 -0
- package/dist/api/trading-api.d.ts +662 -0
- package/dist/api/trading-api.js +1276 -0
- package/dist/api/transactions-and-reporting-api.d.ts +204 -0
- package/dist/api/transactions-and-reporting-api.js +387 -0
- package/dist/api.d.ts +12 -7363
- package/dist/api.js +24 -9175
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -2
- package/dist/client.d.ts +27 -0
- package/dist/client.js +34 -0
- package/dist/common.d.ts +1 -6
- package/dist/common.js +26 -81
- package/dist/configuration.d.ts +21 -6
- package/dist/configuration.js +13 -8
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -2
- package/dist/jest.config.js +0 -1
- package/dist/models/account-holdings.d.ts +47 -0
- package/dist/models/account-holdings.js +15 -0
- package/dist/models/account-order-record-status.d.ts +39 -0
- package/dist/models/account-order-record-status.js +43 -0
- package/dist/models/account-order-record.d.ts +126 -0
- package/dist/models/account-order-record.js +15 -0
- package/dist/models/account-simple.d.ts +37 -0
- package/dist/models/account-simple.js +15 -0
- package/dist/models/account.d.ts +76 -0
- package/dist/models/account.js +15 -0
- package/dist/models/action.d.ts +21 -0
- package/dist/models/action.js +25 -0
- package/dist/models/apidisclaimer-accept-request.d.ts +24 -0
- package/dist/models/apidisclaimer-accept-request.js +15 -0
- package/dist/models/authentication-login-snap-trade-user200-response.d.ts +18 -0
- package/dist/models/authentication-login-snap-trade-user200-response.js +15 -0
- package/dist/models/balance.d.ts +32 -0
- package/dist/models/balance.js +15 -0
- package/dist/models/brokerage-authorization-type-read-only-brokerage.d.ts +37 -0
- package/dist/models/brokerage-authorization-type-read-only-brokerage.js +15 -0
- package/dist/models/brokerage-authorization-type-read-only.d.ts +56 -0
- package/dist/models/brokerage-authorization-type-read-only.js +26 -0
- package/dist/models/brokerage-authorization-type.d.ts +30 -0
- package/dist/models/brokerage-authorization-type.js +20 -0
- package/dist/models/brokerage-authorization.d.ts +76 -0
- package/dist/models/brokerage-authorization.js +15 -0
- package/dist/models/brokerage-symbol.d.ts +51 -0
- package/dist/models/brokerage-symbol.js +15 -0
- package/dist/models/brokerage-type.d.ts +31 -0
- package/dist/models/brokerage-type.js +15 -0
- package/dist/models/brokerage.d.ts +128 -0
- package/dist/models/brokerage.js +15 -0
- package/dist/models/calculated-trade.d.ts +32 -0
- package/dist/models/calculated-trade.js +15 -0
- package/dist/models/cash-restriction.d.ts +54 -0
- package/dist/models/cash-restriction.js +20 -0
- package/dist/models/currency.d.ts +37 -0
- package/dist/models/currency.js +15 -0
- package/dist/models/delete-user-response.d.ts +31 -0
- package/dist/models/delete-user-response.js +15 -0
- package/dist/models/dividend-at-date.d.ts +37 -0
- package/dist/models/dividend-at-date.js +15 -0
- package/dist/models/encrypted-response-encrypted-message-data.d.ts +37 -0
- package/dist/models/encrypted-response-encrypted-message-data.js +15 -0
- package/dist/models/encrypted-response.d.ts +31 -0
- package/dist/models/encrypted-response.js +15 -0
- package/dist/models/exchange-rate-pairs.d.ts +38 -0
- package/dist/models/exchange-rate-pairs.js +15 -0
- package/dist/models/exchange.d.ts +67 -0
- package/dist/models/exchange.js +15 -0
- package/dist/models/excluded-asset.d.ts +26 -0
- package/dist/models/excluded-asset.js +15 -0
- package/dist/models/index.d.ts +102 -0
- package/dist/models/index.js +118 -0
- package/dist/models/jwt.d.ts +25 -0
- package/dist/models/jwt.js +15 -0
- package/dist/models/login-redirect-uri.d.ts +30 -0
- package/dist/models/login-redirect-uri.js +15 -0
- package/dist/models/manual-trade-and-impact.d.ts +39 -0
- package/dist/models/manual-trade-and-impact.js +15 -0
- package/dist/models/manual-trade-balance.d.ts +39 -0
- package/dist/models/manual-trade-balance.js +15 -0
- package/dist/models/manual-trade-form.d.ts +69 -0
- package/dist/models/manual-trade-form.js +15 -0
- package/dist/models/manual-trade-symbol.d.ts +56 -0
- package/dist/models/manual-trade-symbol.js +15 -0
- package/dist/models/manual-trade.d.ts +72 -0
- package/dist/models/manual-trade.js +15 -0
- package/dist/models/model-asset-class-details.d.ts +32 -0
- package/dist/models/model-asset-class-details.js +15 -0
- package/dist/models/model-asset-class-target.d.ts +26 -0
- package/dist/models/model-asset-class-target.js +15 -0
- package/dist/models/model-asset-class.d.ts +31 -0
- package/dist/models/model-asset-class.js +15 -0
- package/dist/models/model-portfolio-asset-class.d.ts +32 -0
- package/dist/models/model-portfolio-asset-class.js +15 -0
- package/dist/models/model-portfolio-details.d.ts +39 -0
- package/dist/models/model-portfolio-details.js +15 -0
- package/dist/models/model-portfolio-security.d.ts +32 -0
- package/dist/models/model-portfolio-security.js +15 -0
- package/dist/models/model-portfolio.d.ts +43 -0
- package/dist/models/model-portfolio.js +21 -0
- package/dist/models/model400-failed-request-response.d.ts +31 -0
- package/dist/models/model400-failed-request-response.js +15 -0
- package/dist/models/model401-failed-request-response.d.ts +31 -0
- package/dist/models/model401-failed-request-response.js +15 -0
- package/dist/models/model403-failed-request-response.d.ts +31 -0
- package/dist/models/model403-failed-request-response.js +15 -0
- package/dist/models/model404-failed-request-response.d.ts +31 -0
- package/dist/models/model404-failed-request-response.js +15 -0
- package/dist/models/monthly-dividends.d.ts +32 -0
- package/dist/models/monthly-dividends.js +15 -0
- package/dist/models/net-contributions.d.ts +37 -0
- package/dist/models/net-contributions.js +15 -0
- package/dist/models/net-dividend.d.ts +38 -0
- package/dist/models/net-dividend.js +15 -0
- package/dist/models/option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner.d.ts +37 -0
- package/dist/models/option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner.js +15 -0
- package/dist/models/option-chain-inner-chain-per-root-inner.d.ts +38 -0
- package/dist/models/option-chain-inner-chain-per-root-inner.js +15 -0
- package/dist/models/option-chain-inner.d.ts +50 -0
- package/dist/models/option-chain-inner.js +15 -0
- package/dist/models/option-leg.d.ts +44 -0
- package/dist/models/option-leg.js +22 -0
- package/dist/models/option-strategy-legs-inner.d.ts +42 -0
- package/dist/models/option-strategy-legs-inner.js +15 -0
- package/dist/models/option-strategy.d.ts +51 -0
- package/dist/models/option-strategy.js +15 -0
- package/dist/models/options-get-option-strategy-request.d.ts +41 -0
- package/dist/models/options-get-option-strategy-request.js +19 -0
- package/dist/models/options-holdings.d.ts +57 -0
- package/dist/models/options-holdings.js +15 -0
- package/dist/models/options-place-option-strategy-request.d.ts +48 -0
- package/dist/models/options-place-option-strategy-request.js +26 -0
- package/dist/models/options-position.d.ts +63 -0
- package/dist/models/options-position.js +15 -0
- package/dist/models/options-symbol.d.ts +86 -0
- package/dist/models/options-symbol.js +15 -0
- package/dist/models/order-type.d.ts +23 -0
- package/dist/models/order-type.js +27 -0
- package/dist/models/partner-data.d.ts +92 -0
- package/dist/models/partner-data.js +15 -0
- package/dist/models/past-value.d.ts +37 -0
- package/dist/models/past-value.js +15 -0
- package/dist/models/performance-custom.d.ts +138 -0
- package/dist/models/performance-custom.js +15 -0
- package/dist/models/portfolio-group-info.d.ts +93 -0
- package/dist/models/portfolio-group-info.js +15 -0
- package/dist/models/portfolio-group-position.d.ts +38 -0
- package/dist/models/portfolio-group-position.js +15 -0
- package/dist/models/portfolio-group-settings.d.ts +50 -0
- package/dist/models/portfolio-group-settings.js +15 -0
- package/dist/models/portfolio-group.d.ts +31 -0
- package/dist/models/portfolio-group.js +15 -0
- package/dist/models/position-symbol.d.ts +56 -0
- package/dist/models/position-symbol.js +15 -0
- package/dist/models/position.d.ts +56 -0
- package/dist/models/position.js +15 -0
- package/dist/models/redirect-tokenand-pin.d.ts +31 -0
- package/dist/models/redirect-tokenand-pin.js +15 -0
- package/dist/models/security-type.d.ts +43 -0
- package/dist/models/security-type.js +15 -0
- package/dist/models/snap-trade-apidisclaimer-accept-status.d.ts +31 -0
- package/dist/models/snap-trade-apidisclaimer-accept-status.js +15 -0
- package/dist/models/snap-trade-holdings-account.d.ts +64 -0
- package/dist/models/snap-trade-holdings-account.js +15 -0
- package/dist/models/snap-trade-holdings-total-value.d.ts +31 -0
- package/dist/models/snap-trade-holdings-total-value.js +15 -0
- package/dist/models/snap-trade-login-user-request-body.d.ts +53 -0
- package/dist/models/snap-trade-login-user-request-body.js +20 -0
- package/dist/models/snap-trade-register-user-request-body.d.ts +30 -0
- package/dist/models/snap-trade-register-user-request-body.js +15 -0
- package/dist/models/status.d.ts +37 -0
- package/dist/models/status.js +15 -0
- package/dist/models/strategy-impact-legs-inner.d.ts +61 -0
- package/dist/models/strategy-impact-legs-inner.js +15 -0
- package/dist/models/strategy-impact.d.ts +86 -0
- package/dist/models/strategy-impact.js +15 -0
- package/dist/models/strategy-order-place-orders-inner-legs-inner.d.ts +61 -0
- package/dist/models/strategy-order-place-orders-inner-legs-inner.js +15 -0
- package/dist/models/strategy-order-place-orders-inner.d.ts +278 -0
- package/dist/models/strategy-order-place-orders-inner.js +15 -0
- package/dist/models/strategy-order-place.d.ts +32 -0
- package/dist/models/strategy-order-place.js +15 -0
- package/dist/models/strategy-order-record.d.ts +120 -0
- package/dist/models/strategy-order-record.js +47 -0
- package/dist/models/strategy-quotes-greek.d.ts +49 -0
- package/dist/models/strategy-quotes-greek.js +15 -0
- package/dist/models/strategy-quotes.d.ts +57 -0
- package/dist/models/strategy-quotes.js +15 -0
- package/dist/models/sub-period-return-rate.d.ts +37 -0
- package/dist/models/sub-period-return-rate.js +15 -0
- package/dist/models/symbol-query.d.ts +24 -0
- package/dist/models/symbol-query.js +15 -0
- package/dist/models/symbol.d.ts +51 -0
- package/dist/models/symbol.js +15 -0
- package/dist/models/symbols-quotes.d.ts +56 -0
- package/dist/models/symbols-quotes.js +15 -0
- package/dist/models/target-asset.d.ts +55 -0
- package/dist/models/target-asset.js +15 -0
- package/dist/models/time-in-force.d.ts +22 -0
- package/dist/models/time-in-force.js +26 -0
- package/dist/models/trade-execution-status.d.ts +91 -0
- package/dist/models/trade-execution-status.js +27 -0
- package/dist/models/trade-impact.d.ts +51 -0
- package/dist/models/trade-impact.js +15 -0
- package/dist/models/trade.d.ts +74 -0
- package/dist/models/trade.js +20 -0
- package/dist/models/trading-place-ocoorder-request.d.ts +30 -0
- package/dist/models/trading-place-ocoorder-request.js +15 -0
- package/dist/models/underlying-symbol.d.ts +64 -0
- package/dist/models/underlying-symbol.js +15 -0
- package/dist/models/universal-activity.d.ts +134 -0
- package/dist/models/universal-activity.js +36 -0
- package/dist/models/universal-symbol-ticker.d.ts +70 -0
- package/dist/models/universal-symbol-ticker.js +15 -0
- package/dist/models/universal-symbol.d.ts +69 -0
- package/dist/models/universal-symbol.js +15 -0
- package/dist/models/user-error-log.d.ts +55 -0
- package/dist/models/user-error-log.js +15 -0
- package/dist/models/user-idand-secret.d.ts +31 -0
- package/dist/models/user-idand-secret.js +15 -0
- package/dist/models/user-settings.d.ts +80 -0
- package/dist/models/user-settings.js +15 -0
- package/dist/models/usexchange.d.ts +73 -0
- package/dist/models/usexchange.js +15 -0
- package/dist/pagination/page-types.d.ts +27 -0
- package/dist/pagination/page-types.js +13 -0
- package/dist/pagination/page.d.ts +36 -0
- package/dist/pagination/page.js +61 -0
- package/dist/pagination/pageable.d.ts +58 -0
- package/dist/pagination/pageable.js +127 -0
- package/dist/pagination/paginate.d.ts +17 -0
- package/dist/pagination/paginate.js +78 -0
- package/dist/requestAfterHook.d.ts +8 -0
- package/dist/requestAfterHook.js +45 -0
- package/dist/requestBeforeHook.d.ts +8 -0
- package/dist/requestBeforeHook.js +8 -0
- package/docs/AccountInformationApi.md +485 -0
- package/docs/ApiDisclaimerApi.md +69 -0
- package/docs/ApiStatusApi.md +60 -0
- package/docs/AuthenticationApi.md +307 -0
- package/docs/ConnectionsApi.md +186 -0
- package/docs/ErrorLogsApi.md +65 -0
- package/docs/OptionsApi.md +321 -0
- package/docs/PortfolioManagementApi.md +1866 -0
- package/docs/ReferenceDataApi.md +597 -0
- package/docs/TradingApi.md +629 -0
- package/docs/TransactionsAndReportingApi.md +141 -0
- package/index.test.ts +62 -13
- package/index.ts +3 -3
- package/models/account-holdings.ts +61 -0
- package/models/account-order-record-status.ts +48 -0
- package/models/account-order-record.ts +142 -0
- package/models/account-simple.ts +43 -0
- package/models/account.ts +82 -0
- package/models/action.ts +30 -0
- package/models/apidisclaimer-accept-request.ts +29 -0
- package/models/authentication-login-snap-trade-user200-response.ts +31 -0
- package/models/balance.ts +40 -0
- package/models/brokerage-authorization-type-read-only-brokerage.ts +43 -0
- package/models/brokerage-authorization-type-read-only.ts +68 -0
- package/models/brokerage-authorization-type.ts +39 -0
- package/models/brokerage-authorization.ts +82 -0
- package/models/brokerage-symbol.ts +61 -0
- package/models/brokerage-type.ts +37 -0
- package/models/brokerage.ts +136 -0
- package/models/calculated-trade.ts +40 -0
- package/models/cash-restriction.ts +63 -0
- package/models/currency.ts +43 -0
- package/models/delete-user-response.ts +37 -0
- package/models/dividend-at-date.ts +43 -0
- package/models/encrypted-response-encrypted-message-data.ts +43 -0
- package/models/encrypted-response.ts +38 -0
- package/models/exchange-rate-pairs.ts +46 -0
- package/models/exchange.ts +73 -0
- package/models/excluded-asset.ts +34 -0
- package/models/index.ts +102 -0
- package/models/jwt.ts +31 -0
- package/models/login-redirect-uri.ts +35 -0
- package/models/manual-trade-and-impact.ts +49 -0
- package/models/manual-trade-balance.ts +49 -0
- package/models/manual-trade-form.ts +80 -0
- package/models/manual-trade-symbol.ts +64 -0
- package/models/manual-trade.ts +88 -0
- package/models/model-asset-class-details.ts +41 -0
- package/models/model-asset-class-target.ts +34 -0
- package/models/model-asset-class.ts +37 -0
- package/models/model-portfolio-asset-class.ts +40 -0
- package/models/model-portfolio-details.ts +50 -0
- package/models/model-portfolio-security.ts +40 -0
- package/models/model-portfolio.ts +52 -0
- package/models/model400-failed-request-response.ts +37 -0
- package/models/model401-failed-request-response.ts +37 -0
- package/models/model403-failed-request-response.ts +37 -0
- package/models/model404-failed-request-response.ts +37 -0
- package/models/monthly-dividends.ts +40 -0
- package/models/net-contributions.ts +43 -0
- package/models/net-dividend.ts +46 -0
- package/models/option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner.ts +43 -0
- package/models/option-chain-inner-chain-per-root-inner.ts +46 -0
- package/models/option-chain-inner.ts +58 -0
- package/models/option-leg.ts +53 -0
- package/models/option-strategy-legs-inner.ts +47 -0
- package/models/option-strategy.ts +61 -0
- package/models/options-get-option-strategy-request.ts +51 -0
- package/models/options-holdings.ts +67 -0
- package/models/options-place-option-strategy-request.ts +57 -0
- package/models/options-position.ts +73 -0
- package/models/options-symbol.ts +94 -0
- package/models/order-type.ts +32 -0
- package/models/partner-data.ts +100 -0
- package/models/past-value.ts +43 -0
- package/models/performance-custom.ts +154 -0
- package/models/portfolio-group-info.ts +115 -0
- package/models/portfolio-group-position.ts +46 -0
- package/models/portfolio-group-settings.ts +58 -0
- package/models/portfolio-group.ts +37 -0
- package/models/position-symbol.ts +64 -0
- package/models/position.ts +64 -0
- package/models/redirect-tokenand-pin.ts +37 -0
- package/models/security-type.ts +49 -0
- package/models/snap-trade-apidisclaimer-accept-status.ts +37 -0
- package/models/snap-trade-holdings-account.ts +70 -0
- package/models/snap-trade-holdings-total-value.ts +37 -0
- package/models/snap-trade-login-user-request-body.ts +61 -0
- package/models/snap-trade-register-user-request-body.ts +35 -0
- package/models/status.ts +43 -0
- package/models/strategy-impact-legs-inner.ts +67 -0
- package/models/strategy-impact.ts +94 -0
- package/models/strategy-order-place-orders-inner-legs-inner.ts +67 -0
- package/models/strategy-order-place-orders-inner.ts +286 -0
- package/models/strategy-order-place.ts +40 -0
- package/models/strategy-order-record.ts +133 -0
- package/models/strategy-quotes-greek.ts +55 -0
- package/models/strategy-quotes.ts +67 -0
- package/models/sub-period-return-rate.ts +43 -0
- package/models/symbol-query.ts +29 -0
- package/models/symbol.ts +61 -0
- package/models/symbols-quotes.ts +64 -0
- package/models/target-asset.ts +62 -0
- package/models/time-in-force.ts +31 -0
- package/models/trade-execution-status.ts +105 -0
- package/models/trade-impact.ts +61 -0
- package/models/trade.ts +88 -0
- package/models/trading-place-ocoorder-request.ts +35 -0
- package/models/underlying-symbol.ts +76 -0
- package/models/universal-activity.ts +151 -0
- package/models/universal-symbol-ticker.ts +82 -0
- package/models/universal-symbol.ts +80 -0
- package/models/user-error-log.ts +61 -0
- package/models/user-idand-secret.ts +37 -0
- package/models/user-settings.ts +88 -0
- package/models/usexchange.ts +79 -0
- package/package.json +1 -1
- package/pagination/page-types.ts +34 -0
- package/pagination/page.ts +58 -0
- package/pagination/pageable.ts +113 -0
- package/pagination/paginate.ts +41 -0
- package/requestAfterHook.ts +53 -0
- package/requestBeforeHook.ts +14 -0
- package/tsconfig.json +1 -1
- package/dist/api.js.map +0 -1
- package/dist/base.js.map +0 -1
- package/dist/common.js.map +0 -1
- package/dist/configuration.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.test.d.ts +0 -1
- package/dist/index.test.js +0 -105
- package/dist/index.test.js.map +0 -1
- package/dist/jest.config.js.map +0 -1
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* SnapTrade
|
|
5
|
+
* Connect brokerage accounts to your app for live positions and trading
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: api@snaptrade.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
11
|
+
* https://konfigthis.com
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
// May contain unused imports in some cases
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
import { UnderlyingSymbol } from './underlying-symbol';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Options Symbol
|
|
21
|
+
* @export
|
|
22
|
+
* @interface OptionsSymbol
|
|
23
|
+
*/
|
|
24
|
+
export interface OptionsSymbol {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof OptionsSymbol
|
|
31
|
+
*/
|
|
32
|
+
'id'?: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof OptionsSymbol
|
|
37
|
+
*/
|
|
38
|
+
'ticker'?: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {number}
|
|
42
|
+
* @memberof OptionsSymbol
|
|
43
|
+
*/
|
|
44
|
+
'strike_price'?: number;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof OptionsSymbol
|
|
49
|
+
*/
|
|
50
|
+
'expiration_date'?: string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {boolean}
|
|
54
|
+
* @memberof OptionsSymbol
|
|
55
|
+
*/
|
|
56
|
+
'is_mini_option'?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {UnderlyingSymbol}
|
|
60
|
+
* @memberof OptionsSymbol
|
|
61
|
+
*/
|
|
62
|
+
'underlying_symbol'?: UnderlyingSymbol;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof OptionsSymbol
|
|
67
|
+
*/
|
|
68
|
+
'local_id'?: string;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {any}
|
|
72
|
+
* @memberof OptionsSymbol
|
|
73
|
+
*/
|
|
74
|
+
'security_type'?: any;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {any}
|
|
78
|
+
* @memberof OptionsSymbol
|
|
79
|
+
*/
|
|
80
|
+
'listing_exchange'?: any;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {boolean}
|
|
84
|
+
* @memberof OptionsSymbol
|
|
85
|
+
*/
|
|
86
|
+
'is_quotable'?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {boolean}
|
|
90
|
+
* @memberof OptionsSymbol
|
|
91
|
+
*/
|
|
92
|
+
'is_tradable'?: boolean;
|
|
93
|
+
}
|
|
94
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* SnapTrade
|
|
5
|
+
* Connect brokerage accounts to your app for live positions and trading
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: api@snaptrade.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
11
|
+
* https://konfigthis.com
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Order Type
|
|
18
|
+
* @export
|
|
19
|
+
* @enum {string}
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
export const OrderType = {
|
|
23
|
+
Limit: 'Limit',
|
|
24
|
+
Market: 'Market',
|
|
25
|
+
StopLimit: 'StopLimit',
|
|
26
|
+
StopLoss: 'StopLoss'
|
|
27
|
+
} as const;
|
|
28
|
+
|
|
29
|
+
export type OrderType = typeof OrderType[keyof typeof OrderType];
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* SnapTrade
|
|
5
|
+
* Connect brokerage accounts to your app for live positions and trading
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: api@snaptrade.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
11
|
+
* https://konfigthis.com
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
// May contain unused imports in some cases
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
import { Brokerage } from './brokerage';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* SnapTrade Partner metadata
|
|
21
|
+
* @export
|
|
22
|
+
* @interface PartnerData
|
|
23
|
+
*/
|
|
24
|
+
export interface PartnerData {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* URI to redirect user back to after user is done adding brokerage connections
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof PartnerData
|
|
31
|
+
*/
|
|
32
|
+
'redirect_uri'?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Brokerages that can be accessed by partners
|
|
35
|
+
* @type {Array<Brokerage>}
|
|
36
|
+
* @memberof PartnerData
|
|
37
|
+
*/
|
|
38
|
+
'allowed_brokerages'?: Array<Brokerage>;
|
|
39
|
+
/**
|
|
40
|
+
* Name of Snaptrade Partner
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof PartnerData
|
|
43
|
+
*/
|
|
44
|
+
'name'?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Slug of Snaptrade Partner
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof PartnerData
|
|
49
|
+
*/
|
|
50
|
+
'slug'?: string;
|
|
51
|
+
/**
|
|
52
|
+
* URL to partner\'s logo
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof PartnerData
|
|
55
|
+
*/
|
|
56
|
+
'logo_url'?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Shows if pin is required by users to access connection page
|
|
59
|
+
* @type {boolean}
|
|
60
|
+
* @memberof PartnerData
|
|
61
|
+
*/
|
|
62
|
+
'pin_required'?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Shows if users of Snaptrade partners can access trade endpoints
|
|
65
|
+
* @type {boolean}
|
|
66
|
+
* @memberof PartnerData
|
|
67
|
+
*/
|
|
68
|
+
'can_access_trades'?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Shows if Snaptrade partners can get user holdings data
|
|
71
|
+
* @type {boolean}
|
|
72
|
+
* @memberof PartnerData
|
|
73
|
+
*/
|
|
74
|
+
'can_access_holdings'?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Shows if Snaptrade partners can get users account history data
|
|
77
|
+
* @type {boolean}
|
|
78
|
+
* @memberof PartnerData
|
|
79
|
+
*/
|
|
80
|
+
'can_access_account_history'?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Shows if Snaptrade partners can get users holdings data
|
|
83
|
+
* @type {boolean}
|
|
84
|
+
* @memberof PartnerData
|
|
85
|
+
*/
|
|
86
|
+
'can_access_reference_data'?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Shows if users Snaptrade partners can access portfolio group management features
|
|
89
|
+
* @type {boolean}
|
|
90
|
+
* @memberof PartnerData
|
|
91
|
+
*/
|
|
92
|
+
'can_access_portfolio_management'?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Shows if Snaptrade partners can get users account order history
|
|
95
|
+
* @type {boolean}
|
|
96
|
+
* @memberof PartnerData
|
|
97
|
+
*/
|
|
98
|
+
'can_access_orders'?: boolean;
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* SnapTrade
|
|
5
|
+
* Connect brokerage accounts to your app for live positions and trading
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: api@snaptrade.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
11
|
+
* https://konfigthis.com
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PastValue
|
|
20
|
+
*/
|
|
21
|
+
export interface PastValue {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Date used to specify timeframe for a reporting call (in YYYY-MM-DD format)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PastValue
|
|
28
|
+
*/
|
|
29
|
+
'date'?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PastValue
|
|
34
|
+
*/
|
|
35
|
+
'value'?: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PastValue
|
|
40
|
+
*/
|
|
41
|
+
'currency'?: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* SnapTrade
|
|
5
|
+
* Connect brokerage accounts to your app for live positions and trading
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: api@snaptrade.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
11
|
+
* https://konfigthis.com
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
// May contain unused imports in some cases
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
import { MonthlyDividends } from './monthly-dividends';
|
|
18
|
+
// May contain unused imports in some cases
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { NetContributions } from './net-contributions';
|
|
21
|
+
// May contain unused imports in some cases
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { NetDividend } from './net-dividend';
|
|
24
|
+
// May contain unused imports in some cases
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { PastValue } from './past-value';
|
|
27
|
+
// May contain unused imports in some cases
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import { SubPeriodReturnRate } from './sub-period-return-rate';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Performance Custom Response Object
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PerformanceCustom
|
|
35
|
+
*/
|
|
36
|
+
export interface PerformanceCustom {
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {Array<PastValue>}
|
|
42
|
+
* @memberof PerformanceCustom
|
|
43
|
+
*/
|
|
44
|
+
'totalEquityTimeframe'?: Array<PastValue>;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {NetContributions}
|
|
48
|
+
* @memberof PerformanceCustom
|
|
49
|
+
*/
|
|
50
|
+
'contributions'?: NetContributions;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {Array<PastValue>}
|
|
54
|
+
* @memberof PerformanceCustom
|
|
55
|
+
*/
|
|
56
|
+
'contributionTimeframe'?: Array<PastValue>;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {Array<PastValue>}
|
|
60
|
+
* @memberof PerformanceCustom
|
|
61
|
+
*/
|
|
62
|
+
'contributionTimeframeCumulative'?: Array<PastValue>;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {Array<PastValue>}
|
|
66
|
+
* @memberof PerformanceCustom
|
|
67
|
+
*/
|
|
68
|
+
'withdrawalTimeframe'?: Array<PastValue>;
|
|
69
|
+
/**
|
|
70
|
+
* Current streak of cosecutive months where contributions were made
|
|
71
|
+
* @type {number}
|
|
72
|
+
* @memberof PerformanceCustom
|
|
73
|
+
*/
|
|
74
|
+
'contributionStreak'?: number | null;
|
|
75
|
+
/**
|
|
76
|
+
* Number of months in the timeframe with contributions
|
|
77
|
+
* @type {number}
|
|
78
|
+
* @memberof PerformanceCustom
|
|
79
|
+
*/
|
|
80
|
+
'contributionMonthsContributed'?: number | null;
|
|
81
|
+
/**
|
|
82
|
+
* Total months in timeframe
|
|
83
|
+
* @type {number}
|
|
84
|
+
* @memberof PerformanceCustom
|
|
85
|
+
*/
|
|
86
|
+
'contributionTotalMonths'?: number | null;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {Array<NetDividend>}
|
|
90
|
+
* @memberof PerformanceCustom
|
|
91
|
+
*/
|
|
92
|
+
'dividends'?: Array<NetDividend>;
|
|
93
|
+
/**
|
|
94
|
+
* Total dividends received over the timeframe
|
|
95
|
+
* @type {number}
|
|
96
|
+
* @memberof PerformanceCustom
|
|
97
|
+
*/
|
|
98
|
+
'dividendIncome'?: number | null;
|
|
99
|
+
/**
|
|
100
|
+
* Average dividends received per month over the timeframe
|
|
101
|
+
* @type {number}
|
|
102
|
+
* @memberof PerformanceCustom
|
|
103
|
+
*/
|
|
104
|
+
'monthlyDividends'?: number | null;
|
|
105
|
+
/**
|
|
106
|
+
* list of tickers which may not be supported or may not have accurate price data
|
|
107
|
+
* @type {Array<string>}
|
|
108
|
+
* @memberof PerformanceCustom
|
|
109
|
+
*/
|
|
110
|
+
'badTickers'?: Array<string>;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {Array<MonthlyDividends>}
|
|
114
|
+
* @memberof PerformanceCustom
|
|
115
|
+
*/
|
|
116
|
+
'dividendTimeline'?: Array<MonthlyDividends>;
|
|
117
|
+
/**
|
|
118
|
+
* commissions incurred during the timeframe
|
|
119
|
+
* @type {number}
|
|
120
|
+
* @memberof PerformanceCustom
|
|
121
|
+
*/
|
|
122
|
+
'commissions'?: number | null;
|
|
123
|
+
/**
|
|
124
|
+
* forex fees incurred during the timeframe
|
|
125
|
+
* @type {number}
|
|
126
|
+
* @memberof PerformanceCustom
|
|
127
|
+
*/
|
|
128
|
+
'forexFees'?: number | null;
|
|
129
|
+
/**
|
|
130
|
+
* other fees incurred during the timeframe
|
|
131
|
+
* @type {number}
|
|
132
|
+
* @memberof PerformanceCustom
|
|
133
|
+
*/
|
|
134
|
+
'fees'?: number | null;
|
|
135
|
+
/**
|
|
136
|
+
* The return rate over the timeframe. Annualized if timeframe is longer than 1 year
|
|
137
|
+
* @type {number}
|
|
138
|
+
* @memberof PerformanceCustom
|
|
139
|
+
*/
|
|
140
|
+
'rateOfReturn'?: number | null;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @type {Array<SubPeriodReturnRate>}
|
|
144
|
+
* @memberof PerformanceCustom
|
|
145
|
+
*/
|
|
146
|
+
'returnRateTimeframe'?: Array<SubPeriodReturnRate>;
|
|
147
|
+
/**
|
|
148
|
+
* Whether the user has detailed mode enabled (more frequent data points for totalEquity and contribution timeframes)
|
|
149
|
+
* @type {boolean}
|
|
150
|
+
* @memberof PerformanceCustom
|
|
151
|
+
*/
|
|
152
|
+
'detailedMode'?: boolean;
|
|
153
|
+
}
|
|
154
|
+
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* SnapTrade
|
|
5
|
+
* Connect brokerage accounts to your app for live positions and trading
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: api@snaptrade.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
11
|
+
* https://konfigthis.com
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
// May contain unused imports in some cases
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
import { Balance } from './balance';
|
|
18
|
+
// May contain unused imports in some cases
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { BrokerageAuthorization } from './brokerage-authorization';
|
|
21
|
+
// May contain unused imports in some cases
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { CalculatedTrade } from './calculated-trade';
|
|
24
|
+
// May contain unused imports in some cases
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { ExcludedAsset } from './excluded-asset';
|
|
27
|
+
// May contain unused imports in some cases
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import { PortfolioGroupSettings } from './portfolio-group-settings';
|
|
30
|
+
// May contain unused imports in some cases
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { Position } from './position';
|
|
33
|
+
// May contain unused imports in some cases
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
import { TargetAsset } from './target-asset';
|
|
36
|
+
// May contain unused imports in some cases
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
import { UniversalSymbol } from './universal-symbol';
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Summary of all relevant information about a portfolio group.
|
|
42
|
+
* @export
|
|
43
|
+
* @interface PortfolioGroupInfo
|
|
44
|
+
*/
|
|
45
|
+
export interface PortfolioGroupInfo {
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<UniversalSymbol>}
|
|
51
|
+
* @memberof PortfolioGroupInfo
|
|
52
|
+
*/
|
|
53
|
+
'symbols'?: Array<UniversalSymbol>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Array<UniversalSymbol>}
|
|
57
|
+
* @memberof PortfolioGroupInfo
|
|
58
|
+
*/
|
|
59
|
+
'quotable_symbols'?: Array<UniversalSymbol>;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Array<Balance>}
|
|
63
|
+
* @memberof PortfolioGroupInfo
|
|
64
|
+
*/
|
|
65
|
+
'balances'?: Array<Balance>;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Array<Position>}
|
|
69
|
+
* @memberof PortfolioGroupInfo
|
|
70
|
+
*/
|
|
71
|
+
'positions'?: Array<Position>;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Array<TargetAsset>}
|
|
75
|
+
* @memberof PortfolioGroupInfo
|
|
76
|
+
*/
|
|
77
|
+
'target_positions'?: Array<TargetAsset>;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {Array<Position>}
|
|
81
|
+
* @memberof PortfolioGroupInfo
|
|
82
|
+
*/
|
|
83
|
+
'ideal_positions'?: Array<Position>;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {Array<ExcludedAsset>}
|
|
87
|
+
* @memberof PortfolioGroupInfo
|
|
88
|
+
*/
|
|
89
|
+
'excluded_positions'?: Array<ExcludedAsset>;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {Array<CalculatedTrade>}
|
|
93
|
+
* @memberof PortfolioGroupInfo
|
|
94
|
+
*/
|
|
95
|
+
'calculated_trades'?: Array<CalculatedTrade>;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {Array<BrokerageAuthorization>}
|
|
99
|
+
* @memberof PortfolioGroupInfo
|
|
100
|
+
*/
|
|
101
|
+
'brokerage_authorizations'?: Array<BrokerageAuthorization>;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {number}
|
|
105
|
+
* @memberof PortfolioGroupInfo
|
|
106
|
+
*/
|
|
107
|
+
'accuracy'?: number;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {PortfolioGroupSettings}
|
|
111
|
+
* @memberof PortfolioGroupInfo
|
|
112
|
+
*/
|
|
113
|
+
'settings'?: PortfolioGroupSettings;
|
|
114
|
+
}
|
|
115
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* SnapTrade
|
|
5
|
+
* Connect brokerage accounts to your app for live positions and trading
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: api@snaptrade.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
11
|
+
* https://konfigthis.com
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
// May contain unused imports in some cases
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
import { UniversalSymbol } from './universal-symbol';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Details of a security held
|
|
21
|
+
* @export
|
|
22
|
+
* @interface PortfolioGroupPosition
|
|
23
|
+
*/
|
|
24
|
+
export interface PortfolioGroupPosition {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {UniversalSymbol}
|
|
30
|
+
* @memberof PortfolioGroupPosition
|
|
31
|
+
*/
|
|
32
|
+
'symbol'?: UniversalSymbol;
|
|
33
|
+
/**
|
|
34
|
+
* Last known market price for the symbol
|
|
35
|
+
* @type {number}
|
|
36
|
+
* @memberof PortfolioGroupPosition
|
|
37
|
+
*/
|
|
38
|
+
'price'?: number | null;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {number}
|
|
42
|
+
* @memberof PortfolioGroupPosition
|
|
43
|
+
*/
|
|
44
|
+
'units'?: number;
|
|
45
|
+
}
|
|
46
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* SnapTrade
|
|
5
|
+
* Connect brokerage accounts to your app for live positions and trading
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: api@snaptrade.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
11
|
+
* https://konfigthis.com
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
// May contain unused imports in some cases
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
import { Currency } from './currency';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
* @interface PortfolioGroupSettings
|
|
23
|
+
*/
|
|
24
|
+
export interface PortfolioGroupSettings {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {boolean}
|
|
30
|
+
* @memberof PortfolioGroupSettings
|
|
31
|
+
*/
|
|
32
|
+
'buyOnly'?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {boolean}
|
|
36
|
+
* @memberof PortfolioGroupSettings
|
|
37
|
+
*/
|
|
38
|
+
'cash_optimizer'?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof PortfolioGroupSettings
|
|
43
|
+
*/
|
|
44
|
+
'notifyFrequency'?: string;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {number}
|
|
48
|
+
* @memberof PortfolioGroupSettings
|
|
49
|
+
*/
|
|
50
|
+
'driftThreshold'?: number;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {Currency}
|
|
54
|
+
* @memberof PortfolioGroupSettings
|
|
55
|
+
*/
|
|
56
|
+
'preferred_currency'?: Currency;
|
|
57
|
+
}
|
|
58
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* SnapTrade
|
|
5
|
+
* Connect brokerage accounts to your app for live positions and trading
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: api@snaptrade.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
11
|
+
* https://konfigthis.com
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PortfolioGroup
|
|
20
|
+
*/
|
|
21
|
+
export interface PortfolioGroup {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PortfolioGroup
|
|
28
|
+
*/
|
|
29
|
+
'id'?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PortfolioGroup
|
|
34
|
+
*/
|
|
35
|
+
'name'?: string;
|
|
36
|
+
}
|
|
37
|
+
|