snaptrade-typescript-sdk 9.0.199 → 10.0.1
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/README.md +42 -2
- package/dist/chunk-e9Ob2GDo.mjs +26 -0
- package/dist/index.cjs +6594 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.d.mts +10422 -0
- package/dist/index.d.ts +1 -5
- package/dist/index.mjs +6527 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +27 -13
- package/dist/api/account-information-api-generated.d.ts +0 -950
- package/dist/api/account-information-api-generated.js +0 -1372
- package/dist/api/account-information-api.d.ts +0 -4
- package/dist/api/account-information-api.js +0 -22
- package/dist/api/api-status-api-generated.d.ts +0 -59
- package/dist/api/api-status-api-generated.js +0 -133
- package/dist/api/api-status-api.d.ts +0 -4
- package/dist/api/api-status-api.js +0 -22
- package/dist/api/authentication-api-generated.d.ts +0 -241
- package/dist/api/authentication-api-generated.js +0 -482
- package/dist/api/authentication-api.d.ts +0 -4
- package/dist/api/authentication-api.js +0 -22
- package/dist/api/connections-api-generated.d.ts +0 -576
- package/dist/api/connections-api-generated.js +0 -868
- package/dist/api/connections-api.d.ts +0 -4
- package/dist/api/connections-api.js +0 -22
- package/dist/api/options-api-generated.d.ts +0 -90
- package/dist/api/options-api-generated.js +0 -158
- package/dist/api/options-api.d.ts +0 -4
- package/dist/api/options-api.js +0 -22
- package/dist/api/reference-data-api-generated.d.ts +0 -497
- package/dist/api/reference-data-api-generated.js +0 -973
- package/dist/api/reference-data-api.d.ts +0 -4
- package/dist/api/reference-data-api.js +0 -22
- package/dist/api/trading-api-generated.d.ts +0 -1054
- package/dist/api/trading-api-generated.js +0 -1684
- package/dist/api/trading-api.d.ts +0 -4
- package/dist/api/trading-api.js +0 -22
- package/dist/api/transactions-and-reporting-api-generated.d.ts +0 -215
- package/dist/api/transactions-and-reporting-api-generated.js +0 -299
- package/dist/api/transactions-and-reporting-api.d.ts +0 -4
- package/dist/api/transactions-and-reporting-api.js +0 -22
- package/dist/api.d.ts +0 -8
- package/dist/api.js +0 -36
- package/dist/base.d.ts +0 -44
- package/dist/base.js +0 -60
- package/dist/browser.js +0 -2
- package/dist/browser.js.LICENSE.txt +0 -1
- package/dist/client-custom.d.ts +0 -4
- package/dist/client-custom.js +0 -7
- package/dist/client.d.ts +0 -14
- package/dist/client.js +0 -31
- package/dist/common.d.ts +0 -61
- package/dist/common.js +0 -220
- package/dist/configuration.d.ts +0 -98
- package/dist/configuration.js +0 -53
- package/dist/error.d.ts +0 -46
- package/dist/error.js +0 -105
- package/dist/index.js +0 -33
- package/dist/jest.config.d.ts +0 -3
- package/dist/jest.config.js +0 -13
- package/dist/mock.test.d.ts +0 -1
- package/dist/mock.test.js +0 -29
- package/dist/models/account-balance-total.d.ts +0 -19
- package/dist/models/account-balance-total.js +0 -2
- package/dist/models/account-balance.d.ts +0 -14
- package/dist/models/account-balance.js +0 -2
- package/dist/models/account-holdings-account.d.ts +0 -51
- package/dist/models/account-holdings-account.js +0 -2
- package/dist/models/account-holdings.d.ts +0 -37
- package/dist/models/account-holdings.js +0 -2
- package/dist/models/account-information-get-user-account-order-detail-request.d.ts +0 -13
- package/dist/models/account-information-get-user-account-order-detail-request.js +0 -2
- package/dist/models/account-order-record-child-brokerage-order-ids.d.ts +0 -19
- package/dist/models/account-order-record-child-brokerage-order-ids.js +0 -2
- package/dist/models/account-order-record-leg-instrument.d.ts +0 -38
- package/dist/models/account-order-record-leg-instrument.js +0 -2
- package/dist/models/account-order-record-leg.d.ts +0 -58
- package/dist/models/account-order-record-leg.js +0 -2
- package/dist/models/account-order-record-option-symbol.d.ts +0 -52
- package/dist/models/account-order-record-option-symbol.js +0 -2
- package/dist/models/account-order-record-quote-currency.d.ts +0 -25
- package/dist/models/account-order-record-quote-currency.js +0 -2
- package/dist/models/account-order-record-quote-universal-symbol.d.ts +0 -73
- package/dist/models/account-order-record-quote-universal-symbol.js +0 -2
- package/dist/models/account-order-record-status-v2.d.ts +0 -6
- package/dist/models/account-order-record-status-v2.js +0 -2
- package/dist/models/account-order-record-status.d.ts +0 -6
- package/dist/models/account-order-record-status.js +0 -2
- package/dist/models/account-order-record-trailing-stop.d.ts +0 -21
- package/dist/models/account-order-record-trailing-stop.js +0 -2
- package/dist/models/account-order-record-universal-symbol.d.ts +0 -73
- package/dist/models/account-order-record-universal-symbol.js +0 -2
- package/dist/models/account-order-record-v2.d.ts +0 -97
- package/dist/models/account-order-record-v2.js +0 -2
- package/dist/models/account-order-record.d.ts +0 -168
- package/dist/models/account-order-record.js +0 -2
- package/dist/models/account-orders-v2-response.d.ts +0 -15
- package/dist/models/account-orders-v2-response.js +0 -2
- package/dist/models/account-position.d.ts +0 -52
- package/dist/models/account-position.js +0 -2
- package/dist/models/account-simple.d.ts +0 -39
- package/dist/models/account-simple.js +0 -2
- package/dist/models/account-sync-status.d.ts +0 -21
- package/dist/models/account-sync-status.js +0 -2
- package/dist/models/account-universal-activity-currency.d.ts +0 -25
- package/dist/models/account-universal-activity-currency.js +0 -2
- package/dist/models/account-universal-activity-option-symbol.d.ts +0 -52
- package/dist/models/account-universal-activity-option-symbol.js +0 -2
- package/dist/models/account-universal-activity-symbol.d.ts +0 -65
- package/dist/models/account-universal-activity-symbol.js +0 -2
- package/dist/models/account-universal-activity.d.ts +0 -107
- package/dist/models/account-universal-activity.js +0 -2
- package/dist/models/account-value-history-item.d.ts +0 -20
- package/dist/models/account-value-history-item.js +0 -2
- package/dist/models/account-value-history-response.d.ts +0 -21
- package/dist/models/account-value-history-response.js +0 -2
- package/dist/models/account.d.ts +0 -126
- package/dist/models/account.js +0 -2
- package/dist/models/action-strict-with-options.d.ts +0 -6
- package/dist/models/action-strict-with-options.js +0 -2
- package/dist/models/action-strict.d.ts +0 -6
- package/dist/models/action-strict.js +0 -2
- package/dist/models/adr-instrument.d.ts +0 -59
- package/dist/models/adr-instrument.js +0 -2
- package/dist/models/all-account-positions-response.d.ts +0 -15
- package/dist/models/all-account-positions-response.js +0 -2
- package/dist/models/authentication-login-snap-trade-user200-response.d.ts +0 -7
- package/dist/models/authentication-login-snap-trade-user200-response.js +0 -2
- package/dist/models/balance-currency.d.ts +0 -25
- package/dist/models/balance-currency.js +0 -2
- package/dist/models/balance.d.ts +0 -27
- package/dist/models/balance.js +0 -2
- package/dist/models/brokerage-authorization-disabled-confirmation.d.ts +0 -14
- package/dist/models/brokerage-authorization-disabled-confirmation.js +0 -2
- package/dist/models/brokerage-authorization-refresh-confirmation.d.ts +0 -14
- package/dist/models/brokerage-authorization-refresh-confirmation.js +0 -2
- package/dist/models/brokerage-authorization-transactions-sync-confirmation.d.ts +0 -14
- package/dist/models/brokerage-authorization-transactions-sync-confirmation.js +0 -2
- package/dist/models/brokerage-authorization-type-read-only-brokerage.d.ts +0 -26
- package/dist/models/brokerage-authorization-type-read-only-brokerage.js +0 -2
- package/dist/models/brokerage-authorization-type-read-only.d.ts +0 -36
- package/dist/models/brokerage-authorization-type-read-only.js +0 -2
- package/dist/models/brokerage-authorization.d.ts +0 -73
- package/dist/models/brokerage-authorization.js +0 -2
- package/dist/models/brokerage-instrument.d.ts +0 -38
- package/dist/models/brokerage-instrument.js +0 -2
- package/dist/models/brokerage-instruments-response.d.ts +0 -15
- package/dist/models/brokerage-instruments-response.js +0 -2
- package/dist/models/brokerage-type.d.ts +0 -20
- package/dist/models/brokerage-type.js +0 -2
- package/dist/models/brokerage.d.ts +0 -122
- package/dist/models/brokerage.js +0 -2
- package/dist/models/cancel-order-response.d.ts +0 -22
- package/dist/models/cancel-order-response.js +0 -2
- package/dist/models/cef-instrument.d.ts +0 -59
- package/dist/models/cef-instrument.js +0 -2
- package/dist/models/child-brokerage-order-ids.d.ts +0 -20
- package/dist/models/child-brokerage-order-ids.js +0 -2
- package/dist/models/complex-order-leg.d.ts +0 -62
- package/dist/models/complex-order-leg.js +0 -2
- package/dist/models/complex-order-response.d.ts +0 -22
- package/dist/models/complex-order-response.js +0 -2
- package/dist/models/connections-session-events200-response-inner.d.ts +0 -6
- package/dist/models/connections-session-events200-response-inner.js +0 -2
- package/dist/models/crypto-instrument.d.ts +0 -59
- package/dist/models/crypto-instrument.js +0 -2
- package/dist/models/crypto-order-form.d.ts +0 -66
- package/dist/models/crypto-order-form.js +0 -2
- package/dist/models/crypto-order-preview-estimated-fee.d.ts +0 -20
- package/dist/models/crypto-order-preview-estimated-fee.js +0 -2
- package/dist/models/crypto-order-preview.d.ts +0 -15
- package/dist/models/crypto-order-preview.js +0 -2
- package/dist/models/crypto-trading-instrument.d.ts +0 -22
- package/dist/models/crypto-trading-instrument.js +0 -2
- package/dist/models/cryptocurrency-pair-quote.d.ts +0 -32
- package/dist/models/cryptocurrency-pair-quote.js +0 -2
- package/dist/models/cryptocurrency-pair.d.ts +0 -32
- package/dist/models/cryptocurrency-pair.js +0 -2
- package/dist/models/currency.d.ts +0 -26
- package/dist/models/currency.js +0 -2
- package/dist/models/delete-connection-confirmation.d.ts +0 -20
- package/dist/models/delete-connection-confirmation.js +0 -2
- package/dist/models/delete-user-response.d.ts +0 -26
- package/dist/models/delete-user-response.js +0 -2
- package/dist/models/dividend-at-date.d.ts +0 -26
- package/dist/models/dividend-at-date.js +0 -2
- package/dist/models/encrypted-response-encrypted-message-data.d.ts +0 -26
- package/dist/models/encrypted-response-encrypted-message-data.js +0 -2
- package/dist/models/encrypted-response.d.ts +0 -20
- package/dist/models/encrypted-response.js +0 -2
- package/dist/models/etf-instrument.d.ts +0 -59
- package/dist/models/etf-instrument.js +0 -2
- package/dist/models/exchange-rate-pairs.d.ts +0 -27
- package/dist/models/exchange-rate-pairs.js +0 -2
- package/dist/models/exchange.d.ts +0 -56
- package/dist/models/exchange.js +0 -2
- package/dist/models/figi-instrument.d.ts +0 -20
- package/dist/models/figi-instrument.js +0 -2
- package/dist/models/future-instrument.d.ts +0 -64
- package/dist/models/future-instrument.js +0 -2
- package/dist/models/holdings-status.d.ts +0 -19
- package/dist/models/holdings-status.js +0 -2
- package/dist/models/index.d.ts +0 -173
- package/dist/models/index.js +0 -189
- package/dist/models/instrument.d.ts +0 -33
- package/dist/models/instrument.js +0 -2
- package/dist/models/login-redirect-uri.d.ts +0 -19
- package/dist/models/login-redirect-uri.js +0 -2
- package/dist/models/manual-trade-and-impact.d.ts +0 -29
- package/dist/models/manual-trade-and-impact.js +0 -2
- package/dist/models/manual-trade-balance.d.ts +0 -28
- package/dist/models/manual-trade-balance.js +0 -2
- package/dist/models/manual-trade-form-bracket.d.ts +0 -67
- package/dist/models/manual-trade-form-bracket.js +0 -2
- package/dist/models/manual-trade-form-complex.d.ts +0 -28
- package/dist/models/manual-trade-form-complex.js +0 -2
- package/dist/models/manual-trade-form-notional-value.d.ts +0 -6
- package/dist/models/manual-trade-form-notional-value.js +0 -2
- package/dist/models/manual-trade-form-with-options.d.ts +0 -78
- package/dist/models/manual-trade-form-with-options.js +0 -2
- package/dist/models/manual-trade-form.d.ts +0 -65
- package/dist/models/manual-trade-form.js +0 -2
- package/dist/models/manual-trade-impact.d.ts +0 -38
- package/dist/models/manual-trade-impact.js +0 -2
- package/dist/models/manual-trade-replace-form.d.ts +0 -58
- package/dist/models/manual-trade-replace-form.js +0 -2
- package/dist/models/manual-trade-symbol.d.ts +0 -49
- package/dist/models/manual-trade-symbol.js +0 -2
- package/dist/models/manual-trade.d.ts +0 -60
- package/dist/models/manual-trade.js +0 -2
- package/dist/models/mleg-action-strict.d.ts +0 -6
- package/dist/models/mleg-action-strict.js +0 -2
- package/dist/models/mleg-instrument-type.d.ts +0 -6
- package/dist/models/mleg-instrument-type.js +0 -2
- package/dist/models/mleg-leg.d.ts +0 -28
- package/dist/models/mleg-leg.js +0 -2
- package/dist/models/mleg-order-response.d.ts +0 -21
- package/dist/models/mleg-order-response.js +0 -2
- package/dist/models/mleg-order-type-strict.d.ts +0 -6
- package/dist/models/mleg-order-type-strict.js +0 -2
- package/dist/models/mleg-price-effect-strict.d.ts +0 -6
- package/dist/models/mleg-price-effect-strict.js +0 -2
- package/dist/models/mleg-trade-form.d.ts +0 -47
- package/dist/models/mleg-trade-form.js +0 -2
- package/dist/models/mleg-trading-instrument.d.ts +0 -21
- package/dist/models/mleg-trading-instrument.js +0 -2
- package/dist/models/model400-failed-request-response.d.ts +0 -20
- package/dist/models/model400-failed-request-response.js +0 -2
- package/dist/models/model401-failed-request-response.d.ts +0 -20
- package/dist/models/model401-failed-request-response.js +0 -2
- package/dist/models/model402-brokerage-auth-already-disabled-exception.d.ts +0 -20
- package/dist/models/model402-brokerage-auth-already-disabled-exception.js +0 -2
- package/dist/models/model402-brokerage-auth-disabled-response.d.ts +0 -20
- package/dist/models/model402-brokerage-auth-disabled-response.js +0 -2
- package/dist/models/model403-failed-request-response.d.ts +0 -20
- package/dist/models/model403-failed-request-response.js +0 -2
- package/dist/models/model403-feature-not-enabled-response.d.ts +0 -20
- package/dist/models/model403-feature-not-enabled-response.js +0 -2
- package/dist/models/model404-failed-request-response.d.ts +0 -20
- package/dist/models/model404-failed-request-response.js +0 -2
- package/dist/models/model425-failed-request-response.d.ts +0 -20
- package/dist/models/model425-failed-request-response.js +0 -2
- package/dist/models/model500-unexpected-exception-response.d.ts +0 -26
- package/dist/models/model500-unexpected-exception-response.js +0 -2
- package/dist/models/monthly-dividends.d.ts +0 -21
- package/dist/models/monthly-dividends.js +0 -2
- package/dist/models/mutual-fund-instrument.d.ts +0 -59
- package/dist/models/mutual-fund-instrument.js +0 -2
- package/dist/models/net-contributions.d.ts +0 -26
- package/dist/models/net-contributions.js +0 -2
- package/dist/models/net-dividend.d.ts +0 -27
- package/dist/models/net-dividend.js +0 -2
- package/dist/models/notional-value.d.ts +0 -6
- package/dist/models/notional-value.js +0 -2
- package/dist/models/option-brokerage-symbol.d.ts +0 -29
- package/dist/models/option-brokerage-symbol.js +0 -2
- package/dist/models/option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner.d.ts +0 -26
- package/dist/models/option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner.js +0 -2
- package/dist/models/option-chain-inner-chain-per-root-inner.d.ts +0 -27
- package/dist/models/option-chain-inner-chain-per-root-inner.js +0 -2
- package/dist/models/option-chain-inner.d.ts +0 -39
- package/dist/models/option-chain-inner.js +0 -2
- package/dist/models/option-impact.d.ts +0 -28
- package/dist/models/option-impact.js +0 -2
- package/dist/models/option-instrument.d.ts +0 -60
- package/dist/models/option-instrument.js +0 -2
- package/dist/models/option-leg.d.ts +0 -28
- package/dist/models/option-leg.js +0 -2
- package/dist/models/option-quote-greeks.d.ts +0 -32
- package/dist/models/option-quote-greeks.js +0 -2
- package/dist/models/option-quote.d.ts +0 -39
- package/dist/models/option-quote.js +0 -2
- package/dist/models/option-strategy-legs-inner.d.ts +0 -31
- package/dist/models/option-strategy-legs-inner.js +0 -2
- package/dist/models/option-strategy.d.ts +0 -40
- package/dist/models/option-strategy.js +0 -2
- package/dist/models/options-position-currency.d.ts +0 -25
- package/dist/models/options-position-currency.js +0 -2
- package/dist/models/options-position.d.ts +0 -41
- package/dist/models/options-position.js +0 -2
- package/dist/models/options-symbol.d.ts +0 -53
- package/dist/models/options-symbol.js +0 -2
- package/dist/models/order-type-strict.d.ts +0 -6
- package/dist/models/order-type-strict.js +0 -2
- package/dist/models/order-updated-response-order.d.ts +0 -167
- package/dist/models/order-updated-response-order.js +0 -2
- package/dist/models/order-updated-response.d.ts +0 -21
- package/dist/models/order-updated-response.js +0 -2
- package/dist/models/other-instrument.d.ts +0 -59
- package/dist/models/other-instrument.js +0 -2
- package/dist/models/paginated-universal-activity.d.ts +0 -22
- package/dist/models/paginated-universal-activity.js +0 -2
- package/dist/models/pagination-details.d.ts +0 -26
- package/dist/models/pagination-details.js +0 -2
- package/dist/models/partner-data.d.ts +0 -82
- package/dist/models/partner-data.js +0 -2
- package/dist/models/past-value.d.ts +0 -26
- package/dist/models/past-value.js +0 -2
- package/dist/models/performance-custom.d.ts +0 -127
- package/dist/models/performance-custom.js +0 -2
- package/dist/models/position-currency.d.ts +0 -25
- package/dist/models/position-currency.js +0 -2
- package/dist/models/position-symbol.d.ts +0 -50
- package/dist/models/position-symbol.js +0 -2
- package/dist/models/position.d.ts +0 -66
- package/dist/models/position.js +0 -2
- package/dist/models/rate-of-return-object.d.ts +0 -28
- package/dist/models/rate-of-return-object.js +0 -2
- package/dist/models/rate-of-return-response.d.ts +0 -15
- package/dist/models/rate-of-return-response.js +0 -2
- package/dist/models/recent-orders-response.d.ts +0 -15
- package/dist/models/recent-orders-response.js +0 -2
- package/dist/models/security-type.d.ts +0 -33
- package/dist/models/security-type.js +0 -2
- package/dist/models/session-event.d.ts +0 -52
- package/dist/models/session-event.js +0 -2
- package/dist/models/simple-order-form.d.ts +0 -67
- package/dist/models/simple-order-form.js +0 -2
- package/dist/models/snap-trade-holdings-account.d.ts +0 -60
- package/dist/models/snap-trade-holdings-account.js +0 -2
- package/dist/models/snap-trade-holdings-total-value.d.ts +0 -20
- package/dist/models/snap-trade-holdings-total-value.js +0 -2
- package/dist/models/snap-trade-login-user-request-body.d.ts +0 -58
- package/dist/models/snap-trade-login-user-request-body.js +0 -2
- package/dist/models/snap-trade-register-user-request-body.d.ts +0 -13
- package/dist/models/snap-trade-register-user-request-body.js +0 -2
- package/dist/models/status.d.ts +0 -26
- package/dist/models/status.js +0 -2
- package/dist/models/stock-instrument-figi-instrument.d.ts +0 -19
- package/dist/models/stock-instrument-figi-instrument.js +0 -2
- package/dist/models/stock-instrument.d.ts +0 -59
- package/dist/models/stock-instrument.js +0 -2
- package/dist/models/stop-loss.d.ts +0 -20
- package/dist/models/stop-loss.js +0 -2
- package/dist/models/strategy-order-record.d.ts +0 -77
- package/dist/models/strategy-order-record.js +0 -2
- package/dist/models/strategy-quotes-greek.d.ts +0 -38
- package/dist/models/strategy-quotes-greek.js +0 -2
- package/dist/models/strategy-quotes.d.ts +0 -46
- package/dist/models/strategy-quotes.js +0 -2
- package/dist/models/sub-period-return-rate.d.ts +0 -26
- package/dist/models/sub-period-return-rate.js +0 -2
- package/dist/models/symbol-currency.d.ts +0 -25
- package/dist/models/symbol-currency.js +0 -2
- package/dist/models/symbol-exchange.d.ts +0 -55
- package/dist/models/symbol-exchange.js +0 -2
- package/dist/models/symbol-query.d.ts +0 -13
- package/dist/models/symbol-query.js +0 -2
- package/dist/models/symbol.d.ts +0 -66
- package/dist/models/symbol.js +0 -2
- package/dist/models/symbols-quotes-inner.d.ts +0 -44
- package/dist/models/symbols-quotes-inner.js +0 -2
- package/dist/models/take-profit.d.ts +0 -14
- package/dist/models/take-profit.js +0 -2
- package/dist/models/tax-lot.d.ts +0 -50
- package/dist/models/tax-lot.js +0 -2
- package/dist/models/time-in-force-strict.d.ts +0 -6
- package/dist/models/time-in-force-strict.js +0 -2
- package/dist/models/trade-detection-cancel-subscription-response.d.ts +0 -14
- package/dist/models/trade-detection-cancel-subscription-response.js +0 -2
- package/dist/models/trade-detection-subscription.d.ts +0 -26
- package/dist/models/trade-detection-subscription.js +0 -2
- package/dist/models/trading-instrument.d.ts +0 -22
- package/dist/models/trading-instrument.js +0 -2
- package/dist/models/trading-search-cryptocurrency-pair-instruments200-response.d.ts +0 -15
- package/dist/models/trading-search-cryptocurrency-pair-instruments200-response.js +0 -2
- package/dist/models/trading-session.d.ts +0 -6
- package/dist/models/trading-session.js +0 -2
- package/dist/models/trailing-stop.d.ts +0 -22
- package/dist/models/trailing-stop.js +0 -2
- package/dist/models/transactions-status.d.ts +0 -25
- package/dist/models/transactions-status.js +0 -2
- package/dist/models/underlying-option-instrument.d.ts +0 -27
- package/dist/models/underlying-option-instrument.js +0 -2
- package/dist/models/underlying-symbol-exchange.d.ts +0 -61
- package/dist/models/underlying-symbol-exchange.js +0 -2
- package/dist/models/underlying-symbol-type.d.ts +0 -32
- package/dist/models/underlying-symbol-type.js +0 -2
- package/dist/models/underlying-symbol.d.ts +0 -74
- package/dist/models/underlying-symbol.js +0 -2
- package/dist/models/universal-activity.d.ts +0 -114
- package/dist/models/universal-activity.js +0 -2
- package/dist/models/universal-symbol.d.ts +0 -74
- package/dist/models/universal-symbol.js +0 -2
- package/dist/models/user-idand-secret.d.ts +0 -19
- package/dist/models/user-idand-secret.js +0 -2
- package/dist/models/usexchange.d.ts +0 -62
- package/dist/models/usexchange.js +0 -2
- package/dist/models/validated-trade-body.d.ts +0 -13
- package/dist/models/validated-trade-body.js +0 -2
- package/dist/operationParameterMap.d.ts +0 -8
- package/dist/operationParameterMap.js +0 -966
- package/dist/pagination/page-types.d.ts +0 -16
- package/dist/pagination/page-types.js +0 -12
- package/dist/pagination/page.d.ts +0 -25
- package/dist/pagination/page.js +0 -32
- package/dist/pagination/pageable.d.ts +0 -47
- package/dist/pagination/pageable.js +0 -70
- package/dist/pagination/paginate.d.ts +0 -6
- package/dist/pagination/paginate.js +0 -39
- package/dist/requestAfterHook.d.ts +0 -8
- package/dist/requestAfterHook.js +0 -82
- package/dist/requestBeforeHook.d.ts +0 -10
- package/dist/requestBeforeHook.js +0 -8
- package/dist/requestBeforeUrlHook.d.ts +0 -7
- package/dist/requestBeforeUrlHook.js +0 -5
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @export
|
|
4
|
-
* @interface OptionStrategyLegsInner
|
|
5
|
-
*/
|
|
6
|
-
export interface OptionStrategyLegsInner {
|
|
7
|
-
/**
|
|
8
|
-
*
|
|
9
|
-
* @type {string}
|
|
10
|
-
* @memberof OptionStrategyLegsInner
|
|
11
|
-
*/
|
|
12
|
-
'option_symbol_id'?: string;
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @type {number}
|
|
16
|
-
* @memberof OptionStrategyLegsInner
|
|
17
|
-
*/
|
|
18
|
-
'index'?: number;
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof OptionStrategyLegsInner
|
|
23
|
-
*/
|
|
24
|
-
'action'?: string;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {number}
|
|
28
|
-
* @memberof OptionStrategyLegsInner
|
|
29
|
-
*/
|
|
30
|
-
'quantity'?: number;
|
|
31
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { OptionStrategyLegsInner } from './option-strategy-legs-inner';
|
|
2
|
-
import { UniversalSymbol } from './universal-symbol';
|
|
3
|
-
/**
|
|
4
|
-
*
|
|
5
|
-
* @export
|
|
6
|
-
* @interface OptionStrategy
|
|
7
|
-
*/
|
|
8
|
-
export interface OptionStrategy {
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
* @type {string}
|
|
13
|
-
* @memberof OptionStrategy
|
|
14
|
-
*/
|
|
15
|
-
'id'?: string;
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @type {UniversalSymbol}
|
|
19
|
-
* @memberof OptionStrategy
|
|
20
|
-
*/
|
|
21
|
-
'underlying_symbol_id'?: UniversalSymbol;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof OptionStrategy
|
|
26
|
-
*/
|
|
27
|
-
'strategy_type'?: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof OptionStrategy
|
|
32
|
-
*/
|
|
33
|
-
'number_of_legs'?: number;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {Array<OptionStrategyLegsInner>}
|
|
37
|
-
* @memberof OptionStrategy
|
|
38
|
-
*/
|
|
39
|
-
'legs'?: Array<OptionStrategyLegsInner>;
|
|
40
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The currency of the price. This field is deprecated and will be removed in a future version. The currency of the price is determined by the currency of the underlying security.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface OptionsPositionCurrency
|
|
5
|
-
*/
|
|
6
|
-
export interface OptionsPositionCurrency {
|
|
7
|
-
/**
|
|
8
|
-
* Unique identifier for the currency. This is the UUID used to reference the currency in SnapTrade.
|
|
9
|
-
* @type {string}
|
|
10
|
-
* @memberof OptionsPositionCurrency
|
|
11
|
-
*/
|
|
12
|
-
'id'?: string;
|
|
13
|
-
/**
|
|
14
|
-
* The ISO-4217 currency code for the currency.
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof OptionsPositionCurrency
|
|
17
|
-
*/
|
|
18
|
-
'code'?: string;
|
|
19
|
-
/**
|
|
20
|
-
* A human-friendly name of the currency.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof OptionsPositionCurrency
|
|
23
|
-
*/
|
|
24
|
-
'name'?: string;
|
|
25
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { OptionBrokerageSymbol } from './option-brokerage-symbol';
|
|
2
|
-
import { OptionsPositionCurrency } from './options-position-currency';
|
|
3
|
-
/**
|
|
4
|
-
* Describes a single option position in an account.
|
|
5
|
-
* @export
|
|
6
|
-
* @interface OptionsPosition
|
|
7
|
-
*/
|
|
8
|
-
export interface OptionsPosition {
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
* @type {OptionBrokerageSymbol}
|
|
13
|
-
* @memberof OptionsPosition
|
|
14
|
-
*/
|
|
15
|
-
'symbol'?: OptionBrokerageSymbol;
|
|
16
|
-
/**
|
|
17
|
-
* Last known market price _per share_ of the option contract. The freshness of this price depends on the brokerage. Some brokerages provide real-time prices, while others provide delayed prices. It is recommended that you rely on your own third-party market data provider for most up to date prices.
|
|
18
|
-
* @type {number}
|
|
19
|
-
* @memberof OptionsPosition
|
|
20
|
-
*/
|
|
21
|
-
'price'?: number | null;
|
|
22
|
-
/**
|
|
23
|
-
* The number of contracts for this option position. A positive number indicates a long position, while a negative number indicates a short position.
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof OptionsPosition
|
|
26
|
-
*/
|
|
27
|
-
'units'?: number;
|
|
28
|
-
/**
|
|
29
|
-
* Cost basis _per contract_ of this option position. To get the cost basis _per share_, divide this value by the number of shares per contract (usually 100).
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof OptionsPosition
|
|
32
|
-
*/
|
|
33
|
-
'average_purchase_price'?: number | null;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {OptionsPositionCurrency}
|
|
37
|
-
* @memberof OptionsPosition
|
|
38
|
-
* @deprecated
|
|
39
|
-
*/
|
|
40
|
-
'currency'?: OptionsPositionCurrency | null;
|
|
41
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { UnderlyingSymbol } from './underlying-symbol';
|
|
2
|
-
/**
|
|
3
|
-
* Uniquely describes an option security + exchange combination across all brokerages.
|
|
4
|
-
* @export
|
|
5
|
-
* @interface OptionsSymbol
|
|
6
|
-
*/
|
|
7
|
-
export interface OptionsSymbol {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
* Unique identifier for the option symbol within SnapTrade. This is the ID used to reference the symbol in SnapTrade API calls.
|
|
11
|
-
* @type {string}
|
|
12
|
-
* @memberof OptionsSymbol
|
|
13
|
-
*/
|
|
14
|
-
'id': string;
|
|
15
|
-
/**
|
|
16
|
-
* The [OCC symbol](https://en.wikipedia.org/wiki/Option_symbol) for the option.
|
|
17
|
-
* @type {string}
|
|
18
|
-
* @memberof OptionsSymbol
|
|
19
|
-
*/
|
|
20
|
-
'ticker': string;
|
|
21
|
-
/**
|
|
22
|
-
* The type of option. Either \"CALL\" or \"PUT\".
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof OptionsSymbol
|
|
25
|
-
*/
|
|
26
|
-
'option_type': OptionsSymbolOptionTypeEnum;
|
|
27
|
-
/**
|
|
28
|
-
* The option strike price.
|
|
29
|
-
* @type {number}
|
|
30
|
-
* @memberof OptionsSymbol
|
|
31
|
-
*/
|
|
32
|
-
'strike_price': number;
|
|
33
|
-
/**
|
|
34
|
-
* The option expiration date.
|
|
35
|
-
* @type {string}
|
|
36
|
-
* @memberof OptionsSymbol
|
|
37
|
-
*/
|
|
38
|
-
'expiration_date': string;
|
|
39
|
-
/**
|
|
40
|
-
* Whether the option is a mini option. Mini options have 10 underlying shares per contract instead of the standard 100.
|
|
41
|
-
* @type {boolean}
|
|
42
|
-
* @memberof OptionsSymbol
|
|
43
|
-
*/
|
|
44
|
-
'is_mini_option'?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {UnderlyingSymbol}
|
|
48
|
-
* @memberof OptionsSymbol
|
|
49
|
-
*/
|
|
50
|
-
'underlying_symbol': UnderlyingSymbol;
|
|
51
|
-
}
|
|
52
|
-
type OptionsSymbolOptionTypeEnum = 'CALL' | 'PUT';
|
|
53
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The type of order to place. - For `Limit` and `StopLimit` orders, the `price` field is required. - For `Stop` and `StopLimit` orders, the `stop` field is required.
|
|
3
|
-
* @export
|
|
4
|
-
* @enum {string}
|
|
5
|
-
*/
|
|
6
|
-
export type OrderTypeStrict = 'Limit' | 'Market' | 'StopLimit' | 'Stop';
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import { AccountOrderRecordChildBrokerageOrderIds } from './account-order-record-child-brokerage-order-ids';
|
|
2
|
-
import { AccountOrderRecordOptionSymbol } from './account-order-record-option-symbol';
|
|
3
|
-
import { AccountOrderRecordQuoteCurrency } from './account-order-record-quote-currency';
|
|
4
|
-
import { AccountOrderRecordQuoteUniversalSymbol } from './account-order-record-quote-universal-symbol';
|
|
5
|
-
import { AccountOrderRecordStatus } from './account-order-record-status';
|
|
6
|
-
import { AccountOrderRecordTrailingStop } from './account-order-record-trailing-stop';
|
|
7
|
-
import { AccountOrderRecordUniversalSymbol } from './account-order-record-universal-symbol';
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @export
|
|
11
|
-
* @interface OrderUpdatedResponseOrder
|
|
12
|
-
*/
|
|
13
|
-
export interface OrderUpdatedResponseOrder {
|
|
14
|
-
/**
|
|
15
|
-
* Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof OrderUpdatedResponseOrder
|
|
18
|
-
*/
|
|
19
|
-
'brokerage_order_id'?: string;
|
|
20
|
-
/**
|
|
21
|
-
* The brokerage-assigned identifier that links all orders within a complex order (OCO, OTO, OTOCO) together. Null for non-complex orders or when the brokerage does not return a group identifier.
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof OrderUpdatedResponseOrder
|
|
24
|
-
*/
|
|
25
|
-
'brokerage_group_order_id'?: string | null;
|
|
26
|
-
/**
|
|
27
|
-
* The role of this order within a complex order group (OCO, OTO, OTOCO). Null for non-complex orders.
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof OrderUpdatedResponseOrder
|
|
30
|
-
*/
|
|
31
|
-
'order_role'?: OrderUpdatedResponseOrderOrderRoleEnum;
|
|
32
|
-
/**
|
|
33
|
-
* Indicates the status of an order. SnapTrade does a best effort to map brokerage statuses to statuses in this enum. Possible values include: - NONE - PENDING - ACCEPTED - FAILED - REJECTED - CANCELED - PARTIAL_CANCELED - CANCEL_PENDING - EXECUTED - PARTIAL - REPLACE_PENDING - REPLACED - EXPIRED - QUEUED - TRIGGERED - ACTIVATED
|
|
34
|
-
* @type {AccountOrderRecordStatus}
|
|
35
|
-
* @memberof OrderUpdatedResponseOrder
|
|
36
|
-
*/
|
|
37
|
-
'status'?: AccountOrderRecordStatus;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {AccountOrderRecordUniversalSymbol}
|
|
41
|
-
* @memberof OrderUpdatedResponseOrder
|
|
42
|
-
*/
|
|
43
|
-
'universal_symbol'?: AccountOrderRecordUniversalSymbol;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {AccountOrderRecordOptionSymbol}
|
|
47
|
-
* @memberof OrderUpdatedResponseOrder
|
|
48
|
-
*/
|
|
49
|
-
'option_symbol'?: AccountOrderRecordOptionSymbol;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {AccountOrderRecordQuoteUniversalSymbol}
|
|
53
|
-
* @memberof OrderUpdatedResponseOrder
|
|
54
|
-
*/
|
|
55
|
-
'quote_universal_symbol'?: AccountOrderRecordQuoteUniversalSymbol;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {AccountOrderRecordQuoteCurrency}
|
|
59
|
-
* @memberof OrderUpdatedResponseOrder
|
|
60
|
-
*/
|
|
61
|
-
'quote_currency'?: AccountOrderRecordQuoteCurrency;
|
|
62
|
-
/**
|
|
63
|
-
* The action describes the intent or side of a trade. This is usually `BUY` or `SELL` but can include other potential values like the following depending on the specific brokerage. - BUY - SELL - BUY_COVER - SELL_SHORT - BUY_OPEN - BUY_CLOSE - SELL_OPEN - SELL_CLOSE
|
|
64
|
-
* @type {string}
|
|
65
|
-
* @memberof OrderUpdatedResponseOrder
|
|
66
|
-
*/
|
|
67
|
-
'action'?: string;
|
|
68
|
-
/**
|
|
69
|
-
* The total number of shares or contracts of the order. This should be the sum of the filled, canceled, and open quantities. Can be a decimal number for fractional shares.
|
|
70
|
-
* @type {string}
|
|
71
|
-
* @memberof OrderUpdatedResponseOrder
|
|
72
|
-
*/
|
|
73
|
-
'total_quantity'?: string | null;
|
|
74
|
-
/**
|
|
75
|
-
* The number of shares or contracts that are still open (waiting for execution). Can be a decimal number for fractional shares.
|
|
76
|
-
* @type {string}
|
|
77
|
-
* @memberof OrderUpdatedResponseOrder
|
|
78
|
-
*/
|
|
79
|
-
'open_quantity'?: string | null;
|
|
80
|
-
/**
|
|
81
|
-
* The number of shares or contracts that have been canceled. Can be a decimal number for fractional shares.
|
|
82
|
-
* @type {string}
|
|
83
|
-
* @memberof OrderUpdatedResponseOrder
|
|
84
|
-
*/
|
|
85
|
-
'canceled_quantity'?: string | null;
|
|
86
|
-
/**
|
|
87
|
-
* The number of shares or contracts that have been filled. Can be a decimal number for fractional shares.
|
|
88
|
-
* @type {string}
|
|
89
|
-
* @memberof OrderUpdatedResponseOrder
|
|
90
|
-
*/
|
|
91
|
-
'filled_quantity'?: string | null;
|
|
92
|
-
/**
|
|
93
|
-
* The price at which the order was executed. For option orders, this represents the price per share.
|
|
94
|
-
* @type {number}
|
|
95
|
-
* @memberof OrderUpdatedResponseOrder
|
|
96
|
-
*/
|
|
97
|
-
'execution_price'?: number | null;
|
|
98
|
-
/**
|
|
99
|
-
* The limit price is maximum price one is willing to pay for a buy order or the minimum price one is willing to accept for a sell order. Should only apply to `Limit` and `StopLimit` orders. For option orders, this represents the price per share.
|
|
100
|
-
* @type {number}
|
|
101
|
-
* @memberof OrderUpdatedResponseOrder
|
|
102
|
-
*/
|
|
103
|
-
'limit_price'?: number | null;
|
|
104
|
-
/**
|
|
105
|
-
* The stop price is the price at which a stop order is triggered. Should only apply to `Stop` and `StopLimit` orders. For option orders, this represents the price per share.
|
|
106
|
-
* @type {number}
|
|
107
|
-
* @memberof OrderUpdatedResponseOrder
|
|
108
|
-
*/
|
|
109
|
-
'stop_price'?: number | null;
|
|
110
|
-
/**
|
|
111
|
-
*
|
|
112
|
-
* @type {AccountOrderRecordTrailingStop}
|
|
113
|
-
* @memberof OrderUpdatedResponseOrder
|
|
114
|
-
*/
|
|
115
|
-
'trailing_stop'?: AccountOrderRecordTrailingStop | null;
|
|
116
|
-
/**
|
|
117
|
-
* The type of order placed. The most common values are `Market`, `Limit`, `Stop`, and `StopLimit`. We try our best to map brokerage order types to these values. When mapping fails, we will return the brokerage\'s order type value.
|
|
118
|
-
* @type {string}
|
|
119
|
-
* @memberof OrderUpdatedResponseOrder
|
|
120
|
-
*/
|
|
121
|
-
'order_type'?: string | null;
|
|
122
|
-
/**
|
|
123
|
-
* The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. We try our best to map brokerage time in force values to the following. When mapping fails, we will return the brokerage\'s time in force value. - `Day` - Day. The order is valid only for the trading day on which it is placed. - `GTC` - Good Til Canceled. The order is valid until it is executed or canceled. - `FOK` - Fill Or Kill. The order must be executed in its entirety immediately or be canceled completely. - `IOC` - Immediate Or Cancel. The order must be executed immediately. Any portion of the order that cannot be filled immediately will be canceled. - `GTD` - Good Til Date. The order is valid until the specified date. - `MOO` - Market On Open. The order is to be executed at the day\'s opening price. - `EHP` - Extended Hours P.M. The order is to be placed during extended hour trading, after markets close.
|
|
124
|
-
* @type {string}
|
|
125
|
-
* @memberof OrderUpdatedResponseOrder
|
|
126
|
-
*/
|
|
127
|
-
'time_in_force'?: string;
|
|
128
|
-
/**
|
|
129
|
-
* The time the order was placed. This is the time the order was submitted to the brokerage.
|
|
130
|
-
* @type {string}
|
|
131
|
-
* @memberof OrderUpdatedResponseOrder
|
|
132
|
-
*/
|
|
133
|
-
'time_placed'?: string;
|
|
134
|
-
/**
|
|
135
|
-
* The time the order was last updated in the brokerage system. This value is not always available from the brokerage.
|
|
136
|
-
* @type {string}
|
|
137
|
-
* @memberof OrderUpdatedResponseOrder
|
|
138
|
-
*/
|
|
139
|
-
'time_updated'?: string | null;
|
|
140
|
-
/**
|
|
141
|
-
* The time the order was executed in the brokerage system. This value is not always available from the brokerage.
|
|
142
|
-
* @type {string}
|
|
143
|
-
* @memberof OrderUpdatedResponseOrder
|
|
144
|
-
*/
|
|
145
|
-
'time_executed'?: string | null;
|
|
146
|
-
/**
|
|
147
|
-
* The time the order expires. This value is not always available from the brokerage.
|
|
148
|
-
* @type {string}
|
|
149
|
-
* @memberof OrderUpdatedResponseOrder
|
|
150
|
-
*/
|
|
151
|
-
'expiry_date'?: string | null;
|
|
152
|
-
/**
|
|
153
|
-
* A unique ID for the security within SnapTrade, scoped to the brokerage account that the security belongs to. This is a legacy field and should not be used. Do not rely on this being a stable ID as it can change.
|
|
154
|
-
* @type {string}
|
|
155
|
-
* @memberof OrderUpdatedResponseOrder
|
|
156
|
-
* @deprecated
|
|
157
|
-
*/
|
|
158
|
-
'symbol'?: string;
|
|
159
|
-
/**
|
|
160
|
-
*
|
|
161
|
-
* @type {AccountOrderRecordChildBrokerageOrderIds}
|
|
162
|
-
* @memberof OrderUpdatedResponseOrder
|
|
163
|
-
*/
|
|
164
|
-
'child_brokerage_order_ids'?: AccountOrderRecordChildBrokerageOrderIds | null;
|
|
165
|
-
}
|
|
166
|
-
type OrderUpdatedResponseOrderOrderRoleEnum = 'TRIGGER' | 'CONDITIONAL' | 'PEER';
|
|
167
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { OrderUpdatedResponseOrder } from './order-updated-response-order';
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* @export
|
|
5
|
-
* @interface OrderUpdatedResponse
|
|
6
|
-
*/
|
|
7
|
-
export interface OrderUpdatedResponse {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
* Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.
|
|
11
|
-
* @type {string}
|
|
12
|
-
* @memberof OrderUpdatedResponse
|
|
13
|
-
*/
|
|
14
|
-
'brokerage_order_id': string;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @type {OrderUpdatedResponseOrder}
|
|
18
|
-
* @memberof OrderUpdatedResponse
|
|
19
|
-
*/
|
|
20
|
-
'order'?: OrderUpdatedResponseOrder | null;
|
|
21
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { StockInstrumentFigiInstrument } from './stock-instrument-figi-instrument';
|
|
2
|
-
/**
|
|
3
|
-
* Security instrument metadata for other mapped security positions.
|
|
4
|
-
* @export
|
|
5
|
-
* @interface OtherInstrument
|
|
6
|
-
*/
|
|
7
|
-
export interface OtherInstrument {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
* Type of security instrument.
|
|
11
|
-
* @type {string}
|
|
12
|
-
* @memberof OtherInstrument
|
|
13
|
-
*/
|
|
14
|
-
'kind': OtherInstrumentKindEnum;
|
|
15
|
-
/**
|
|
16
|
-
* Unique identifier for the instrument.
|
|
17
|
-
* @type {string}
|
|
18
|
-
* @memberof OtherInstrument
|
|
19
|
-
*/
|
|
20
|
-
'id': string;
|
|
21
|
-
/**
|
|
22
|
-
* The formatted trading symbol for the security.
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof OtherInstrument
|
|
25
|
-
*/
|
|
26
|
-
'symbol': string;
|
|
27
|
-
/**
|
|
28
|
-
* The raw symbol without any exchange suffix.
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof OtherInstrument
|
|
31
|
-
*/
|
|
32
|
-
'raw_symbol': string;
|
|
33
|
-
/**
|
|
34
|
-
* Human-readable description of the security.
|
|
35
|
-
* @type {string}
|
|
36
|
-
* @memberof OtherInstrument
|
|
37
|
-
*/
|
|
38
|
-
'description'?: string | null;
|
|
39
|
-
/**
|
|
40
|
-
* ISO-4217 currency code for the security listing.
|
|
41
|
-
* @type {string}
|
|
42
|
-
* @memberof OtherInstrument
|
|
43
|
-
*/
|
|
44
|
-
'currency'?: string | null;
|
|
45
|
-
/**
|
|
46
|
-
* Exchange MIC code or exchange code for the security.
|
|
47
|
-
* @type {string}
|
|
48
|
-
* @memberof OtherInstrument
|
|
49
|
-
*/
|
|
50
|
-
'exchange'?: string | null;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {StockInstrumentFigiInstrument}
|
|
54
|
-
* @memberof OtherInstrument
|
|
55
|
-
*/
|
|
56
|
-
'figi_instrument'?: StockInstrumentFigiInstrument | null;
|
|
57
|
-
}
|
|
58
|
-
type OtherInstrumentKindEnum = 'other';
|
|
59
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { AccountUniversalActivity } from './account-universal-activity';
|
|
2
|
-
import { PaginationDetails } from './pagination-details';
|
|
3
|
-
/**
|
|
4
|
-
* A paginated list of UniversalActivity objects.
|
|
5
|
-
* @export
|
|
6
|
-
* @interface PaginatedUniversalActivity
|
|
7
|
-
*/
|
|
8
|
-
export interface PaginatedUniversalActivity {
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
* @type {Array<AccountUniversalActivity>}
|
|
13
|
-
* @memberof PaginatedUniversalActivity
|
|
14
|
-
*/
|
|
15
|
-
'data'?: Array<AccountUniversalActivity>;
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @type {PaginationDetails}
|
|
19
|
-
* @memberof PaginatedUniversalActivity
|
|
20
|
-
*/
|
|
21
|
-
'pagination'?: PaginationDetails;
|
|
22
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Details about the pagination of the results.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface PaginationDetails
|
|
5
|
-
*/
|
|
6
|
-
export interface PaginationDetails {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* The starting point of the paginated results.
|
|
10
|
-
* @type {number}
|
|
11
|
-
* @memberof PaginationDetails
|
|
12
|
-
*/
|
|
13
|
-
'offset'?: number;
|
|
14
|
-
/**
|
|
15
|
-
* The maximum number of items to return in the response.
|
|
16
|
-
* @type {number}
|
|
17
|
-
* @memberof PaginationDetails
|
|
18
|
-
*/
|
|
19
|
-
'limit'?: number;
|
|
20
|
-
/**
|
|
21
|
-
* The total number of items available to be returned over the API.
|
|
22
|
-
* @type {number}
|
|
23
|
-
* @memberof PaginationDetails
|
|
24
|
-
*/
|
|
25
|
-
'total'?: number;
|
|
26
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { Brokerage } from './brokerage';
|
|
2
|
-
/**
|
|
3
|
-
* Configurations for your SnapTrade Client ID, including allowed brokerages and data access.
|
|
4
|
-
* @export
|
|
5
|
-
* @interface PartnerData
|
|
6
|
-
*/
|
|
7
|
-
export interface PartnerData {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
* A short, unique identifier for your company or product.
|
|
11
|
-
* @type {string}
|
|
12
|
-
* @memberof PartnerData
|
|
13
|
-
*/
|
|
14
|
-
'slug'?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Your company or product name.
|
|
17
|
-
* @type {string}
|
|
18
|
-
* @memberof PartnerData
|
|
19
|
-
*/
|
|
20
|
-
'name'?: string;
|
|
21
|
-
/**
|
|
22
|
-
* URL to your company or product logo.
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof PartnerData
|
|
25
|
-
*/
|
|
26
|
-
'logo_url'?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Brokerages that can be accessed by your Client ID.
|
|
29
|
-
* @type {Array<Brokerage>}
|
|
30
|
-
* @memberof PartnerData
|
|
31
|
-
*/
|
|
32
|
-
'allowed_brokerages'?: Array<Brokerage>;
|
|
33
|
-
/**
|
|
34
|
-
* Whether trading is enabled for your SnapTrade Client ID.
|
|
35
|
-
* @type {boolean}
|
|
36
|
-
* @memberof PartnerData
|
|
37
|
-
*/
|
|
38
|
-
'can_access_trades'?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Whether holdings data is enabled for your SnapTrade Client ID.
|
|
41
|
-
* @type {boolean}
|
|
42
|
-
* @memberof PartnerData
|
|
43
|
-
*/
|
|
44
|
-
'can_access_holdings'?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Whether account historical transactions is enabled for your SnapTrade Client ID.
|
|
47
|
-
* @type {boolean}
|
|
48
|
-
* @memberof PartnerData
|
|
49
|
-
*/
|
|
50
|
-
'can_access_account_history'?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Whether reference data is enabled for your SnapTrade Client ID.
|
|
53
|
-
* @type {boolean}
|
|
54
|
-
* @memberof PartnerData
|
|
55
|
-
*/
|
|
56
|
-
'can_access_reference_data'?: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Whether portfolio management is enabled for your SnapTrade Client ID.
|
|
59
|
-
* @type {boolean}
|
|
60
|
-
* @memberof PartnerData
|
|
61
|
-
*/
|
|
62
|
-
'can_access_portfolio_management'?: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Whether recent order history is enabled for your SnapTrade Client ID.
|
|
65
|
-
* @type {boolean}
|
|
66
|
-
* @memberof PartnerData
|
|
67
|
-
*/
|
|
68
|
-
'can_access_orders'?: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* URI to redirect user back to after user is done adding brokerage connections.
|
|
71
|
-
* @type {string}
|
|
72
|
-
* @memberof PartnerData
|
|
73
|
-
*/
|
|
74
|
-
'redirect_uri'?: string;
|
|
75
|
-
/**
|
|
76
|
-
* Shows if pin is required by users to access connection page. This field has been deprecated.
|
|
77
|
-
* @type {boolean}
|
|
78
|
-
* @memberof PartnerData
|
|
79
|
-
* @deprecated
|
|
80
|
-
*/
|
|
81
|
-
'pin_required'?: boolean;
|
|
82
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @export
|
|
4
|
-
* @interface PastValue
|
|
5
|
-
*/
|
|
6
|
-
export interface PastValue {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* Date used to specify timeframe for a reporting call (in YYYY-MM-DD format). These dates are inclusive.
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof PastValue
|
|
12
|
-
*/
|
|
13
|
-
'date'?: string;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {number}
|
|
17
|
-
* @memberof PastValue
|
|
18
|
-
*/
|
|
19
|
-
'value'?: number;
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof PastValue
|
|
24
|
-
*/
|
|
25
|
-
'currency'?: string;
|
|
26
|
-
}
|