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,73 +0,0 @@
|
|
|
1
|
-
import { Brokerage } from './brokerage';
|
|
2
|
-
/**
|
|
3
|
-
* A single connection with a brokerage. Note that `Connection` and `Brokerage Authorization` are interchangeable, but the term `Connection` is preferred and used in the doc for consistency. A connection is usually tied to a single login at a brokerage. A single connection can contain multiple brokerage accounts. SnapTrade performs de-duping on connections for a given user. If the user has an existing connection with the brokerage, when connecting the brokerage with the same credentials, SnapTrade will return the existing connection instead of creating a new one.
|
|
4
|
-
* @export
|
|
5
|
-
* @interface BrokerageAuthorization
|
|
6
|
-
*/
|
|
7
|
-
export interface BrokerageAuthorization {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
* Unique identifier for the connection. This is the UUID used to reference the connection in SnapTrade.
|
|
11
|
-
* @type {string}
|
|
12
|
-
* @memberof BrokerageAuthorization
|
|
13
|
-
*/
|
|
14
|
-
'id'?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Timestamp of when the connection was established in SnapTrade.
|
|
17
|
-
* @type {string}
|
|
18
|
-
* @memberof BrokerageAuthorization
|
|
19
|
-
*/
|
|
20
|
-
'created_date'?: string;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {Brokerage}
|
|
24
|
-
* @memberof BrokerageAuthorization
|
|
25
|
-
*/
|
|
26
|
-
'brokerage'?: Brokerage;
|
|
27
|
-
/**
|
|
28
|
-
* A short, human-readable name for the connection.
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof BrokerageAuthorization
|
|
31
|
-
*/
|
|
32
|
-
'name'?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Whether the connection is read-only or trade-enabled. A read-only connection can only be used to fetch data, while a trade-enabled connection can be used to place trades. Valid values are `read` and `trade`.
|
|
35
|
-
* @type {string}
|
|
36
|
-
* @memberof BrokerageAuthorization
|
|
37
|
-
*/
|
|
38
|
-
'type'?: string;
|
|
39
|
-
/**
|
|
40
|
-
* Whether the connection is disabled. A disabled connection can no longer access the latest data from the brokerage, but will continue to return the last cached state. A connection can become disabled for many reasons and differs by brokerage. Here are some common scenarios: - The user has changed their username or password at the brokerage. - The user has explicitly removed the access grant at the brokerage. - The session has expired at the brokerage and now requires explicit user re-authentication. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
|
|
41
|
-
* @type {boolean}
|
|
42
|
-
* @memberof BrokerageAuthorization
|
|
43
|
-
*/
|
|
44
|
-
'disabled'?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Timestamp of when the connection was disabled in SnapTrade.
|
|
47
|
-
* @type {string}
|
|
48
|
-
* @memberof BrokerageAuthorization
|
|
49
|
-
*/
|
|
50
|
-
'disabled_date'?: string | null;
|
|
51
|
-
/**
|
|
52
|
-
* Additional data about the connection. This information is specific to the brokerage and there\'s no standard format for this data. This field is deprecated and subject to removal in a future version.
|
|
53
|
-
* @type {{ [key: string]: any; }}
|
|
54
|
-
* @memberof BrokerageAuthorization
|
|
55
|
-
* @deprecated
|
|
56
|
-
*/
|
|
57
|
-
'meta'?: {
|
|
58
|
-
[key: string]: any;
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* Timestamp of when the connection was last updated in SnapTrade. This field is deprecated. Please let us know if you have a valid use case for this field.
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof BrokerageAuthorization
|
|
64
|
-
* @deprecated
|
|
65
|
-
*/
|
|
66
|
-
'updated_date'?: string;
|
|
67
|
-
/**
|
|
68
|
-
* Whether the connection is eligible for a payout. This is an experimental field that is NOT generally available for all partners. Do not use in production without speaking to the SnapTrade team.
|
|
69
|
-
* @type {boolean}
|
|
70
|
-
* @memberof BrokerageAuthorization
|
|
71
|
-
*/
|
|
72
|
-
'is_eligible_for_payout'?: boolean;
|
|
73
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @export
|
|
4
|
-
* @interface BrokerageInstrument
|
|
5
|
-
*/
|
|
6
|
-
export interface BrokerageInstrument {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* The instrument\'s trading symbol / ticker.
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof BrokerageInstrument
|
|
12
|
-
*/
|
|
13
|
-
'symbol': string;
|
|
14
|
-
/**
|
|
15
|
-
* The MIC code of the exchange where the instrument is traded.
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof BrokerageInstrument
|
|
18
|
-
*/
|
|
19
|
-
'exchange_mic'?: string | null;
|
|
20
|
-
/**
|
|
21
|
-
* Whether the instrument is tradeable through the brokerage. `null` if the tradeability is unknown.
|
|
22
|
-
* @type {boolean}
|
|
23
|
-
* @memberof BrokerageInstrument
|
|
24
|
-
*/
|
|
25
|
-
'tradeable'?: boolean | null;
|
|
26
|
-
/**
|
|
27
|
-
* Whether the instrument allows fractional units. `null` if the fractionability is unknown.
|
|
28
|
-
* @type {boolean}
|
|
29
|
-
* @memberof BrokerageInstrument
|
|
30
|
-
*/
|
|
31
|
-
'fractionable'?: boolean | null;
|
|
32
|
-
/**
|
|
33
|
-
* The universal symbol ID of the instrument. This is the ID used to reference the instrument in SnapTrade API calls.
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof BrokerageInstrument
|
|
36
|
-
*/
|
|
37
|
-
'universal_symbol_id'?: string | null;
|
|
38
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BrokerageInstrument } from './brokerage-instrument';
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* @export
|
|
5
|
-
* @interface BrokerageInstrumentsResponse
|
|
6
|
-
*/
|
|
7
|
-
export interface BrokerageInstrumentsResponse {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @type {Array<BrokerageInstrument>}
|
|
12
|
-
* @memberof BrokerageInstrumentsResponse
|
|
13
|
-
*/
|
|
14
|
-
'instruments'?: Array<BrokerageInstrument>;
|
|
15
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Type of brokerage. Currently supports traditional brokerages and crypto exchanges.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface BrokerageType
|
|
5
|
-
*/
|
|
6
|
-
export interface BrokerageType {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof BrokerageType
|
|
12
|
-
*/
|
|
13
|
-
'id'?: string;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof BrokerageType
|
|
18
|
-
*/
|
|
19
|
-
'name'?: string;
|
|
20
|
-
}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { BrokerageType } from './brokerage-type';
|
|
2
|
-
/**
|
|
3
|
-
* Describes a brokerage that SnapTrade supports.
|
|
4
|
-
* @export
|
|
5
|
-
* @interface Brokerage
|
|
6
|
-
*/
|
|
7
|
-
export interface Brokerage {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
* Unique identifier for the brokerage firm. This is the UUID used to reference the brokerage in SnapTrade.
|
|
11
|
-
* @type {string}
|
|
12
|
-
* @memberof Brokerage
|
|
13
|
-
*/
|
|
14
|
-
'id'?: string;
|
|
15
|
-
/**
|
|
16
|
-
* A short, unique identifier for the brokerage. It is usually the name of the brokerage in capital letters and will never change.
|
|
17
|
-
* @type {string}
|
|
18
|
-
* @memberof Brokerage
|
|
19
|
-
*/
|
|
20
|
-
'slug'?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Full name of the brokerage.
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof Brokerage
|
|
25
|
-
*/
|
|
26
|
-
'name'?: string;
|
|
27
|
-
/**
|
|
28
|
-
* A display-friendly name of the brokerage.
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof Brokerage
|
|
31
|
-
*/
|
|
32
|
-
'display_name'?: string;
|
|
33
|
-
/**
|
|
34
|
-
* A brief description of the brokerage.
|
|
35
|
-
* @type {string}
|
|
36
|
-
* @memberof Brokerage
|
|
37
|
-
*/
|
|
38
|
-
'description'?: string;
|
|
39
|
-
/**
|
|
40
|
-
* URL to the brokerage\'s logo.
|
|
41
|
-
* @type {string}
|
|
42
|
-
* @memberof Brokerage
|
|
43
|
-
*/
|
|
44
|
-
'aws_s3_logo_url'?: string;
|
|
45
|
-
/**
|
|
46
|
-
* URL to the brokerage\'s logo in square format.
|
|
47
|
-
* @type {string}
|
|
48
|
-
* @memberof Brokerage
|
|
49
|
-
*/
|
|
50
|
-
'aws_s3_square_logo_url'?: string | null;
|
|
51
|
-
/**
|
|
52
|
-
* URL to the brokerage\'s website.
|
|
53
|
-
* @type {string}
|
|
54
|
-
* @memberof Brokerage
|
|
55
|
-
*/
|
|
56
|
-
'url'?: string;
|
|
57
|
-
/**
|
|
58
|
-
* Whether the brokerage is enabled in SnapTrade. A disabled brokerage will not be available for new connections.
|
|
59
|
-
* @type {boolean}
|
|
60
|
-
* @memberof Brokerage
|
|
61
|
-
*/
|
|
62
|
-
'enabled'?: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Whether the brokerage is currently in maintenance mode. A brokerage in maintenance mode will not be available for new connections.
|
|
65
|
-
* @type {boolean}
|
|
66
|
-
* @memberof Brokerage
|
|
67
|
-
*/
|
|
68
|
-
'maintenance_mode'?: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Whether the brokerage is currently degraded. A degraded brokerage may have reduced functionality or be experiencing technical issues.
|
|
71
|
-
* @type {boolean}
|
|
72
|
-
* @memberof Brokerage
|
|
73
|
-
*/
|
|
74
|
-
'is_degraded'?: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Whether the brokerage allows trading through SnapTrade.
|
|
77
|
-
* @type {boolean}
|
|
78
|
-
* @memberof Brokerage
|
|
79
|
-
*/
|
|
80
|
-
'allows_trading'?: boolean | null;
|
|
81
|
-
/**
|
|
82
|
-
* This field is deprecated. Please contact us if you have a valid use case for it.
|
|
83
|
-
* @type {boolean}
|
|
84
|
-
* @memberof Brokerage
|
|
85
|
-
* @deprecated
|
|
86
|
-
*/
|
|
87
|
-
'allows_fractional_units'?: boolean | null;
|
|
88
|
-
/**
|
|
89
|
-
* This field is deprecated. Please contact us if you have a valid use case for it.
|
|
90
|
-
* @type {boolean}
|
|
91
|
-
* @memberof Brokerage
|
|
92
|
-
* @deprecated
|
|
93
|
-
*/
|
|
94
|
-
'has_reporting'?: boolean | null;
|
|
95
|
-
/**
|
|
96
|
-
* This field is deprecated. Please contact us if you have a valid use case for it.
|
|
97
|
-
* @type {boolean}
|
|
98
|
-
* @memberof Brokerage
|
|
99
|
-
* @deprecated
|
|
100
|
-
*/
|
|
101
|
-
'is_real_time_connection'?: boolean;
|
|
102
|
-
/**
|
|
103
|
-
*
|
|
104
|
-
* @type {BrokerageType}
|
|
105
|
-
* @memberof Brokerage
|
|
106
|
-
*/
|
|
107
|
-
'brokerage_type'?: BrokerageType;
|
|
108
|
-
/**
|
|
109
|
-
* This field is deprecated. Please contact us if you have a valid use case for it.
|
|
110
|
-
* @type {Array<any>}
|
|
111
|
-
* @memberof Brokerage
|
|
112
|
-
* @deprecated
|
|
113
|
-
*/
|
|
114
|
-
'exchanges'?: Array<any>;
|
|
115
|
-
/**
|
|
116
|
-
* This field is deprecated.
|
|
117
|
-
* @type {string}
|
|
118
|
-
* @memberof Brokerage
|
|
119
|
-
* @deprecated
|
|
120
|
-
*/
|
|
121
|
-
'open_url'?: string | null;
|
|
122
|
-
}
|
package/dist/models/brokerage.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @export
|
|
4
|
-
* @interface CancelOrderResponse
|
|
5
|
-
*/
|
|
6
|
-
export interface CancelOrderResponse {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof CancelOrderResponse
|
|
12
|
-
*/
|
|
13
|
-
'brokerage_order_id': string;
|
|
14
|
-
/**
|
|
15
|
-
* The raw response from the brokerage.
|
|
16
|
-
* @type {{ [key: string]: any; }}
|
|
17
|
-
* @memberof CancelOrderResponse
|
|
18
|
-
*/
|
|
19
|
-
'raw_response'?: {
|
|
20
|
-
[key: string]: any;
|
|
21
|
-
} | null;
|
|
22
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { StockInstrumentFigiInstrument } from './stock-instrument-figi-instrument';
|
|
2
|
-
/**
|
|
3
|
-
* Security instrument metadata for closed-end fund positions.
|
|
4
|
-
* @export
|
|
5
|
-
* @interface CefInstrument
|
|
6
|
-
*/
|
|
7
|
-
export interface CefInstrument {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
* Type of security instrument.
|
|
11
|
-
* @type {string}
|
|
12
|
-
* @memberof CefInstrument
|
|
13
|
-
*/
|
|
14
|
-
'kind': CefInstrumentKindEnum;
|
|
15
|
-
/**
|
|
16
|
-
* Unique identifier for the instrument.
|
|
17
|
-
* @type {string}
|
|
18
|
-
* @memberof CefInstrument
|
|
19
|
-
*/
|
|
20
|
-
'id': string;
|
|
21
|
-
/**
|
|
22
|
-
* The formatted trading symbol for the security.
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof CefInstrument
|
|
25
|
-
*/
|
|
26
|
-
'symbol': string;
|
|
27
|
-
/**
|
|
28
|
-
* The raw symbol without any exchange suffix.
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof CefInstrument
|
|
31
|
-
*/
|
|
32
|
-
'raw_symbol': string;
|
|
33
|
-
/**
|
|
34
|
-
* Human-readable description of the security.
|
|
35
|
-
* @type {string}
|
|
36
|
-
* @memberof CefInstrument
|
|
37
|
-
*/
|
|
38
|
-
'description'?: string | null;
|
|
39
|
-
/**
|
|
40
|
-
* ISO-4217 currency code for the security listing.
|
|
41
|
-
* @type {string}
|
|
42
|
-
* @memberof CefInstrument
|
|
43
|
-
*/
|
|
44
|
-
'currency'?: string | null;
|
|
45
|
-
/**
|
|
46
|
-
* Exchange MIC code or exchange code for the security.
|
|
47
|
-
* @type {string}
|
|
48
|
-
* @memberof CefInstrument
|
|
49
|
-
*/
|
|
50
|
-
'exchange'?: string | null;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {StockInstrumentFigiInstrument}
|
|
54
|
-
* @memberof CefInstrument
|
|
55
|
-
*/
|
|
56
|
-
'figi_instrument'?: StockInstrumentFigiInstrument | null;
|
|
57
|
-
}
|
|
58
|
-
type CefInstrumentKindEnum = 'cef';
|
|
59
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @export
|
|
4
|
-
* @interface ChildBrokerageOrderIDs
|
|
5
|
-
*/
|
|
6
|
-
export interface ChildBrokerageOrderIDs {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* The brokerage order ID for the take profit leg of the bracket order
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof ChildBrokerageOrderIDs
|
|
12
|
-
*/
|
|
13
|
-
'take_profit_order_id'?: string;
|
|
14
|
-
/**
|
|
15
|
-
* The brokerage order ID for the stop loss leg of the bracket order
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof ChildBrokerageOrderIDs
|
|
18
|
-
*/
|
|
19
|
-
'stop_loss_order_id'?: string;
|
|
20
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { ActionStrict } from './action-strict';
|
|
2
|
-
import { OrderTypeStrict } from './order-type-strict';
|
|
3
|
-
import { TimeInForceStrict } from './time-in-force-strict';
|
|
4
|
-
import { TradingInstrument } from './trading-instrument';
|
|
5
|
-
/**
|
|
6
|
-
* A single leg within a complex order.
|
|
7
|
-
* @export
|
|
8
|
-
* @interface ComplexOrderLeg
|
|
9
|
-
*/
|
|
10
|
-
export interface ComplexOrderLeg {
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
/**
|
|
13
|
-
* The role of this leg within the complex order.
|
|
14
|
-
* @type {string}
|
|
15
|
-
* @memberof ComplexOrderLeg
|
|
16
|
-
*/
|
|
17
|
-
'order_role': ComplexOrderLegOrderRoleEnum;
|
|
18
|
-
/**
|
|
19
|
-
* The action describes the intent or side of a trade. This is either `BUY` or `SELL`.
|
|
20
|
-
* @type {ActionStrict}
|
|
21
|
-
* @memberof ComplexOrderLeg
|
|
22
|
-
*/
|
|
23
|
-
'action': ActionStrict;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {TradingInstrument}
|
|
27
|
-
* @memberof ComplexOrderLeg
|
|
28
|
-
*/
|
|
29
|
-
'instrument': TradingInstrument;
|
|
30
|
-
/**
|
|
31
|
-
* 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.
|
|
32
|
-
* @type {OrderTypeStrict}
|
|
33
|
-
* @memberof ComplexOrderLeg
|
|
34
|
-
*/
|
|
35
|
-
'order_type': OrderTypeStrict;
|
|
36
|
-
/**
|
|
37
|
-
* Number of shares for the order. This can be a decimal for fractional orders. Must be `null` if `notional_value` is provided.
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof ComplexOrderLeg
|
|
40
|
-
*/
|
|
41
|
-
'units': number;
|
|
42
|
-
/**
|
|
43
|
-
* The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. Here are the supported values: - `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.
|
|
44
|
-
* @type {TimeInForceStrict}
|
|
45
|
-
* @memberof ComplexOrderLeg
|
|
46
|
-
*/
|
|
47
|
-
'time_in_force': TimeInForceStrict;
|
|
48
|
-
/**
|
|
49
|
-
* The limit price. Required when `order_type` is `Limit` or `StopLimit`.
|
|
50
|
-
* @type {number}
|
|
51
|
-
* @memberof ComplexOrderLeg
|
|
52
|
-
*/
|
|
53
|
-
'price'?: number | null;
|
|
54
|
-
/**
|
|
55
|
-
* The stop trigger price. Required when `order_type` is `Stop` or `StopLimit`.
|
|
56
|
-
* @type {number}
|
|
57
|
-
* @memberof ComplexOrderLeg
|
|
58
|
-
*/
|
|
59
|
-
'stop'?: number | null;
|
|
60
|
-
}
|
|
61
|
-
type ComplexOrderLegOrderRoleEnum = 'TRIGGER' | 'CONDITIONAL' | 'PEER';
|
|
62
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Response returned after successfully placing a complex order. AccountOrderRecord rows for the legs are not created synchronously — they\'re hydrated by the next brokerage sync, and can be queried later using the returned `brokerage_group_order_id`.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface ComplexOrderResponse
|
|
5
|
-
*/
|
|
6
|
-
export interface ComplexOrderResponse {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* The complex order type that was placed.
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof ComplexOrderResponse
|
|
12
|
-
*/
|
|
13
|
-
'type'?: ComplexOrderResponseTypeEnum;
|
|
14
|
-
/**
|
|
15
|
-
* The brokerage-assigned identifier that links all legs of this complex order together. Each leg will eventually appear as a separate AccountOrderRecord sharing this value. May be null if the brokerage does not return a group identifier.
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof ComplexOrderResponse
|
|
18
|
-
*/
|
|
19
|
-
'brokerage_group_order_id'?: string | null;
|
|
20
|
-
}
|
|
21
|
-
type ComplexOrderResponseTypeEnum = 'OCO' | 'OTO' | 'OTOCO';
|
|
22
|
-
export {};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { StockInstrumentFigiInstrument } from './stock-instrument-figi-instrument';
|
|
2
|
-
/**
|
|
3
|
-
* Security instrument metadata for crypto positions.
|
|
4
|
-
* @export
|
|
5
|
-
* @interface CryptoInstrument
|
|
6
|
-
*/
|
|
7
|
-
export interface CryptoInstrument {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
* Type of security instrument.
|
|
11
|
-
* @type {string}
|
|
12
|
-
* @memberof CryptoInstrument
|
|
13
|
-
*/
|
|
14
|
-
'kind': CryptoInstrumentKindEnum;
|
|
15
|
-
/**
|
|
16
|
-
* Unique identifier for the instrument.
|
|
17
|
-
* @type {string}
|
|
18
|
-
* @memberof CryptoInstrument
|
|
19
|
-
*/
|
|
20
|
-
'id': string;
|
|
21
|
-
/**
|
|
22
|
-
* The formatted trading symbol for the security.
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof CryptoInstrument
|
|
25
|
-
*/
|
|
26
|
-
'symbol': string;
|
|
27
|
-
/**
|
|
28
|
-
* The raw symbol without any exchange suffix.
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof CryptoInstrument
|
|
31
|
-
*/
|
|
32
|
-
'raw_symbol': string;
|
|
33
|
-
/**
|
|
34
|
-
* Human-readable description of the security.
|
|
35
|
-
* @type {string}
|
|
36
|
-
* @memberof CryptoInstrument
|
|
37
|
-
*/
|
|
38
|
-
'description'?: string | null;
|
|
39
|
-
/**
|
|
40
|
-
* ISO-4217 currency code for the security listing.
|
|
41
|
-
* @type {string}
|
|
42
|
-
* @memberof CryptoInstrument
|
|
43
|
-
*/
|
|
44
|
-
'currency'?: string | null;
|
|
45
|
-
/**
|
|
46
|
-
* Exchange MIC code or exchange code for the security.
|
|
47
|
-
* @type {string}
|
|
48
|
-
* @memberof CryptoInstrument
|
|
49
|
-
*/
|
|
50
|
-
'exchange'?: string | null;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {StockInstrumentFigiInstrument}
|
|
54
|
-
* @memberof CryptoInstrument
|
|
55
|
-
*/
|
|
56
|
-
'figi_instrument'?: StockInstrumentFigiInstrument | null;
|
|
57
|
-
}
|
|
58
|
-
type CryptoInstrumentKindEnum = 'crypto';
|
|
59
|
-
export {};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { ActionStrict } from './action-strict';
|
|
2
|
-
import { CryptoTradingInstrument } from './crypto-trading-instrument';
|
|
3
|
-
/**
|
|
4
|
-
*
|
|
5
|
-
* @export
|
|
6
|
-
* @interface CryptoOrderForm
|
|
7
|
-
*/
|
|
8
|
-
export interface CryptoOrderForm {
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @type {CryptoTradingInstrument}
|
|
12
|
-
* @memberof CryptoOrderForm
|
|
13
|
-
*/
|
|
14
|
-
'instrument': CryptoTradingInstrument;
|
|
15
|
-
/**
|
|
16
|
-
* The action describes the intent or side of a trade. This is either `BUY` or `SELL`.
|
|
17
|
-
* @type {ActionStrict}
|
|
18
|
-
* @memberof CryptoOrderForm
|
|
19
|
-
*/
|
|
20
|
-
'side': ActionStrict;
|
|
21
|
-
/**
|
|
22
|
-
* The type of order to place.
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof CryptoOrderForm
|
|
25
|
-
*/
|
|
26
|
-
'type': CryptoOrderFormTypeEnum;
|
|
27
|
-
/**
|
|
28
|
-
* The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. - `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.
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof CryptoOrderForm
|
|
31
|
-
*/
|
|
32
|
-
'time_in_force': CryptoOrderFormTimeInForceEnum;
|
|
33
|
-
/**
|
|
34
|
-
* The amount of the base currency to buy or sell.
|
|
35
|
-
* @type {string}
|
|
36
|
-
* @memberof CryptoOrderForm
|
|
37
|
-
*/
|
|
38
|
-
'amount': string;
|
|
39
|
-
/**
|
|
40
|
-
* The limit price. Required if the order type is `LIMIT`, `STOP_LOSS_LIMIT` or `TAKE_PROFIT_LIMIT`.
|
|
41
|
-
* @type {string}
|
|
42
|
-
* @memberof CryptoOrderForm
|
|
43
|
-
*/
|
|
44
|
-
'limit_price'?: string;
|
|
45
|
-
/**
|
|
46
|
-
* The stop price. Required if the order type is `STOP_LOSS_MARKET`, `STOP_LOSS_LIMIT`, `TAKE_PROFIT_MARKET` or `TAKE_PROFIT_LIMIT`.
|
|
47
|
-
* @type {string}
|
|
48
|
-
* @memberof CryptoOrderForm
|
|
49
|
-
*/
|
|
50
|
-
'stop_price'?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Valid and required only for order type `LIMIT`. If true orders that would be filled immediately are rejected to avoid incurring TAKER fees.
|
|
53
|
-
* @type {boolean}
|
|
54
|
-
* @memberof CryptoOrderForm
|
|
55
|
-
*/
|
|
56
|
-
'post_only'?: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* The expiration date of the order. Required if the time_in_force is `GTD`.
|
|
59
|
-
* @type {string}
|
|
60
|
-
* @memberof CryptoOrderForm
|
|
61
|
-
*/
|
|
62
|
-
'expiration_date'?: string;
|
|
63
|
-
}
|
|
64
|
-
type CryptoOrderFormTypeEnum = 'MARKET' | 'LIMIT' | 'STOP_LOSS_MARKET' | 'STOP_LOSS_LIMIT' | 'TAKE_PROFIT_MARKET' | 'TAKE_PROFIT_LIMIT';
|
|
65
|
-
type CryptoOrderFormTimeInForceEnum = 'GTC' | 'FOK' | 'IOC' | 'GTD';
|
|
66
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The estimated order fee.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface CryptoOrderPreviewEstimatedFee
|
|
5
|
-
*/
|
|
6
|
-
export interface CryptoOrderPreviewEstimatedFee {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* Symbol to identify a cryptocurrency or fiat currency on a crypto exchange. Fiat currencies symbols are ISO-4217 codes.
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof CryptoOrderPreviewEstimatedFee
|
|
12
|
-
*/
|
|
13
|
-
'currency': string;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof CryptoOrderPreviewEstimatedFee
|
|
18
|
-
*/
|
|
19
|
-
'amount': string;
|
|
20
|
-
}
|