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,576 +0,0 @@
|
|
|
1
|
-
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
2
|
-
import { Configuration } from '../configuration';
|
|
3
|
-
import { RequestArgs, BaseAPI } from '../base';
|
|
4
|
-
import { Account } from '../models';
|
|
5
|
-
import { BrokerageAuthorization } from '../models';
|
|
6
|
-
import { BrokerageAuthorizationDisabledConfirmation } from '../models';
|
|
7
|
-
import { BrokerageAuthorizationRefreshConfirmation } from '../models';
|
|
8
|
-
import { ConnectionsSessionEvents200ResponseInner } from '../models';
|
|
9
|
-
import { DeleteConnectionConfirmation } from '../models';
|
|
10
|
-
import { RateOfReturnResponse } from '../models';
|
|
11
|
-
/**
|
|
12
|
-
* ConnectionsApi - axios parameter creator
|
|
13
|
-
* @export
|
|
14
|
-
*/
|
|
15
|
-
export declare const ConnectionsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
16
|
-
/**
|
|
17
|
-
* Deletes the SnapTrade connection specified by the ID. This will also remove the accounts and holdings data associated with the connection from SnapTrade. This action is irreversible. This endpoint is asynchronous, a 200 response indicates that a task has been queued to delete the connection. Listen for the [`CONNECTION_DELETED` webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-connection_deleted) webhook to know when the deletion has been completed and the data has been removed.
|
|
18
|
-
* @summary Delete connection
|
|
19
|
-
* @param {string} connectionId
|
|
20
|
-
* @param {string} userId
|
|
21
|
-
* @param {string} userSecret
|
|
22
|
-
* @param {*} [options] Override http request option.
|
|
23
|
-
* @throws {RequiredError}
|
|
24
|
-
*/
|
|
25
|
-
deleteConnection: (connectionId: string, userId: string, userSecret: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
26
|
-
/**
|
|
27
|
-
* Returns a single connection for the specified ID.
|
|
28
|
-
* @summary Get connection detail
|
|
29
|
-
* @param {string} authorizationId
|
|
30
|
-
* @param {string} userId
|
|
31
|
-
* @param {string} userSecret
|
|
32
|
-
* @param {*} [options] Override http request option.
|
|
33
|
-
* @throws {RequiredError}
|
|
34
|
-
*/
|
|
35
|
-
detailBrokerageAuthorization: (authorizationId: string, userId: string, userSecret: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
36
|
-
/**
|
|
37
|
-
* Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](/docs/webhooks#webhooks-connection_broken) for the connection. This endpoint is available on test keys. If you would like it enabled on production keys as well, please contact support as it is disabled by default.
|
|
38
|
-
* @summary Force disable connection
|
|
39
|
-
* @param {string} authorizationId
|
|
40
|
-
* @param {string} userId
|
|
41
|
-
* @param {string} userSecret
|
|
42
|
-
* @param {*} [options] Override http request option.
|
|
43
|
-
* @throws {RequiredError}
|
|
44
|
-
*/
|
|
45
|
-
disableBrokerageAuthorization: (authorizationId: string, userId: string, userSecret: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
46
|
-
/**
|
|
47
|
-
* Returns all brokerage accounts that belong to the specified connection for the authenticated user. On Pay as you Go / Real-time, this endpoint refreshes each account\'s opening date, funding date, and total value live from the brokerage on each call. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by brokerage. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
48
|
-
* @summary List accounts for a connection
|
|
49
|
-
* @param {string} authorizationId
|
|
50
|
-
* @param {string} userId
|
|
51
|
-
* @param {string} userSecret
|
|
52
|
-
* @param {*} [options] Override http request option.
|
|
53
|
-
* @throws {RequiredError}
|
|
54
|
-
*/
|
|
55
|
-
listBrokerageAuthorizationAccounts: (authorizationId: string, userId: string, userSecret: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
56
|
-
/**
|
|
57
|
-
* Returns a list of all connections for the specified user. Note that `Connection` and `Brokerage Authorization` are interchangeable, but the term `Connection` is preferred and used in the doc for consistency. A connection is usually tied to a single login at a brokerage. A single connection can contain multiple brokerage accounts. SnapTrade performs de-duping on connections for a given user. If the user has an existing connection with the brokerage, when connecting the brokerage with the same credentials, SnapTrade will return the existing connection instead of creating a new one.
|
|
58
|
-
* @summary List all connections
|
|
59
|
-
* @param {string} userId
|
|
60
|
-
* @param {string} userSecret
|
|
61
|
-
* @param {*} [options] Override http request option.
|
|
62
|
-
* @throws {RequiredError}
|
|
63
|
-
*/
|
|
64
|
-
listBrokerageAuthorizations: (userId: string, userSecret: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
65
|
-
/**
|
|
66
|
-
* Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Because of the cost of refreshing a connection, each call to this endpoint incurs an additional charge. You can find the exact cost for your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)** **Please note this endpoint is disabled for Pay as you Go / Real-time plans. Pay as you Go / Real-time plans do not benefit from this feature since data is refreshed when calls are made**
|
|
67
|
-
* @summary Refresh holdings for a connection
|
|
68
|
-
* @param {string} authorizationId
|
|
69
|
-
* @param {string} userId
|
|
70
|
-
* @param {string} userSecret
|
|
71
|
-
* @param {*} [options] Override http request option.
|
|
72
|
-
* @throws {RequiredError}
|
|
73
|
-
*/
|
|
74
|
-
refreshBrokerageAuthorization: (authorizationId: string, userId: string, userSecret: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
75
|
-
/**
|
|
76
|
-
* Deletes the SnapTrade connection specified by the ID. This will also remove the accounts and holdings data associated with the connection from SnapTrade. This action is irreversible. This endpoint is synchronous, a 204 response indicates that the data has been successfully deleted.
|
|
77
|
-
* @summary Delete connection
|
|
78
|
-
* @param {string} authorizationId
|
|
79
|
-
* @param {string} userId
|
|
80
|
-
* @param {string} userSecret
|
|
81
|
-
* @param {*} [options] Override http request option.
|
|
82
|
-
* @throws {RequiredError}
|
|
83
|
-
*/
|
|
84
|
-
removeBrokerageAuthorization: (authorizationId: string, userId: string, userSecret: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
85
|
-
/**
|
|
86
|
-
* Returns a list of rate of return percents for a given connection.
|
|
87
|
-
* @summary List connection rate of returns
|
|
88
|
-
* @param {string} userId
|
|
89
|
-
* @param {string} userSecret
|
|
90
|
-
* @param {string} authorizationId
|
|
91
|
-
* @param {string} [timeframes] Optional comma separated list of rate-of-return timeframes to return. Supported values are `ALL`, `1Y`, `YTD`, `1M`, `1W`, and `1D`. If omitted, SnapTrade returns all six supported timeframes.
|
|
92
|
-
* @param {*} [options] Override http request option.
|
|
93
|
-
* @throws {RequiredError}
|
|
94
|
-
*/
|
|
95
|
-
returnRates: (userId: string, userSecret: string, authorizationId: string, timeframes?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
96
|
-
/**
|
|
97
|
-
* Returns a list of session events associated with a user.
|
|
98
|
-
* @summary Get all session events for a user
|
|
99
|
-
* @param {string} partnerClientId
|
|
100
|
-
* @param {string} [userId] Optional comma separated list of user IDs used to filter the request on specific users
|
|
101
|
-
* @param {string} [sessionId] Optional comma separated list of session IDs used to filter the request on specific users
|
|
102
|
-
* @param {*} [options] Override http request option.
|
|
103
|
-
* @throws {RequiredError}
|
|
104
|
-
*/
|
|
105
|
-
sessionEvents: (partnerClientId: string, userId?: string, sessionId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
106
|
-
};
|
|
107
|
-
/**
|
|
108
|
-
* ConnectionsApi - functional programming interface
|
|
109
|
-
* @export
|
|
110
|
-
*/
|
|
111
|
-
export declare const ConnectionsApiFp: (configuration?: Configuration) => {
|
|
112
|
-
/**
|
|
113
|
-
* Deletes the SnapTrade connection specified by the ID. This will also remove the accounts and holdings data associated with the connection from SnapTrade. This action is irreversible. This endpoint is asynchronous, a 200 response indicates that a task has been queued to delete the connection. Listen for the [`CONNECTION_DELETED` webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-connection_deleted) webhook to know when the deletion has been completed and the data has been removed.
|
|
114
|
-
* @summary Delete connection
|
|
115
|
-
* @param {ConnectionsApiDeleteConnectionRequest} requestParameters Request parameters.
|
|
116
|
-
* @param {*} [options] Override http request option.
|
|
117
|
-
* @throws {RequiredError}
|
|
118
|
-
*/
|
|
119
|
-
deleteConnection(requestParameters: ConnectionsApiDeleteConnectionRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteConnectionConfirmation>>;
|
|
120
|
-
/**
|
|
121
|
-
* Returns a single connection for the specified ID.
|
|
122
|
-
* @summary Get connection detail
|
|
123
|
-
* @param {ConnectionsApiDetailBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
124
|
-
* @param {*} [options] Override http request option.
|
|
125
|
-
* @throws {RequiredError}
|
|
126
|
-
*/
|
|
127
|
-
detailBrokerageAuthorization(requestParameters: ConnectionsApiDetailBrokerageAuthorizationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BrokerageAuthorization>>;
|
|
128
|
-
/**
|
|
129
|
-
* Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](/docs/webhooks#webhooks-connection_broken) for the connection. This endpoint is available on test keys. If you would like it enabled on production keys as well, please contact support as it is disabled by default.
|
|
130
|
-
* @summary Force disable connection
|
|
131
|
-
* @param {ConnectionsApiDisableBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
132
|
-
* @param {*} [options] Override http request option.
|
|
133
|
-
* @throws {RequiredError}
|
|
134
|
-
*/
|
|
135
|
-
disableBrokerageAuthorization(requestParameters: ConnectionsApiDisableBrokerageAuthorizationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BrokerageAuthorizationDisabledConfirmation>>;
|
|
136
|
-
/**
|
|
137
|
-
* Returns all brokerage accounts that belong to the specified connection for the authenticated user. On Pay as you Go / Real-time, this endpoint refreshes each account\'s opening date, funding date, and total value live from the brokerage on each call. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by brokerage. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
138
|
-
* @summary List accounts for a connection
|
|
139
|
-
* @param {ConnectionsApiListBrokerageAuthorizationAccountsRequest} requestParameters Request parameters.
|
|
140
|
-
* @param {*} [options] Override http request option.
|
|
141
|
-
* @throws {RequiredError}
|
|
142
|
-
*/
|
|
143
|
-
listBrokerageAuthorizationAccounts(requestParameters: ConnectionsApiListBrokerageAuthorizationAccountsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Account>>>;
|
|
144
|
-
/**
|
|
145
|
-
* Returns a list of all connections for the specified user. Note that `Connection` and `Brokerage Authorization` are interchangeable, but the term `Connection` is preferred and used in the doc for consistency. A connection is usually tied to a single login at a brokerage. A single connection can contain multiple brokerage accounts. SnapTrade performs de-duping on connections for a given user. If the user has an existing connection with the brokerage, when connecting the brokerage with the same credentials, SnapTrade will return the existing connection instead of creating a new one.
|
|
146
|
-
* @summary List all connections
|
|
147
|
-
* @param {ConnectionsApiListBrokerageAuthorizationsRequest} requestParameters Request parameters.
|
|
148
|
-
* @param {*} [options] Override http request option.
|
|
149
|
-
* @throws {RequiredError}
|
|
150
|
-
*/
|
|
151
|
-
listBrokerageAuthorizations(requestParameters: ConnectionsApiListBrokerageAuthorizationsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BrokerageAuthorization>>>;
|
|
152
|
-
/**
|
|
153
|
-
* Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Because of the cost of refreshing a connection, each call to this endpoint incurs an additional charge. You can find the exact cost for your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)** **Please note this endpoint is disabled for Pay as you Go / Real-time plans. Pay as you Go / Real-time plans do not benefit from this feature since data is refreshed when calls are made**
|
|
154
|
-
* @summary Refresh holdings for a connection
|
|
155
|
-
* @param {ConnectionsApiRefreshBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
156
|
-
* @param {*} [options] Override http request option.
|
|
157
|
-
* @throws {RequiredError}
|
|
158
|
-
*/
|
|
159
|
-
refreshBrokerageAuthorization(requestParameters: ConnectionsApiRefreshBrokerageAuthorizationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BrokerageAuthorizationRefreshConfirmation>>;
|
|
160
|
-
/**
|
|
161
|
-
* Deletes the SnapTrade connection specified by the ID. This will also remove the accounts and holdings data associated with the connection from SnapTrade. This action is irreversible. This endpoint is synchronous, a 204 response indicates that the data has been successfully deleted.
|
|
162
|
-
* @summary Delete connection
|
|
163
|
-
* @param {ConnectionsApiRemoveBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
164
|
-
* @param {*} [options] Override http request option.
|
|
165
|
-
* @throws {RequiredError}
|
|
166
|
-
*/
|
|
167
|
-
removeBrokerageAuthorization(requestParameters: ConnectionsApiRemoveBrokerageAuthorizationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
168
|
-
/**
|
|
169
|
-
* Returns a list of rate of return percents for a given connection.
|
|
170
|
-
* @summary List connection rate of returns
|
|
171
|
-
* @param {ConnectionsApiReturnRatesRequest} requestParameters Request parameters.
|
|
172
|
-
* @param {*} [options] Override http request option.
|
|
173
|
-
* @throws {RequiredError}
|
|
174
|
-
*/
|
|
175
|
-
returnRates(requestParameters: ConnectionsApiReturnRatesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RateOfReturnResponse>>;
|
|
176
|
-
/**
|
|
177
|
-
* Returns a list of session events associated with a user.
|
|
178
|
-
* @summary Get all session events for a user
|
|
179
|
-
* @param {ConnectionsApiSessionEventsRequest} requestParameters Request parameters.
|
|
180
|
-
* @param {*} [options] Override http request option.
|
|
181
|
-
* @throws {RequiredError}
|
|
182
|
-
*/
|
|
183
|
-
sessionEvents(requestParameters: ConnectionsApiSessionEventsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ConnectionsSessionEvents200ResponseInner>>>;
|
|
184
|
-
};
|
|
185
|
-
/**
|
|
186
|
-
* ConnectionsApi - factory interface
|
|
187
|
-
* @export
|
|
188
|
-
*/
|
|
189
|
-
export declare const ConnectionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
190
|
-
/**
|
|
191
|
-
* Deletes the SnapTrade connection specified by the ID. This will also remove the accounts and holdings data associated with the connection from SnapTrade. This action is irreversible. This endpoint is asynchronous, a 200 response indicates that a task has been queued to delete the connection. Listen for the [`CONNECTION_DELETED` webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-connection_deleted) webhook to know when the deletion has been completed and the data has been removed.
|
|
192
|
-
* @summary Delete connection
|
|
193
|
-
* @param {ConnectionsApiDeleteConnectionRequest} requestParameters Request parameters.
|
|
194
|
-
* @param {*} [options] Override http request option.
|
|
195
|
-
* @throws {RequiredError}
|
|
196
|
-
*/
|
|
197
|
-
deleteConnection(requestParameters: ConnectionsApiDeleteConnectionRequest, options?: AxiosRequestConfig): AxiosPromise<DeleteConnectionConfirmation>;
|
|
198
|
-
/**
|
|
199
|
-
* Returns a single connection for the specified ID.
|
|
200
|
-
* @summary Get connection detail
|
|
201
|
-
* @param {ConnectionsApiDetailBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
202
|
-
* @param {*} [options] Override http request option.
|
|
203
|
-
* @throws {RequiredError}
|
|
204
|
-
*/
|
|
205
|
-
detailBrokerageAuthorization(requestParameters: ConnectionsApiDetailBrokerageAuthorizationRequest, options?: AxiosRequestConfig): AxiosPromise<BrokerageAuthorization>;
|
|
206
|
-
/**
|
|
207
|
-
* Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](/docs/webhooks#webhooks-connection_broken) for the connection. This endpoint is available on test keys. If you would like it enabled on production keys as well, please contact support as it is disabled by default.
|
|
208
|
-
* @summary Force disable connection
|
|
209
|
-
* @param {ConnectionsApiDisableBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
210
|
-
* @param {*} [options] Override http request option.
|
|
211
|
-
* @throws {RequiredError}
|
|
212
|
-
*/
|
|
213
|
-
disableBrokerageAuthorization(requestParameters: ConnectionsApiDisableBrokerageAuthorizationRequest, options?: AxiosRequestConfig): AxiosPromise<BrokerageAuthorizationDisabledConfirmation>;
|
|
214
|
-
/**
|
|
215
|
-
* Returns all brokerage accounts that belong to the specified connection for the authenticated user. On Pay as you Go / Real-time, this endpoint refreshes each account\'s opening date, funding date, and total value live from the brokerage on each call. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by brokerage. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
216
|
-
* @summary List accounts for a connection
|
|
217
|
-
* @param {ConnectionsApiListBrokerageAuthorizationAccountsRequest} requestParameters Request parameters.
|
|
218
|
-
* @param {*} [options] Override http request option.
|
|
219
|
-
* @throws {RequiredError}
|
|
220
|
-
*/
|
|
221
|
-
listBrokerageAuthorizationAccounts(requestParameters: ConnectionsApiListBrokerageAuthorizationAccountsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<Account>>;
|
|
222
|
-
/**
|
|
223
|
-
* Returns a list of all connections for the specified user. Note that `Connection` and `Brokerage Authorization` are interchangeable, but the term `Connection` is preferred and used in the doc for consistency. A connection is usually tied to a single login at a brokerage. A single connection can contain multiple brokerage accounts. SnapTrade performs de-duping on connections for a given user. If the user has an existing connection with the brokerage, when connecting the brokerage with the same credentials, SnapTrade will return the existing connection instead of creating a new one.
|
|
224
|
-
* @summary List all connections
|
|
225
|
-
* @param {ConnectionsApiListBrokerageAuthorizationsRequest} requestParameters Request parameters.
|
|
226
|
-
* @param {*} [options] Override http request option.
|
|
227
|
-
* @throws {RequiredError}
|
|
228
|
-
*/
|
|
229
|
-
listBrokerageAuthorizations(requestParameters: ConnectionsApiListBrokerageAuthorizationsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BrokerageAuthorization>>;
|
|
230
|
-
/**
|
|
231
|
-
* Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Because of the cost of refreshing a connection, each call to this endpoint incurs an additional charge. You can find the exact cost for your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)** **Please note this endpoint is disabled for Pay as you Go / Real-time plans. Pay as you Go / Real-time plans do not benefit from this feature since data is refreshed when calls are made**
|
|
232
|
-
* @summary Refresh holdings for a connection
|
|
233
|
-
* @param {ConnectionsApiRefreshBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
234
|
-
* @param {*} [options] Override http request option.
|
|
235
|
-
* @throws {RequiredError}
|
|
236
|
-
*/
|
|
237
|
-
refreshBrokerageAuthorization(requestParameters: ConnectionsApiRefreshBrokerageAuthorizationRequest, options?: AxiosRequestConfig): AxiosPromise<BrokerageAuthorizationRefreshConfirmation>;
|
|
238
|
-
/**
|
|
239
|
-
* Deletes the SnapTrade connection specified by the ID. This will also remove the accounts and holdings data associated with the connection from SnapTrade. This action is irreversible. This endpoint is synchronous, a 204 response indicates that the data has been successfully deleted.
|
|
240
|
-
* @summary Delete connection
|
|
241
|
-
* @param {ConnectionsApiRemoveBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
242
|
-
* @param {*} [options] Override http request option.
|
|
243
|
-
* @throws {RequiredError}
|
|
244
|
-
*/
|
|
245
|
-
removeBrokerageAuthorization(requestParameters: ConnectionsApiRemoveBrokerageAuthorizationRequest, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
246
|
-
/**
|
|
247
|
-
* Returns a list of rate of return percents for a given connection.
|
|
248
|
-
* @summary List connection rate of returns
|
|
249
|
-
* @param {ConnectionsApiReturnRatesRequest} requestParameters Request parameters.
|
|
250
|
-
* @param {*} [options] Override http request option.
|
|
251
|
-
* @throws {RequiredError}
|
|
252
|
-
*/
|
|
253
|
-
returnRates(requestParameters: ConnectionsApiReturnRatesRequest, options?: AxiosRequestConfig): AxiosPromise<RateOfReturnResponse>;
|
|
254
|
-
/**
|
|
255
|
-
* Returns a list of session events associated with a user.
|
|
256
|
-
* @summary Get all session events for a user
|
|
257
|
-
* @param {ConnectionsApiSessionEventsRequest} requestParameters Request parameters.
|
|
258
|
-
* @param {*} [options] Override http request option.
|
|
259
|
-
* @throws {RequiredError}
|
|
260
|
-
*/
|
|
261
|
-
sessionEvents(requestParameters: ConnectionsApiSessionEventsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<ConnectionsSessionEvents200ResponseInner>>;
|
|
262
|
-
};
|
|
263
|
-
/**
|
|
264
|
-
* Request parameters for deleteConnection operation in ConnectionsApi.
|
|
265
|
-
* @export
|
|
266
|
-
* @interface ConnectionsApiDeleteConnectionRequest
|
|
267
|
-
*/
|
|
268
|
-
export type ConnectionsApiDeleteConnectionRequest = {
|
|
269
|
-
/**
|
|
270
|
-
*
|
|
271
|
-
* @type {string}
|
|
272
|
-
* @memberof ConnectionsApiDeleteConnection
|
|
273
|
-
*/
|
|
274
|
-
readonly connectionId: string;
|
|
275
|
-
/**
|
|
276
|
-
*
|
|
277
|
-
* @type {string}
|
|
278
|
-
* @memberof ConnectionsApiDeleteConnection
|
|
279
|
-
*/
|
|
280
|
-
readonly userId: string;
|
|
281
|
-
/**
|
|
282
|
-
*
|
|
283
|
-
* @type {string}
|
|
284
|
-
* @memberof ConnectionsApiDeleteConnection
|
|
285
|
-
*/
|
|
286
|
-
readonly userSecret: string;
|
|
287
|
-
};
|
|
288
|
-
/**
|
|
289
|
-
* Request parameters for detailBrokerageAuthorization operation in ConnectionsApi.
|
|
290
|
-
* @export
|
|
291
|
-
* @interface ConnectionsApiDetailBrokerageAuthorizationRequest
|
|
292
|
-
*/
|
|
293
|
-
export type ConnectionsApiDetailBrokerageAuthorizationRequest = {
|
|
294
|
-
/**
|
|
295
|
-
*
|
|
296
|
-
* @type {string}
|
|
297
|
-
* @memberof ConnectionsApiDetailBrokerageAuthorization
|
|
298
|
-
*/
|
|
299
|
-
readonly authorizationId: string;
|
|
300
|
-
/**
|
|
301
|
-
*
|
|
302
|
-
* @type {string}
|
|
303
|
-
* @memberof ConnectionsApiDetailBrokerageAuthorization
|
|
304
|
-
*/
|
|
305
|
-
readonly userId: string;
|
|
306
|
-
/**
|
|
307
|
-
*
|
|
308
|
-
* @type {string}
|
|
309
|
-
* @memberof ConnectionsApiDetailBrokerageAuthorization
|
|
310
|
-
*/
|
|
311
|
-
readonly userSecret: string;
|
|
312
|
-
};
|
|
313
|
-
/**
|
|
314
|
-
* Request parameters for disableBrokerageAuthorization operation in ConnectionsApi.
|
|
315
|
-
* @export
|
|
316
|
-
* @interface ConnectionsApiDisableBrokerageAuthorizationRequest
|
|
317
|
-
*/
|
|
318
|
-
export type ConnectionsApiDisableBrokerageAuthorizationRequest = {
|
|
319
|
-
/**
|
|
320
|
-
*
|
|
321
|
-
* @type {string}
|
|
322
|
-
* @memberof ConnectionsApiDisableBrokerageAuthorization
|
|
323
|
-
*/
|
|
324
|
-
readonly authorizationId: string;
|
|
325
|
-
/**
|
|
326
|
-
*
|
|
327
|
-
* @type {string}
|
|
328
|
-
* @memberof ConnectionsApiDisableBrokerageAuthorization
|
|
329
|
-
*/
|
|
330
|
-
readonly userId: string;
|
|
331
|
-
/**
|
|
332
|
-
*
|
|
333
|
-
* @type {string}
|
|
334
|
-
* @memberof ConnectionsApiDisableBrokerageAuthorization
|
|
335
|
-
*/
|
|
336
|
-
readonly userSecret: string;
|
|
337
|
-
};
|
|
338
|
-
/**
|
|
339
|
-
* Request parameters for listBrokerageAuthorizationAccounts operation in ConnectionsApi.
|
|
340
|
-
* @export
|
|
341
|
-
* @interface ConnectionsApiListBrokerageAuthorizationAccountsRequest
|
|
342
|
-
*/
|
|
343
|
-
export type ConnectionsApiListBrokerageAuthorizationAccountsRequest = {
|
|
344
|
-
/**
|
|
345
|
-
*
|
|
346
|
-
* @type {string}
|
|
347
|
-
* @memberof ConnectionsApiListBrokerageAuthorizationAccounts
|
|
348
|
-
*/
|
|
349
|
-
readonly authorizationId: string;
|
|
350
|
-
/**
|
|
351
|
-
*
|
|
352
|
-
* @type {string}
|
|
353
|
-
* @memberof ConnectionsApiListBrokerageAuthorizationAccounts
|
|
354
|
-
*/
|
|
355
|
-
readonly userId: string;
|
|
356
|
-
/**
|
|
357
|
-
*
|
|
358
|
-
* @type {string}
|
|
359
|
-
* @memberof ConnectionsApiListBrokerageAuthorizationAccounts
|
|
360
|
-
*/
|
|
361
|
-
readonly userSecret: string;
|
|
362
|
-
};
|
|
363
|
-
/**
|
|
364
|
-
* Request parameters for listBrokerageAuthorizations operation in ConnectionsApi.
|
|
365
|
-
* @export
|
|
366
|
-
* @interface ConnectionsApiListBrokerageAuthorizationsRequest
|
|
367
|
-
*/
|
|
368
|
-
export type ConnectionsApiListBrokerageAuthorizationsRequest = {
|
|
369
|
-
/**
|
|
370
|
-
*
|
|
371
|
-
* @type {string}
|
|
372
|
-
* @memberof ConnectionsApiListBrokerageAuthorizations
|
|
373
|
-
*/
|
|
374
|
-
readonly userId: string;
|
|
375
|
-
/**
|
|
376
|
-
*
|
|
377
|
-
* @type {string}
|
|
378
|
-
* @memberof ConnectionsApiListBrokerageAuthorizations
|
|
379
|
-
*/
|
|
380
|
-
readonly userSecret: string;
|
|
381
|
-
};
|
|
382
|
-
/**
|
|
383
|
-
* Request parameters for refreshBrokerageAuthorization operation in ConnectionsApi.
|
|
384
|
-
* @export
|
|
385
|
-
* @interface ConnectionsApiRefreshBrokerageAuthorizationRequest
|
|
386
|
-
*/
|
|
387
|
-
export type ConnectionsApiRefreshBrokerageAuthorizationRequest = {
|
|
388
|
-
/**
|
|
389
|
-
*
|
|
390
|
-
* @type {string}
|
|
391
|
-
* @memberof ConnectionsApiRefreshBrokerageAuthorization
|
|
392
|
-
*/
|
|
393
|
-
readonly authorizationId: string;
|
|
394
|
-
/**
|
|
395
|
-
*
|
|
396
|
-
* @type {string}
|
|
397
|
-
* @memberof ConnectionsApiRefreshBrokerageAuthorization
|
|
398
|
-
*/
|
|
399
|
-
readonly userId: string;
|
|
400
|
-
/**
|
|
401
|
-
*
|
|
402
|
-
* @type {string}
|
|
403
|
-
* @memberof ConnectionsApiRefreshBrokerageAuthorization
|
|
404
|
-
*/
|
|
405
|
-
readonly userSecret: string;
|
|
406
|
-
};
|
|
407
|
-
/**
|
|
408
|
-
* Request parameters for removeBrokerageAuthorization operation in ConnectionsApi.
|
|
409
|
-
* @export
|
|
410
|
-
* @interface ConnectionsApiRemoveBrokerageAuthorizationRequest
|
|
411
|
-
*/
|
|
412
|
-
export type ConnectionsApiRemoveBrokerageAuthorizationRequest = {
|
|
413
|
-
/**
|
|
414
|
-
*
|
|
415
|
-
* @type {string}
|
|
416
|
-
* @memberof ConnectionsApiRemoveBrokerageAuthorization
|
|
417
|
-
*/
|
|
418
|
-
readonly authorizationId: string;
|
|
419
|
-
/**
|
|
420
|
-
*
|
|
421
|
-
* @type {string}
|
|
422
|
-
* @memberof ConnectionsApiRemoveBrokerageAuthorization
|
|
423
|
-
*/
|
|
424
|
-
readonly userId: string;
|
|
425
|
-
/**
|
|
426
|
-
*
|
|
427
|
-
* @type {string}
|
|
428
|
-
* @memberof ConnectionsApiRemoveBrokerageAuthorization
|
|
429
|
-
*/
|
|
430
|
-
readonly userSecret: string;
|
|
431
|
-
};
|
|
432
|
-
/**
|
|
433
|
-
* Request parameters for returnRates operation in ConnectionsApi.
|
|
434
|
-
* @export
|
|
435
|
-
* @interface ConnectionsApiReturnRatesRequest
|
|
436
|
-
*/
|
|
437
|
-
export type ConnectionsApiReturnRatesRequest = {
|
|
438
|
-
/**
|
|
439
|
-
*
|
|
440
|
-
* @type {string}
|
|
441
|
-
* @memberof ConnectionsApiReturnRates
|
|
442
|
-
*/
|
|
443
|
-
readonly userId: string;
|
|
444
|
-
/**
|
|
445
|
-
*
|
|
446
|
-
* @type {string}
|
|
447
|
-
* @memberof ConnectionsApiReturnRates
|
|
448
|
-
*/
|
|
449
|
-
readonly userSecret: string;
|
|
450
|
-
/**
|
|
451
|
-
*
|
|
452
|
-
* @type {string}
|
|
453
|
-
* @memberof ConnectionsApiReturnRates
|
|
454
|
-
*/
|
|
455
|
-
readonly authorizationId: string;
|
|
456
|
-
/**
|
|
457
|
-
* Optional comma separated list of rate-of-return timeframes to return. Supported values are `ALL`, `1Y`, `YTD`, `1M`, `1W`, and `1D`. If omitted, SnapTrade returns all six supported timeframes.
|
|
458
|
-
* @type {string}
|
|
459
|
-
* @memberof ConnectionsApiReturnRates
|
|
460
|
-
*/
|
|
461
|
-
readonly timeframes?: string;
|
|
462
|
-
};
|
|
463
|
-
/**
|
|
464
|
-
* Request parameters for sessionEvents operation in ConnectionsApi.
|
|
465
|
-
* @export
|
|
466
|
-
* @interface ConnectionsApiSessionEventsRequest
|
|
467
|
-
*/
|
|
468
|
-
export type ConnectionsApiSessionEventsRequest = {
|
|
469
|
-
/**
|
|
470
|
-
*
|
|
471
|
-
* @type {string}
|
|
472
|
-
* @memberof ConnectionsApiSessionEvents
|
|
473
|
-
*/
|
|
474
|
-
readonly partnerClientId: string;
|
|
475
|
-
/**
|
|
476
|
-
* Optional comma separated list of user IDs used to filter the request on specific users
|
|
477
|
-
* @type {string}
|
|
478
|
-
* @memberof ConnectionsApiSessionEvents
|
|
479
|
-
*/
|
|
480
|
-
readonly userId?: string;
|
|
481
|
-
/**
|
|
482
|
-
* Optional comma separated list of session IDs used to filter the request on specific users
|
|
483
|
-
* @type {string}
|
|
484
|
-
* @memberof ConnectionsApiSessionEvents
|
|
485
|
-
*/
|
|
486
|
-
readonly sessionId?: string;
|
|
487
|
-
};
|
|
488
|
-
/**
|
|
489
|
-
* ConnectionsApiGenerated - object-oriented interface
|
|
490
|
-
* @export
|
|
491
|
-
* @class ConnectionsApiGenerated
|
|
492
|
-
* @extends {BaseAPI}
|
|
493
|
-
*/
|
|
494
|
-
export declare class ConnectionsApiGenerated extends BaseAPI {
|
|
495
|
-
/**
|
|
496
|
-
* Deletes the SnapTrade connection specified by the ID. This will also remove the accounts and holdings data associated with the connection from SnapTrade. This action is irreversible. This endpoint is asynchronous, a 200 response indicates that a task has been queued to delete the connection. Listen for the [`CONNECTION_DELETED` webhook](https://docs.snaptrade.com/docs/webhooks#webhooks-connection_deleted) webhook to know when the deletion has been completed and the data has been removed.
|
|
497
|
-
* @summary Delete connection
|
|
498
|
-
* @param {ConnectionsApiDeleteConnectionRequest} requestParameters Request parameters.
|
|
499
|
-
* @param {*} [options] Override http request option.
|
|
500
|
-
* @throws {RequiredError}
|
|
501
|
-
* @memberof ConnectionsApiGenerated
|
|
502
|
-
*/
|
|
503
|
-
deleteConnection(requestParameters: ConnectionsApiDeleteConnectionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteConnectionConfirmation, any, {}>>;
|
|
504
|
-
/**
|
|
505
|
-
* Returns a single connection for the specified ID.
|
|
506
|
-
* @summary Get connection detail
|
|
507
|
-
* @param {ConnectionsApiDetailBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
508
|
-
* @param {*} [options] Override http request option.
|
|
509
|
-
* @throws {RequiredError}
|
|
510
|
-
* @memberof ConnectionsApiGenerated
|
|
511
|
-
*/
|
|
512
|
-
detailBrokerageAuthorization(requestParameters: ConnectionsApiDetailBrokerageAuthorizationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BrokerageAuthorization, any, {}>>;
|
|
513
|
-
/**
|
|
514
|
-
* Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](/docs/webhooks#webhooks-connection_broken) for the connection. This endpoint is available on test keys. If you would like it enabled on production keys as well, please contact support as it is disabled by default.
|
|
515
|
-
* @summary Force disable connection
|
|
516
|
-
* @param {ConnectionsApiDisableBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
517
|
-
* @param {*} [options] Override http request option.
|
|
518
|
-
* @throws {RequiredError}
|
|
519
|
-
* @memberof ConnectionsApiGenerated
|
|
520
|
-
*/
|
|
521
|
-
disableBrokerageAuthorization(requestParameters: ConnectionsApiDisableBrokerageAuthorizationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BrokerageAuthorizationDisabledConfirmation, any, {}>>;
|
|
522
|
-
/**
|
|
523
|
-
* Returns all brokerage accounts that belong to the specified connection for the authenticated user. On Pay as you Go / Real-time, this endpoint refreshes each account\'s opening date, funding date, and total value live from the brokerage on each call. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by brokerage. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
524
|
-
* @summary List accounts for a connection
|
|
525
|
-
* @param {ConnectionsApiListBrokerageAuthorizationAccountsRequest} requestParameters Request parameters.
|
|
526
|
-
* @param {*} [options] Override http request option.
|
|
527
|
-
* @throws {RequiredError}
|
|
528
|
-
* @memberof ConnectionsApiGenerated
|
|
529
|
-
*/
|
|
530
|
-
listBrokerageAuthorizationAccounts(requestParameters: ConnectionsApiListBrokerageAuthorizationAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Account[], any, {}>>;
|
|
531
|
-
/**
|
|
532
|
-
* Returns a list of all connections for the specified user. Note that `Connection` and `Brokerage Authorization` are interchangeable, but the term `Connection` is preferred and used in the doc for consistency. A connection is usually tied to a single login at a brokerage. A single connection can contain multiple brokerage accounts. SnapTrade performs de-duping on connections for a given user. If the user has an existing connection with the brokerage, when connecting the brokerage with the same credentials, SnapTrade will return the existing connection instead of creating a new one.
|
|
533
|
-
* @summary List all connections
|
|
534
|
-
* @param {ConnectionsApiListBrokerageAuthorizationsRequest} requestParameters Request parameters.
|
|
535
|
-
* @param {*} [options] Override http request option.
|
|
536
|
-
* @throws {RequiredError}
|
|
537
|
-
* @memberof ConnectionsApiGenerated
|
|
538
|
-
*/
|
|
539
|
-
listBrokerageAuthorizations(requestParameters: ConnectionsApiListBrokerageAuthorizationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BrokerageAuthorization[], any, {}>>;
|
|
540
|
-
/**
|
|
541
|
-
* Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Because of the cost of refreshing a connection, each call to this endpoint incurs an additional charge. You can find the exact cost for your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)** **Please note this endpoint is disabled for Pay as you Go / Real-time plans. Pay as you Go / Real-time plans do not benefit from this feature since data is refreshed when calls are made**
|
|
542
|
-
* @summary Refresh holdings for a connection
|
|
543
|
-
* @param {ConnectionsApiRefreshBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
544
|
-
* @param {*} [options] Override http request option.
|
|
545
|
-
* @throws {RequiredError}
|
|
546
|
-
* @memberof ConnectionsApiGenerated
|
|
547
|
-
*/
|
|
548
|
-
refreshBrokerageAuthorization(requestParameters: ConnectionsApiRefreshBrokerageAuthorizationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BrokerageAuthorizationRefreshConfirmation, any, {}>>;
|
|
549
|
-
/**
|
|
550
|
-
* Deletes the SnapTrade connection specified by the ID. This will also remove the accounts and holdings data associated with the connection from SnapTrade. This action is irreversible. This endpoint is synchronous, a 204 response indicates that the data has been successfully deleted.
|
|
551
|
-
* @summary Delete connection
|
|
552
|
-
* @param {ConnectionsApiRemoveBrokerageAuthorizationRequest} requestParameters Request parameters.
|
|
553
|
-
* @param {*} [options] Override http request option.
|
|
554
|
-
* @throws {RequiredError}
|
|
555
|
-
* @memberof ConnectionsApiGenerated
|
|
556
|
-
*/
|
|
557
|
-
removeBrokerageAuthorization(requestParameters: ConnectionsApiRemoveBrokerageAuthorizationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
558
|
-
/**
|
|
559
|
-
* Returns a list of rate of return percents for a given connection.
|
|
560
|
-
* @summary List connection rate of returns
|
|
561
|
-
* @param {ConnectionsApiReturnRatesRequest} requestParameters Request parameters.
|
|
562
|
-
* @param {*} [options] Override http request option.
|
|
563
|
-
* @throws {RequiredError}
|
|
564
|
-
* @memberof ConnectionsApiGenerated
|
|
565
|
-
*/
|
|
566
|
-
returnRates(requestParameters: ConnectionsApiReturnRatesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RateOfReturnResponse, any, {}>>;
|
|
567
|
-
/**
|
|
568
|
-
* Returns a list of session events associated with a user.
|
|
569
|
-
* @summary Get all session events for a user
|
|
570
|
-
* @param {ConnectionsApiSessionEventsRequest} requestParameters Request parameters.
|
|
571
|
-
* @param {*} [options] Override http request option.
|
|
572
|
-
* @throws {RequiredError}
|
|
573
|
-
* @memberof ConnectionsApiGenerated
|
|
574
|
-
*/
|
|
575
|
-
sessionEvents(requestParameters: ConnectionsApiSessionEventsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<import("../models").SessionEvent[], any, {}>>;
|
|
576
|
-
}
|