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,78 +0,0 @@
|
|
|
1
|
-
import { ActionStrictWithOptions } from './action-strict-with-options';
|
|
2
|
-
import { ManualTradeFormNotionalValue } from './manual-trade-form-notional-value';
|
|
3
|
-
import { OrderTypeStrict } from './order-type-strict';
|
|
4
|
-
import { TimeInForceStrict } from './time-in-force-strict';
|
|
5
|
-
import { TradingSession } from './trading-session';
|
|
6
|
-
/**
|
|
7
|
-
* Inputs for placing an order with the brokerage.
|
|
8
|
-
* @export
|
|
9
|
-
* @interface ManualTradeFormWithOptions
|
|
10
|
-
*/
|
|
11
|
-
export interface ManualTradeFormWithOptions {
|
|
12
|
-
/**
|
|
13
|
-
* Unique identifier for the connected brokerage account. This is the UUID used to reference the account in SnapTrade.
|
|
14
|
-
* @type {string}
|
|
15
|
-
* @memberof ManualTradeFormWithOptions
|
|
16
|
-
*/
|
|
17
|
-
'account_id': string;
|
|
18
|
-
/**
|
|
19
|
-
* The action describes the intent or side of a trade. This is either `BUY` or `SELL` for Equity symbols or `BUY_TO_OPEN`, `BUY_TO_CLOSE`, `SELL_TO_OPEN` or `SELL_TO_CLOSE` for Options.
|
|
20
|
-
* @type {ActionStrictWithOptions}
|
|
21
|
-
* @memberof ManualTradeFormWithOptions
|
|
22
|
-
*/
|
|
23
|
-
'action': ActionStrictWithOptions;
|
|
24
|
-
/**
|
|
25
|
-
* The universal symbol ID of the security to trade. Must be \'null\' if `symbol` is provided, otherwise must be provided.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ManualTradeFormWithOptions
|
|
28
|
-
*/
|
|
29
|
-
'universal_symbol_id'?: string | null;
|
|
30
|
-
/**
|
|
31
|
-
* The security\'s trading ticker symbol. If \'symbol\' is provided, then \'universal_symbol_id\' must be \'null\'.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof ManualTradeFormWithOptions
|
|
34
|
-
*/
|
|
35
|
-
'symbol'?: string | null;
|
|
36
|
-
/**
|
|
37
|
-
* 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.
|
|
38
|
-
* @type {OrderTypeStrict}
|
|
39
|
-
* @memberof ManualTradeFormWithOptions
|
|
40
|
-
*/
|
|
41
|
-
'order_type': OrderTypeStrict;
|
|
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 ManualTradeFormWithOptions
|
|
46
|
-
*/
|
|
47
|
-
'time_in_force': TimeInForceStrict;
|
|
48
|
-
/**
|
|
49
|
-
* The trading session for the order. This field indicates which market session the order will be placed in. This is only available for certain brokerages. Defaults to REGULAR. Here are the supported values: - `REGULAR` - Regular trading hours. - `EXTENDED` - Extended trading hours.
|
|
50
|
-
* @type {TradingSession}
|
|
51
|
-
* @memberof ManualTradeFormWithOptions
|
|
52
|
-
*/
|
|
53
|
-
'trading_session'?: TradingSession;
|
|
54
|
-
/**
|
|
55
|
-
* The limit price for `Limit` and `StopLimit` orders.
|
|
56
|
-
* @type {number}
|
|
57
|
-
* @memberof ManualTradeFormWithOptions
|
|
58
|
-
*/
|
|
59
|
-
'price'?: number | null;
|
|
60
|
-
/**
|
|
61
|
-
* The price at which a stop order is triggered for `Stop` and `StopLimit` orders.
|
|
62
|
-
* @type {number}
|
|
63
|
-
* @memberof ManualTradeFormWithOptions
|
|
64
|
-
*/
|
|
65
|
-
'stop'?: number | null;
|
|
66
|
-
/**
|
|
67
|
-
* For Equity orders, this represents the number of shares for the order. This can be a decimal for fractional orders. Must be `null` if `notional_value` is provided. If placing an Option order, this field represents the number of contracts to buy or sell. (e.g., 1 contract = 100 shares).
|
|
68
|
-
* @type {number}
|
|
69
|
-
* @memberof ManualTradeFormWithOptions
|
|
70
|
-
*/
|
|
71
|
-
'units'?: number | null;
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @type {ManualTradeFormNotionalValue}
|
|
75
|
-
* @memberof ManualTradeFormWithOptions
|
|
76
|
-
*/
|
|
77
|
-
'notional_value'?: ManualTradeFormNotionalValue | null;
|
|
78
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { ActionStrict } from './action-strict';
|
|
2
|
-
import { ManualTradeFormNotionalValue } from './manual-trade-form-notional-value';
|
|
3
|
-
import { OrderTypeStrict } from './order-type-strict';
|
|
4
|
-
import { TimeInForceStrict } from './time-in-force-strict';
|
|
5
|
-
/**
|
|
6
|
-
* Inputs for placing an order with the brokerage.
|
|
7
|
-
* @export
|
|
8
|
-
* @interface ManualTradeForm
|
|
9
|
-
*/
|
|
10
|
-
export interface ManualTradeForm {
|
|
11
|
-
/**
|
|
12
|
-
* Unique identifier for the connected brokerage account. This is the UUID used to reference the account in SnapTrade.
|
|
13
|
-
* @type {string}
|
|
14
|
-
* @memberof ManualTradeForm
|
|
15
|
-
*/
|
|
16
|
-
'account_id': string;
|
|
17
|
-
/**
|
|
18
|
-
* The action describes the intent or side of a trade. This is either `BUY` or `SELL`.
|
|
19
|
-
* @type {ActionStrict}
|
|
20
|
-
* @memberof ManualTradeForm
|
|
21
|
-
*/
|
|
22
|
-
'action': ActionStrict;
|
|
23
|
-
/**
|
|
24
|
-
* Unique identifier for the symbol within SnapTrade. This is the ID used to reference the symbol in SnapTrade API calls.
|
|
25
|
-
* @type {string}
|
|
26
|
-
* @memberof ManualTradeForm
|
|
27
|
-
*/
|
|
28
|
-
'universal_symbol_id': string;
|
|
29
|
-
/**
|
|
30
|
-
* 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.
|
|
31
|
-
* @type {OrderTypeStrict}
|
|
32
|
-
* @memberof ManualTradeForm
|
|
33
|
-
*/
|
|
34
|
-
'order_type': OrderTypeStrict;
|
|
35
|
-
/**
|
|
36
|
-
* 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.
|
|
37
|
-
* @type {TimeInForceStrict}
|
|
38
|
-
* @memberof ManualTradeForm
|
|
39
|
-
*/
|
|
40
|
-
'time_in_force': TimeInForceStrict;
|
|
41
|
-
/**
|
|
42
|
-
* The limit price for `Limit` and `StopLimit` orders.
|
|
43
|
-
* @type {number}
|
|
44
|
-
* @memberof ManualTradeForm
|
|
45
|
-
*/
|
|
46
|
-
'price'?: number | null;
|
|
47
|
-
/**
|
|
48
|
-
* The price at which a stop order is triggered for `Stop` and `StopLimit` orders.
|
|
49
|
-
* @type {number}
|
|
50
|
-
* @memberof ManualTradeForm
|
|
51
|
-
*/
|
|
52
|
-
'stop'?: number | null;
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
* @type {number}
|
|
56
|
-
* @memberof ManualTradeForm
|
|
57
|
-
*/
|
|
58
|
-
'units'?: number | null;
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @type {ManualTradeFormNotionalValue}
|
|
62
|
-
* @memberof ManualTradeForm
|
|
63
|
-
*/
|
|
64
|
-
'notional_value'?: ManualTradeFormNotionalValue | null;
|
|
65
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @export
|
|
4
|
-
* @interface ManualTradeImpact
|
|
5
|
-
*/
|
|
6
|
-
export interface ManualTradeImpact {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* Unique identifier for the connected brokerage account. This is the UUID used to reference the account in SnapTrade.
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof ManualTradeImpact
|
|
12
|
-
*/
|
|
13
|
-
'account'?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Unique identifier for the currency. This is the UUID used to reference the currency in SnapTrade.
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof ManualTradeImpact
|
|
18
|
-
*/
|
|
19
|
-
'currency'?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Estimated amount of cash remaining in the account after the trade.
|
|
22
|
-
* @type {number}
|
|
23
|
-
* @memberof ManualTradeImpact
|
|
24
|
-
*/
|
|
25
|
-
'remaining_cash'?: number | null;
|
|
26
|
-
/**
|
|
27
|
-
* Estimated commission for the trade.
|
|
28
|
-
* @type {number}
|
|
29
|
-
* @memberof ManualTradeImpact
|
|
30
|
-
*/
|
|
31
|
-
'estimated_commission'?: number | null;
|
|
32
|
-
/**
|
|
33
|
-
* Estimated foreign transaction fees for the trade.
|
|
34
|
-
* @type {number}
|
|
35
|
-
* @memberof ManualTradeImpact
|
|
36
|
-
*/
|
|
37
|
-
'forex_fees'?: number | null;
|
|
38
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { ActionStrict } from './action-strict';
|
|
2
|
-
import { OrderTypeStrict } from './order-type-strict';
|
|
3
|
-
import { TimeInForceStrict } from './time-in-force-strict';
|
|
4
|
-
/**
|
|
5
|
-
* Inputs for replacing an order with the brokerage.
|
|
6
|
-
* @export
|
|
7
|
-
* @interface ManualTradeReplaceForm
|
|
8
|
-
*/
|
|
9
|
-
export interface ManualTradeReplaceForm {
|
|
10
|
-
/**
|
|
11
|
-
* Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.
|
|
12
|
-
* @type {string}
|
|
13
|
-
* @memberof ManualTradeReplaceForm
|
|
14
|
-
*/
|
|
15
|
-
'brokerage_order_id': string;
|
|
16
|
-
/**
|
|
17
|
-
* The action describes the intent or side of a trade. This is either `BUY` or `SELL`.
|
|
18
|
-
* @type {ActionStrict}
|
|
19
|
-
* @memberof ManualTradeReplaceForm
|
|
20
|
-
*/
|
|
21
|
-
'action': ActionStrict;
|
|
22
|
-
/**
|
|
23
|
-
* 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.
|
|
24
|
-
* @type {OrderTypeStrict}
|
|
25
|
-
* @memberof ManualTradeReplaceForm
|
|
26
|
-
*/
|
|
27
|
-
'order_type': OrderTypeStrict;
|
|
28
|
-
/**
|
|
29
|
-
* 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.
|
|
30
|
-
* @type {TimeInForceStrict}
|
|
31
|
-
* @memberof ManualTradeReplaceForm
|
|
32
|
-
*/
|
|
33
|
-
'time_in_force': TimeInForceStrict;
|
|
34
|
-
/**
|
|
35
|
-
* The limit price for `Limit` and `StopLimit` orders.
|
|
36
|
-
* @type {number}
|
|
37
|
-
* @memberof ManualTradeReplaceForm
|
|
38
|
-
*/
|
|
39
|
-
'price'?: number | null;
|
|
40
|
-
/**
|
|
41
|
-
* The security\'s trading ticker symbol
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof ManualTradeReplaceForm
|
|
44
|
-
*/
|
|
45
|
-
'symbol'?: string;
|
|
46
|
-
/**
|
|
47
|
-
* The price at which a stop order is triggered for `Stop` and `StopLimit` orders.
|
|
48
|
-
* @type {number}
|
|
49
|
-
* @memberof ManualTradeReplaceForm
|
|
50
|
-
*/
|
|
51
|
-
'stop'?: number | null;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {number}
|
|
55
|
-
* @memberof ManualTradeReplaceForm
|
|
56
|
-
*/
|
|
57
|
-
'units'?: number | null;
|
|
58
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { Currency } from './currency';
|
|
2
|
-
/**
|
|
3
|
-
* Information about the security for the order.
|
|
4
|
-
* @export
|
|
5
|
-
* @interface ManualTradeSymbol
|
|
6
|
-
*/
|
|
7
|
-
export interface ManualTradeSymbol {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
* Unique identifier for the symbol within SnapTrade. This is the ID used to reference the symbol in SnapTrade API calls.
|
|
11
|
-
* @type {string}
|
|
12
|
-
* @memberof ManualTradeSymbol
|
|
13
|
-
*/
|
|
14
|
-
'universal_symbol_id'?: string;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @type {Currency}
|
|
18
|
-
* @memberof ManualTradeSymbol
|
|
19
|
-
*/
|
|
20
|
-
'currency'?: Currency;
|
|
21
|
-
/**
|
|
22
|
-
* This field is deprecated and should not be used.
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof ManualTradeSymbol
|
|
25
|
-
* @deprecated
|
|
26
|
-
*/
|
|
27
|
-
'local_id'?: string;
|
|
28
|
-
/**
|
|
29
|
-
* This field is deprecated and should not be used.
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof ManualTradeSymbol
|
|
32
|
-
* @deprecated
|
|
33
|
-
*/
|
|
34
|
-
'description'?: string | null;
|
|
35
|
-
/**
|
|
36
|
-
* This field is deprecated and should not be used.
|
|
37
|
-
* @type {string}
|
|
38
|
-
* @memberof ManualTradeSymbol
|
|
39
|
-
* @deprecated
|
|
40
|
-
*/
|
|
41
|
-
'symbol'?: string;
|
|
42
|
-
/**
|
|
43
|
-
* 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.
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof ManualTradeSymbol
|
|
46
|
-
* @deprecated
|
|
47
|
-
*/
|
|
48
|
-
'brokerage_symbol_id'?: string;
|
|
49
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { ActionStrict } from './action-strict';
|
|
2
|
-
import { ManualTradeSymbol } from './manual-trade-symbol';
|
|
3
|
-
import { OrderTypeStrict } from './order-type-strict';
|
|
4
|
-
import { TimeInForceStrict } from './time-in-force-strict';
|
|
5
|
-
/**
|
|
6
|
-
* Contains the details of a submitted order.
|
|
7
|
-
* @export
|
|
8
|
-
* @interface ManualTrade
|
|
9
|
-
*/
|
|
10
|
-
export interface ManualTrade {
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
/**
|
|
13
|
-
* Unique identifier for the submitted order through SnapTrade.
|
|
14
|
-
* @type {string}
|
|
15
|
-
* @memberof ManualTrade
|
|
16
|
-
*/
|
|
17
|
-
'id'?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Unique identifier for the connected brokerage account. This is the UUID used to reference the account in SnapTrade.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ManualTrade
|
|
22
|
-
*/
|
|
23
|
-
'account'?: string;
|
|
24
|
-
/**
|
|
25
|
-
* 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.
|
|
26
|
-
* @type {OrderTypeStrict}
|
|
27
|
-
* @memberof ManualTrade
|
|
28
|
-
*/
|
|
29
|
-
'order_type'?: OrderTypeStrict;
|
|
30
|
-
/**
|
|
31
|
-
* 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.
|
|
32
|
-
* @type {TimeInForceStrict}
|
|
33
|
-
* @memberof ManualTrade
|
|
34
|
-
*/
|
|
35
|
-
'time_in_force'?: TimeInForceStrict;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {ManualTradeSymbol}
|
|
39
|
-
* @memberof ManualTrade
|
|
40
|
-
*/
|
|
41
|
-
'symbol'?: ManualTradeSymbol;
|
|
42
|
-
/**
|
|
43
|
-
* The action describes the intent or side of a trade. This is either `BUY` or `SELL`.
|
|
44
|
-
* @type {ActionStrict}
|
|
45
|
-
* @memberof ManualTrade
|
|
46
|
-
*/
|
|
47
|
-
'action'?: ActionStrict;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {number}
|
|
51
|
-
* @memberof ManualTrade
|
|
52
|
-
*/
|
|
53
|
-
'units'?: number | null;
|
|
54
|
-
/**
|
|
55
|
-
* Trade Price if limit or stop limit order
|
|
56
|
-
* @type {number}
|
|
57
|
-
* @memberof ManualTrade
|
|
58
|
-
*/
|
|
59
|
-
'price'?: number | null;
|
|
60
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The action describes the intent and side of a trade. For equities, this is either `BUY` or `SELL`. For options, this is one of `BUY_TO_OPEN`, `BUY_TO_CLOSE`, `SELL_TO_OPEN`, `SELL_TO_CLOSE`.
|
|
3
|
-
* @export
|
|
4
|
-
* @enum {string}
|
|
5
|
-
*/
|
|
6
|
-
export type MlegActionStrict = 'BUY' | 'SELL' | 'BUY_TO_OPEN' | 'BUY_TO_CLOSE' | 'SELL_TO_OPEN' | 'SELL_TO_CLOSE';
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { MlegActionStrict } from './mleg-action-strict';
|
|
2
|
-
import { MlegTradingInstrument } from './mleg-trading-instrument';
|
|
3
|
-
/**
|
|
4
|
-
*
|
|
5
|
-
* @export
|
|
6
|
-
* @interface MlegLeg
|
|
7
|
-
*/
|
|
8
|
-
export interface MlegLeg {
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
* @type {MlegTradingInstrument}
|
|
13
|
-
* @memberof MlegLeg
|
|
14
|
-
*/
|
|
15
|
-
'instrument': MlegTradingInstrument;
|
|
16
|
-
/**
|
|
17
|
-
* The action describes the intent and side of a trade. For equities, this is either `BUY` or `SELL`. For options, this is one of `BUY_TO_OPEN`, `BUY_TO_CLOSE`, `SELL_TO_OPEN`, `SELL_TO_CLOSE`.
|
|
18
|
-
* @type {MlegActionStrict}
|
|
19
|
-
* @memberof MlegLeg
|
|
20
|
-
*/
|
|
21
|
-
'action': MlegActionStrict;
|
|
22
|
-
/**
|
|
23
|
-
* The quantity to trade. For options this represents the number of contracts. For equity this represents the number of shares.
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof MlegLeg
|
|
26
|
-
*/
|
|
27
|
-
'units': number;
|
|
28
|
-
}
|
package/dist/models/mleg-leg.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { AccountOrderRecord } from './account-order-record';
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* @export
|
|
5
|
-
* @interface MlegOrderResponse
|
|
6
|
-
*/
|
|
7
|
-
export interface MlegOrderResponse {
|
|
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 MlegOrderResponse
|
|
13
|
-
*/
|
|
14
|
-
'brokerage_order_id': string;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @type {Array<AccountOrderRecord>}
|
|
18
|
-
* @memberof MlegOrderResponse
|
|
19
|
-
*/
|
|
20
|
-
'orders': Array<AccountOrderRecord>;
|
|
21
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { MlegLeg } from './mleg-leg';
|
|
2
|
-
import { MlegOrderTypeStrict } from './mleg-order-type-strict';
|
|
3
|
-
import { MlegPriceEffectStrict } from './mleg-price-effect-strict';
|
|
4
|
-
import { TimeInForceStrict } from './time-in-force-strict';
|
|
5
|
-
/**
|
|
6
|
-
* Inputs for placing a multi-leg order with the brokerage.
|
|
7
|
-
* @export
|
|
8
|
-
* @interface MlegTradeForm
|
|
9
|
-
*/
|
|
10
|
-
export interface MlegTradeForm {
|
|
11
|
-
/**
|
|
12
|
-
* The type of order to place.
|
|
13
|
-
* @type {MlegOrderTypeStrict}
|
|
14
|
-
* @memberof MlegTradeForm
|
|
15
|
-
*/
|
|
16
|
-
'order_type': MlegOrderTypeStrict;
|
|
17
|
-
/**
|
|
18
|
-
* 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.
|
|
19
|
-
* @type {TimeInForceStrict}
|
|
20
|
-
* @memberof MlegTradeForm
|
|
21
|
-
*/
|
|
22
|
-
'time_in_force': TimeInForceStrict;
|
|
23
|
-
/**
|
|
24
|
-
* The limit price. Required if the order type is `LIMIT`, `STOP_LOSS_LIMIT`.
|
|
25
|
-
* @type {string}
|
|
26
|
-
* @memberof MlegTradeForm
|
|
27
|
-
*/
|
|
28
|
-
'limit_price'?: string | null;
|
|
29
|
-
/**
|
|
30
|
-
* The stop price. Required if the order type is `STOP_LOSS_MARKET`, `STOP_LOSS_LIMIT`.
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof MlegTradeForm
|
|
33
|
-
*/
|
|
34
|
-
'stop_price'?: string | null;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @type {MlegPriceEffectStrict}
|
|
38
|
-
* @memberof MlegTradeForm
|
|
39
|
-
*/
|
|
40
|
-
'price_effect'?: MlegPriceEffectStrict | null;
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @type {Array<MlegLeg>}
|
|
44
|
-
* @memberof MlegTradeForm
|
|
45
|
-
*/
|
|
46
|
-
'legs': Array<MlegLeg>;
|
|
47
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { MlegInstrumentType } from './mleg-instrument-type';
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* @export
|
|
5
|
-
* @interface MlegTradingInstrument
|
|
6
|
-
*/
|
|
7
|
-
export interface MlegTradingInstrument {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
* The security\'s trading ticker symbol. This currently supports stock symbols and Options symbols in the 21 character OCC format. For example `AAPL 251114C00240000` represents a call option on AAPL expiring on 2025-11-14 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format)
|
|
11
|
-
* @type {string}
|
|
12
|
-
* @memberof MlegTradingInstrument
|
|
13
|
-
*/
|
|
14
|
-
'symbol': string;
|
|
15
|
-
/**
|
|
16
|
-
* The instrument\'s type
|
|
17
|
-
* @type {MlegInstrumentType}
|
|
18
|
-
* @memberof MlegTradingInstrument
|
|
19
|
-
*/
|
|
20
|
-
'instrument_type': MlegInstrumentType;
|
|
21
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Example for failed request response
|
|
3
|
-
* @export
|
|
4
|
-
* @interface Model400FailedRequestResponse
|
|
5
|
-
*/
|
|
6
|
-
export interface Model400FailedRequestResponse {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @type {any}
|
|
11
|
-
* @memberof Model400FailedRequestResponse
|
|
12
|
-
*/
|
|
13
|
-
'default_detail'?: any;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {any}
|
|
17
|
-
* @memberof Model400FailedRequestResponse
|
|
18
|
-
*/
|
|
19
|
-
'default_code'?: any;
|
|
20
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Example for failed request response
|
|
3
|
-
* @export
|
|
4
|
-
* @interface Model401FailedRequestResponse
|
|
5
|
-
*/
|
|
6
|
-
export interface Model401FailedRequestResponse {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @type {any}
|
|
11
|
-
* @memberof Model401FailedRequestResponse
|
|
12
|
-
*/
|
|
13
|
-
'default_detail'?: any;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {any}
|
|
17
|
-
* @memberof Model401FailedRequestResponse
|
|
18
|
-
*/
|
|
19
|
-
'default_code'?: any;
|
|
20
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This connection is already disabled.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface Model402BrokerageAuthAlreadyDisabledException
|
|
5
|
-
*/
|
|
6
|
-
export interface Model402BrokerageAuthAlreadyDisabledException {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @type {any}
|
|
11
|
-
* @memberof Model402BrokerageAuthAlreadyDisabledException
|
|
12
|
-
*/
|
|
13
|
-
'detail'?: any;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {any}
|
|
17
|
-
* @memberof Model402BrokerageAuthAlreadyDisabledException
|
|
18
|
-
*/
|
|
19
|
-
'code'?: any;
|
|
20
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Cannot perform action because connection is disabled
|
|
3
|
-
* @export
|
|
4
|
-
* @interface Model402BrokerageAuthDisabledResponse
|
|
5
|
-
*/
|
|
6
|
-
export interface Model402BrokerageAuthDisabledResponse {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @type {any}
|
|
11
|
-
* @memberof Model402BrokerageAuthDisabledResponse
|
|
12
|
-
*/
|
|
13
|
-
'detail'?: any;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {any}
|
|
17
|
-
* @memberof Model402BrokerageAuthDisabledResponse
|
|
18
|
-
*/
|
|
19
|
-
'code'?: any;
|
|
20
|
-
}
|