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,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Data to login a user via SnapTrade Partner
|
|
3
|
-
* @export
|
|
4
|
-
* @interface SnapTradeLoginUserRequestBody
|
|
5
|
-
*/
|
|
6
|
-
export interface SnapTradeLoginUserRequestBody {
|
|
7
|
-
/**
|
|
8
|
-
* Slug of the brokerage to connect the user to. See [the integrations page](https://support.snaptrade.com/brokerages) for a list of supported brokerages and their slugs.
|
|
9
|
-
* @type {string}
|
|
10
|
-
* @memberof SnapTradeLoginUserRequestBody
|
|
11
|
-
*/
|
|
12
|
-
'broker'?: string;
|
|
13
|
-
/**
|
|
14
|
-
* When set to `true`, user will be redirected back to the partner\'s site instead of the connection portal. This parameter is ignored if the connection portal is loaded inside an iframe. See the [guide on ways to integrate the connection portal](/docs/implement-connection-portal) for more information.
|
|
15
|
-
* @type {boolean}
|
|
16
|
-
* @memberof SnapTradeLoginUserRequestBody
|
|
17
|
-
*/
|
|
18
|
-
'immediateRedirect'?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* URL to redirect the user to after the user connects their brokerage account. This parameter is ignored if the connection portal is loaded inside an iframe. See the [guide on ways to integrate the connection portal](/docs/implement-connection-portal) for more information.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof SnapTradeLoginUserRequestBody
|
|
23
|
-
*/
|
|
24
|
-
'customRedirect'?: string;
|
|
25
|
-
/**
|
|
26
|
-
* The UUID of the brokerage connection to be reconnected. This parameter should be left empty unless you are reconnecting a disabled connection. See the [guide on fixing broken connections](/docs/fix-broken-connections) for more information.
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof SnapTradeLoginUserRequestBody
|
|
29
|
-
*/
|
|
30
|
-
'reconnect'?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Determines connection permissions (default: read) - `read`: Data access only. - `trade`: Data and trading access. - `trade-if-available`: Attempts to establish a trading connection if the brokerage supports it, otherwise falls back to read-only access automatically.
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof SnapTradeLoginUserRequestBody
|
|
35
|
-
*/
|
|
36
|
-
'connectionType'?: SnapTradeLoginUserRequestBodyConnectionTypeEnum;
|
|
37
|
-
/**
|
|
38
|
-
* Controls whether the close (X) button is displayed in the connection portal. When false, you control closing behavior from your app. Defaults to true.
|
|
39
|
-
* @type {boolean}
|
|
40
|
-
* @memberof SnapTradeLoginUserRequestBody
|
|
41
|
-
*/
|
|
42
|
-
'showCloseButton'?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Enable dark mode for the connection portal. Defaults to false.
|
|
45
|
-
* @type {boolean}
|
|
46
|
-
* @memberof SnapTradeLoginUserRequestBody
|
|
47
|
-
*/
|
|
48
|
-
'darkMode'?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Sets the connection portal version to render. Currently only `v4` is supported and is the default. All other versions are deprecated and will automatically be set to v4.
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof SnapTradeLoginUserRequestBody
|
|
53
|
-
*/
|
|
54
|
-
'connectionPortalVersion'?: SnapTradeLoginUserRequestBodyConnectionPortalVersionEnum;
|
|
55
|
-
}
|
|
56
|
-
type SnapTradeLoginUserRequestBodyConnectionTypeEnum = 'read' | 'trade' | 'trade-if-available';
|
|
57
|
-
type SnapTradeLoginUserRequestBodyConnectionPortalVersionEnum = 'v4' | 'v3' | 'v2';
|
|
58
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Data required to register a user via SnapTrade Partner
|
|
3
|
-
* @export
|
|
4
|
-
* @interface SnapTradeRegisterUserRequestBody
|
|
5
|
-
*/
|
|
6
|
-
export interface SnapTradeRegisterUserRequestBody {
|
|
7
|
-
/**
|
|
8
|
-
* SnapTrade User ID. This is chosen by the API partner and can be any string that is a) unique to the user, and b) immutable for the user. It is recommended to NOT use email addresses for this property because they are usually not immutable.
|
|
9
|
-
* @type {string}
|
|
10
|
-
* @memberof SnapTradeRegisterUserRequestBody
|
|
11
|
-
*/
|
|
12
|
-
'userId': string;
|
|
13
|
-
}
|
package/dist/models/status.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Status of API
|
|
3
|
-
* @export
|
|
4
|
-
* @interface Status
|
|
5
|
-
*/
|
|
6
|
-
export interface Status {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @type {number}
|
|
11
|
-
* @memberof Status
|
|
12
|
-
*/
|
|
13
|
-
'version'?: number;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof Status
|
|
18
|
-
*/
|
|
19
|
-
'timestamp'?: string;
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {boolean}
|
|
23
|
-
* @memberof Status
|
|
24
|
-
*/
|
|
25
|
-
'online'?: boolean;
|
|
26
|
-
}
|
package/dist/models/status.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @export
|
|
4
|
-
* @interface StockInstrumentFigiInstrument
|
|
5
|
-
*/
|
|
6
|
-
export interface StockInstrumentFigiInstrument {
|
|
7
|
-
/**
|
|
8
|
-
* This identifier is unique per security per trading venue. See section 1.4.1 of the [FIGI Standard](https://www.openfigi.com/assets/local/figi-allocation-rules.pdf) for more information.
|
|
9
|
-
* @type {string}
|
|
10
|
-
* @memberof StockInstrumentFigiInstrument
|
|
11
|
-
*/
|
|
12
|
-
'figi_code'?: string | null;
|
|
13
|
-
/**
|
|
14
|
-
* This enables users to link multiple FIGIs for the same security in order to obtain an aggregated view across all countries and all exchanges. For example, `AAPL` has a different FIGI for each exchange/trading venue it is traded on. The `figi_share_class` is the same for all of these FIGIs. See section 1.4.3 of the [FIGI Standard](https://www.openfigi.com/assets/local/figi-allocation-rules.pdf) for more information.
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof StockInstrumentFigiInstrument
|
|
17
|
-
*/
|
|
18
|
-
'figi_share_class'?: string | null;
|
|
19
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { StockInstrumentFigiInstrument } from './stock-instrument-figi-instrument';
|
|
2
|
-
/**
|
|
3
|
-
* Security instrument metadata for stock positions.
|
|
4
|
-
* @export
|
|
5
|
-
* @interface StockInstrument
|
|
6
|
-
*/
|
|
7
|
-
export interface StockInstrument {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
* Type of security instrument.
|
|
11
|
-
* @type {string}
|
|
12
|
-
* @memberof StockInstrument
|
|
13
|
-
*/
|
|
14
|
-
'kind': StockInstrumentKindEnum;
|
|
15
|
-
/**
|
|
16
|
-
* Unique identifier for the instrument.
|
|
17
|
-
* @type {string}
|
|
18
|
-
* @memberof StockInstrument
|
|
19
|
-
*/
|
|
20
|
-
'id': string;
|
|
21
|
-
/**
|
|
22
|
-
* The formatted trading symbol for the security.
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof StockInstrument
|
|
25
|
-
*/
|
|
26
|
-
'symbol': string;
|
|
27
|
-
/**
|
|
28
|
-
* The raw symbol without any exchange suffix.
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof StockInstrument
|
|
31
|
-
*/
|
|
32
|
-
'raw_symbol': string;
|
|
33
|
-
/**
|
|
34
|
-
* Human-readable description of the security.
|
|
35
|
-
* @type {string}
|
|
36
|
-
* @memberof StockInstrument
|
|
37
|
-
*/
|
|
38
|
-
'description'?: string | null;
|
|
39
|
-
/**
|
|
40
|
-
* ISO-4217 currency code for the security listing.
|
|
41
|
-
* @type {string}
|
|
42
|
-
* @memberof StockInstrument
|
|
43
|
-
*/
|
|
44
|
-
'currency'?: string | null;
|
|
45
|
-
/**
|
|
46
|
-
* Exchange MIC code or exchange code for the security.
|
|
47
|
-
* @type {string}
|
|
48
|
-
* @memberof StockInstrument
|
|
49
|
-
*/
|
|
50
|
-
'exchange'?: string | null;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {StockInstrumentFigiInstrument}
|
|
54
|
-
* @memberof StockInstrument
|
|
55
|
-
*/
|
|
56
|
-
'figi_instrument'?: StockInstrumentFigiInstrument | null;
|
|
57
|
-
}
|
|
58
|
-
type StockInstrumentKindEnum = 'stock';
|
|
59
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Takes in string value for stop_price and limit_price. stop_price is required, limit_price is optional
|
|
3
|
-
* @export
|
|
4
|
-
* @interface StopLoss
|
|
5
|
-
*/
|
|
6
|
-
export interface StopLoss {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof StopLoss
|
|
12
|
-
*/
|
|
13
|
-
'stop_price'?: string;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof StopLoss
|
|
18
|
-
*/
|
|
19
|
-
'limit_price'?: string | null;
|
|
20
|
-
}
|
package/dist/models/stop-loss.js
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { OptionStrategy } from './option-strategy';
|
|
2
|
-
/**
|
|
3
|
-
* Strategy order record
|
|
4
|
-
* @export
|
|
5
|
-
* @interface StrategyOrderRecord
|
|
6
|
-
*/
|
|
7
|
-
export interface StrategyOrderRecord {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @type {OptionStrategy}
|
|
12
|
-
* @memberof StrategyOrderRecord
|
|
13
|
-
*/
|
|
14
|
-
'strategy'?: OptionStrategy;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @type {string}
|
|
18
|
-
* @memberof StrategyOrderRecord
|
|
19
|
-
*/
|
|
20
|
-
'status'?: StrategyOrderRecordStatusEnum;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {number}
|
|
24
|
-
* @memberof StrategyOrderRecord
|
|
25
|
-
*/
|
|
26
|
-
'filled_quantity'?: number;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {number}
|
|
30
|
-
* @memberof StrategyOrderRecord
|
|
31
|
-
*/
|
|
32
|
-
'open_quantity'?: number;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {number}
|
|
36
|
-
* @memberof StrategyOrderRecord
|
|
37
|
-
*/
|
|
38
|
-
'closed_quantity'?: number;
|
|
39
|
-
/**
|
|
40
|
-
* Order Type potential values include (but are not limited to) - Limit - Market - StopLimit - Stop
|
|
41
|
-
* @type {string}
|
|
42
|
-
* @memberof StrategyOrderRecord
|
|
43
|
-
*/
|
|
44
|
-
'order_type'?: string | null;
|
|
45
|
-
/**
|
|
46
|
-
* Trade time in force examples: * FOK - Fill Or Kill * Day - Day * GTC - Good Til Canceled * GTD - Good Til Date
|
|
47
|
-
* @type {string}
|
|
48
|
-
* @memberof StrategyOrderRecord
|
|
49
|
-
*/
|
|
50
|
-
'time_in_force'?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Trade Price if limit or stop limit order
|
|
53
|
-
* @type {number}
|
|
54
|
-
* @memberof StrategyOrderRecord
|
|
55
|
-
*/
|
|
56
|
-
'limit_price'?: number | null;
|
|
57
|
-
/**
|
|
58
|
-
* Trade Price if limit or stop limit order
|
|
59
|
-
* @type {number}
|
|
60
|
-
* @memberof StrategyOrderRecord
|
|
61
|
-
*/
|
|
62
|
-
'execution_price'?: number | null;
|
|
63
|
-
/**
|
|
64
|
-
* Time
|
|
65
|
-
* @type {string}
|
|
66
|
-
* @memberof StrategyOrderRecord
|
|
67
|
-
*/
|
|
68
|
-
'time_placed'?: string;
|
|
69
|
-
/**
|
|
70
|
-
* Time
|
|
71
|
-
* @type {string}
|
|
72
|
-
* @memberof StrategyOrderRecord
|
|
73
|
-
*/
|
|
74
|
-
'time_updated'?: string;
|
|
75
|
-
}
|
|
76
|
-
type StrategyOrderRecordStatusEnum = 'PENDING' | 'ACCEPTED' | 'FAILED' | 'REJECTED' | 'CANCELED' | 'PARTIAL_CANCELED' | 'CANCEL_PENDING' | 'EXECUTED' | 'PARTIAL' | 'REPLACE_PENDING' | 'REPLACED' | 'STOPPED' | 'SUSPENDED' | 'EXPIRED' | 'QUEUED' | 'TRIGGERED' | 'ACTIVATED' | 'PENDING_RISK_REVIEW' | 'CONTINGENT_ORDER';
|
|
77
|
-
export {};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @export
|
|
4
|
-
* @interface StrategyQuotesGreek
|
|
5
|
-
*/
|
|
6
|
-
export interface StrategyQuotesGreek {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @type {number}
|
|
11
|
-
* @memberof StrategyQuotesGreek
|
|
12
|
-
*/
|
|
13
|
-
'delta'?: number;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {number}
|
|
17
|
-
* @memberof StrategyQuotesGreek
|
|
18
|
-
*/
|
|
19
|
-
'gamma'?: number;
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {number}
|
|
23
|
-
* @memberof StrategyQuotesGreek
|
|
24
|
-
*/
|
|
25
|
-
'theta'?: number;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {number}
|
|
29
|
-
* @memberof StrategyQuotesGreek
|
|
30
|
-
*/
|
|
31
|
-
'vega'?: number;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {number}
|
|
35
|
-
* @memberof StrategyQuotesGreek
|
|
36
|
-
*/
|
|
37
|
-
'rho'?: number;
|
|
38
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { OptionStrategy } from './option-strategy';
|
|
2
|
-
import { StrategyQuotesGreek } from './strategy-quotes-greek';
|
|
3
|
-
/**
|
|
4
|
-
*
|
|
5
|
-
* @export
|
|
6
|
-
* @interface StrategyQuotes
|
|
7
|
-
*/
|
|
8
|
-
export interface StrategyQuotes {
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
* @type {OptionStrategy}
|
|
13
|
-
* @memberof StrategyQuotes
|
|
14
|
-
*/
|
|
15
|
-
'strategy'?: OptionStrategy;
|
|
16
|
-
/**
|
|
17
|
-
* Trade Price if limit or stop limit order
|
|
18
|
-
* @type {number}
|
|
19
|
-
* @memberof StrategyQuotes
|
|
20
|
-
*/
|
|
21
|
-
'open_price'?: number | null;
|
|
22
|
-
/**
|
|
23
|
-
* Trade Price if limit or stop limit order
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof StrategyQuotes
|
|
26
|
-
*/
|
|
27
|
-
'bid_price'?: number | null;
|
|
28
|
-
/**
|
|
29
|
-
* Trade Price if limit or stop limit order
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof StrategyQuotes
|
|
32
|
-
*/
|
|
33
|
-
'ask_price'?: number | null;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {number}
|
|
37
|
-
* @memberof StrategyQuotes
|
|
38
|
-
*/
|
|
39
|
-
'volatility'?: number;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {StrategyQuotesGreek}
|
|
43
|
-
* @memberof StrategyQuotes
|
|
44
|
-
*/
|
|
45
|
-
'greek'?: StrategyQuotesGreek;
|
|
46
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @export
|
|
4
|
-
* @interface SubPeriodReturnRate
|
|
5
|
-
*/
|
|
6
|
-
export interface SubPeriodReturnRate {
|
|
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 SubPeriodReturnRate
|
|
12
|
-
*/
|
|
13
|
-
'periodStart'?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Date used to specify timeframe for a reporting call (in YYYY-MM-DD format). These dates are inclusive.
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof SubPeriodReturnRate
|
|
18
|
-
*/
|
|
19
|
-
'periodEnd'?: string;
|
|
20
|
-
/**
|
|
21
|
-
* The return rate for the given period
|
|
22
|
-
* @type {number}
|
|
23
|
-
* @memberof SubPeriodReturnRate
|
|
24
|
-
*/
|
|
25
|
-
'rateOfReturn'?: number | null;
|
|
26
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The currency in which the security is traded.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface SymbolCurrency
|
|
5
|
-
*/
|
|
6
|
-
export interface SymbolCurrency {
|
|
7
|
-
/**
|
|
8
|
-
* Unique identifier for the currency. This is the UUID used to reference the currency in SnapTrade.
|
|
9
|
-
* @type {string}
|
|
10
|
-
* @memberof SymbolCurrency
|
|
11
|
-
*/
|
|
12
|
-
'id'?: string;
|
|
13
|
-
/**
|
|
14
|
-
* The ISO-4217 currency code for the currency.
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof SymbolCurrency
|
|
17
|
-
*/
|
|
18
|
-
'code'?: string;
|
|
19
|
-
/**
|
|
20
|
-
* A human-friendly name of the currency.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof SymbolCurrency
|
|
23
|
-
*/
|
|
24
|
-
'name'?: string;
|
|
25
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The exchange on which the security is listed and traded.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface SymbolExchange
|
|
5
|
-
*/
|
|
6
|
-
export interface SymbolExchange {
|
|
7
|
-
/**
|
|
8
|
-
* Unique ID for the exchange in SnapTrade.
|
|
9
|
-
* @type {string}
|
|
10
|
-
* @memberof SymbolExchange
|
|
11
|
-
*/
|
|
12
|
-
'id'?: string;
|
|
13
|
-
/**
|
|
14
|
-
* A short name for the exchange. For standardized exchange code, please us the `mic_code` field.
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof SymbolExchange
|
|
17
|
-
*/
|
|
18
|
-
'code'?: string;
|
|
19
|
-
/**
|
|
20
|
-
* The [Market Identifier Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) (MIC) for the exchange.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof SymbolExchange
|
|
23
|
-
*/
|
|
24
|
-
'mic_code'?: string;
|
|
25
|
-
/**
|
|
26
|
-
* The full name of the exchange.
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof SymbolExchange
|
|
29
|
-
*/
|
|
30
|
-
'name'?: string;
|
|
31
|
-
/**
|
|
32
|
-
* The timezone for the trading hours (`start_time` and `close_time`) of the exchange.
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof SymbolExchange
|
|
35
|
-
*/
|
|
36
|
-
'timezone'?: string;
|
|
37
|
-
/**
|
|
38
|
-
* The time when the exchange opens for trading.
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof SymbolExchange
|
|
41
|
-
*/
|
|
42
|
-
'start_time'?: string;
|
|
43
|
-
/**
|
|
44
|
-
* The time when the exchange closes for trading.
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof SymbolExchange
|
|
47
|
-
*/
|
|
48
|
-
'close_time'?: string;
|
|
49
|
-
/**
|
|
50
|
-
* The suffix to be appended to the symbol when trading on this exchange. For example, the suffix for the Toronto Stock Exchange is `.TO`. See `UniversalSymbol->symbol` and `UniversalSymbol->raw_symbol` for more detail.
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof SymbolExchange
|
|
53
|
-
*/
|
|
54
|
-
'suffix'?: string | null;
|
|
55
|
-
}
|
package/dist/models/symbol.d.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { SecurityType } from './security-type';
|
|
2
|
-
import { StockInstrumentFigiInstrument } from './stock-instrument-figi-instrument';
|
|
3
|
-
import { SymbolCurrency } from './symbol-currency';
|
|
4
|
-
import { SymbolExchange } from './symbol-exchange';
|
|
5
|
-
/**
|
|
6
|
-
* Uniquely describes a single security + exchange combination across all brokerages.
|
|
7
|
-
* @export
|
|
8
|
-
* @interface Symbol
|
|
9
|
-
*/
|
|
10
|
-
export interface Symbol {
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
/**
|
|
13
|
-
* Unique identifier for the symbol within SnapTrade. This is the ID used to reference the symbol in SnapTrade API calls.
|
|
14
|
-
* @type {string}
|
|
15
|
-
* @memberof Symbol
|
|
16
|
-
*/
|
|
17
|
-
'id'?: string;
|
|
18
|
-
/**
|
|
19
|
-
* The security\'s trading ticker symbol. For example \"AAPL\" for Apple Inc. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof Symbol
|
|
22
|
-
*/
|
|
23
|
-
'symbol'?: string;
|
|
24
|
-
/**
|
|
25
|
-
* The raw symbol is `symbol` with the exchange suffix removed. For example, if `symbol` is \"VAB.TO\", then `raw_symbol` is \"VAB\".
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof Symbol
|
|
28
|
-
*/
|
|
29
|
-
'raw_symbol'?: string;
|
|
30
|
-
/**
|
|
31
|
-
* A human-readable description of the security. This is usually the company name or ETF name.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof Symbol
|
|
34
|
-
*/
|
|
35
|
-
'description'?: string | null;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {SymbolCurrency}
|
|
39
|
-
* @memberof Symbol
|
|
40
|
-
*/
|
|
41
|
-
'currency'?: SymbolCurrency;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {SymbolExchange}
|
|
45
|
-
* @memberof Symbol
|
|
46
|
-
*/
|
|
47
|
-
'exchange'?: SymbolExchange;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {SecurityType}
|
|
51
|
-
* @memberof Symbol
|
|
52
|
-
*/
|
|
53
|
-
'type'?: SecurityType;
|
|
54
|
-
/**
|
|
55
|
-
* This identifier is unique per security per trading venue. See section 1.4.1 of the [FIGI Standard](https://www.openfigi.com/assets/local/figi-allocation-rules.pdf) for more information. This value should be the same as the `figi_code` in the `figi_instrument` child property.
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof Symbol
|
|
58
|
-
*/
|
|
59
|
-
'figi_code'?: string | null;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {StockInstrumentFigiInstrument}
|
|
63
|
-
* @memberof Symbol
|
|
64
|
-
*/
|
|
65
|
-
'figi_instrument'?: StockInstrumentFigiInstrument | null;
|
|
66
|
-
}
|
package/dist/models/symbol.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { UniversalSymbol } from './universal-symbol';
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* @export
|
|
5
|
-
* @interface SymbolsQuotesInner
|
|
6
|
-
*/
|
|
7
|
-
export interface SymbolsQuotesInner {
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @type {UniversalSymbol}
|
|
11
|
-
* @memberof SymbolsQuotesInner
|
|
12
|
-
*/
|
|
13
|
-
'symbol'?: UniversalSymbol;
|
|
14
|
-
/**
|
|
15
|
-
* The most recent trade price from the brokerage.
|
|
16
|
-
* @type {number}
|
|
17
|
-
* @memberof SymbolsQuotesInner
|
|
18
|
-
*/
|
|
19
|
-
'last_trade_price'?: number;
|
|
20
|
-
/**
|
|
21
|
-
* The most recent bid price from the brokerage.
|
|
22
|
-
* @type {number}
|
|
23
|
-
* @memberof SymbolsQuotesInner
|
|
24
|
-
*/
|
|
25
|
-
'bid_price'?: number;
|
|
26
|
-
/**
|
|
27
|
-
* The most recent price from the brokerage.
|
|
28
|
-
* @type {number}
|
|
29
|
-
* @memberof SymbolsQuotesInner
|
|
30
|
-
*/
|
|
31
|
-
'ask_price'?: number;
|
|
32
|
-
/**
|
|
33
|
-
* The most recent bid size from the brokerage.
|
|
34
|
-
* @type {number}
|
|
35
|
-
* @memberof SymbolsQuotesInner
|
|
36
|
-
*/
|
|
37
|
-
'bid_size'?: number;
|
|
38
|
-
/**
|
|
39
|
-
* The most recent ask size from the brokerage.
|
|
40
|
-
* @type {number}
|
|
41
|
-
* @memberof SymbolsQuotesInner
|
|
42
|
-
*/
|
|
43
|
-
'ask_size'?: number;
|
|
44
|
-
}
|