snaptrade-typescript-sdk 9.0.200 → 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 +40 -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 -1058
- package/dist/api/trading-api-generated.js +0 -1688
- 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,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Example for failed request response
|
|
3
|
-
* @export
|
|
4
|
-
* @interface Model403FailedRequestResponse
|
|
5
|
-
*/
|
|
6
|
-
export interface Model403FailedRequestResponse {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @type {any}
|
|
11
|
-
* @memberof Model403FailedRequestResponse
|
|
12
|
-
*/
|
|
13
|
-
'default_detail'?: any;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {any}
|
|
17
|
-
* @memberof Model403FailedRequestResponse
|
|
18
|
-
*/
|
|
19
|
-
'default_code'?: any;
|
|
20
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Example for failed request response
|
|
3
|
-
* @export
|
|
4
|
-
* @interface Model403FeatureNotEnabledResponse
|
|
5
|
-
*/
|
|
6
|
-
export interface Model403FeatureNotEnabledResponse {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @type {any}
|
|
11
|
-
* @memberof Model403FeatureNotEnabledResponse
|
|
12
|
-
*/
|
|
13
|
-
'detail'?: any;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {any}
|
|
17
|
-
* @memberof Model403FeatureNotEnabledResponse
|
|
18
|
-
*/
|
|
19
|
-
'default_code'?: any;
|
|
20
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Example for failed request response
|
|
3
|
-
* @export
|
|
4
|
-
* @interface Model404FailedRequestResponse
|
|
5
|
-
*/
|
|
6
|
-
export interface Model404FailedRequestResponse {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @type {any}
|
|
11
|
-
* @memberof Model404FailedRequestResponse
|
|
12
|
-
*/
|
|
13
|
-
'default_detail'?: any;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {any}
|
|
17
|
-
* @memberof Model404FailedRequestResponse
|
|
18
|
-
*/
|
|
19
|
-
'default_code'?: any;
|
|
20
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Example for failed request response
|
|
3
|
-
* @export
|
|
4
|
-
* @interface Model425FailedRequestResponse
|
|
5
|
-
*/
|
|
6
|
-
export interface Model425FailedRequestResponse {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @type {any}
|
|
11
|
-
* @memberof Model425FailedRequestResponse
|
|
12
|
-
*/
|
|
13
|
-
'detail'?: any;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {any}
|
|
17
|
-
* @memberof Model425FailedRequestResponse
|
|
18
|
-
*/
|
|
19
|
-
'code'?: any;
|
|
20
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Example for a response that failed for unexpected reasons
|
|
3
|
-
* @export
|
|
4
|
-
* @interface Model500UnexpectedExceptionResponse
|
|
5
|
-
*/
|
|
6
|
-
export interface Model500UnexpectedExceptionResponse {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @type {any}
|
|
11
|
-
* @memberof Model500UnexpectedExceptionResponse
|
|
12
|
-
*/
|
|
13
|
-
'detail'?: any;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {any}
|
|
17
|
-
* @memberof Model500UnexpectedExceptionResponse
|
|
18
|
-
*/
|
|
19
|
-
'status_code'?: any;
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {any}
|
|
23
|
-
* @memberof Model500UnexpectedExceptionResponse
|
|
24
|
-
*/
|
|
25
|
-
'code'?: any;
|
|
26
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { DividendAtDate } from './dividend-at-date';
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* @export
|
|
5
|
-
* @interface MonthlyDividends
|
|
6
|
-
*/
|
|
7
|
-
export interface MonthlyDividends {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
* Date used to specify timeframe for a reporting call (in YYYY-MM-DD format). These dates are inclusive.
|
|
11
|
-
* @type {string}
|
|
12
|
-
* @memberof MonthlyDividends
|
|
13
|
-
*/
|
|
14
|
-
'date'?: string;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @type {Array<DividendAtDate>}
|
|
18
|
-
* @memberof MonthlyDividends
|
|
19
|
-
*/
|
|
20
|
-
'dividends'?: Array<DividendAtDate>;
|
|
21
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { StockInstrumentFigiInstrument } from './stock-instrument-figi-instrument';
|
|
2
|
-
/**
|
|
3
|
-
* Security instrument metadata for mutual fund positions.
|
|
4
|
-
* @export
|
|
5
|
-
* @interface MutualFundInstrument
|
|
6
|
-
*/
|
|
7
|
-
export interface MutualFundInstrument {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
* Type of security instrument.
|
|
11
|
-
* @type {string}
|
|
12
|
-
* @memberof MutualFundInstrument
|
|
13
|
-
*/
|
|
14
|
-
'kind': MutualFundInstrumentKindEnum;
|
|
15
|
-
/**
|
|
16
|
-
* Unique identifier for the instrument.
|
|
17
|
-
* @type {string}
|
|
18
|
-
* @memberof MutualFundInstrument
|
|
19
|
-
*/
|
|
20
|
-
'id': string;
|
|
21
|
-
/**
|
|
22
|
-
* The formatted trading symbol for the security.
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof MutualFundInstrument
|
|
25
|
-
*/
|
|
26
|
-
'symbol': string;
|
|
27
|
-
/**
|
|
28
|
-
* The raw symbol without any exchange suffix.
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof MutualFundInstrument
|
|
31
|
-
*/
|
|
32
|
-
'raw_symbol': string;
|
|
33
|
-
/**
|
|
34
|
-
* Human-readable description of the security.
|
|
35
|
-
* @type {string}
|
|
36
|
-
* @memberof MutualFundInstrument
|
|
37
|
-
*/
|
|
38
|
-
'description'?: string | null;
|
|
39
|
-
/**
|
|
40
|
-
* ISO-4217 currency code for the security listing.
|
|
41
|
-
* @type {string}
|
|
42
|
-
* @memberof MutualFundInstrument
|
|
43
|
-
*/
|
|
44
|
-
'currency'?: string | null;
|
|
45
|
-
/**
|
|
46
|
-
* Exchange MIC code or exchange code for the security.
|
|
47
|
-
* @type {string}
|
|
48
|
-
* @memberof MutualFundInstrument
|
|
49
|
-
*/
|
|
50
|
-
'exchange'?: string | null;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {StockInstrumentFigiInstrument}
|
|
54
|
-
* @memberof MutualFundInstrument
|
|
55
|
-
*/
|
|
56
|
-
'figi_instrument'?: StockInstrumentFigiInstrument | null;
|
|
57
|
-
}
|
|
58
|
-
type MutualFundInstrumentKindEnum = 'mutualfund';
|
|
59
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @export
|
|
4
|
-
* @interface NetContributions
|
|
5
|
-
*/
|
|
6
|
-
export interface NetContributions {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* Date used to specify timeframe for a reporting call (in YYYY-MM-DD format). These dates are inclusive.
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof NetContributions
|
|
12
|
-
*/
|
|
13
|
-
'date'?: string;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {number}
|
|
17
|
-
* @memberof NetContributions
|
|
18
|
-
*/
|
|
19
|
-
'contributions'?: number | null;
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof NetContributions
|
|
24
|
-
*/
|
|
25
|
-
'currency'?: string;
|
|
26
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { UniversalSymbol } from './universal-symbol';
|
|
2
|
-
/**
|
|
3
|
-
* Object representing total dividends received during a timeframe
|
|
4
|
-
* @export
|
|
5
|
-
* @interface NetDividend
|
|
6
|
-
*/
|
|
7
|
-
export interface NetDividend {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @type {UniversalSymbol}
|
|
12
|
-
* @memberof NetDividend
|
|
13
|
-
*/
|
|
14
|
-
'symbol'?: UniversalSymbol;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @type {number}
|
|
18
|
-
* @memberof NetDividend
|
|
19
|
-
*/
|
|
20
|
-
'amount'?: number | null;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof NetDividend
|
|
25
|
-
*/
|
|
26
|
-
'currency'?: string;
|
|
27
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @type NotionalValue
|
|
3
|
-
* Total notional amount for the order. Must be `null` if `units` is provided. Can only work with `Market` for `order_type` and `Day` for `time_in_force`. This is only available for certain brokerages. Please check the [integrations doc](https://support.snaptrade.com/brokerages-table?v=e7bbcbf9f272441593f93decde660687) for more information.
|
|
4
|
-
* @export
|
|
5
|
-
*/
|
|
6
|
-
export type NotionalValue = number | string;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { OptionsSymbol } from './options-symbol';
|
|
2
|
-
/**
|
|
3
|
-
* Uniquely describes a security for the option position within an account. The distinction between this and the `option_symbol` child property is that this object is specific to a position within an account, while the `option_symbol` child property is universal across all brokerage accounts. The caller should rely on the `option_symbol` child property for most use cases.
|
|
4
|
-
* @export
|
|
5
|
-
* @interface OptionBrokerageSymbol
|
|
6
|
-
*/
|
|
7
|
-
export interface OptionBrokerageSymbol {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @type {OptionsSymbol}
|
|
12
|
-
* @memberof OptionBrokerageSymbol
|
|
13
|
-
*/
|
|
14
|
-
'option_symbol'?: OptionsSymbol;
|
|
15
|
-
/**
|
|
16
|
-
* 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.
|
|
17
|
-
* @type {string}
|
|
18
|
-
* @memberof OptionBrokerageSymbol
|
|
19
|
-
* @deprecated
|
|
20
|
-
*/
|
|
21
|
-
'id'?: string;
|
|
22
|
-
/**
|
|
23
|
-
* This field is deprecated and the caller should use the `option_symbol` child property\'s `description` instead.
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof OptionBrokerageSymbol
|
|
26
|
-
* @deprecated
|
|
27
|
-
*/
|
|
28
|
-
'description'?: string;
|
|
29
|
-
}
|
package/dist/models/option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @export
|
|
4
|
-
* @interface OptionChainInnerChainPerRootInnerChainPerStrikePriceInner
|
|
5
|
-
*/
|
|
6
|
-
export interface OptionChainInnerChainPerRootInnerChainPerStrikePriceInner {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @type {number}
|
|
11
|
-
* @memberof OptionChainInnerChainPerRootInnerChainPerStrikePriceInner
|
|
12
|
-
*/
|
|
13
|
-
'strikePrice'?: number | null;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {number}
|
|
17
|
-
* @memberof OptionChainInnerChainPerRootInnerChainPerStrikePriceInner
|
|
18
|
-
*/
|
|
19
|
-
'callSymbolId'?: number | null;
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {number}
|
|
23
|
-
* @memberof OptionChainInnerChainPerRootInnerChainPerStrikePriceInner
|
|
24
|
-
*/
|
|
25
|
-
'putSymbolId'?: number | null;
|
|
26
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { OptionChainInnerChainPerRootInnerChainPerStrikePriceInner } from './option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner';
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* @export
|
|
5
|
-
* @interface OptionChainInnerChainPerRootInner
|
|
6
|
-
*/
|
|
7
|
-
export interface OptionChainInnerChainPerRootInner {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @type {string}
|
|
12
|
-
* @memberof OptionChainInnerChainPerRootInner
|
|
13
|
-
*/
|
|
14
|
-
'optionRoot'?: string;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @type {Array<OptionChainInnerChainPerRootInnerChainPerStrikePriceInner>}
|
|
18
|
-
* @memberof OptionChainInnerChainPerRootInner
|
|
19
|
-
*/
|
|
20
|
-
'chainPerStrikePrice'?: Array<OptionChainInnerChainPerRootInnerChainPerStrikePriceInner>;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {number}
|
|
24
|
-
* @memberof OptionChainInnerChainPerRootInner
|
|
25
|
-
*/
|
|
26
|
-
'multiplier'?: number;
|
|
27
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { OptionChainInnerChainPerRootInner } from './option-chain-inner-chain-per-root-inner';
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* @export
|
|
5
|
-
* @interface OptionChainInner
|
|
6
|
-
*/
|
|
7
|
-
export interface OptionChainInner {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @type {string}
|
|
12
|
-
* @memberof OptionChainInner
|
|
13
|
-
*/
|
|
14
|
-
'expiryDate'?: string;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @type {string}
|
|
18
|
-
* @memberof OptionChainInner
|
|
19
|
-
*/
|
|
20
|
-
'description'?: string;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof OptionChainInner
|
|
25
|
-
*/
|
|
26
|
-
'listingExchange'?: string;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof OptionChainInner
|
|
31
|
-
*/
|
|
32
|
-
'optionExerciseType'?: string;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {Array<OptionChainInnerChainPerRootInner>}
|
|
36
|
-
* @memberof OptionChainInner
|
|
37
|
-
*/
|
|
38
|
-
'chainPerRoot'?: Array<OptionChainInnerChainPerRootInner>;
|
|
39
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Estimated cash change and fees for an option order before it is placed.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface OptionImpact
|
|
5
|
-
*/
|
|
6
|
-
export interface OptionImpact {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* Estimated cash change for the order, before fees.
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof OptionImpact
|
|
12
|
-
*/
|
|
13
|
-
'estimated_cash_change'?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Direction of the cash change. CREDIT means cash is received, DEBIT means cash is paid out, EVEN means no cash changes hands. UNKNOWN if the direction cannot be determined from the request.
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof OptionImpact
|
|
18
|
-
*/
|
|
19
|
-
'cash_change_direction'?: OptionImpactCashChangeDirectionEnum;
|
|
20
|
-
/**
|
|
21
|
-
* Estimated total transaction fees and commissions for the order.
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof OptionImpact
|
|
24
|
-
*/
|
|
25
|
-
'estimated_fee_total'?: string;
|
|
26
|
-
}
|
|
27
|
-
type OptionImpactCashChangeDirectionEnum = 'CREDIT' | 'DEBIT' | 'EVEN' | 'UNKNOWN';
|
|
28
|
-
export {};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { UnderlyingOptionInstrument } from './underlying-option-instrument';
|
|
2
|
-
/**
|
|
3
|
-
* Option instrument metadata for a V2 position.
|
|
4
|
-
* @export
|
|
5
|
-
* @interface OptionInstrument
|
|
6
|
-
*/
|
|
7
|
-
export interface OptionInstrument {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
* Type of security instrument.
|
|
11
|
-
* @type {string}
|
|
12
|
-
* @memberof OptionInstrument
|
|
13
|
-
*/
|
|
14
|
-
'kind': OptionInstrumentKindEnum;
|
|
15
|
-
/**
|
|
16
|
-
* Unique identifier for the option instrument.
|
|
17
|
-
* @type {string}
|
|
18
|
-
* @memberof OptionInstrument
|
|
19
|
-
*/
|
|
20
|
-
'id': string;
|
|
21
|
-
/**
|
|
22
|
-
* OCC symbol for the option contract.
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof OptionInstrument
|
|
25
|
-
*/
|
|
26
|
-
'symbol': string;
|
|
27
|
-
/**
|
|
28
|
-
* Whether the contract is a call or put.
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof OptionInstrument
|
|
31
|
-
*/
|
|
32
|
-
'option_type': OptionInstrumentOptionTypeEnum;
|
|
33
|
-
/**
|
|
34
|
-
* Strike price for the option contract.
|
|
35
|
-
* @type {string}
|
|
36
|
-
* @memberof OptionInstrument
|
|
37
|
-
*/
|
|
38
|
-
'strike_price': string;
|
|
39
|
-
/**
|
|
40
|
-
* Expiration date of the option contract.
|
|
41
|
-
* @type {string}
|
|
42
|
-
* @memberof OptionInstrument
|
|
43
|
-
*/
|
|
44
|
-
'expiration_date': string;
|
|
45
|
-
/**
|
|
46
|
-
* Human-readable description of the option contract.
|
|
47
|
-
* @type {string}
|
|
48
|
-
* @memberof OptionInstrument
|
|
49
|
-
*/
|
|
50
|
-
'description'?: string | null;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {UnderlyingOptionInstrument}
|
|
54
|
-
* @memberof OptionInstrument
|
|
55
|
-
*/
|
|
56
|
-
'underlying': UnderlyingOptionInstrument;
|
|
57
|
-
}
|
|
58
|
-
type OptionInstrumentKindEnum = 'option';
|
|
59
|
-
type OptionInstrumentOptionTypeEnum = 'CALL' | 'PUT';
|
|
60
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Option Leg
|
|
3
|
-
* @export
|
|
4
|
-
* @interface OptionLeg
|
|
5
|
-
*/
|
|
6
|
-
export interface OptionLeg {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof OptionLeg
|
|
12
|
-
*/
|
|
13
|
-
'action'?: OptionLegActionEnum;
|
|
14
|
-
/**
|
|
15
|
-
* Obtained from calling options chain endpoint (option_id)
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof OptionLeg
|
|
18
|
-
*/
|
|
19
|
-
'option_symbol_id'?: string;
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {number}
|
|
23
|
-
* @memberof OptionLeg
|
|
24
|
-
*/
|
|
25
|
-
'quantity'?: number;
|
|
26
|
-
}
|
|
27
|
-
type OptionLegActionEnum = 'BUY_TO_OPEN' | 'BUY_TO_CLOSE' | 'SELL_TO_OPEN' | 'SELL_TO_CLOSE';
|
|
28
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Greeks for the option contract.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface OptionQuoteGreeks
|
|
5
|
-
*/
|
|
6
|
-
export interface OptionQuoteGreeks {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* Delta represents the rate of change between the option\'s price and a $1 change in the underlying asset\'s price.
|
|
10
|
-
* @type {number}
|
|
11
|
-
* @memberof OptionQuoteGreeks
|
|
12
|
-
*/
|
|
13
|
-
'delta'?: number;
|
|
14
|
-
/**
|
|
15
|
-
* Gamma represents the rate of change between an option\'s delta and the underlying asset\'s price.
|
|
16
|
-
* @type {number}
|
|
17
|
-
* @memberof OptionQuoteGreeks
|
|
18
|
-
*/
|
|
19
|
-
'gamma'?: number;
|
|
20
|
-
/**
|
|
21
|
-
* Theta represents the rate of change between the option price and time, or time sensitivity - sometimes known as an option\'s time decay.
|
|
22
|
-
* @type {number}
|
|
23
|
-
* @memberof OptionQuoteGreeks
|
|
24
|
-
*/
|
|
25
|
-
'theta'?: number;
|
|
26
|
-
/**
|
|
27
|
-
* Vega represents the rate of change between an option\'s value and the underlying asset\'s implied volatility.
|
|
28
|
-
* @type {number}
|
|
29
|
-
* @memberof OptionQuoteGreeks
|
|
30
|
-
*/
|
|
31
|
-
'vega'?: number;
|
|
32
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { OptionQuoteGreeks } from './option-quote-greeks';
|
|
2
|
-
/**
|
|
3
|
-
* Real-time quote for a single option contract.
|
|
4
|
-
* @export
|
|
5
|
-
* @interface OptionQuote
|
|
6
|
-
*/
|
|
7
|
-
export interface OptionQuote {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
* The OCC-formatted option symbol.
|
|
11
|
-
* @type {string}
|
|
12
|
-
* @memberof OptionQuote
|
|
13
|
-
*/
|
|
14
|
-
'symbol'?: string;
|
|
15
|
-
/**
|
|
16
|
-
* The derived synthetic price of the contract.
|
|
17
|
-
* @type {number}
|
|
18
|
-
* @memberof OptionQuote
|
|
19
|
-
*/
|
|
20
|
-
'synthetic_price'?: number;
|
|
21
|
-
/**
|
|
22
|
-
* The implied volatility of the option contract.
|
|
23
|
-
* @type {number}
|
|
24
|
-
* @memberof OptionQuote
|
|
25
|
-
*/
|
|
26
|
-
'implied_volatility'?: number;
|
|
27
|
-
/**
|
|
28
|
-
* The timestamp of the last update for the option quote.
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof OptionQuote
|
|
31
|
-
*/
|
|
32
|
-
'timestamp'?: string | null;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {OptionQuoteGreeks}
|
|
36
|
-
* @memberof OptionQuote
|
|
37
|
-
*/
|
|
38
|
-
'greeks'?: OptionQuoteGreeks;
|
|
39
|
-
}
|