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,127 +0,0 @@
|
|
|
1
|
-
import { MonthlyDividends } from './monthly-dividends';
|
|
2
|
-
import { NetContributions } from './net-contributions';
|
|
3
|
-
import { NetDividend } from './net-dividend';
|
|
4
|
-
import { PastValue } from './past-value';
|
|
5
|
-
import { SubPeriodReturnRate } from './sub-period-return-rate';
|
|
6
|
-
/**
|
|
7
|
-
* Performance Custom Response Object
|
|
8
|
-
* @export
|
|
9
|
-
* @interface PerformanceCustom
|
|
10
|
-
*/
|
|
11
|
-
export interface PerformanceCustom {
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @type {Array<PastValue>}
|
|
16
|
-
* @memberof PerformanceCustom
|
|
17
|
-
*/
|
|
18
|
-
'totalEquityTimeframe'?: Array<PastValue>;
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {NetContributions}
|
|
22
|
-
* @memberof PerformanceCustom
|
|
23
|
-
*/
|
|
24
|
-
'contributions'?: NetContributions;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {Array<PastValue>}
|
|
28
|
-
* @memberof PerformanceCustom
|
|
29
|
-
*/
|
|
30
|
-
'contributionTimeframe'?: Array<PastValue>;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {Array<PastValue>}
|
|
34
|
-
* @memberof PerformanceCustom
|
|
35
|
-
*/
|
|
36
|
-
'contributionTimeframeCumulative'?: Array<PastValue>;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {Array<PastValue>}
|
|
40
|
-
* @memberof PerformanceCustom
|
|
41
|
-
*/
|
|
42
|
-
'withdrawalTimeframe'?: Array<PastValue>;
|
|
43
|
-
/**
|
|
44
|
-
* Current streak of cosecutive months where contributions were made
|
|
45
|
-
* @type {number}
|
|
46
|
-
* @memberof PerformanceCustom
|
|
47
|
-
*/
|
|
48
|
-
'contributionStreak'?: number | null;
|
|
49
|
-
/**
|
|
50
|
-
* Number of months in the timeframe with contributions
|
|
51
|
-
* @type {number}
|
|
52
|
-
* @memberof PerformanceCustom
|
|
53
|
-
*/
|
|
54
|
-
'contributionMonthsContributed'?: number | null;
|
|
55
|
-
/**
|
|
56
|
-
* Total months in timeframe
|
|
57
|
-
* @type {number}
|
|
58
|
-
* @memberof PerformanceCustom
|
|
59
|
-
*/
|
|
60
|
-
'contributionTotalMonths'?: number | null;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {Array<NetDividend>}
|
|
64
|
-
* @memberof PerformanceCustom
|
|
65
|
-
*/
|
|
66
|
-
'dividends'?: Array<NetDividend>;
|
|
67
|
-
/**
|
|
68
|
-
* Total dividends received over the timeframe
|
|
69
|
-
* @type {number}
|
|
70
|
-
* @memberof PerformanceCustom
|
|
71
|
-
*/
|
|
72
|
-
'dividendIncome'?: number | null;
|
|
73
|
-
/**
|
|
74
|
-
* Average dividends received per month over the timeframe
|
|
75
|
-
* @type {number}
|
|
76
|
-
* @memberof PerformanceCustom
|
|
77
|
-
*/
|
|
78
|
-
'monthlyDividends'?: number | null;
|
|
79
|
-
/**
|
|
80
|
-
* list of tickers which may not be supported or may not have accurate price data
|
|
81
|
-
* @type {Array<string>}
|
|
82
|
-
* @memberof PerformanceCustom
|
|
83
|
-
*/
|
|
84
|
-
'badTickers'?: Array<string>;
|
|
85
|
-
/**
|
|
86
|
-
*
|
|
87
|
-
* @type {Array<MonthlyDividends>}
|
|
88
|
-
* @memberof PerformanceCustom
|
|
89
|
-
*/
|
|
90
|
-
'dividendTimeline'?: Array<MonthlyDividends>;
|
|
91
|
-
/**
|
|
92
|
-
* commissions incurred during the timeframe
|
|
93
|
-
* @type {number}
|
|
94
|
-
* @memberof PerformanceCustom
|
|
95
|
-
*/
|
|
96
|
-
'commissions'?: number | null;
|
|
97
|
-
/**
|
|
98
|
-
* forex fees incurred during the timeframe
|
|
99
|
-
* @type {number}
|
|
100
|
-
* @memberof PerformanceCustom
|
|
101
|
-
*/
|
|
102
|
-
'forexFees'?: number | null;
|
|
103
|
-
/**
|
|
104
|
-
* other fees incurred during the timeframe
|
|
105
|
-
* @type {number}
|
|
106
|
-
* @memberof PerformanceCustom
|
|
107
|
-
*/
|
|
108
|
-
'fees'?: number | null;
|
|
109
|
-
/**
|
|
110
|
-
* The return rate over the timeframe. Annualized if timeframe is longer than 1 year
|
|
111
|
-
* @type {number}
|
|
112
|
-
* @memberof PerformanceCustom
|
|
113
|
-
*/
|
|
114
|
-
'rateOfReturn'?: number | null;
|
|
115
|
-
/**
|
|
116
|
-
*
|
|
117
|
-
* @type {Array<SubPeriodReturnRate>}
|
|
118
|
-
* @memberof PerformanceCustom
|
|
119
|
-
*/
|
|
120
|
-
'returnRateTimeframe'?: Array<SubPeriodReturnRate>;
|
|
121
|
-
/**
|
|
122
|
-
* Whether the user has detailed mode enabled (more frequent data points for totalEquity and contribution timeframes)
|
|
123
|
-
* @type {boolean}
|
|
124
|
-
* @memberof PerformanceCustom
|
|
125
|
-
*/
|
|
126
|
-
'detailedMode'?: boolean;
|
|
127
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The \'position currency\' (`price` and `average_purchase_price`). This currency can potentially be different from the \'listing currency\' of the security. The \'listing currency\' is what\'s quoted on the listing exchange, while the \'position currency\' is what the brokerage uses to hold and value your position.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface PositionCurrency
|
|
5
|
-
*/
|
|
6
|
-
export interface PositionCurrency {
|
|
7
|
-
/**
|
|
8
|
-
* Unique identifier for the currency. This is the UUID used to reference the currency in SnapTrade.
|
|
9
|
-
* @type {string}
|
|
10
|
-
* @memberof PositionCurrency
|
|
11
|
-
*/
|
|
12
|
-
'id'?: string;
|
|
13
|
-
/**
|
|
14
|
-
* The ISO-4217 currency code for the currency.
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof PositionCurrency
|
|
17
|
-
*/
|
|
18
|
-
'code'?: string;
|
|
19
|
-
/**
|
|
20
|
-
* A human-friendly name of the currency.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof PositionCurrency
|
|
23
|
-
*/
|
|
24
|
-
'name'?: string;
|
|
25
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { UniversalSymbol } from './universal-symbol';
|
|
2
|
-
/**
|
|
3
|
-
* Uniquely describes a security for the position within an account. The distinction between this and the `symbol` child property is that this object is specific to a position within an account, while the `symbol` child property is universal across all brokerage accounts. The caller should rely on the `symbol` child property for most use cases.
|
|
4
|
-
* @export
|
|
5
|
-
* @interface PositionSymbol
|
|
6
|
-
*/
|
|
7
|
-
export interface PositionSymbol {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @type {UniversalSymbol}
|
|
12
|
-
* @memberof PositionSymbol
|
|
13
|
-
*/
|
|
14
|
-
'symbol'?: UniversalSymbol;
|
|
15
|
-
/**
|
|
16
|
-
* A unique ID for the security within SnapTrade, scoped to the brokerage account that the security belongs to. This is a legacy field and should not be used. Do not rely on this being a stable ID as it can change.
|
|
17
|
-
* @type {string}
|
|
18
|
-
* @memberof PositionSymbol
|
|
19
|
-
* @deprecated
|
|
20
|
-
*/
|
|
21
|
-
'id'?: string;
|
|
22
|
-
/**
|
|
23
|
-
* This field is deprecated and the caller should use the `symbol` child property\'s `description` instead.
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof PositionSymbol
|
|
26
|
-
* @deprecated
|
|
27
|
-
*/
|
|
28
|
-
'description'?: string;
|
|
29
|
-
/**
|
|
30
|
-
* This field is deprecated and should not be used. Please reach out to SnapTrade support if you have a valid use case for this.
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof PositionSymbol
|
|
33
|
-
* @deprecated
|
|
34
|
-
*/
|
|
35
|
-
'local_id'?: string | null;
|
|
36
|
-
/**
|
|
37
|
-
* This field is deprecated and should not be used. Please reach out to SnapTrade support if you have a valid use case for this.
|
|
38
|
-
* @type {boolean}
|
|
39
|
-
* @memberof PositionSymbol
|
|
40
|
-
* @deprecated
|
|
41
|
-
*/
|
|
42
|
-
'is_quotable'?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* This field is deprecated and should not be used. Please reach out to SnapTrade support if you have a valid use case for this.
|
|
45
|
-
* @type {boolean}
|
|
46
|
-
* @memberof PositionSymbol
|
|
47
|
-
* @deprecated
|
|
48
|
-
*/
|
|
49
|
-
'is_tradable'?: boolean;
|
|
50
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { PositionCurrency } from './position-currency';
|
|
2
|
-
import { PositionSymbol } from './position-symbol';
|
|
3
|
-
import { TaxLot } from './tax-lot';
|
|
4
|
-
/**
|
|
5
|
-
* Describes a single stock/ETF/crypto/mutual fund position in an account.
|
|
6
|
-
* @export
|
|
7
|
-
* @interface Position
|
|
8
|
-
*/
|
|
9
|
-
export interface Position {
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
* @type {PositionSymbol}
|
|
14
|
-
* @memberof Position
|
|
15
|
-
*/
|
|
16
|
-
'symbol'?: PositionSymbol;
|
|
17
|
-
/**
|
|
18
|
-
* The number of shares of the position. This can be fractional or integer units. A positive number indicates a long position, while a negative number indicates a short position.
|
|
19
|
-
* @type {number}
|
|
20
|
-
* @memberof Position
|
|
21
|
-
*/
|
|
22
|
-
'units'?: number | null;
|
|
23
|
-
/**
|
|
24
|
-
* Last known market price for the symbol. The freshness of this price depends on the brokerage. Some brokerages provide real-time prices, while others provide delayed prices. It is recommended that you rely on your own third-party market data provider for most up to date prices.
|
|
25
|
-
* @type {number}
|
|
26
|
-
* @memberof Position
|
|
27
|
-
*/
|
|
28
|
-
'price'?: number | null;
|
|
29
|
-
/**
|
|
30
|
-
* The profit or loss on the position since it was opened. This is calculated as the difference between the current market value of the position and the total cost of the position. It is recommended to calculate this value using the average purchase price and the current market price yourself, instead of relying on this field.
|
|
31
|
-
* @type {number}
|
|
32
|
-
* @memberof Position
|
|
33
|
-
*/
|
|
34
|
-
'open_pnl'?: number | null;
|
|
35
|
-
/**
|
|
36
|
-
* Cost basis _per share_ of this position.
|
|
37
|
-
* @type {number}
|
|
38
|
-
* @memberof Position
|
|
39
|
-
*/
|
|
40
|
-
'average_purchase_price'?: number | null;
|
|
41
|
-
/**
|
|
42
|
-
* Deprecated, use the `units` field for both fractional and integer units going forward
|
|
43
|
-
* @type {number}
|
|
44
|
-
* @memberof Position
|
|
45
|
-
* @deprecated
|
|
46
|
-
*/
|
|
47
|
-
'fractional_units'?: number | null;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {PositionCurrency}
|
|
51
|
-
* @memberof Position
|
|
52
|
-
*/
|
|
53
|
-
'currency'?: PositionCurrency;
|
|
54
|
-
/**
|
|
55
|
-
* If the position is a cash equivalent (usually a money market fund) that is also counted in account cash balance and buying power
|
|
56
|
-
* @type {boolean}
|
|
57
|
-
* @memberof Position
|
|
58
|
-
*/
|
|
59
|
-
'cash_equivalent'?: boolean | null;
|
|
60
|
-
/**
|
|
61
|
-
* List of tax lots for the given position (disabled by default, contact support if needed)
|
|
62
|
-
* @type {Array<TaxLot>}
|
|
63
|
-
* @memberof Position
|
|
64
|
-
*/
|
|
65
|
-
'tax_lots'?: Array<TaxLot>;
|
|
66
|
-
}
|
package/dist/models/position.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Individual rate of return object with return percent and timeframe
|
|
3
|
-
* @export
|
|
4
|
-
* @interface RateOfReturnObject
|
|
5
|
-
*/
|
|
6
|
-
export interface RateOfReturnObject {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* The timeframe this return percent is reflecting
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof RateOfReturnObject
|
|
12
|
-
*/
|
|
13
|
-
'timeframe'?: RateOfReturnObjectTimeframeEnum;
|
|
14
|
-
/**
|
|
15
|
-
* The percent return of the portfolio, directly from the brokerage. 5.97 indicates a 5.97% return over the timeframe
|
|
16
|
-
* @type {number}
|
|
17
|
-
* @memberof RateOfReturnObject
|
|
18
|
-
*/
|
|
19
|
-
'return_percent'?: number;
|
|
20
|
-
/**
|
|
21
|
-
* The date this was fetched
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof RateOfReturnObject
|
|
24
|
-
*/
|
|
25
|
-
'created_date'?: string;
|
|
26
|
-
}
|
|
27
|
-
type RateOfReturnObjectTimeframeEnum = 'ALL' | '1Y' | 'YTD' | '1M' | '1W' | '1D';
|
|
28
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { RateOfReturnObject } from './rate-of-return-object';
|
|
2
|
-
/**
|
|
3
|
-
* List of return rates with their timeframe
|
|
4
|
-
* @export
|
|
5
|
-
* @interface RateOfReturnResponse
|
|
6
|
-
*/
|
|
7
|
-
export interface RateOfReturnResponse {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
* List of return percentages
|
|
11
|
-
* @type {Array<RateOfReturnObject>}
|
|
12
|
-
* @memberof RateOfReturnResponse
|
|
13
|
-
*/
|
|
14
|
-
'data'?: Array<RateOfReturnObject>;
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { AccountOrderRecord } from './account-order-record';
|
|
2
|
-
/**
|
|
3
|
-
* List of orders executed within the last 24 hours
|
|
4
|
-
* @export
|
|
5
|
-
* @interface RecentOrdersResponse
|
|
6
|
-
*/
|
|
7
|
-
export interface RecentOrdersResponse {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
* List of orders executed in the last 24 hours
|
|
11
|
-
* @type {Array<AccountOrderRecord>}
|
|
12
|
-
* @memberof RecentOrdersResponse
|
|
13
|
-
*/
|
|
14
|
-
'orders'?: Array<AccountOrderRecord>;
|
|
15
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The type of security. For example, \"Common Stock\" or \"ETF\".
|
|
3
|
-
* @export
|
|
4
|
-
* @interface SecurityType
|
|
5
|
-
*/
|
|
6
|
-
export interface SecurityType {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* Unique identifier for the security type within SnapTrade. This is the ID used to reference the security type in SnapTrade API calls.
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof SecurityType
|
|
12
|
-
*/
|
|
13
|
-
'id'?: string;
|
|
14
|
-
/**
|
|
15
|
-
* 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
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof SecurityType
|
|
18
|
-
*/
|
|
19
|
-
'code'?: string;
|
|
20
|
-
/**
|
|
21
|
-
* A human-readable description of the security type. For example, \"Common Stock\" or \"ETF\".
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof SecurityType
|
|
24
|
-
*/
|
|
25
|
-
'description'?: string;
|
|
26
|
-
/**
|
|
27
|
-
* This field is deprecated and should not be used. Please reach out to SnapTrade support if you have a valid use case for this.
|
|
28
|
-
* @type {boolean}
|
|
29
|
-
* @memberof SecurityType
|
|
30
|
-
* @deprecated
|
|
31
|
-
*/
|
|
32
|
-
'is_supported'?: boolean;
|
|
33
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @export
|
|
4
|
-
* @interface SessionEvent
|
|
5
|
-
*/
|
|
6
|
-
export interface SessionEvent {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof SessionEvent
|
|
12
|
-
*/
|
|
13
|
-
'id'?: string;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof SessionEvent
|
|
18
|
-
*/
|
|
19
|
-
'session_event_type'?: SessionEventSessionEventTypeEnum;
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof SessionEvent
|
|
24
|
-
*/
|
|
25
|
-
'session_id'?: string;
|
|
26
|
-
/**
|
|
27
|
-
* 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.
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof SessionEvent
|
|
30
|
-
*/
|
|
31
|
-
'user_id'?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Time
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof SessionEvent
|
|
36
|
-
*/
|
|
37
|
-
'created_date'?: string;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {number}
|
|
41
|
-
* @memberof SessionEvent
|
|
42
|
-
*/
|
|
43
|
-
'brokerage_status_code'?: number | null;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof SessionEvent
|
|
48
|
-
*/
|
|
49
|
-
'brokerage_authorization_id'?: string;
|
|
50
|
-
}
|
|
51
|
-
type SessionEventSessionEventTypeEnum = 'OAUTH_REDIRECT' | 'DISCLAIMER_ACCEPTED' | 'BROKERAGE_CONNECTION_INITIATED' | 'BROKERAGE_RECONNECT_INITIATED' | 'BROKERAGE_AUTHENTICATION' | 'OAUTH_BROKERAGE_AUTHENTICATION' | 'MFA_REQUESTED' | 'MFA_SUBMITTED' | 'MFA_CHOICE_REQUESTED' | 'MFA_CHOICE_SUBMITTED' | 'CONNECTION_SUCCESSFUL' | 'CONNECTION_FAILED' | 'PARTNER_REDIRECT' | 'CONNECTION_ABORTED' | 'SESSION_STARTED';
|
|
52
|
-
export {};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { ActionStrict } from './action-strict';
|
|
2
|
-
import { TradingInstrument } from './trading-instrument';
|
|
3
|
-
/**
|
|
4
|
-
*
|
|
5
|
-
* @export
|
|
6
|
-
* @interface SimpleOrderForm
|
|
7
|
-
*/
|
|
8
|
-
export interface SimpleOrderForm {
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
* @type {TradingInstrument}
|
|
13
|
-
* @memberof SimpleOrderForm
|
|
14
|
-
*/
|
|
15
|
-
'instrument': TradingInstrument;
|
|
16
|
-
/**
|
|
17
|
-
* The action describes the intent or side of a trade. This is either `BUY` or `SELL`.
|
|
18
|
-
* @type {ActionStrict}
|
|
19
|
-
* @memberof SimpleOrderForm
|
|
20
|
-
*/
|
|
21
|
-
'side': ActionStrict;
|
|
22
|
-
/**
|
|
23
|
-
* The type of order to place.
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof SimpleOrderForm
|
|
26
|
-
*/
|
|
27
|
-
'type': SimpleOrderFormTypeEnum;
|
|
28
|
-
/**
|
|
29
|
-
* The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. - `GTC` - Good Til Canceled. The order is valid until it is executed or canceled. - `FOK` - Fill Or Kill. The order must be executed in its entirety immediately or be canceled completely. - `IOC` - Immediate Or Cancel. The order must be executed immediately. Any portion of the order that cannot be filled immediately will be canceled. - `GTD` - Good Til Date. The order is valid until the specified date.
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof SimpleOrderForm
|
|
32
|
-
*/
|
|
33
|
-
'time_in_force': SimpleOrderFormTimeInForceEnum;
|
|
34
|
-
/**
|
|
35
|
-
* The amount of the base currency to buy or sell.
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof SimpleOrderForm
|
|
38
|
-
*/
|
|
39
|
-
'amount': string;
|
|
40
|
-
/**
|
|
41
|
-
* The limit price. Required if the order type is `LIMIT`, `STOP_LOSS_LIMIT` or `TAKE_PROFIT_LIMIT`.
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof SimpleOrderForm
|
|
44
|
-
*/
|
|
45
|
-
'limit_price'?: string;
|
|
46
|
-
/**
|
|
47
|
-
* The stop price. Required if the order type is `STOP_LOSS_MARKET`, `STOP_LOSS_LIMIT`, `TAKE_PROFIT_MARKET` or `TAKE_PROFIT_LIMIT`.
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof SimpleOrderForm
|
|
50
|
-
*/
|
|
51
|
-
'stop_price'?: string;
|
|
52
|
-
/**
|
|
53
|
-
* Valid and required only for order type `LIMIT`. If true orders that would be filled immediately are rejected to avoid incurring TAKER fees.
|
|
54
|
-
* @type {boolean}
|
|
55
|
-
* @memberof SimpleOrderForm
|
|
56
|
-
*/
|
|
57
|
-
'post_only'?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* The expiration date of the order. Required if the time_in_force is `GTD`.
|
|
60
|
-
* @type {string}
|
|
61
|
-
* @memberof SimpleOrderForm
|
|
62
|
-
*/
|
|
63
|
-
'expiration_date'?: string;
|
|
64
|
-
}
|
|
65
|
-
type SimpleOrderFormTypeEnum = 'MARKET' | 'LIMIT' | 'STOP_LOSS_MARKET' | 'STOP_LOSS_LIMIT' | 'TAKE_PROFIT_MARKET' | 'TAKE_PROFIT_LIMIT';
|
|
66
|
-
type SimpleOrderFormTimeInForceEnum = 'GTC' | 'FOK' | 'IOC' | 'GTD';
|
|
67
|
-
export {};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { AccountSyncStatus } from './account-sync-status';
|
|
2
|
-
import { BrokerageAuthorization } from './brokerage-authorization';
|
|
3
|
-
/**
|
|
4
|
-
* SnapTradeUser Investment Account
|
|
5
|
-
* @export
|
|
6
|
-
* @interface SnapTradeHoldingsAccount
|
|
7
|
-
*/
|
|
8
|
-
export interface SnapTradeHoldingsAccount {
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
* @type {string}
|
|
13
|
-
* @memberof SnapTradeHoldingsAccount
|
|
14
|
-
*/
|
|
15
|
-
'id'?: string;
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @type {BrokerageAuthorization}
|
|
19
|
-
* @memberof SnapTradeHoldingsAccount
|
|
20
|
-
*/
|
|
21
|
-
'brokerage_authorization'?: BrokerageAuthorization;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof SnapTradeHoldingsAccount
|
|
26
|
-
*/
|
|
27
|
-
'portfolio_group'?: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof SnapTradeHoldingsAccount
|
|
32
|
-
*/
|
|
33
|
-
'name'?: string | null;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof SnapTradeHoldingsAccount
|
|
38
|
-
*/
|
|
39
|
-
'number'?: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof SnapTradeHoldingsAccount
|
|
44
|
-
*/
|
|
45
|
-
'institution_name'?: string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {AccountSyncStatus}
|
|
49
|
-
* @memberof SnapTradeHoldingsAccount
|
|
50
|
-
*/
|
|
51
|
-
'sync_status'?: AccountSyncStatus;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {{ [key: string]: any; }}
|
|
55
|
-
* @memberof SnapTradeHoldingsAccount
|
|
56
|
-
*/
|
|
57
|
-
'meta'?: {
|
|
58
|
-
[key: string]: any;
|
|
59
|
-
};
|
|
60
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This field is deprecated. To get the brokerage reported total market value of the account, please refer to `account.balance.total`. The total market value of the account. Note that this field is calculated based on the sum of the values of account positions and cash balances known to SnapTrade. It may not be accurate if the brokerage account has holdings that SnapTrade is not aware of. For example, if the brokerage account holds assets that SnapTrade does not support, the total value may be underreported. In certain cases, this value may also be double-counting cash-equivalent assets if those assets are represented as both cash and positions in the account.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface SnapTradeHoldingsTotalValue
|
|
5
|
-
*/
|
|
6
|
-
export interface SnapTradeHoldingsTotalValue {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* Total value denominated in the currency of the `currency` field.
|
|
10
|
-
* @type {number}
|
|
11
|
-
* @memberof SnapTradeHoldingsTotalValue
|
|
12
|
-
*/
|
|
13
|
-
'value'?: number | null;
|
|
14
|
-
/**
|
|
15
|
-
* The ISO-4217 currency code for the amount.
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof SnapTradeHoldingsTotalValue
|
|
18
|
-
*/
|
|
19
|
-
'currency'?: string | null;
|
|
20
|
-
}
|