snaptrade-typescript-sdk 9.0.199 → 10.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -2
- package/dist/chunk-e9Ob2GDo.mjs +26 -0
- package/dist/index.cjs +6594 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.d.mts +10422 -0
- package/dist/index.d.ts +1 -5
- package/dist/index.mjs +6527 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +27 -13
- package/dist/api/account-information-api-generated.d.ts +0 -950
- package/dist/api/account-information-api-generated.js +0 -1372
- package/dist/api/account-information-api.d.ts +0 -4
- package/dist/api/account-information-api.js +0 -22
- package/dist/api/api-status-api-generated.d.ts +0 -59
- package/dist/api/api-status-api-generated.js +0 -133
- package/dist/api/api-status-api.d.ts +0 -4
- package/dist/api/api-status-api.js +0 -22
- package/dist/api/authentication-api-generated.d.ts +0 -241
- package/dist/api/authentication-api-generated.js +0 -482
- package/dist/api/authentication-api.d.ts +0 -4
- package/dist/api/authentication-api.js +0 -22
- package/dist/api/connections-api-generated.d.ts +0 -576
- package/dist/api/connections-api-generated.js +0 -868
- package/dist/api/connections-api.d.ts +0 -4
- package/dist/api/connections-api.js +0 -22
- package/dist/api/options-api-generated.d.ts +0 -90
- package/dist/api/options-api-generated.js +0 -158
- package/dist/api/options-api.d.ts +0 -4
- package/dist/api/options-api.js +0 -22
- package/dist/api/reference-data-api-generated.d.ts +0 -497
- package/dist/api/reference-data-api-generated.js +0 -973
- package/dist/api/reference-data-api.d.ts +0 -4
- package/dist/api/reference-data-api.js +0 -22
- package/dist/api/trading-api-generated.d.ts +0 -1054
- package/dist/api/trading-api-generated.js +0 -1684
- package/dist/api/trading-api.d.ts +0 -4
- package/dist/api/trading-api.js +0 -22
- package/dist/api/transactions-and-reporting-api-generated.d.ts +0 -215
- package/dist/api/transactions-and-reporting-api-generated.js +0 -299
- package/dist/api/transactions-and-reporting-api.d.ts +0 -4
- package/dist/api/transactions-and-reporting-api.js +0 -22
- package/dist/api.d.ts +0 -8
- package/dist/api.js +0 -36
- package/dist/base.d.ts +0 -44
- package/dist/base.js +0 -60
- package/dist/browser.js +0 -2
- package/dist/browser.js.LICENSE.txt +0 -1
- package/dist/client-custom.d.ts +0 -4
- package/dist/client-custom.js +0 -7
- package/dist/client.d.ts +0 -14
- package/dist/client.js +0 -31
- package/dist/common.d.ts +0 -61
- package/dist/common.js +0 -220
- package/dist/configuration.d.ts +0 -98
- package/dist/configuration.js +0 -53
- package/dist/error.d.ts +0 -46
- package/dist/error.js +0 -105
- package/dist/index.js +0 -33
- package/dist/jest.config.d.ts +0 -3
- package/dist/jest.config.js +0 -13
- package/dist/mock.test.d.ts +0 -1
- package/dist/mock.test.js +0 -29
- package/dist/models/account-balance-total.d.ts +0 -19
- package/dist/models/account-balance-total.js +0 -2
- package/dist/models/account-balance.d.ts +0 -14
- package/dist/models/account-balance.js +0 -2
- package/dist/models/account-holdings-account.d.ts +0 -51
- package/dist/models/account-holdings-account.js +0 -2
- package/dist/models/account-holdings.d.ts +0 -37
- package/dist/models/account-holdings.js +0 -2
- package/dist/models/account-information-get-user-account-order-detail-request.d.ts +0 -13
- package/dist/models/account-information-get-user-account-order-detail-request.js +0 -2
- package/dist/models/account-order-record-child-brokerage-order-ids.d.ts +0 -19
- package/dist/models/account-order-record-child-brokerage-order-ids.js +0 -2
- package/dist/models/account-order-record-leg-instrument.d.ts +0 -38
- package/dist/models/account-order-record-leg-instrument.js +0 -2
- package/dist/models/account-order-record-leg.d.ts +0 -58
- package/dist/models/account-order-record-leg.js +0 -2
- package/dist/models/account-order-record-option-symbol.d.ts +0 -52
- package/dist/models/account-order-record-option-symbol.js +0 -2
- package/dist/models/account-order-record-quote-currency.d.ts +0 -25
- package/dist/models/account-order-record-quote-currency.js +0 -2
- package/dist/models/account-order-record-quote-universal-symbol.d.ts +0 -73
- package/dist/models/account-order-record-quote-universal-symbol.js +0 -2
- package/dist/models/account-order-record-status-v2.d.ts +0 -6
- package/dist/models/account-order-record-status-v2.js +0 -2
- package/dist/models/account-order-record-status.d.ts +0 -6
- package/dist/models/account-order-record-status.js +0 -2
- package/dist/models/account-order-record-trailing-stop.d.ts +0 -21
- package/dist/models/account-order-record-trailing-stop.js +0 -2
- package/dist/models/account-order-record-universal-symbol.d.ts +0 -73
- package/dist/models/account-order-record-universal-symbol.js +0 -2
- package/dist/models/account-order-record-v2.d.ts +0 -97
- package/dist/models/account-order-record-v2.js +0 -2
- package/dist/models/account-order-record.d.ts +0 -168
- package/dist/models/account-order-record.js +0 -2
- package/dist/models/account-orders-v2-response.d.ts +0 -15
- package/dist/models/account-orders-v2-response.js +0 -2
- package/dist/models/account-position.d.ts +0 -52
- package/dist/models/account-position.js +0 -2
- package/dist/models/account-simple.d.ts +0 -39
- package/dist/models/account-simple.js +0 -2
- package/dist/models/account-sync-status.d.ts +0 -21
- package/dist/models/account-sync-status.js +0 -2
- package/dist/models/account-universal-activity-currency.d.ts +0 -25
- package/dist/models/account-universal-activity-currency.js +0 -2
- package/dist/models/account-universal-activity-option-symbol.d.ts +0 -52
- package/dist/models/account-universal-activity-option-symbol.js +0 -2
- package/dist/models/account-universal-activity-symbol.d.ts +0 -65
- package/dist/models/account-universal-activity-symbol.js +0 -2
- package/dist/models/account-universal-activity.d.ts +0 -107
- package/dist/models/account-universal-activity.js +0 -2
- package/dist/models/account-value-history-item.d.ts +0 -20
- package/dist/models/account-value-history-item.js +0 -2
- package/dist/models/account-value-history-response.d.ts +0 -21
- package/dist/models/account-value-history-response.js +0 -2
- package/dist/models/account.d.ts +0 -126
- package/dist/models/account.js +0 -2
- package/dist/models/action-strict-with-options.d.ts +0 -6
- package/dist/models/action-strict-with-options.js +0 -2
- package/dist/models/action-strict.d.ts +0 -6
- package/dist/models/action-strict.js +0 -2
- package/dist/models/adr-instrument.d.ts +0 -59
- package/dist/models/adr-instrument.js +0 -2
- package/dist/models/all-account-positions-response.d.ts +0 -15
- package/dist/models/all-account-positions-response.js +0 -2
- package/dist/models/authentication-login-snap-trade-user200-response.d.ts +0 -7
- package/dist/models/authentication-login-snap-trade-user200-response.js +0 -2
- package/dist/models/balance-currency.d.ts +0 -25
- package/dist/models/balance-currency.js +0 -2
- package/dist/models/balance.d.ts +0 -27
- package/dist/models/balance.js +0 -2
- package/dist/models/brokerage-authorization-disabled-confirmation.d.ts +0 -14
- package/dist/models/brokerage-authorization-disabled-confirmation.js +0 -2
- package/dist/models/brokerage-authorization-refresh-confirmation.d.ts +0 -14
- package/dist/models/brokerage-authorization-refresh-confirmation.js +0 -2
- package/dist/models/brokerage-authorization-transactions-sync-confirmation.d.ts +0 -14
- package/dist/models/brokerage-authorization-transactions-sync-confirmation.js +0 -2
- package/dist/models/brokerage-authorization-type-read-only-brokerage.d.ts +0 -26
- package/dist/models/brokerage-authorization-type-read-only-brokerage.js +0 -2
- package/dist/models/brokerage-authorization-type-read-only.d.ts +0 -36
- package/dist/models/brokerage-authorization-type-read-only.js +0 -2
- package/dist/models/brokerage-authorization.d.ts +0 -73
- package/dist/models/brokerage-authorization.js +0 -2
- package/dist/models/brokerage-instrument.d.ts +0 -38
- package/dist/models/brokerage-instrument.js +0 -2
- package/dist/models/brokerage-instruments-response.d.ts +0 -15
- package/dist/models/brokerage-instruments-response.js +0 -2
- package/dist/models/brokerage-type.d.ts +0 -20
- package/dist/models/brokerage-type.js +0 -2
- package/dist/models/brokerage.d.ts +0 -122
- package/dist/models/brokerage.js +0 -2
- package/dist/models/cancel-order-response.d.ts +0 -22
- package/dist/models/cancel-order-response.js +0 -2
- package/dist/models/cef-instrument.d.ts +0 -59
- package/dist/models/cef-instrument.js +0 -2
- package/dist/models/child-brokerage-order-ids.d.ts +0 -20
- package/dist/models/child-brokerage-order-ids.js +0 -2
- package/dist/models/complex-order-leg.d.ts +0 -62
- package/dist/models/complex-order-leg.js +0 -2
- package/dist/models/complex-order-response.d.ts +0 -22
- package/dist/models/complex-order-response.js +0 -2
- package/dist/models/connections-session-events200-response-inner.d.ts +0 -6
- package/dist/models/connections-session-events200-response-inner.js +0 -2
- package/dist/models/crypto-instrument.d.ts +0 -59
- package/dist/models/crypto-instrument.js +0 -2
- package/dist/models/crypto-order-form.d.ts +0 -66
- package/dist/models/crypto-order-form.js +0 -2
- package/dist/models/crypto-order-preview-estimated-fee.d.ts +0 -20
- package/dist/models/crypto-order-preview-estimated-fee.js +0 -2
- package/dist/models/crypto-order-preview.d.ts +0 -15
- package/dist/models/crypto-order-preview.js +0 -2
- package/dist/models/crypto-trading-instrument.d.ts +0 -22
- package/dist/models/crypto-trading-instrument.js +0 -2
- package/dist/models/cryptocurrency-pair-quote.d.ts +0 -32
- package/dist/models/cryptocurrency-pair-quote.js +0 -2
- package/dist/models/cryptocurrency-pair.d.ts +0 -32
- package/dist/models/cryptocurrency-pair.js +0 -2
- package/dist/models/currency.d.ts +0 -26
- package/dist/models/currency.js +0 -2
- package/dist/models/delete-connection-confirmation.d.ts +0 -20
- package/dist/models/delete-connection-confirmation.js +0 -2
- package/dist/models/delete-user-response.d.ts +0 -26
- package/dist/models/delete-user-response.js +0 -2
- package/dist/models/dividend-at-date.d.ts +0 -26
- package/dist/models/dividend-at-date.js +0 -2
- package/dist/models/encrypted-response-encrypted-message-data.d.ts +0 -26
- package/dist/models/encrypted-response-encrypted-message-data.js +0 -2
- package/dist/models/encrypted-response.d.ts +0 -20
- package/dist/models/encrypted-response.js +0 -2
- package/dist/models/etf-instrument.d.ts +0 -59
- package/dist/models/etf-instrument.js +0 -2
- package/dist/models/exchange-rate-pairs.d.ts +0 -27
- package/dist/models/exchange-rate-pairs.js +0 -2
- package/dist/models/exchange.d.ts +0 -56
- package/dist/models/exchange.js +0 -2
- package/dist/models/figi-instrument.d.ts +0 -20
- package/dist/models/figi-instrument.js +0 -2
- package/dist/models/future-instrument.d.ts +0 -64
- package/dist/models/future-instrument.js +0 -2
- package/dist/models/holdings-status.d.ts +0 -19
- package/dist/models/holdings-status.js +0 -2
- package/dist/models/index.d.ts +0 -173
- package/dist/models/index.js +0 -189
- package/dist/models/instrument.d.ts +0 -33
- package/dist/models/instrument.js +0 -2
- package/dist/models/login-redirect-uri.d.ts +0 -19
- package/dist/models/login-redirect-uri.js +0 -2
- package/dist/models/manual-trade-and-impact.d.ts +0 -29
- package/dist/models/manual-trade-and-impact.js +0 -2
- package/dist/models/manual-trade-balance.d.ts +0 -28
- package/dist/models/manual-trade-balance.js +0 -2
- package/dist/models/manual-trade-form-bracket.d.ts +0 -67
- package/dist/models/manual-trade-form-bracket.js +0 -2
- package/dist/models/manual-trade-form-complex.d.ts +0 -28
- package/dist/models/manual-trade-form-complex.js +0 -2
- package/dist/models/manual-trade-form-notional-value.d.ts +0 -6
- package/dist/models/manual-trade-form-notional-value.js +0 -2
- package/dist/models/manual-trade-form-with-options.d.ts +0 -78
- package/dist/models/manual-trade-form-with-options.js +0 -2
- package/dist/models/manual-trade-form.d.ts +0 -65
- package/dist/models/manual-trade-form.js +0 -2
- package/dist/models/manual-trade-impact.d.ts +0 -38
- package/dist/models/manual-trade-impact.js +0 -2
- package/dist/models/manual-trade-replace-form.d.ts +0 -58
- package/dist/models/manual-trade-replace-form.js +0 -2
- package/dist/models/manual-trade-symbol.d.ts +0 -49
- package/dist/models/manual-trade-symbol.js +0 -2
- package/dist/models/manual-trade.d.ts +0 -60
- package/dist/models/manual-trade.js +0 -2
- package/dist/models/mleg-action-strict.d.ts +0 -6
- package/dist/models/mleg-action-strict.js +0 -2
- package/dist/models/mleg-instrument-type.d.ts +0 -6
- package/dist/models/mleg-instrument-type.js +0 -2
- package/dist/models/mleg-leg.d.ts +0 -28
- package/dist/models/mleg-leg.js +0 -2
- package/dist/models/mleg-order-response.d.ts +0 -21
- package/dist/models/mleg-order-response.js +0 -2
- package/dist/models/mleg-order-type-strict.d.ts +0 -6
- package/dist/models/mleg-order-type-strict.js +0 -2
- package/dist/models/mleg-price-effect-strict.d.ts +0 -6
- package/dist/models/mleg-price-effect-strict.js +0 -2
- package/dist/models/mleg-trade-form.d.ts +0 -47
- package/dist/models/mleg-trade-form.js +0 -2
- package/dist/models/mleg-trading-instrument.d.ts +0 -21
- package/dist/models/mleg-trading-instrument.js +0 -2
- package/dist/models/model400-failed-request-response.d.ts +0 -20
- package/dist/models/model400-failed-request-response.js +0 -2
- package/dist/models/model401-failed-request-response.d.ts +0 -20
- package/dist/models/model401-failed-request-response.js +0 -2
- package/dist/models/model402-brokerage-auth-already-disabled-exception.d.ts +0 -20
- package/dist/models/model402-brokerage-auth-already-disabled-exception.js +0 -2
- package/dist/models/model402-brokerage-auth-disabled-response.d.ts +0 -20
- package/dist/models/model402-brokerage-auth-disabled-response.js +0 -2
- package/dist/models/model403-failed-request-response.d.ts +0 -20
- package/dist/models/model403-failed-request-response.js +0 -2
- package/dist/models/model403-feature-not-enabled-response.d.ts +0 -20
- package/dist/models/model403-feature-not-enabled-response.js +0 -2
- package/dist/models/model404-failed-request-response.d.ts +0 -20
- package/dist/models/model404-failed-request-response.js +0 -2
- package/dist/models/model425-failed-request-response.d.ts +0 -20
- package/dist/models/model425-failed-request-response.js +0 -2
- package/dist/models/model500-unexpected-exception-response.d.ts +0 -26
- package/dist/models/model500-unexpected-exception-response.js +0 -2
- package/dist/models/monthly-dividends.d.ts +0 -21
- package/dist/models/monthly-dividends.js +0 -2
- package/dist/models/mutual-fund-instrument.d.ts +0 -59
- package/dist/models/mutual-fund-instrument.js +0 -2
- package/dist/models/net-contributions.d.ts +0 -26
- package/dist/models/net-contributions.js +0 -2
- package/dist/models/net-dividend.d.ts +0 -27
- package/dist/models/net-dividend.js +0 -2
- package/dist/models/notional-value.d.ts +0 -6
- package/dist/models/notional-value.js +0 -2
- package/dist/models/option-brokerage-symbol.d.ts +0 -29
- package/dist/models/option-brokerage-symbol.js +0 -2
- package/dist/models/option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner.d.ts +0 -26
- package/dist/models/option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner.js +0 -2
- package/dist/models/option-chain-inner-chain-per-root-inner.d.ts +0 -27
- package/dist/models/option-chain-inner-chain-per-root-inner.js +0 -2
- package/dist/models/option-chain-inner.d.ts +0 -39
- package/dist/models/option-chain-inner.js +0 -2
- package/dist/models/option-impact.d.ts +0 -28
- package/dist/models/option-impact.js +0 -2
- package/dist/models/option-instrument.d.ts +0 -60
- package/dist/models/option-instrument.js +0 -2
- package/dist/models/option-leg.d.ts +0 -28
- package/dist/models/option-leg.js +0 -2
- package/dist/models/option-quote-greeks.d.ts +0 -32
- package/dist/models/option-quote-greeks.js +0 -2
- package/dist/models/option-quote.d.ts +0 -39
- package/dist/models/option-quote.js +0 -2
- package/dist/models/option-strategy-legs-inner.d.ts +0 -31
- package/dist/models/option-strategy-legs-inner.js +0 -2
- package/dist/models/option-strategy.d.ts +0 -40
- package/dist/models/option-strategy.js +0 -2
- package/dist/models/options-position-currency.d.ts +0 -25
- package/dist/models/options-position-currency.js +0 -2
- package/dist/models/options-position.d.ts +0 -41
- package/dist/models/options-position.js +0 -2
- package/dist/models/options-symbol.d.ts +0 -53
- package/dist/models/options-symbol.js +0 -2
- package/dist/models/order-type-strict.d.ts +0 -6
- package/dist/models/order-type-strict.js +0 -2
- package/dist/models/order-updated-response-order.d.ts +0 -167
- package/dist/models/order-updated-response-order.js +0 -2
- package/dist/models/order-updated-response.d.ts +0 -21
- package/dist/models/order-updated-response.js +0 -2
- package/dist/models/other-instrument.d.ts +0 -59
- package/dist/models/other-instrument.js +0 -2
- package/dist/models/paginated-universal-activity.d.ts +0 -22
- package/dist/models/paginated-universal-activity.js +0 -2
- package/dist/models/pagination-details.d.ts +0 -26
- package/dist/models/pagination-details.js +0 -2
- package/dist/models/partner-data.d.ts +0 -82
- package/dist/models/partner-data.js +0 -2
- package/dist/models/past-value.d.ts +0 -26
- package/dist/models/past-value.js +0 -2
- package/dist/models/performance-custom.d.ts +0 -127
- package/dist/models/performance-custom.js +0 -2
- package/dist/models/position-currency.d.ts +0 -25
- package/dist/models/position-currency.js +0 -2
- package/dist/models/position-symbol.d.ts +0 -50
- package/dist/models/position-symbol.js +0 -2
- package/dist/models/position.d.ts +0 -66
- package/dist/models/position.js +0 -2
- package/dist/models/rate-of-return-object.d.ts +0 -28
- package/dist/models/rate-of-return-object.js +0 -2
- package/dist/models/rate-of-return-response.d.ts +0 -15
- package/dist/models/rate-of-return-response.js +0 -2
- package/dist/models/recent-orders-response.d.ts +0 -15
- package/dist/models/recent-orders-response.js +0 -2
- package/dist/models/security-type.d.ts +0 -33
- package/dist/models/security-type.js +0 -2
- package/dist/models/session-event.d.ts +0 -52
- package/dist/models/session-event.js +0 -2
- package/dist/models/simple-order-form.d.ts +0 -67
- package/dist/models/simple-order-form.js +0 -2
- package/dist/models/snap-trade-holdings-account.d.ts +0 -60
- package/dist/models/snap-trade-holdings-account.js +0 -2
- package/dist/models/snap-trade-holdings-total-value.d.ts +0 -20
- package/dist/models/snap-trade-holdings-total-value.js +0 -2
- package/dist/models/snap-trade-login-user-request-body.d.ts +0 -58
- package/dist/models/snap-trade-login-user-request-body.js +0 -2
- package/dist/models/snap-trade-register-user-request-body.d.ts +0 -13
- package/dist/models/snap-trade-register-user-request-body.js +0 -2
- package/dist/models/status.d.ts +0 -26
- package/dist/models/status.js +0 -2
- package/dist/models/stock-instrument-figi-instrument.d.ts +0 -19
- package/dist/models/stock-instrument-figi-instrument.js +0 -2
- package/dist/models/stock-instrument.d.ts +0 -59
- package/dist/models/stock-instrument.js +0 -2
- package/dist/models/stop-loss.d.ts +0 -20
- package/dist/models/stop-loss.js +0 -2
- package/dist/models/strategy-order-record.d.ts +0 -77
- package/dist/models/strategy-order-record.js +0 -2
- package/dist/models/strategy-quotes-greek.d.ts +0 -38
- package/dist/models/strategy-quotes-greek.js +0 -2
- package/dist/models/strategy-quotes.d.ts +0 -46
- package/dist/models/strategy-quotes.js +0 -2
- package/dist/models/sub-period-return-rate.d.ts +0 -26
- package/dist/models/sub-period-return-rate.js +0 -2
- package/dist/models/symbol-currency.d.ts +0 -25
- package/dist/models/symbol-currency.js +0 -2
- package/dist/models/symbol-exchange.d.ts +0 -55
- package/dist/models/symbol-exchange.js +0 -2
- package/dist/models/symbol-query.d.ts +0 -13
- package/dist/models/symbol-query.js +0 -2
- package/dist/models/symbol.d.ts +0 -66
- package/dist/models/symbol.js +0 -2
- package/dist/models/symbols-quotes-inner.d.ts +0 -44
- package/dist/models/symbols-quotes-inner.js +0 -2
- package/dist/models/take-profit.d.ts +0 -14
- package/dist/models/take-profit.js +0 -2
- package/dist/models/tax-lot.d.ts +0 -50
- package/dist/models/tax-lot.js +0 -2
- package/dist/models/time-in-force-strict.d.ts +0 -6
- package/dist/models/time-in-force-strict.js +0 -2
- package/dist/models/trade-detection-cancel-subscription-response.d.ts +0 -14
- package/dist/models/trade-detection-cancel-subscription-response.js +0 -2
- package/dist/models/trade-detection-subscription.d.ts +0 -26
- package/dist/models/trade-detection-subscription.js +0 -2
- package/dist/models/trading-instrument.d.ts +0 -22
- package/dist/models/trading-instrument.js +0 -2
- package/dist/models/trading-search-cryptocurrency-pair-instruments200-response.d.ts +0 -15
- package/dist/models/trading-search-cryptocurrency-pair-instruments200-response.js +0 -2
- package/dist/models/trading-session.d.ts +0 -6
- package/dist/models/trading-session.js +0 -2
- package/dist/models/trailing-stop.d.ts +0 -22
- package/dist/models/trailing-stop.js +0 -2
- package/dist/models/transactions-status.d.ts +0 -25
- package/dist/models/transactions-status.js +0 -2
- package/dist/models/underlying-option-instrument.d.ts +0 -27
- package/dist/models/underlying-option-instrument.js +0 -2
- package/dist/models/underlying-symbol-exchange.d.ts +0 -61
- package/dist/models/underlying-symbol-exchange.js +0 -2
- package/dist/models/underlying-symbol-type.d.ts +0 -32
- package/dist/models/underlying-symbol-type.js +0 -2
- package/dist/models/underlying-symbol.d.ts +0 -74
- package/dist/models/underlying-symbol.js +0 -2
- package/dist/models/universal-activity.d.ts +0 -114
- package/dist/models/universal-activity.js +0 -2
- package/dist/models/universal-symbol.d.ts +0 -74
- package/dist/models/universal-symbol.js +0 -2
- package/dist/models/user-idand-secret.d.ts +0 -19
- package/dist/models/user-idand-secret.js +0 -2
- package/dist/models/usexchange.d.ts +0 -62
- package/dist/models/usexchange.js +0 -2
- package/dist/models/validated-trade-body.d.ts +0 -13
- package/dist/models/validated-trade-body.js +0 -2
- package/dist/operationParameterMap.d.ts +0 -8
- package/dist/operationParameterMap.js +0 -966
- package/dist/pagination/page-types.d.ts +0 -16
- package/dist/pagination/page-types.js +0 -12
- package/dist/pagination/page.d.ts +0 -25
- package/dist/pagination/page.js +0 -32
- package/dist/pagination/pageable.d.ts +0 -47
- package/dist/pagination/pageable.js +0 -70
- package/dist/pagination/paginate.d.ts +0 -6
- package/dist/pagination/paginate.js +0 -39
- package/dist/requestAfterHook.d.ts +0 -8
- package/dist/requestAfterHook.js +0 -82
- package/dist/requestBeforeHook.d.ts +0 -10
- package/dist/requestBeforeHook.js +0 -8
- package/dist/requestBeforeUrlHook.d.ts +0 -7
- package/dist/requestBeforeUrlHook.js +0 -5
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { AccountUniversalActivityCurrency } from './account-universal-activity-currency';
|
|
2
|
-
import { AccountUniversalActivityOptionSymbol } from './account-universal-activity-option-symbol';
|
|
3
|
-
import { AccountUniversalActivitySymbol } from './account-universal-activity-symbol';
|
|
4
|
-
/**
|
|
5
|
-
* A transaction or activity from an institution
|
|
6
|
-
* @export
|
|
7
|
-
* @interface AccountUniversalActivity
|
|
8
|
-
*/
|
|
9
|
-
export interface AccountUniversalActivity {
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
/**
|
|
12
|
-
* 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.
|
|
13
|
-
* @type {string}
|
|
14
|
-
* @memberof AccountUniversalActivity
|
|
15
|
-
*/
|
|
16
|
-
'id'?: string;
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* @type {AccountUniversalActivitySymbol}
|
|
20
|
-
* @memberof AccountUniversalActivity
|
|
21
|
-
*/
|
|
22
|
-
'symbol'?: AccountUniversalActivitySymbol | null;
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @type {AccountUniversalActivityOptionSymbol}
|
|
26
|
-
* @memberof AccountUniversalActivity
|
|
27
|
-
*/
|
|
28
|
-
'option_symbol'?: AccountUniversalActivityOptionSymbol | null;
|
|
29
|
-
/**
|
|
30
|
-
* The price of the security for the transaction. This is mostly applicable to `BUY`, `SELL`, and `DIVIDEND` transactions. For option transactions, this represents the price per share of the option contract.
|
|
31
|
-
* @type {number}
|
|
32
|
-
* @memberof AccountUniversalActivity
|
|
33
|
-
*/
|
|
34
|
-
'price'?: number;
|
|
35
|
-
/**
|
|
36
|
-
* The number of units of the security for the transaction. This is mostly applicable to `BUY`, `SELL`, and `DIVIDEND` transactions.
|
|
37
|
-
* @type {number}
|
|
38
|
-
* @memberof AccountUniversalActivity
|
|
39
|
-
*/
|
|
40
|
-
'units'?: number;
|
|
41
|
-
/**
|
|
42
|
-
* 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.
|
|
43
|
-
* @type {number}
|
|
44
|
-
* @memberof AccountUniversalActivity
|
|
45
|
-
*/
|
|
46
|
-
'amount'?: number | null;
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
* @type {AccountUniversalActivityCurrency}
|
|
50
|
-
* @memberof AccountUniversalActivity
|
|
51
|
-
*/
|
|
52
|
-
'currency'?: AccountUniversalActivityCurrency;
|
|
53
|
-
/**
|
|
54
|
-
* 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. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of asset(s) from one account to another. - `EXTERNAL_ASSET_TRANSFER_IN` - Incoming transfer of an asset from an external account to this account. - `EXTERNAL_ASSET_TRANSFER_OUT` - Outgoing transfer of an asset from this account to an external account. - `SPLIT` - A stock share split. - `ADJUSTMENT` - A one time adjustment of the account\'s cash balance or shares of an asset
|
|
55
|
-
* @type {string}
|
|
56
|
-
* @memberof AccountUniversalActivity
|
|
57
|
-
*/
|
|
58
|
-
'type'?: string;
|
|
59
|
-
/**
|
|
60
|
-
* 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
|
|
61
|
-
* @type {string}
|
|
62
|
-
* @memberof AccountUniversalActivity
|
|
63
|
-
*/
|
|
64
|
-
'option_type'?: string;
|
|
65
|
-
/**
|
|
66
|
-
* A human-readable description of the transaction. This is usually the brokerage\'s description of the transaction.
|
|
67
|
-
* @type {string}
|
|
68
|
-
* @memberof AccountUniversalActivity
|
|
69
|
-
*/
|
|
70
|
-
'description'?: string;
|
|
71
|
-
/**
|
|
72
|
-
* 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.
|
|
73
|
-
* @type {string}
|
|
74
|
-
* @memberof AccountUniversalActivity
|
|
75
|
-
*/
|
|
76
|
-
'trade_date'?: string | null;
|
|
77
|
-
/**
|
|
78
|
-
* The date on which the transaction is settled.
|
|
79
|
-
* @type {string}
|
|
80
|
-
* @memberof AccountUniversalActivity
|
|
81
|
-
*/
|
|
82
|
-
'settlement_date'?: string;
|
|
83
|
-
/**
|
|
84
|
-
* Any fee associated with the transaction if provided by the brokerage.
|
|
85
|
-
* @type {number}
|
|
86
|
-
* @memberof AccountUniversalActivity
|
|
87
|
-
*/
|
|
88
|
-
'fee'?: number;
|
|
89
|
-
/**
|
|
90
|
-
* 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)
|
|
91
|
-
* @type {number}
|
|
92
|
-
* @memberof AccountUniversalActivity
|
|
93
|
-
*/
|
|
94
|
-
'fx_rate'?: number | null;
|
|
95
|
-
/**
|
|
96
|
-
* The institution that the transaction is associated with. This is usually the brokerage name.
|
|
97
|
-
* @type {string}
|
|
98
|
-
* @memberof AccountUniversalActivity
|
|
99
|
-
*/
|
|
100
|
-
'institution'?: string;
|
|
101
|
-
/**
|
|
102
|
-
* 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`
|
|
103
|
-
* @type {string}
|
|
104
|
-
* @memberof AccountUniversalActivity
|
|
105
|
-
*/
|
|
106
|
-
'external_reference_id'?: string | null;
|
|
107
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The estimeated account value at a specific point in time.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface AccountValueHistoryItem
|
|
5
|
-
*/
|
|
6
|
-
export interface AccountValueHistoryItem {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* The date of the estimated account value
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof AccountValueHistoryItem
|
|
12
|
-
*/
|
|
13
|
-
'date'?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Estimate of the total market value of this account (includes cash, equity, fixed income, etc) at the given date.
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof AccountValueHistoryItem
|
|
18
|
-
*/
|
|
19
|
-
'total_value'?: string;
|
|
20
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { AccountValueHistoryItem } from './account-value-history-item';
|
|
2
|
-
/**
|
|
3
|
-
* The response to the account value history endpoint, containing a list of estimated account values at different points in time.
|
|
4
|
-
* @export
|
|
5
|
-
* @interface AccountValueHistoryResponse
|
|
6
|
-
*/
|
|
7
|
-
export interface AccountValueHistoryResponse {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
* List of estimated account values over time returned by the endpoint.
|
|
11
|
-
* @type {Array<AccountValueHistoryItem>}
|
|
12
|
-
* @memberof AccountValueHistoryResponse
|
|
13
|
-
*/
|
|
14
|
-
'history'?: Array<AccountValueHistoryItem>;
|
|
15
|
-
/**
|
|
16
|
-
* The ISO-4217 currency code for the account values.
|
|
17
|
-
* @type {string}
|
|
18
|
-
* @memberof AccountValueHistoryResponse
|
|
19
|
-
*/
|
|
20
|
-
'currency'?: string;
|
|
21
|
-
}
|
package/dist/models/account.d.ts
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { AccountBalance } from './account-balance';
|
|
2
|
-
import { AccountSyncStatus } from './account-sync-status';
|
|
3
|
-
/**
|
|
4
|
-
* A single account at a brokerage.
|
|
5
|
-
* @export
|
|
6
|
-
* @interface Account
|
|
7
|
-
*/
|
|
8
|
-
export interface Account {
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
/**
|
|
11
|
-
* Unique identifier for the connected brokerage account. This is the UUID used to reference the account in SnapTrade. This ID should not change for as long as the connection stays active. If the connection is deleted and re-added, a new account ID will be generated.
|
|
12
|
-
* @type {string}
|
|
13
|
-
* @memberof Account
|
|
14
|
-
*/
|
|
15
|
-
'id': string;
|
|
16
|
-
/**
|
|
17
|
-
* Unique identifier for the connection. This is the UUID used to reference the connection in SnapTrade.
|
|
18
|
-
* @type {string}
|
|
19
|
-
* @memberof Account
|
|
20
|
-
*/
|
|
21
|
-
'brokerage_authorization': string;
|
|
22
|
-
/**
|
|
23
|
-
* A display name for the account. Either assigned by the user or by the brokerage itself. For certain brokerages, SnapTrade appends the brokerage name to the account name for clarity.
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof Account
|
|
26
|
-
*/
|
|
27
|
-
'name': string | null;
|
|
28
|
-
/**
|
|
29
|
-
* The account number assigned by the brokerage. For some brokerages, this field may be masked for security reasons.
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof Account
|
|
32
|
-
*/
|
|
33
|
-
'number': string;
|
|
34
|
-
/**
|
|
35
|
-
* A stable and unique account identifier provided by the institution. Will be set to null if not provided. When present, can be used to check if a user has connected the same brokerage account across multiple connections.
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof Account
|
|
38
|
-
*/
|
|
39
|
-
'institution_account_id'?: string | null;
|
|
40
|
-
/**
|
|
41
|
-
* The name of the brokerage that holds the account.
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof Account
|
|
44
|
-
*/
|
|
45
|
-
'institution_name': string;
|
|
46
|
-
/**
|
|
47
|
-
* Timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format indicating when the account was created in SnapTrade. This is _not_ the account opening date at the brokerage.
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof Account
|
|
50
|
-
*/
|
|
51
|
-
'created_date': string;
|
|
52
|
-
/**
|
|
53
|
-
* Timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format indicating when the account was funded.
|
|
54
|
-
* @type {string}
|
|
55
|
-
* @memberof Account
|
|
56
|
-
*/
|
|
57
|
-
'funding_date'?: string | null;
|
|
58
|
-
/**
|
|
59
|
-
* Timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format indicating when the account was opened at the brokerage.
|
|
60
|
-
* @type {string}
|
|
61
|
-
* @memberof Account
|
|
62
|
-
*/
|
|
63
|
-
'opening_date'?: string | null;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {AccountSyncStatus}
|
|
67
|
-
* @memberof Account
|
|
68
|
-
*/
|
|
69
|
-
'sync_status': AccountSyncStatus;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {AccountBalance}
|
|
73
|
-
* @memberof Account
|
|
74
|
-
*/
|
|
75
|
-
'balance': AccountBalance;
|
|
76
|
-
/**
|
|
77
|
-
* The current status of the account. Can be either \"open\", \"closed\", \"archived\" or null if the status is unknown or not provided by the brokerage.
|
|
78
|
-
* @type {string}
|
|
79
|
-
* @memberof Account
|
|
80
|
-
*/
|
|
81
|
-
'status'?: AccountStatusEnum;
|
|
82
|
-
/**
|
|
83
|
-
* The account type as provided by the brokerage
|
|
84
|
-
* @type {string}
|
|
85
|
-
* @memberof Account
|
|
86
|
-
*/
|
|
87
|
-
'raw_type'?: string | null;
|
|
88
|
-
/**
|
|
89
|
-
* The category of the account, normalized across institutions. Returns `null` if the category could not be determined. Use this field to filter out non-investment accounts if your integration only supports trading / holdings flows. See [Filtering Accounts by Category](https://docs.snaptrade.com/docs/filtering-accounts-by-category) for more information. - `INVESTMENT`: A brokerage / investment account (equities, options, crypto, etc.). - `DEPOSIT`: A bank deposit account (checking, savings). - `LOC`: A line of credit account.
|
|
90
|
-
* @type {string}
|
|
91
|
-
* @memberof Account
|
|
92
|
-
*/
|
|
93
|
-
'account_category'?: AccountAccountCategoryEnum;
|
|
94
|
-
/**
|
|
95
|
-
* Additional information about the account, such as account type, status, etc. This information is specific to the brokerage and there\'s no standard format for this data. This field is deprecated and subject to removal in a future version.
|
|
96
|
-
* @type {{ [key: string]: any; }}
|
|
97
|
-
* @memberof Account
|
|
98
|
-
* @deprecated
|
|
99
|
-
*/
|
|
100
|
-
'meta'?: {
|
|
101
|
-
[key: string]: any;
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* Portfolio Group ID. Portfolio Groups have been deprecated. Please contact support if you have a use case for it.
|
|
105
|
-
* @type {string}
|
|
106
|
-
* @memberof Account
|
|
107
|
-
* @deprecated
|
|
108
|
-
*/
|
|
109
|
-
'portfolio_group'?: string | null;
|
|
110
|
-
/**
|
|
111
|
-
* This field is deprecated.
|
|
112
|
-
* @type {Array<string>}
|
|
113
|
-
* @memberof Account
|
|
114
|
-
* @deprecated
|
|
115
|
-
*/
|
|
116
|
-
'cash_restrictions'?: Array<string>;
|
|
117
|
-
/**
|
|
118
|
-
* Indicates whether the account is a paper (simulated) trading account.
|
|
119
|
-
* @type {boolean}
|
|
120
|
-
* @memberof Account
|
|
121
|
-
*/
|
|
122
|
-
'is_paper': boolean;
|
|
123
|
-
}
|
|
124
|
-
type AccountStatusEnum = 'open' | 'closed' | 'archived' | 'unavailable';
|
|
125
|
-
type AccountAccountCategoryEnum = 'INVESTMENT' | 'DEPOSIT' | 'LOC';
|
|
126
|
-
export {};
|
package/dist/models/account.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The action describes the intent or side of a trade. This is either `BUY` or `SELL` for Equity symbols or `BUY_TO_OPEN`, `BUY_TO_CLOSE`, `SELL_TO_OPEN` or `SELL_TO_CLOSE` for Options.
|
|
3
|
-
* @export
|
|
4
|
-
* @enum {string}
|
|
5
|
-
*/
|
|
6
|
-
export type ActionStrictWithOptions = 'BUY' | 'SELL' | 'BUY_TO_OPEN' | 'BUY_TO_CLOSE' | 'SELL_TO_OPEN' | 'SELL_TO_CLOSE';
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { StockInstrumentFigiInstrument } from './stock-instrument-figi-instrument';
|
|
2
|
-
/**
|
|
3
|
-
* Security instrument metadata for ADR positions.
|
|
4
|
-
* @export
|
|
5
|
-
* @interface AdrInstrument
|
|
6
|
-
*/
|
|
7
|
-
export interface AdrInstrument {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
* Type of security instrument.
|
|
11
|
-
* @type {string}
|
|
12
|
-
* @memberof AdrInstrument
|
|
13
|
-
*/
|
|
14
|
-
'kind': AdrInstrumentKindEnum;
|
|
15
|
-
/**
|
|
16
|
-
* Unique identifier for the instrument.
|
|
17
|
-
* @type {string}
|
|
18
|
-
* @memberof AdrInstrument
|
|
19
|
-
*/
|
|
20
|
-
'id': string;
|
|
21
|
-
/**
|
|
22
|
-
* The formatted trading symbol for the security.
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof AdrInstrument
|
|
25
|
-
*/
|
|
26
|
-
'symbol': string;
|
|
27
|
-
/**
|
|
28
|
-
* The raw symbol without any exchange suffix.
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof AdrInstrument
|
|
31
|
-
*/
|
|
32
|
-
'raw_symbol': string;
|
|
33
|
-
/**
|
|
34
|
-
* Human-readable description of the security.
|
|
35
|
-
* @type {string}
|
|
36
|
-
* @memberof AdrInstrument
|
|
37
|
-
*/
|
|
38
|
-
'description'?: string | null;
|
|
39
|
-
/**
|
|
40
|
-
* ISO-4217 currency code for the security listing.
|
|
41
|
-
* @type {string}
|
|
42
|
-
* @memberof AdrInstrument
|
|
43
|
-
*/
|
|
44
|
-
'currency'?: string | null;
|
|
45
|
-
/**
|
|
46
|
-
* Exchange MIC code or exchange code for the security.
|
|
47
|
-
* @type {string}
|
|
48
|
-
* @memberof AdrInstrument
|
|
49
|
-
*/
|
|
50
|
-
'exchange'?: string | null;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {StockInstrumentFigiInstrument}
|
|
54
|
-
* @memberof AdrInstrument
|
|
55
|
-
*/
|
|
56
|
-
'figi_instrument'?: StockInstrumentFigiInstrument | null;
|
|
57
|
-
}
|
|
58
|
-
type AdrInstrumentKindEnum = 'adr';
|
|
59
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { AccountPosition } from './account-position';
|
|
2
|
-
/**
|
|
3
|
-
* Information about all account positions.
|
|
4
|
-
* @export
|
|
5
|
-
* @interface AllAccountPositionsResponse
|
|
6
|
-
*/
|
|
7
|
-
export interface AllAccountPositionsResponse {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
* Positions returned for the request.
|
|
11
|
-
* @type {Array<AccountPosition>}
|
|
12
|
-
* @memberof AllAccountPositionsResponse
|
|
13
|
-
*/
|
|
14
|
-
'results': Array<AccountPosition>;
|
|
15
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { EncryptedResponse } from './encrypted-response';
|
|
2
|
-
import { LoginRedirectURI } from './login-redirect-uri';
|
|
3
|
-
/**
|
|
4
|
-
* @type AuthenticationLoginSnapTradeUser200Response
|
|
5
|
-
* @export
|
|
6
|
-
*/
|
|
7
|
-
export type AuthenticationLoginSnapTradeUser200Response = EncryptedResponse | LoginRedirectURI;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The currency of the balance. This applies to both `cash` and `buying_power`.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface BalanceCurrency
|
|
5
|
-
*/
|
|
6
|
-
export interface BalanceCurrency {
|
|
7
|
-
/**
|
|
8
|
-
* Unique identifier for the currency. This is the UUID used to reference the currency in SnapTrade.
|
|
9
|
-
* @type {string}
|
|
10
|
-
* @memberof BalanceCurrency
|
|
11
|
-
*/
|
|
12
|
-
'id'?: string;
|
|
13
|
-
/**
|
|
14
|
-
* The ISO-4217 currency code for the currency.
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof BalanceCurrency
|
|
17
|
-
*/
|
|
18
|
-
'code'?: string;
|
|
19
|
-
/**
|
|
20
|
-
* A human-friendly name of the currency.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof BalanceCurrency
|
|
23
|
-
*/
|
|
24
|
-
'name'?: string;
|
|
25
|
-
}
|
package/dist/models/balance.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { BalanceCurrency } from './balance-currency';
|
|
2
|
-
/**
|
|
3
|
-
* Holds balance information for a single currency in an account.
|
|
4
|
-
* @export
|
|
5
|
-
* @interface Balance
|
|
6
|
-
*/
|
|
7
|
-
export interface Balance {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @type {BalanceCurrency}
|
|
12
|
-
* @memberof Balance
|
|
13
|
-
*/
|
|
14
|
-
'currency'?: BalanceCurrency;
|
|
15
|
-
/**
|
|
16
|
-
* The amount of available cash in the account denominated in the currency of the `currency` field. This value can be negative in a margin account with a margin balance. Money market funds will be included in this field, and also returned in positions endpoints with `cash_equivalent` = true
|
|
17
|
-
* @type {number}
|
|
18
|
-
* @memberof Balance
|
|
19
|
-
*/
|
|
20
|
-
'cash'?: number | null;
|
|
21
|
-
/**
|
|
22
|
-
* Buying power only applies to margin accounts. For non-margin accounts, buying power should be the same as cash. Please note that this field is not always available for all brokerages.
|
|
23
|
-
* @type {number}
|
|
24
|
-
* @memberof Balance
|
|
25
|
-
*/
|
|
26
|
-
'buying_power'?: number | null;
|
|
27
|
-
}
|
package/dist/models/balance.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Confirmation that the connection has been disabled.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface BrokerageAuthorizationDisabledConfirmation
|
|
5
|
-
*/
|
|
6
|
-
export interface BrokerageAuthorizationDisabledConfirmation {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* Connection disabled confirmation
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof BrokerageAuthorizationDisabledConfirmation
|
|
12
|
-
*/
|
|
13
|
-
'detail'?: string;
|
|
14
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Confirmation that the syncs have been scheduled.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface BrokerageAuthorizationRefreshConfirmation
|
|
5
|
-
*/
|
|
6
|
-
export interface BrokerageAuthorizationRefreshConfirmation {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* Refresh confirmation details
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof BrokerageAuthorizationRefreshConfirmation
|
|
12
|
-
*/
|
|
13
|
-
'detail'?: string;
|
|
14
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Confirmation that the transaction syncs have been scheduled.
|
|
3
|
-
* @export
|
|
4
|
-
* @interface BrokerageAuthorizationTransactionsSyncConfirmation
|
|
5
|
-
*/
|
|
6
|
-
export interface BrokerageAuthorizationTransactionsSyncConfirmation {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
* Transactions sync confirmation details
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof BrokerageAuthorizationTransactionsSyncConfirmation
|
|
12
|
-
*/
|
|
13
|
-
'detail'?: string;
|
|
14
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @export
|
|
4
|
-
* @interface BrokerageAuthorizationTypeReadOnlyBrokerage
|
|
5
|
-
*/
|
|
6
|
-
export interface BrokerageAuthorizationTypeReadOnlyBrokerage {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @type {string}
|
|
11
|
-
* @memberof BrokerageAuthorizationTypeReadOnlyBrokerage
|
|
12
|
-
*/
|
|
13
|
-
'id'?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Full name of the brokerage.
|
|
16
|
-
* @type {string}
|
|
17
|
-
* @memberof BrokerageAuthorizationTypeReadOnlyBrokerage
|
|
18
|
-
*/
|
|
19
|
-
'name'?: string;
|
|
20
|
-
/**
|
|
21
|
-
* A unique identifier for that brokerage. It is usually the name of the brokerage in capital letters and will never change.
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof BrokerageAuthorizationTypeReadOnlyBrokerage
|
|
24
|
-
*/
|
|
25
|
-
'slug'?: string;
|
|
26
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { BrokerageAuthorizationTypeReadOnlyBrokerage } from './brokerage-authorization-type-read-only-brokerage';
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* @export
|
|
5
|
-
* @interface BrokerageAuthorizationTypeReadOnly
|
|
6
|
-
*/
|
|
7
|
-
export interface BrokerageAuthorizationTypeReadOnly {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @type {string}
|
|
12
|
-
* @memberof BrokerageAuthorizationTypeReadOnly
|
|
13
|
-
*/
|
|
14
|
-
'id'?: string;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @type {string}
|
|
18
|
-
* @memberof BrokerageAuthorizationTypeReadOnly
|
|
19
|
-
*/
|
|
20
|
-
'type'?: BrokerageAuthorizationTypeReadOnlyTypeEnum;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof BrokerageAuthorizationTypeReadOnly
|
|
25
|
-
*/
|
|
26
|
-
'auth_type'?: BrokerageAuthorizationTypeReadOnlyAuthTypeEnum;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {BrokerageAuthorizationTypeReadOnlyBrokerage}
|
|
30
|
-
* @memberof BrokerageAuthorizationTypeReadOnly
|
|
31
|
-
*/
|
|
32
|
-
'brokerage'?: BrokerageAuthorizationTypeReadOnlyBrokerage;
|
|
33
|
-
}
|
|
34
|
-
type BrokerageAuthorizationTypeReadOnlyTypeEnum = 'read' | 'trade';
|
|
35
|
-
type BrokerageAuthorizationTypeReadOnlyAuthTypeEnum = 'OAUTH' | 'SCRAPE' | 'UNOFFICIAL_API' | 'TOKEN';
|
|
36
|
-
export {};
|