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,15 +0,0 @@
|
|
|
1
|
-
import { CryptoOrderPreviewEstimatedFee } from './crypto-order-preview-estimated-fee';
|
|
2
|
-
/**
|
|
3
|
-
* Preview of an order.
|
|
4
|
-
* @export
|
|
5
|
-
* @interface CryptoOrderPreview
|
|
6
|
-
*/
|
|
7
|
-
export interface CryptoOrderPreview {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @type {CryptoOrderPreviewEstimatedFee}
|
|
12
|
-
* @memberof CryptoOrderPreview
|
|
13
|
-
*/
|
|
14
|
-
'estimated_fee'?: CryptoOrderPreviewEstimatedFee;
|
|
15
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @export
|
|
4
|
-
* @interface CryptoTradingInstrument
|
|
5
|
-
*/
|
|
6
|
-
export interface CryptoTradingInstrument {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* The instrument\'s trading ticker symbol
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof CryptoTradingInstrument
|
|
12
|
-
*/
|
|
13
|
-
'symbol': string;
|
|
14
|
-
/**
|
|
15
|
-
* The instrument\'s type
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof CryptoTradingInstrument
|
|
18
|
-
*/
|
|
19
|
-
'type': CryptoTradingInstrumentTypeEnum;
|
|
20
|
-
}
|
|
21
|
-
type CryptoTradingInstrumentTypeEnum = 'CRYPTOCURRENCY' | 'CRYPTOCURRENCY_PAIR';
|
|
22
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @export
|
|
4
|
-
* @interface CryptocurrencyPairQuote
|
|
5
|
-
*/
|
|
6
|
-
export interface CryptocurrencyPairQuote {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* The highest price a buyer is willing to pay.
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof CryptocurrencyPairQuote
|
|
12
|
-
*/
|
|
13
|
-
'bid': string;
|
|
14
|
-
/**
|
|
15
|
-
* The lowest price a seller is willing to accept.
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof CryptocurrencyPairQuote
|
|
18
|
-
*/
|
|
19
|
-
'ask': string;
|
|
20
|
-
/**
|
|
21
|
-
* The market mid price.
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof CryptocurrencyPairQuote
|
|
24
|
-
*/
|
|
25
|
-
'mid'?: string;
|
|
26
|
-
/**
|
|
27
|
-
* The timestamp of the quote.
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof CryptocurrencyPairQuote
|
|
30
|
-
*/
|
|
31
|
-
'timestamp'?: string;
|
|
32
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A cryptocurrency pair instrument.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface CryptocurrencyPair
|
|
5
|
-
*/
|
|
6
|
-
export interface CryptocurrencyPair {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* Cryptocurrency pair instrument symbol
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof CryptocurrencyPair
|
|
12
|
-
*/
|
|
13
|
-
'symbol'?: string;
|
|
14
|
-
/**
|
|
15
|
-
* The base currency of a pair (e.g., \"BTC\" in BTC/USD). Either fiat or cryptocurrency symbol, for fiat use ISO-4217 codes.
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof CryptocurrencyPair
|
|
18
|
-
*/
|
|
19
|
-
'base': string;
|
|
20
|
-
/**
|
|
21
|
-
* The quote currency of a pair (e.g., \"USD\" in BTC/USD). Either fiat or cryptocurrency symbol, for fiat use ISO-4217 codes.
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof CryptocurrencyPair
|
|
24
|
-
*/
|
|
25
|
-
'quote': string;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof CryptocurrencyPair
|
|
30
|
-
*/
|
|
31
|
-
'increment'?: string | null;
|
|
32
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Describes a currency object.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface Currency
|
|
5
|
-
*/
|
|
6
|
-
export interface Currency {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* Unique identifier for the currency. This is the UUID used to reference the currency in SnapTrade.
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof Currency
|
|
12
|
-
*/
|
|
13
|
-
'id'?: string;
|
|
14
|
-
/**
|
|
15
|
-
* The ISO-4217 currency code for the currency.
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof Currency
|
|
18
|
-
*/
|
|
19
|
-
'code'?: string;
|
|
20
|
-
/**
|
|
21
|
-
* A human-friendly name of the currency.
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof Currency
|
|
24
|
-
*/
|
|
25
|
-
'name'?: string;
|
|
26
|
-
}
|
package/dist/models/currency.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Confirmation that a task has been scheduled to delete the connection.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface DeleteConnectionConfirmation
|
|
5
|
-
*/
|
|
6
|
-
export interface DeleteConnectionConfirmation {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* Connection queued for deletion; please wait for webhook for confirmation.
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof DeleteConnectionConfirmation
|
|
12
|
-
*/
|
|
13
|
-
'detail'?: string;
|
|
14
|
-
/**
|
|
15
|
-
* The ID of the connection (brokerage authorization) that was scheduled for deletion.
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof DeleteConnectionConfirmation
|
|
18
|
-
*/
|
|
19
|
-
'connection_id'?: string;
|
|
20
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @export
|
|
4
|
-
* @interface DeleteUserResponse
|
|
5
|
-
*/
|
|
6
|
-
export interface DeleteUserResponse {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* This is always `deleted` when a user is queued for deletion.
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof DeleteUserResponse
|
|
12
|
-
*/
|
|
13
|
-
'status'?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Human friendly message about the deletion status.
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof DeleteUserResponse
|
|
18
|
-
*/
|
|
19
|
-
'detail'?: string;
|
|
20
|
-
/**
|
|
21
|
-
* SnapTrade User ID. This is chosen by the API partner and can be any string that is a) unique to the user, and b) immutable for the user. It is recommended to NOT use email addresses for this property because they are usually not immutable.
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof DeleteUserResponse
|
|
24
|
-
*/
|
|
25
|
-
'userId'?: string;
|
|
26
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @export
|
|
4
|
-
* @interface DividendAtDate
|
|
5
|
-
*/
|
|
6
|
-
export interface DividendAtDate {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* The ticker of the symbol that the dividend came from
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof DividendAtDate
|
|
12
|
-
*/
|
|
13
|
-
'symbol'?: string | null;
|
|
14
|
-
/**
|
|
15
|
-
* The amount received from the dividend
|
|
16
|
-
* @type {number}
|
|
17
|
-
* @memberof DividendAtDate
|
|
18
|
-
*/
|
|
19
|
-
'amount'?: number | null;
|
|
20
|
-
/**
|
|
21
|
-
* The currency of the amount
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof DividendAtDate
|
|
24
|
-
*/
|
|
25
|
-
'currency'?: string;
|
|
26
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @export
|
|
4
|
-
* @interface EncryptedResponseEncryptedMessageData
|
|
5
|
-
*/
|
|
6
|
-
export interface EncryptedResponseEncryptedMessageData {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof EncryptedResponseEncryptedMessageData
|
|
12
|
-
*/
|
|
13
|
-
'encryptedMessage'?: string;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof EncryptedResponseEncryptedMessageData
|
|
18
|
-
*/
|
|
19
|
-
'tag'?: string;
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof EncryptedResponseEncryptedMessageData
|
|
24
|
-
*/
|
|
25
|
-
'nonce'?: string;
|
|
26
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { EncryptedResponseEncryptedMessageData } from './encrypted-response-encrypted-message-data';
|
|
2
|
-
/**
|
|
3
|
-
* This response consists of 2 different components that must be decrypted to obtain the decrypted message * Decrypting the encryptedSharedKey The encrypted shared key is a shared key that was randomly generated by SnapTrade and encrypted using the users SSH public key provided when registering the user It is needed to decrypt the message in step 2. To decrypt the shared key, the user should have access to their SSH private key stored locally in their device An example Python code on how to decrypt the shared key is shown below ``` def decrypt_rsa_message(self, encrypted_message): from Crypto.Cipher import PKCS1_OAEP from Crypto.PublicKey import RSA from base64 import b64decode f = open(\'private.pem\', \'r\') private_key = RSA.import_key(f.read()) cipher = PKCS1_OAEP.new(private_key) return cipher.decrypt(b64decode(encrypted_message.encode())).decode() ``` * Decrypting the encryptedMessageData The data meant to be returned by an endpoint can be obtained by decrypting the encrypted message An encrypted message is a message that is encrypted using AES - MODE OCB with the shared key obtained in step one An example code to decrypt the encrypted message is shown below ``` def decrypt_aes_message(self, shared_key, encrypted_message): from Crypto.Cipher import AES from base64 import b64decode encrypted_msg = b64decode(encrypted_message[\"encryptedMessage\"].encode()) tag = b64decode(encrypted_message[\"tag\"].encode()) nonce = b64decode(encrypted_message[\"nonce\"].encode()) cipher = AES.new(shared_key.encode(), AES.MODE_OCB, nonce=nonce) return cipher.decrypt_and_verify(encrypted_msg, tag).decode() ```
|
|
4
|
-
* @export
|
|
5
|
-
* @interface EncryptedResponse
|
|
6
|
-
*/
|
|
7
|
-
export interface EncryptedResponse {
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof EncryptedResponse
|
|
12
|
-
*/
|
|
13
|
-
'encryptedSharedKey'?: string;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {EncryptedResponseEncryptedMessageData}
|
|
17
|
-
* @memberof EncryptedResponse
|
|
18
|
-
*/
|
|
19
|
-
'encryptedMessageData'?: EncryptedResponseEncryptedMessageData;
|
|
20
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { StockInstrumentFigiInstrument } from './stock-instrument-figi-instrument';
|
|
2
|
-
/**
|
|
3
|
-
* Security instrument metadata for ETF positions.
|
|
4
|
-
* @export
|
|
5
|
-
* @interface EtfInstrument
|
|
6
|
-
*/
|
|
7
|
-
export interface EtfInstrument {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
* Type of security instrument.
|
|
11
|
-
* @type {string}
|
|
12
|
-
* @memberof EtfInstrument
|
|
13
|
-
*/
|
|
14
|
-
'kind': EtfInstrumentKindEnum;
|
|
15
|
-
/**
|
|
16
|
-
* Unique identifier for the instrument.
|
|
17
|
-
* @type {string}
|
|
18
|
-
* @memberof EtfInstrument
|
|
19
|
-
*/
|
|
20
|
-
'id': string;
|
|
21
|
-
/**
|
|
22
|
-
* The formatted trading symbol for the security.
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof EtfInstrument
|
|
25
|
-
*/
|
|
26
|
-
'symbol': string;
|
|
27
|
-
/**
|
|
28
|
-
* The raw symbol without any exchange suffix.
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof EtfInstrument
|
|
31
|
-
*/
|
|
32
|
-
'raw_symbol': string;
|
|
33
|
-
/**
|
|
34
|
-
* Human-readable description of the security.
|
|
35
|
-
* @type {string}
|
|
36
|
-
* @memberof EtfInstrument
|
|
37
|
-
*/
|
|
38
|
-
'description'?: string | null;
|
|
39
|
-
/**
|
|
40
|
-
* ISO-4217 currency code for the security listing.
|
|
41
|
-
* @type {string}
|
|
42
|
-
* @memberof EtfInstrument
|
|
43
|
-
*/
|
|
44
|
-
'currency'?: string | null;
|
|
45
|
-
/**
|
|
46
|
-
* Exchange MIC code or exchange code for the security.
|
|
47
|
-
* @type {string}
|
|
48
|
-
* @memberof EtfInstrument
|
|
49
|
-
*/
|
|
50
|
-
'exchange'?: string | null;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {StockInstrumentFigiInstrument}
|
|
54
|
-
* @memberof EtfInstrument
|
|
55
|
-
*/
|
|
56
|
-
'figi_instrument'?: StockInstrumentFigiInstrument | null;
|
|
57
|
-
}
|
|
58
|
-
type EtfInstrumentKindEnum = 'etf';
|
|
59
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Currency } from './currency';
|
|
2
|
-
/**
|
|
3
|
-
* The exchange rate of a pair of currencies
|
|
4
|
-
* @export
|
|
5
|
-
* @interface ExchangeRatePairs
|
|
6
|
-
*/
|
|
7
|
-
export interface ExchangeRatePairs {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @type {Currency}
|
|
12
|
-
* @memberof ExchangeRatePairs
|
|
13
|
-
*/
|
|
14
|
-
'src'?: Currency;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @type {Currency}
|
|
18
|
-
* @memberof ExchangeRatePairs
|
|
19
|
-
*/
|
|
20
|
-
'dst'?: Currency;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {number}
|
|
24
|
-
* @memberof ExchangeRatePairs
|
|
25
|
-
*/
|
|
26
|
-
'exchange_rate'?: number;
|
|
27
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Describes a single stock or crypto exchange.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface Exchange
|
|
5
|
-
*/
|
|
6
|
-
export interface Exchange {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* Unique ID for the exchange in SnapTrade.
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof Exchange
|
|
12
|
-
*/
|
|
13
|
-
'id'?: string;
|
|
14
|
-
/**
|
|
15
|
-
* A short name for the exchange. For standardized exchange code, please us the `mic_code` field.
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof Exchange
|
|
18
|
-
*/
|
|
19
|
-
'code'?: string;
|
|
20
|
-
/**
|
|
21
|
-
* The [Market Identifier Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) (MIC) for the exchange.
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof Exchange
|
|
24
|
-
*/
|
|
25
|
-
'mic_code'?: string;
|
|
26
|
-
/**
|
|
27
|
-
* The full name of the exchange.
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof Exchange
|
|
30
|
-
*/
|
|
31
|
-
'name'?: string;
|
|
32
|
-
/**
|
|
33
|
-
* The timezone for the trading hours (`start_time` and `close_time`) of the exchange.
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof Exchange
|
|
36
|
-
*/
|
|
37
|
-
'timezone'?: string;
|
|
38
|
-
/**
|
|
39
|
-
* The time when the exchange opens for trading.
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof Exchange
|
|
42
|
-
*/
|
|
43
|
-
'start_time'?: string;
|
|
44
|
-
/**
|
|
45
|
-
* The time when the exchange closes for trading.
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof Exchange
|
|
48
|
-
*/
|
|
49
|
-
'close_time'?: string;
|
|
50
|
-
/**
|
|
51
|
-
* The suffix to be appended to the symbol when trading on this exchange. For example, the suffix for the Toronto Stock Exchange is `.TO`. See `UniversalSymbol->symbol` and `UniversalSymbol->raw_symbol` for more detail.
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof Exchange
|
|
54
|
-
*/
|
|
55
|
-
'suffix'?: string | null;
|
|
56
|
-
}
|
package/dist/models/exchange.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Financial Instrument Global Identifier (FIGI) information for the security. See [OpenFIGI](https://www.openfigi.com/) for more information.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface FigiInstrument
|
|
5
|
-
*/
|
|
6
|
-
export interface FigiInstrument {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* This identifier is unique per security per trading venue. See section 1.4.1 of the [FIGI Standard](https://www.openfigi.com/assets/local/figi-allocation-rules.pdf) for more information.
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof FigiInstrument
|
|
12
|
-
*/
|
|
13
|
-
'figi_code'?: string | null;
|
|
14
|
-
/**
|
|
15
|
-
* This enables users to link multiple FIGIs for the same security in order to obtain an aggregated view across all countries and all exchanges. For example, `AAPL` has a different FIGI for each exchange/trading venue it is traded on. The `figi_share_class` is the same for all of these FIGIs. See section 1.4.3 of the [FIGI Standard](https://www.openfigi.com/assets/local/figi-allocation-rules.pdf) for more information.
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof FigiInstrument
|
|
18
|
-
*/
|
|
19
|
-
'figi_share_class'?: string | null;
|
|
20
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Future instrument metadata for a V2 position.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface FutureInstrument
|
|
5
|
-
*/
|
|
6
|
-
export interface FutureInstrument {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* Type of security instrument.
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof FutureInstrument
|
|
12
|
-
*/
|
|
13
|
-
'kind': FutureInstrumentKindEnum;
|
|
14
|
-
/**
|
|
15
|
-
* Unique identifier for the future instrument.
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof FutureInstrument
|
|
18
|
-
*/
|
|
19
|
-
'id': string;
|
|
20
|
-
/**
|
|
21
|
-
* Display symbol for the future contract.
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof FutureInstrument
|
|
24
|
-
*/
|
|
25
|
-
'symbol': string;
|
|
26
|
-
/**
|
|
27
|
-
* Root symbol for the future contract.
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof FutureInstrument
|
|
30
|
-
*/
|
|
31
|
-
'root_symbol': string;
|
|
32
|
-
/**
|
|
33
|
-
* Exchange expiration code for the contract.
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof FutureInstrument
|
|
36
|
-
*/
|
|
37
|
-
'expiration_code': string;
|
|
38
|
-
/**
|
|
39
|
-
* Expiration date of the contract.
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof FutureInstrument
|
|
42
|
-
*/
|
|
43
|
-
'expiration_date'?: string | null;
|
|
44
|
-
/**
|
|
45
|
-
* Multiplier for the future contract.
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof FutureInstrument
|
|
48
|
-
*/
|
|
49
|
-
'multiplier'?: string | null;
|
|
50
|
-
/**
|
|
51
|
-
* ISO-4217 currency code for the contract.
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof FutureInstrument
|
|
54
|
-
*/
|
|
55
|
-
'currency'?: string | null;
|
|
56
|
-
/**
|
|
57
|
-
* Exchange MIC code or exchange code for the contract.
|
|
58
|
-
* @type {string}
|
|
59
|
-
* @memberof FutureInstrument
|
|
60
|
-
*/
|
|
61
|
-
'exchange'?: string | null;
|
|
62
|
-
}
|
|
63
|
-
type FutureInstrumentKindEnum = 'future';
|
|
64
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Status of account holdings sync. SnapTrade syncs holdings from the brokerage under the following conditions: 1. Initial connection - SnapTrade syncs all holdings (positions, balances, recent orders, and transactions) immediately after the connection is established. 2. Daily sync - Once a day SnapTrade refreshes all holdings from the brokerage. 3. Manual sync - You can trigger a refresh of holdings with the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface HoldingsStatus
|
|
5
|
-
*/
|
|
6
|
-
export interface HoldingsStatus {
|
|
7
|
-
/**
|
|
8
|
-
* Indicates if the initial sync of holdings has been completed. For accounts with a large number of positions/orders/transactions, the initial sync may take a while to complete.
|
|
9
|
-
* @type {boolean}
|
|
10
|
-
* @memberof HoldingsStatus
|
|
11
|
-
*/
|
|
12
|
-
'initial_sync_completed'?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* The last time holdings were successfully synced by SnapTrade.
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof HoldingsStatus
|
|
17
|
-
*/
|
|
18
|
-
'last_successful_sync'?: string | null;
|
|
19
|
-
}
|