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
package/dist/models/tax-lot.d.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Describes a single tax lot for a position.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface TaxLot
|
|
5
|
-
*/
|
|
6
|
-
export interface TaxLot {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* The date and time of the purchase.
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof TaxLot
|
|
12
|
-
*/
|
|
13
|
-
'original_purchase_date'?: string | null;
|
|
14
|
-
/**
|
|
15
|
-
* The number of shares in the tax lot. This can be fractional or integer units.
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof TaxLot
|
|
18
|
-
*/
|
|
19
|
-
'quantity'?: string | null;
|
|
20
|
-
/**
|
|
21
|
-
* The purchase price per share for the tax lot.
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof TaxLot
|
|
24
|
-
*/
|
|
25
|
-
'purchased_price'?: string | null;
|
|
26
|
-
/**
|
|
27
|
-
* The cost basis of the entire lot.
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof TaxLot
|
|
30
|
-
*/
|
|
31
|
-
'cost_basis'?: string | null;
|
|
32
|
-
/**
|
|
33
|
-
* The current market value of the entire lot.
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof TaxLot
|
|
36
|
-
*/
|
|
37
|
-
'current_value'?: string | null;
|
|
38
|
-
/**
|
|
39
|
-
* The type of position for the tax lot (e.g., LONG, SHORT).
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof TaxLot
|
|
42
|
-
*/
|
|
43
|
-
'position_type'?: string | null;
|
|
44
|
-
/**
|
|
45
|
-
* The unique id for this specific tax lot
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof TaxLot
|
|
48
|
-
*/
|
|
49
|
-
'lot_id'?: string | null;
|
|
50
|
-
}
|
package/dist/models/tax-lot.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 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.
|
|
3
|
-
* @export
|
|
4
|
-
* @enum {string}
|
|
5
|
-
*/
|
|
6
|
-
export type TimeInForceStrict = 'FOK' | 'Day' | 'GTC' | 'IOC';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @export
|
|
4
|
-
* @interface TradeDetectionCancelSubscriptionResponse
|
|
5
|
-
*/
|
|
6
|
-
export interface TradeDetectionCancelSubscriptionResponse {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @type {boolean}
|
|
11
|
-
* @memberof TradeDetectionCancelSubscriptionResponse
|
|
12
|
-
*/
|
|
13
|
-
'success': boolean;
|
|
14
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* An active Trade Detection subscription for a brokerage account.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface TradeDetectionSubscription
|
|
5
|
-
*/
|
|
6
|
-
export interface TradeDetectionSubscription {
|
|
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 TradeDetectionSubscription
|
|
12
|
-
*/
|
|
13
|
-
'account_id': string;
|
|
14
|
-
/**
|
|
15
|
-
* Monthly subscription cost as a decimal string.
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof TradeDetectionSubscription
|
|
18
|
-
*/
|
|
19
|
-
'cost': string;
|
|
20
|
-
/**
|
|
21
|
-
* How often the subscribed account is checked for new trades.
|
|
22
|
-
* @type {number}
|
|
23
|
-
* @memberof TradeDetectionSubscription
|
|
24
|
-
*/
|
|
25
|
-
'check_interval_seconds': number;
|
|
26
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @export
|
|
4
|
-
* @interface TradingInstrument
|
|
5
|
-
*/
|
|
6
|
-
export interface TradingInstrument {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* The instrument\'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)
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof TradingInstrument
|
|
12
|
-
*/
|
|
13
|
-
'symbol': string;
|
|
14
|
-
/**
|
|
15
|
-
* The instrument\'s type
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof TradingInstrument
|
|
18
|
-
*/
|
|
19
|
-
'type': TradingInstrumentTypeEnum;
|
|
20
|
-
}
|
|
21
|
-
type TradingInstrumentTypeEnum = 'EQUITY' | 'OPTION' | 'CRYPTOCURRENCY' | 'CRYPTOCURRENCY_PAIR';
|
|
22
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { CryptocurrencyPair } from './cryptocurrency-pair';
|
|
2
|
-
/**
|
|
3
|
-
* The instruments
|
|
4
|
-
* @export
|
|
5
|
-
* @interface TradingSearchCryptocurrencyPairInstruments200Response
|
|
6
|
-
*/
|
|
7
|
-
export interface TradingSearchCryptocurrencyPairInstruments200Response {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @type {Array<CryptocurrencyPair>}
|
|
12
|
-
* @memberof TradingSearchCryptocurrencyPairInstruments200Response
|
|
13
|
-
*/
|
|
14
|
-
'items': Array<CryptocurrencyPair>;
|
|
15
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 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.
|
|
3
|
-
* @export
|
|
4
|
-
* @enum {string}
|
|
5
|
-
*/
|
|
6
|
-
export type TradingSession = 'REGULAR' | 'EXTENDED';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Trail configuration for trailing stop orders.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface TrailingStop
|
|
5
|
-
*/
|
|
6
|
-
export interface TrailingStop {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* The trail amount. Interpreted as dollars if `type` is `DOLLAR`, or a percentage if `type` is `PERCENT`.
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof TrailingStop
|
|
12
|
-
*/
|
|
13
|
-
'amount': string;
|
|
14
|
-
/**
|
|
15
|
-
* Whether the trail `amount` is a dollar amount (`DOLLAR`) or a percentage (`PERCENT`). For example, if `amount` is \"0.60\" and `type` is `DOLLAR`, the stop price will trail the market price by $0.60. If `amount` is \"5\" and `type` is `PERCENT`, the stop price will trail the market price by 5%.
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof TrailingStop
|
|
18
|
-
*/
|
|
19
|
-
'type': TrailingStopTypeEnum;
|
|
20
|
-
}
|
|
21
|
-
type TrailingStopTypeEnum = 'DOLLAR' | 'PERCENT';
|
|
22
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Status of account transaction sync. SnapTrade syncs transactions from the brokerage under the following conditions: 1. Initial connection - SnapTrade syncs all transactions from the brokerage account as far back as the brokerage allows. Check [our integrations doc](https://support.snaptrade.com/brokerages-table?v=6fab8012ade6441fa0c6d9af9c55ce3a) for details on how far back we sync for each brokerage. 2. Daily sync - Once a day SnapTrade syncs new transactions from the brokerage. 3. Manual sync - You can trigger an incremental sync of transactions with the [transactions sync](/reference/Experimental%20endpoints/Connections_syncBrokerageAuthorizationTransactions) endpoint.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface TransactionsStatus
|
|
5
|
-
*/
|
|
6
|
-
export interface TransactionsStatus {
|
|
7
|
-
/**
|
|
8
|
-
* Indicates if the initial sync of transactions has been completed. For accounts with a large number of transactions, the initial sync may take a while to complete.
|
|
9
|
-
* @type {boolean}
|
|
10
|
-
* @memberof TransactionsStatus
|
|
11
|
-
*/
|
|
12
|
-
'initial_sync_completed'?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* All transactions up to this date have been successfully synced. Please note that this is not the date of the last transaction, nor the last time SnapTrade attempted to sync transactions.
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof TransactionsStatus
|
|
17
|
-
*/
|
|
18
|
-
'last_successful_sync'?: string | null;
|
|
19
|
-
/**
|
|
20
|
-
* The date of the first transaction in the account known to SnapTrade. It\'s possible that the account has transactions before this date, but they are not known to SnapTrade.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof TransactionsStatus
|
|
23
|
-
*/
|
|
24
|
-
'first_transaction_date'?: string | null;
|
|
25
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { AdrInstrument } from './adr-instrument';
|
|
2
|
-
import { CefInstrument } from './cef-instrument';
|
|
3
|
-
import { CryptoInstrument } from './crypto-instrument';
|
|
4
|
-
import { EtfInstrument } from './etf-instrument';
|
|
5
|
-
import { MutualFundInstrument } from './mutual-fund-instrument';
|
|
6
|
-
import { OtherInstrument } from './other-instrument';
|
|
7
|
-
import { StockInstrument } from './stock-instrument';
|
|
8
|
-
/**
|
|
9
|
-
* @type UnderlyingOptionInstrument
|
|
10
|
-
* The underlying instrument for an option.
|
|
11
|
-
* @export
|
|
12
|
-
*/
|
|
13
|
-
export type UnderlyingOptionInstrument = {
|
|
14
|
-
kind: 'adr';
|
|
15
|
-
} & AdrInstrument | {
|
|
16
|
-
kind: 'cef';
|
|
17
|
-
} & CefInstrument | {
|
|
18
|
-
kind: 'crypto';
|
|
19
|
-
} & CryptoInstrument | {
|
|
20
|
-
kind: 'etf';
|
|
21
|
-
} & EtfInstrument | {
|
|
22
|
-
kind: 'mutualfund';
|
|
23
|
-
} & MutualFundInstrument | {
|
|
24
|
-
kind: 'other';
|
|
25
|
-
} & OtherInstrument | {
|
|
26
|
-
kind: 'stock';
|
|
27
|
-
} & StockInstrument;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The exchange on which the security is listed and traded.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface UnderlyingSymbolExchange
|
|
5
|
-
*/
|
|
6
|
-
export interface UnderlyingSymbolExchange {
|
|
7
|
-
/**
|
|
8
|
-
*
|
|
9
|
-
* @type {string}
|
|
10
|
-
* @memberof UnderlyingSymbolExchange
|
|
11
|
-
*/
|
|
12
|
-
'id'?: string;
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof UnderlyingSymbolExchange
|
|
17
|
-
*/
|
|
18
|
-
'code'?: string;
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof UnderlyingSymbolExchange
|
|
23
|
-
*/
|
|
24
|
-
'mic_code'?: string;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof UnderlyingSymbolExchange
|
|
29
|
-
*/
|
|
30
|
-
'name'?: string;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof UnderlyingSymbolExchange
|
|
35
|
-
*/
|
|
36
|
-
'timezone'?: string;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof UnderlyingSymbolExchange
|
|
41
|
-
*/
|
|
42
|
-
'start_time'?: string;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof UnderlyingSymbolExchange
|
|
47
|
-
*/
|
|
48
|
-
'close_time'?: string;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof UnderlyingSymbolExchange
|
|
53
|
-
*/
|
|
54
|
-
'suffix'?: string | null;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {boolean}
|
|
58
|
-
* @memberof UnderlyingSymbolExchange
|
|
59
|
-
*/
|
|
60
|
-
'allows_cryptocurrency_symbols'?: boolean;
|
|
61
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The type of security. For example, \"Common Stock\" or \"ETF\".
|
|
3
|
-
* @export
|
|
4
|
-
* @interface UnderlyingSymbolType
|
|
5
|
-
*/
|
|
6
|
-
export interface UnderlyingSymbolType {
|
|
7
|
-
/**
|
|
8
|
-
* Unique identifier for the security type within SnapTrade. This is the ID used to reference the security type in SnapTrade API calls.
|
|
9
|
-
* @type {string}
|
|
10
|
-
* @memberof UnderlyingSymbolType
|
|
11
|
-
*/
|
|
12
|
-
'id'?: string;
|
|
13
|
-
/**
|
|
14
|
-
* A short code representing the security type. For example, \"cs\" for Common Stock. Here are some common values: - `ad` - ADR - `bnd` - Bond - `cs` - Common Stock - `cef` - Closed End Fund - `crypto` - Cryptocurrency - `et` - ETF - `oef` - Open Ended Fund - `pm` - Precious Metals - `ps` - Preferred Stock - `rt` - Right - `struct` - Structured Product - `ut` - Unit - `wi` - When Issued - `wt` - Warrant
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof UnderlyingSymbolType
|
|
17
|
-
*/
|
|
18
|
-
'code'?: string;
|
|
19
|
-
/**
|
|
20
|
-
* A human-readable description of the security type. For example, \"Common Stock\" or \"ETF\".
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof UnderlyingSymbolType
|
|
23
|
-
*/
|
|
24
|
-
'description'?: string;
|
|
25
|
-
/**
|
|
26
|
-
* This field is deprecated and should not be used. Please reach out to SnapTrade support if you have a valid use case for this.
|
|
27
|
-
* @type {boolean}
|
|
28
|
-
* @memberof UnderlyingSymbolType
|
|
29
|
-
* @deprecated
|
|
30
|
-
*/
|
|
31
|
-
'is_supported'?: boolean;
|
|
32
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { Currency } from './currency';
|
|
2
|
-
import { StockInstrumentFigiInstrument } from './stock-instrument-figi-instrument';
|
|
3
|
-
import { SymbolCurrency } from './symbol-currency';
|
|
4
|
-
import { UnderlyingSymbolExchange } from './underlying-symbol-exchange';
|
|
5
|
-
import { UnderlyingSymbolType } from './underlying-symbol-type';
|
|
6
|
-
/**
|
|
7
|
-
* Symbol object for the underlying security of an option.
|
|
8
|
-
* @export
|
|
9
|
-
* @interface UnderlyingSymbol
|
|
10
|
-
*/
|
|
11
|
-
export interface UnderlyingSymbol {
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
/**
|
|
14
|
-
* Unique identifier for the symbol within SnapTrade. This is the ID used to reference the symbol in SnapTrade API calls.
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof UnderlyingSymbol
|
|
17
|
-
*/
|
|
18
|
-
'id'?: string;
|
|
19
|
-
/**
|
|
20
|
-
* 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.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof UnderlyingSymbol
|
|
23
|
-
*/
|
|
24
|
-
'symbol'?: string;
|
|
25
|
-
/**
|
|
26
|
-
* The raw symbol is `symbol` with the exchange suffix removed. For example, if `symbol` is \"VAB.TO\", then `raw_symbol` is \"VAB\".
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof UnderlyingSymbol
|
|
29
|
-
*/
|
|
30
|
-
'raw_symbol'?: string;
|
|
31
|
-
/**
|
|
32
|
-
* A human-readable description of the security. This is usually the company name or ETF name.
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof UnderlyingSymbol
|
|
35
|
-
*/
|
|
36
|
-
'description'?: string | null;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {SymbolCurrency}
|
|
40
|
-
* @memberof UnderlyingSymbol
|
|
41
|
-
*/
|
|
42
|
-
'currency'?: SymbolCurrency;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {UnderlyingSymbolExchange}
|
|
46
|
-
* @memberof UnderlyingSymbol
|
|
47
|
-
*/
|
|
48
|
-
'exchange'?: UnderlyingSymbolExchange;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {UnderlyingSymbolType}
|
|
52
|
-
* @memberof UnderlyingSymbol
|
|
53
|
-
*/
|
|
54
|
-
'type'?: UnderlyingSymbolType;
|
|
55
|
-
/**
|
|
56
|
-
* 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.
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof UnderlyingSymbol
|
|
59
|
-
*/
|
|
60
|
-
'figi_code'?: string | null;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {StockInstrumentFigiInstrument}
|
|
64
|
-
* @memberof UnderlyingSymbol
|
|
65
|
-
*/
|
|
66
|
-
'figi_instrument'?: StockInstrumentFigiInstrument | null;
|
|
67
|
-
/**
|
|
68
|
-
* This field is deprecated and should not be used. Please reach out to SnapTrade support if you have a valid use case for this.
|
|
69
|
-
* @type {Array<Currency>}
|
|
70
|
-
* @memberof UnderlyingSymbol
|
|
71
|
-
* @deprecated
|
|
72
|
-
*/
|
|
73
|
-
'currencies'?: Array<Currency>;
|
|
74
|
-
}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { AccountSimple } from './account-simple';
|
|
2
|
-
import { AccountUniversalActivityCurrency } from './account-universal-activity-currency';
|
|
3
|
-
import { AccountUniversalActivityOptionSymbol } from './account-universal-activity-option-symbol';
|
|
4
|
-
import { AccountUniversalActivitySymbol } from './account-universal-activity-symbol';
|
|
5
|
-
/**
|
|
6
|
-
* A transaction or activity from an institution
|
|
7
|
-
* @export
|
|
8
|
-
* @interface UniversalActivity
|
|
9
|
-
*/
|
|
10
|
-
export interface UniversalActivity {
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
/**
|
|
13
|
-
* Unique identifier for the transaction. This is the ID used to reference the transaction in SnapTrade. Please note that this ID _can_ change if the transaction is deleted and re-added. Under normal circumstances, SnapTrade does not delete transactions. The only time this would happen is if SnapTrade re-fetches and reprocesses the data from the brokerage, which is rare. If you require a stable ID, please let us know and we can work with you to provide one.
|
|
14
|
-
* @type {string}
|
|
15
|
-
* @memberof UniversalActivity
|
|
16
|
-
*/
|
|
17
|
-
'id'?: string;
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {AccountSimple}
|
|
21
|
-
* @memberof UniversalActivity
|
|
22
|
-
*/
|
|
23
|
-
'account'?: AccountSimple;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {AccountUniversalActivitySymbol}
|
|
27
|
-
* @memberof UniversalActivity
|
|
28
|
-
*/
|
|
29
|
-
'symbol'?: AccountUniversalActivitySymbol | null;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {AccountUniversalActivityOptionSymbol}
|
|
33
|
-
* @memberof UniversalActivity
|
|
34
|
-
*/
|
|
35
|
-
'option_symbol'?: AccountUniversalActivityOptionSymbol | null;
|
|
36
|
-
/**
|
|
37
|
-
* The price of the security for the transaction. This is mostly applicable to `BUY`, `SELL`, and `DIVIDEND` transactions.
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof UniversalActivity
|
|
40
|
-
*/
|
|
41
|
-
'price'?: number;
|
|
42
|
-
/**
|
|
43
|
-
* The number of units of the security for the transaction. This is mostly applicable to `BUY`, `SELL`, and `DIVIDEND` transactions.
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof UniversalActivity
|
|
46
|
-
*/
|
|
47
|
-
'units'?: number;
|
|
48
|
-
/**
|
|
49
|
-
* The amount of the transaction denominated in `currency`. This can be positive or negative. In general, transactions that positively affect the account balance (like sell, deposits, dividends, etc) will have a positive amount, while transactions that negatively affect the account balance (like buy, withdrawals, fees, etc) will have a negative amount.
|
|
50
|
-
* @type {number}
|
|
51
|
-
* @memberof UniversalActivity
|
|
52
|
-
*/
|
|
53
|
-
'amount'?: number | null;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {AccountUniversalActivityCurrency}
|
|
57
|
-
* @memberof UniversalActivity
|
|
58
|
-
*/
|
|
59
|
-
'currency'?: AccountUniversalActivityCurrency;
|
|
60
|
-
/**
|
|
61
|
-
* A string representing the type of transaction. SnapTrade does a best effort to categorize the brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `OPTIONEXPIRATION` - Option expiration event. `option_symbol` contains the related option contract info. - `OPTIONASSIGNMENT` - Option assignment event. `option_symbol` contains the related option contract info. - `OPTIONEXERCISE` - Option exercise event. `option_symbol` contains the related option contract info.
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof UniversalActivity
|
|
64
|
-
*/
|
|
65
|
-
'type'?: string;
|
|
66
|
-
/**
|
|
67
|
-
* If an option `BUY` or `SELL` transaction, this further specifies the type of action. The possible values are: - BUY_TO_OPEN - BUY_TO_CLOSE - SELL_TO_OPEN - SELL_TO_CLOSE
|
|
68
|
-
* @type {string}
|
|
69
|
-
* @memberof UniversalActivity
|
|
70
|
-
*/
|
|
71
|
-
'option_type'?: string;
|
|
72
|
-
/**
|
|
73
|
-
* A human-readable description of the transaction. This is usually the brokerage\'s description of the transaction.
|
|
74
|
-
* @type {string}
|
|
75
|
-
* @memberof UniversalActivity
|
|
76
|
-
*/
|
|
77
|
-
'description'?: string;
|
|
78
|
-
/**
|
|
79
|
-
* The recorded time for the transaction. The granularity of this timestamp depends on the brokerage. Some brokerages provide the exact time of the transaction, while others provide only the date. Please check the [integrations page](https://support.snaptrade.com/brokerages-table?v=6fab8012ade6441fa0c6d9af9c55ce3a) for the specific brokerage to see the granularity of the timestamps. Note that even though the field is named `trade_date`, it can represent any type of transaction, not just trades.
|
|
80
|
-
* @type {string}
|
|
81
|
-
* @memberof UniversalActivity
|
|
82
|
-
*/
|
|
83
|
-
'trade_date'?: string | null;
|
|
84
|
-
/**
|
|
85
|
-
* The date on which the transaction is settled.
|
|
86
|
-
* @type {string}
|
|
87
|
-
* @memberof UniversalActivity
|
|
88
|
-
*/
|
|
89
|
-
'settlement_date'?: string;
|
|
90
|
-
/**
|
|
91
|
-
* Any fee associated with the transaction if provided by the brokerage.
|
|
92
|
-
* @type {number}
|
|
93
|
-
* @memberof UniversalActivity
|
|
94
|
-
*/
|
|
95
|
-
'fee'?: number;
|
|
96
|
-
/**
|
|
97
|
-
* The forex conversion rate involved in the transaction if provided by the brokerage. Used in cases where securities of one currency are purchased in a different currency, and the forex conversion is automatic. In those cases, price, amount and fee will be in the top level currency (activity -> currency)
|
|
98
|
-
* @type {number}
|
|
99
|
-
* @memberof UniversalActivity
|
|
100
|
-
*/
|
|
101
|
-
'fx_rate'?: number | null;
|
|
102
|
-
/**
|
|
103
|
-
* The institution that the transaction is associated with. This is usually the brokerage name.
|
|
104
|
-
* @type {string}
|
|
105
|
-
* @memberof UniversalActivity
|
|
106
|
-
*/
|
|
107
|
-
'institution'?: string;
|
|
108
|
-
/**
|
|
109
|
-
* Reference ID from brokerage used to identify related transactions. For example if an order comprises of several transactions (buy, fee, fx), they can be grouped if they share the same `external_reference_id`
|
|
110
|
-
* @type {string}
|
|
111
|
-
* @memberof UniversalActivity
|
|
112
|
-
*/
|
|
113
|
-
'external_reference_id'?: string | null;
|
|
114
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { Currency } from './currency';
|
|
2
|
-
import { SecurityType } from './security-type';
|
|
3
|
-
import { StockInstrumentFigiInstrument } from './stock-instrument-figi-instrument';
|
|
4
|
-
import { SymbolCurrency } from './symbol-currency';
|
|
5
|
-
import { SymbolExchange } from './symbol-exchange';
|
|
6
|
-
/**
|
|
7
|
-
* Uniquely describes a single security + exchange combination across all brokerages.
|
|
8
|
-
* @export
|
|
9
|
-
* @interface UniversalSymbol
|
|
10
|
-
*/
|
|
11
|
-
export interface UniversalSymbol {
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
/**
|
|
14
|
-
* Unique identifier for the symbol within SnapTrade. This is the ID used to reference the symbol in SnapTrade API calls.
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof UniversalSymbol
|
|
17
|
-
*/
|
|
18
|
-
'id': string;
|
|
19
|
-
/**
|
|
20
|
-
* 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.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof UniversalSymbol
|
|
23
|
-
*/
|
|
24
|
-
'symbol': string;
|
|
25
|
-
/**
|
|
26
|
-
* The raw symbol is `symbol` with the exchange suffix removed. For example, if `symbol` is \"VAB.TO\", then `raw_symbol` is \"VAB\".
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof UniversalSymbol
|
|
29
|
-
*/
|
|
30
|
-
'raw_symbol': string;
|
|
31
|
-
/**
|
|
32
|
-
* A human-readable description of the security. This is usually the company name or ETF name.
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof UniversalSymbol
|
|
35
|
-
*/
|
|
36
|
-
'description'?: string | null;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {SymbolCurrency}
|
|
40
|
-
* @memberof UniversalSymbol
|
|
41
|
-
*/
|
|
42
|
-
'currency': SymbolCurrency;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {SymbolExchange}
|
|
46
|
-
* @memberof UniversalSymbol
|
|
47
|
-
*/
|
|
48
|
-
'exchange'?: SymbolExchange;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {SecurityType}
|
|
52
|
-
* @memberof UniversalSymbol
|
|
53
|
-
*/
|
|
54
|
-
'type': SecurityType;
|
|
55
|
-
/**
|
|
56
|
-
* 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.
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof UniversalSymbol
|
|
59
|
-
*/
|
|
60
|
-
'figi_code'?: string | null;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {StockInstrumentFigiInstrument}
|
|
64
|
-
* @memberof UniversalSymbol
|
|
65
|
-
*/
|
|
66
|
-
'figi_instrument'?: StockInstrumentFigiInstrument | null;
|
|
67
|
-
/**
|
|
68
|
-
* This field is deprecated and should not be used. Please reach out to SnapTrade support if you have a valid use case for this.
|
|
69
|
-
* @type {Array<Currency>}
|
|
70
|
-
* @memberof UniversalSymbol
|
|
71
|
-
* @deprecated
|
|
72
|
-
*/
|
|
73
|
-
'currencies': Array<Currency>;
|
|
74
|
-
}
|