snaptrade-typescript-sdk 9.0.200 → 10.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -2
- package/dist/chunk-e9Ob2GDo.mjs +26 -0
- package/dist/index.cjs +6594 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.d.mts +10422 -0
- package/dist/index.d.ts +1 -5
- package/dist/index.mjs +6527 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +27 -13
- package/dist/api/account-information-api-generated.d.ts +0 -950
- package/dist/api/account-information-api-generated.js +0 -1372
- package/dist/api/account-information-api.d.ts +0 -4
- package/dist/api/account-information-api.js +0 -22
- package/dist/api/api-status-api-generated.d.ts +0 -59
- package/dist/api/api-status-api-generated.js +0 -133
- package/dist/api/api-status-api.d.ts +0 -4
- package/dist/api/api-status-api.js +0 -22
- package/dist/api/authentication-api-generated.d.ts +0 -241
- package/dist/api/authentication-api-generated.js +0 -482
- package/dist/api/authentication-api.d.ts +0 -4
- package/dist/api/authentication-api.js +0 -22
- package/dist/api/connections-api-generated.d.ts +0 -576
- package/dist/api/connections-api-generated.js +0 -868
- package/dist/api/connections-api.d.ts +0 -4
- package/dist/api/connections-api.js +0 -22
- package/dist/api/options-api-generated.d.ts +0 -90
- package/dist/api/options-api-generated.js +0 -158
- package/dist/api/options-api.d.ts +0 -4
- package/dist/api/options-api.js +0 -22
- package/dist/api/reference-data-api-generated.d.ts +0 -497
- package/dist/api/reference-data-api-generated.js +0 -973
- package/dist/api/reference-data-api.d.ts +0 -4
- package/dist/api/reference-data-api.js +0 -22
- package/dist/api/trading-api-generated.d.ts +0 -1058
- package/dist/api/trading-api-generated.js +0 -1688
- package/dist/api/trading-api.d.ts +0 -4
- package/dist/api/trading-api.js +0 -22
- package/dist/api/transactions-and-reporting-api-generated.d.ts +0 -215
- package/dist/api/transactions-and-reporting-api-generated.js +0 -299
- package/dist/api/transactions-and-reporting-api.d.ts +0 -4
- package/dist/api/transactions-and-reporting-api.js +0 -22
- package/dist/api.d.ts +0 -8
- package/dist/api.js +0 -36
- package/dist/base.d.ts +0 -44
- package/dist/base.js +0 -60
- package/dist/browser.js +0 -2
- package/dist/browser.js.LICENSE.txt +0 -1
- package/dist/client-custom.d.ts +0 -4
- package/dist/client-custom.js +0 -7
- package/dist/client.d.ts +0 -14
- package/dist/client.js +0 -31
- package/dist/common.d.ts +0 -61
- package/dist/common.js +0 -220
- package/dist/configuration.d.ts +0 -98
- package/dist/configuration.js +0 -53
- package/dist/error.d.ts +0 -46
- package/dist/error.js +0 -105
- package/dist/index.js +0 -33
- package/dist/jest.config.d.ts +0 -3
- package/dist/jest.config.js +0 -13
- package/dist/mock.test.d.ts +0 -1
- package/dist/mock.test.js +0 -29
- package/dist/models/account-balance-total.d.ts +0 -19
- package/dist/models/account-balance-total.js +0 -2
- package/dist/models/account-balance.d.ts +0 -14
- package/dist/models/account-balance.js +0 -2
- package/dist/models/account-holdings-account.d.ts +0 -51
- package/dist/models/account-holdings-account.js +0 -2
- package/dist/models/account-holdings.d.ts +0 -37
- package/dist/models/account-holdings.js +0 -2
- package/dist/models/account-information-get-user-account-order-detail-request.d.ts +0 -13
- package/dist/models/account-information-get-user-account-order-detail-request.js +0 -2
- package/dist/models/account-order-record-child-brokerage-order-ids.d.ts +0 -19
- package/dist/models/account-order-record-child-brokerage-order-ids.js +0 -2
- package/dist/models/account-order-record-leg-instrument.d.ts +0 -38
- package/dist/models/account-order-record-leg-instrument.js +0 -2
- package/dist/models/account-order-record-leg.d.ts +0 -58
- package/dist/models/account-order-record-leg.js +0 -2
- package/dist/models/account-order-record-option-symbol.d.ts +0 -52
- package/dist/models/account-order-record-option-symbol.js +0 -2
- package/dist/models/account-order-record-quote-currency.d.ts +0 -25
- package/dist/models/account-order-record-quote-currency.js +0 -2
- package/dist/models/account-order-record-quote-universal-symbol.d.ts +0 -73
- package/dist/models/account-order-record-quote-universal-symbol.js +0 -2
- package/dist/models/account-order-record-status-v2.d.ts +0 -6
- package/dist/models/account-order-record-status-v2.js +0 -2
- package/dist/models/account-order-record-status.d.ts +0 -6
- package/dist/models/account-order-record-status.js +0 -2
- package/dist/models/account-order-record-trailing-stop.d.ts +0 -21
- package/dist/models/account-order-record-trailing-stop.js +0 -2
- package/dist/models/account-order-record-universal-symbol.d.ts +0 -73
- package/dist/models/account-order-record-universal-symbol.js +0 -2
- package/dist/models/account-order-record-v2.d.ts +0 -97
- package/dist/models/account-order-record-v2.js +0 -2
- package/dist/models/account-order-record.d.ts +0 -168
- package/dist/models/account-order-record.js +0 -2
- package/dist/models/account-orders-v2-response.d.ts +0 -15
- package/dist/models/account-orders-v2-response.js +0 -2
- package/dist/models/account-position.d.ts +0 -52
- package/dist/models/account-position.js +0 -2
- package/dist/models/account-simple.d.ts +0 -39
- package/dist/models/account-simple.js +0 -2
- package/dist/models/account-sync-status.d.ts +0 -21
- package/dist/models/account-sync-status.js +0 -2
- package/dist/models/account-universal-activity-currency.d.ts +0 -25
- package/dist/models/account-universal-activity-currency.js +0 -2
- package/dist/models/account-universal-activity-option-symbol.d.ts +0 -52
- package/dist/models/account-universal-activity-option-symbol.js +0 -2
- package/dist/models/account-universal-activity-symbol.d.ts +0 -65
- package/dist/models/account-universal-activity-symbol.js +0 -2
- package/dist/models/account-universal-activity.d.ts +0 -107
- package/dist/models/account-universal-activity.js +0 -2
- package/dist/models/account-value-history-item.d.ts +0 -20
- package/dist/models/account-value-history-item.js +0 -2
- package/dist/models/account-value-history-response.d.ts +0 -21
- package/dist/models/account-value-history-response.js +0 -2
- package/dist/models/account.d.ts +0 -126
- package/dist/models/account.js +0 -2
- package/dist/models/action-strict-with-options.d.ts +0 -6
- package/dist/models/action-strict-with-options.js +0 -2
- package/dist/models/action-strict.d.ts +0 -6
- package/dist/models/action-strict.js +0 -2
- package/dist/models/adr-instrument.d.ts +0 -59
- package/dist/models/adr-instrument.js +0 -2
- package/dist/models/all-account-positions-response.d.ts +0 -15
- package/dist/models/all-account-positions-response.js +0 -2
- package/dist/models/authentication-login-snap-trade-user200-response.d.ts +0 -7
- package/dist/models/authentication-login-snap-trade-user200-response.js +0 -2
- package/dist/models/balance-currency.d.ts +0 -25
- package/dist/models/balance-currency.js +0 -2
- package/dist/models/balance.d.ts +0 -27
- package/dist/models/balance.js +0 -2
- package/dist/models/brokerage-authorization-disabled-confirmation.d.ts +0 -14
- package/dist/models/brokerage-authorization-disabled-confirmation.js +0 -2
- package/dist/models/brokerage-authorization-refresh-confirmation.d.ts +0 -14
- package/dist/models/brokerage-authorization-refresh-confirmation.js +0 -2
- package/dist/models/brokerage-authorization-transactions-sync-confirmation.d.ts +0 -14
- package/dist/models/brokerage-authorization-transactions-sync-confirmation.js +0 -2
- package/dist/models/brokerage-authorization-type-read-only-brokerage.d.ts +0 -26
- package/dist/models/brokerage-authorization-type-read-only-brokerage.js +0 -2
- package/dist/models/brokerage-authorization-type-read-only.d.ts +0 -36
- package/dist/models/brokerage-authorization-type-read-only.js +0 -2
- package/dist/models/brokerage-authorization.d.ts +0 -73
- package/dist/models/brokerage-authorization.js +0 -2
- package/dist/models/brokerage-instrument.d.ts +0 -38
- package/dist/models/brokerage-instrument.js +0 -2
- package/dist/models/brokerage-instruments-response.d.ts +0 -15
- package/dist/models/brokerage-instruments-response.js +0 -2
- package/dist/models/brokerage-type.d.ts +0 -20
- package/dist/models/brokerage-type.js +0 -2
- package/dist/models/brokerage.d.ts +0 -122
- package/dist/models/brokerage.js +0 -2
- package/dist/models/cancel-order-response.d.ts +0 -22
- package/dist/models/cancel-order-response.js +0 -2
- package/dist/models/cef-instrument.d.ts +0 -59
- package/dist/models/cef-instrument.js +0 -2
- package/dist/models/child-brokerage-order-ids.d.ts +0 -20
- package/dist/models/child-brokerage-order-ids.js +0 -2
- package/dist/models/complex-order-leg.d.ts +0 -62
- package/dist/models/complex-order-leg.js +0 -2
- package/dist/models/complex-order-response.d.ts +0 -22
- package/dist/models/complex-order-response.js +0 -2
- package/dist/models/connections-session-events200-response-inner.d.ts +0 -6
- package/dist/models/connections-session-events200-response-inner.js +0 -2
- package/dist/models/crypto-instrument.d.ts +0 -59
- package/dist/models/crypto-instrument.js +0 -2
- package/dist/models/crypto-order-form.d.ts +0 -66
- package/dist/models/crypto-order-form.js +0 -2
- package/dist/models/crypto-order-preview-estimated-fee.d.ts +0 -20
- package/dist/models/crypto-order-preview-estimated-fee.js +0 -2
- package/dist/models/crypto-order-preview.d.ts +0 -15
- package/dist/models/crypto-order-preview.js +0 -2
- package/dist/models/crypto-trading-instrument.d.ts +0 -22
- package/dist/models/crypto-trading-instrument.js +0 -2
- package/dist/models/cryptocurrency-pair-quote.d.ts +0 -32
- package/dist/models/cryptocurrency-pair-quote.js +0 -2
- package/dist/models/cryptocurrency-pair.d.ts +0 -32
- package/dist/models/cryptocurrency-pair.js +0 -2
- package/dist/models/currency.d.ts +0 -26
- package/dist/models/currency.js +0 -2
- package/dist/models/delete-connection-confirmation.d.ts +0 -20
- package/dist/models/delete-connection-confirmation.js +0 -2
- package/dist/models/delete-user-response.d.ts +0 -26
- package/dist/models/delete-user-response.js +0 -2
- package/dist/models/dividend-at-date.d.ts +0 -26
- package/dist/models/dividend-at-date.js +0 -2
- package/dist/models/encrypted-response-encrypted-message-data.d.ts +0 -26
- package/dist/models/encrypted-response-encrypted-message-data.js +0 -2
- package/dist/models/encrypted-response.d.ts +0 -20
- package/dist/models/encrypted-response.js +0 -2
- package/dist/models/etf-instrument.d.ts +0 -59
- package/dist/models/etf-instrument.js +0 -2
- package/dist/models/exchange-rate-pairs.d.ts +0 -27
- package/dist/models/exchange-rate-pairs.js +0 -2
- package/dist/models/exchange.d.ts +0 -56
- package/dist/models/exchange.js +0 -2
- package/dist/models/figi-instrument.d.ts +0 -20
- package/dist/models/figi-instrument.js +0 -2
- package/dist/models/future-instrument.d.ts +0 -64
- package/dist/models/future-instrument.js +0 -2
- package/dist/models/holdings-status.d.ts +0 -19
- package/dist/models/holdings-status.js +0 -2
- package/dist/models/index.d.ts +0 -173
- package/dist/models/index.js +0 -189
- package/dist/models/instrument.d.ts +0 -33
- package/dist/models/instrument.js +0 -2
- package/dist/models/login-redirect-uri.d.ts +0 -19
- package/dist/models/login-redirect-uri.js +0 -2
- package/dist/models/manual-trade-and-impact.d.ts +0 -29
- package/dist/models/manual-trade-and-impact.js +0 -2
- package/dist/models/manual-trade-balance.d.ts +0 -28
- package/dist/models/manual-trade-balance.js +0 -2
- package/dist/models/manual-trade-form-bracket.d.ts +0 -67
- package/dist/models/manual-trade-form-bracket.js +0 -2
- package/dist/models/manual-trade-form-complex.d.ts +0 -28
- package/dist/models/manual-trade-form-complex.js +0 -2
- package/dist/models/manual-trade-form-notional-value.d.ts +0 -6
- package/dist/models/manual-trade-form-notional-value.js +0 -2
- package/dist/models/manual-trade-form-with-options.d.ts +0 -78
- package/dist/models/manual-trade-form-with-options.js +0 -2
- package/dist/models/manual-trade-form.d.ts +0 -65
- package/dist/models/manual-trade-form.js +0 -2
- package/dist/models/manual-trade-impact.d.ts +0 -38
- package/dist/models/manual-trade-impact.js +0 -2
- package/dist/models/manual-trade-replace-form.d.ts +0 -58
- package/dist/models/manual-trade-replace-form.js +0 -2
- package/dist/models/manual-trade-symbol.d.ts +0 -49
- package/dist/models/manual-trade-symbol.js +0 -2
- package/dist/models/manual-trade.d.ts +0 -60
- package/dist/models/manual-trade.js +0 -2
- package/dist/models/mleg-action-strict.d.ts +0 -6
- package/dist/models/mleg-action-strict.js +0 -2
- package/dist/models/mleg-instrument-type.d.ts +0 -6
- package/dist/models/mleg-instrument-type.js +0 -2
- package/dist/models/mleg-leg.d.ts +0 -28
- package/dist/models/mleg-leg.js +0 -2
- package/dist/models/mleg-order-response.d.ts +0 -21
- package/dist/models/mleg-order-response.js +0 -2
- package/dist/models/mleg-order-type-strict.d.ts +0 -6
- package/dist/models/mleg-order-type-strict.js +0 -2
- package/dist/models/mleg-price-effect-strict.d.ts +0 -6
- package/dist/models/mleg-price-effect-strict.js +0 -2
- package/dist/models/mleg-trade-form.d.ts +0 -47
- package/dist/models/mleg-trade-form.js +0 -2
- package/dist/models/mleg-trading-instrument.d.ts +0 -21
- package/dist/models/mleg-trading-instrument.js +0 -2
- package/dist/models/model400-failed-request-response.d.ts +0 -20
- package/dist/models/model400-failed-request-response.js +0 -2
- package/dist/models/model401-failed-request-response.d.ts +0 -20
- package/dist/models/model401-failed-request-response.js +0 -2
- package/dist/models/model402-brokerage-auth-already-disabled-exception.d.ts +0 -20
- package/dist/models/model402-brokerage-auth-already-disabled-exception.js +0 -2
- package/dist/models/model402-brokerage-auth-disabled-response.d.ts +0 -20
- package/dist/models/model402-brokerage-auth-disabled-response.js +0 -2
- package/dist/models/model403-failed-request-response.d.ts +0 -20
- package/dist/models/model403-failed-request-response.js +0 -2
- package/dist/models/model403-feature-not-enabled-response.d.ts +0 -20
- package/dist/models/model403-feature-not-enabled-response.js +0 -2
- package/dist/models/model404-failed-request-response.d.ts +0 -20
- package/dist/models/model404-failed-request-response.js +0 -2
- package/dist/models/model425-failed-request-response.d.ts +0 -20
- package/dist/models/model425-failed-request-response.js +0 -2
- package/dist/models/model500-unexpected-exception-response.d.ts +0 -26
- package/dist/models/model500-unexpected-exception-response.js +0 -2
- package/dist/models/monthly-dividends.d.ts +0 -21
- package/dist/models/monthly-dividends.js +0 -2
- package/dist/models/mutual-fund-instrument.d.ts +0 -59
- package/dist/models/mutual-fund-instrument.js +0 -2
- package/dist/models/net-contributions.d.ts +0 -26
- package/dist/models/net-contributions.js +0 -2
- package/dist/models/net-dividend.d.ts +0 -27
- package/dist/models/net-dividend.js +0 -2
- package/dist/models/notional-value.d.ts +0 -6
- package/dist/models/notional-value.js +0 -2
- package/dist/models/option-brokerage-symbol.d.ts +0 -29
- package/dist/models/option-brokerage-symbol.js +0 -2
- package/dist/models/option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner.d.ts +0 -26
- package/dist/models/option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner.js +0 -2
- package/dist/models/option-chain-inner-chain-per-root-inner.d.ts +0 -27
- package/dist/models/option-chain-inner-chain-per-root-inner.js +0 -2
- package/dist/models/option-chain-inner.d.ts +0 -39
- package/dist/models/option-chain-inner.js +0 -2
- package/dist/models/option-impact.d.ts +0 -28
- package/dist/models/option-impact.js +0 -2
- package/dist/models/option-instrument.d.ts +0 -60
- package/dist/models/option-instrument.js +0 -2
- package/dist/models/option-leg.d.ts +0 -28
- package/dist/models/option-leg.js +0 -2
- package/dist/models/option-quote-greeks.d.ts +0 -32
- package/dist/models/option-quote-greeks.js +0 -2
- package/dist/models/option-quote.d.ts +0 -39
- package/dist/models/option-quote.js +0 -2
- package/dist/models/option-strategy-legs-inner.d.ts +0 -31
- package/dist/models/option-strategy-legs-inner.js +0 -2
- package/dist/models/option-strategy.d.ts +0 -40
- package/dist/models/option-strategy.js +0 -2
- package/dist/models/options-position-currency.d.ts +0 -25
- package/dist/models/options-position-currency.js +0 -2
- package/dist/models/options-position.d.ts +0 -41
- package/dist/models/options-position.js +0 -2
- package/dist/models/options-symbol.d.ts +0 -53
- package/dist/models/options-symbol.js +0 -2
- package/dist/models/order-type-strict.d.ts +0 -6
- package/dist/models/order-type-strict.js +0 -2
- package/dist/models/order-updated-response-order.d.ts +0 -167
- package/dist/models/order-updated-response-order.js +0 -2
- package/dist/models/order-updated-response.d.ts +0 -21
- package/dist/models/order-updated-response.js +0 -2
- package/dist/models/other-instrument.d.ts +0 -59
- package/dist/models/other-instrument.js +0 -2
- package/dist/models/paginated-universal-activity.d.ts +0 -22
- package/dist/models/paginated-universal-activity.js +0 -2
- package/dist/models/pagination-details.d.ts +0 -26
- package/dist/models/pagination-details.js +0 -2
- package/dist/models/partner-data.d.ts +0 -82
- package/dist/models/partner-data.js +0 -2
- package/dist/models/past-value.d.ts +0 -26
- package/dist/models/past-value.js +0 -2
- package/dist/models/performance-custom.d.ts +0 -127
- package/dist/models/performance-custom.js +0 -2
- package/dist/models/position-currency.d.ts +0 -25
- package/dist/models/position-currency.js +0 -2
- package/dist/models/position-symbol.d.ts +0 -50
- package/dist/models/position-symbol.js +0 -2
- package/dist/models/position.d.ts +0 -66
- package/dist/models/position.js +0 -2
- package/dist/models/rate-of-return-object.d.ts +0 -28
- package/dist/models/rate-of-return-object.js +0 -2
- package/dist/models/rate-of-return-response.d.ts +0 -15
- package/dist/models/rate-of-return-response.js +0 -2
- package/dist/models/recent-orders-response.d.ts +0 -15
- package/dist/models/recent-orders-response.js +0 -2
- package/dist/models/security-type.d.ts +0 -33
- package/dist/models/security-type.js +0 -2
- package/dist/models/session-event.d.ts +0 -52
- package/dist/models/session-event.js +0 -2
- package/dist/models/simple-order-form.d.ts +0 -67
- package/dist/models/simple-order-form.js +0 -2
- package/dist/models/snap-trade-holdings-account.d.ts +0 -60
- package/dist/models/snap-trade-holdings-account.js +0 -2
- package/dist/models/snap-trade-holdings-total-value.d.ts +0 -20
- package/dist/models/snap-trade-holdings-total-value.js +0 -2
- package/dist/models/snap-trade-login-user-request-body.d.ts +0 -58
- package/dist/models/snap-trade-login-user-request-body.js +0 -2
- package/dist/models/snap-trade-register-user-request-body.d.ts +0 -13
- package/dist/models/snap-trade-register-user-request-body.js +0 -2
- package/dist/models/status.d.ts +0 -26
- package/dist/models/status.js +0 -2
- package/dist/models/stock-instrument-figi-instrument.d.ts +0 -19
- package/dist/models/stock-instrument-figi-instrument.js +0 -2
- package/dist/models/stock-instrument.d.ts +0 -59
- package/dist/models/stock-instrument.js +0 -2
- package/dist/models/stop-loss.d.ts +0 -20
- package/dist/models/stop-loss.js +0 -2
- package/dist/models/strategy-order-record.d.ts +0 -77
- package/dist/models/strategy-order-record.js +0 -2
- package/dist/models/strategy-quotes-greek.d.ts +0 -38
- package/dist/models/strategy-quotes-greek.js +0 -2
- package/dist/models/strategy-quotes.d.ts +0 -46
- package/dist/models/strategy-quotes.js +0 -2
- package/dist/models/sub-period-return-rate.d.ts +0 -26
- package/dist/models/sub-period-return-rate.js +0 -2
- package/dist/models/symbol-currency.d.ts +0 -25
- package/dist/models/symbol-currency.js +0 -2
- package/dist/models/symbol-exchange.d.ts +0 -55
- package/dist/models/symbol-exchange.js +0 -2
- package/dist/models/symbol-query.d.ts +0 -13
- package/dist/models/symbol-query.js +0 -2
- package/dist/models/symbol.d.ts +0 -66
- package/dist/models/symbol.js +0 -2
- package/dist/models/symbols-quotes-inner.d.ts +0 -44
- package/dist/models/symbols-quotes-inner.js +0 -2
- package/dist/models/take-profit.d.ts +0 -14
- package/dist/models/take-profit.js +0 -2
- package/dist/models/tax-lot.d.ts +0 -50
- package/dist/models/tax-lot.js +0 -2
- package/dist/models/time-in-force-strict.d.ts +0 -6
- package/dist/models/time-in-force-strict.js +0 -2
- package/dist/models/trade-detection-cancel-subscription-response.d.ts +0 -14
- package/dist/models/trade-detection-cancel-subscription-response.js +0 -2
- package/dist/models/trade-detection-subscription.d.ts +0 -26
- package/dist/models/trade-detection-subscription.js +0 -2
- package/dist/models/trading-instrument.d.ts +0 -22
- package/dist/models/trading-instrument.js +0 -2
- package/dist/models/trading-search-cryptocurrency-pair-instruments200-response.d.ts +0 -15
- package/dist/models/trading-search-cryptocurrency-pair-instruments200-response.js +0 -2
- package/dist/models/trading-session.d.ts +0 -6
- package/dist/models/trading-session.js +0 -2
- package/dist/models/trailing-stop.d.ts +0 -22
- package/dist/models/trailing-stop.js +0 -2
- package/dist/models/transactions-status.d.ts +0 -25
- package/dist/models/transactions-status.js +0 -2
- package/dist/models/underlying-option-instrument.d.ts +0 -27
- package/dist/models/underlying-option-instrument.js +0 -2
- package/dist/models/underlying-symbol-exchange.d.ts +0 -61
- package/dist/models/underlying-symbol-exchange.js +0 -2
- package/dist/models/underlying-symbol-type.d.ts +0 -32
- package/dist/models/underlying-symbol-type.js +0 -2
- package/dist/models/underlying-symbol.d.ts +0 -74
- package/dist/models/underlying-symbol.js +0 -2
- package/dist/models/universal-activity.d.ts +0 -114
- package/dist/models/universal-activity.js +0 -2
- package/dist/models/universal-symbol.d.ts +0 -74
- package/dist/models/universal-symbol.js +0 -2
- package/dist/models/user-idand-secret.d.ts +0 -19
- package/dist/models/user-idand-secret.js +0 -2
- package/dist/models/usexchange.d.ts +0 -62
- package/dist/models/usexchange.js +0 -2
- package/dist/models/validated-trade-body.d.ts +0 -13
- package/dist/models/validated-trade-body.js +0 -2
- package/dist/operationParameterMap.d.ts +0 -8
- package/dist/operationParameterMap.js +0 -966
- package/dist/pagination/page-types.d.ts +0 -16
- package/dist/pagination/page-types.js +0 -12
- package/dist/pagination/page.d.ts +0 -25
- package/dist/pagination/page.js +0 -32
- package/dist/pagination/pageable.d.ts +0 -47
- package/dist/pagination/pageable.js +0 -70
- package/dist/pagination/paginate.d.ts +0 -6
- package/dist/pagination/paginate.js +0 -39
- package/dist/requestAfterHook.d.ts +0 -8
- package/dist/requestAfterHook.js +0 -82
- package/dist/requestBeforeHook.d.ts +0 -10
- package/dist/requestBeforeHook.js +0 -8
- package/dist/requestBeforeUrlHook.d.ts +0 -7
- package/dist/requestBeforeUrlHook.js +0 -5
|
@@ -1,973 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/*
|
|
5
|
-
SnapTrade
|
|
6
|
-
|
|
7
|
-
Connect brokerage accounts to your app for live positions and trading
|
|
8
|
-
|
|
9
|
-
The version of the OpenAPI document: 1.0.0
|
|
10
|
-
Contact: api@snaptrade.com
|
|
11
|
-
|
|
12
|
-
NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
13
|
-
*/
|
|
14
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.ReferenceDataApiGenerated = exports.ReferenceDataApiFactory = exports.ReferenceDataApiFp = exports.ReferenceDataApiAxiosParamCreator = void 0;
|
|
25
|
-
const axios_1 = require("axios");
|
|
26
|
-
// Some imports not used depending on template conditions
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
const common_1 = require("../common");
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
const base_1 = require("../base");
|
|
31
|
-
const requestBeforeHook_1 = require("../requestBeforeHook");
|
|
32
|
-
/**
|
|
33
|
-
* ReferenceDataApi - axios parameter creator
|
|
34
|
-
* @export
|
|
35
|
-
*/
|
|
36
|
-
const ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
37
|
-
return {
|
|
38
|
-
/**
|
|
39
|
-
* Returns an Exchange Rate Pair object for the specified Currency Pair.
|
|
40
|
-
* @summary Get exchange rate of a currency pair
|
|
41
|
-
* @param {string} currencyPair A currency pair based on currency code for example, {CAD-USD}
|
|
42
|
-
* @param {*} [options] Override http request option.
|
|
43
|
-
* @throws {RequiredError}
|
|
44
|
-
*/
|
|
45
|
-
getCurrencyExchangeRatePair: (currencyPair, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
46
|
-
// verify required parameter 'currencyPair' is not null or undefined
|
|
47
|
-
(0, common_1.assertParamExists)('getCurrencyExchangeRatePair', 'currencyPair', currencyPair);
|
|
48
|
-
const localVarPath = `/currencies/rates/{currencyPair}`
|
|
49
|
-
.replace(`{${"currencyPair"}}`, encodeURIComponent(String(currencyPair !== undefined ? currencyPair : `-currencyPair-`)));
|
|
50
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
51
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
52
|
-
let baseOptions;
|
|
53
|
-
if (configuration) {
|
|
54
|
-
baseOptions = configuration.baseOptions;
|
|
55
|
-
}
|
|
56
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
57
|
-
const localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
58
|
-
const localVarQueryParameter = {};
|
|
59
|
-
// authentication PartnerClientId required
|
|
60
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "clientId", keyParamName: "clientId", configuration });
|
|
61
|
-
// authentication PartnerSignature required
|
|
62
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, key: "Signature", keyParamName: "signature", configuration });
|
|
63
|
-
// authentication PartnerTimestamp required
|
|
64
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "timestamp", keyParamName: "timestamp", configuration });
|
|
65
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
66
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
67
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
68
|
-
queryParameters: localVarQueryParameter,
|
|
69
|
-
requestConfig: localVarRequestOptions,
|
|
70
|
-
path: localVarPath,
|
|
71
|
-
configuration,
|
|
72
|
-
pathTemplate: '/currencies/rates/{currencyPair}',
|
|
73
|
-
httpMethod: 'GET'
|
|
74
|
-
});
|
|
75
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
76
|
-
return {
|
|
77
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
78
|
-
options: localVarRequestOptions,
|
|
79
|
-
};
|
|
80
|
-
}),
|
|
81
|
-
/**
|
|
82
|
-
* Returns configurations for your SnapTrade Client ID, including allowed brokerages and data access.
|
|
83
|
-
* @summary Get Client Info
|
|
84
|
-
* @param {*} [options] Override http request option.
|
|
85
|
-
* @throws {RequiredError}
|
|
86
|
-
*/
|
|
87
|
-
getPartnerInfo: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
88
|
-
const localVarPath = `/snapTrade/partners`;
|
|
89
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
90
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
91
|
-
let baseOptions;
|
|
92
|
-
if (configuration) {
|
|
93
|
-
baseOptions = configuration.baseOptions;
|
|
94
|
-
}
|
|
95
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
96
|
-
const localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
97
|
-
const localVarQueryParameter = {};
|
|
98
|
-
// authentication PartnerClientId required
|
|
99
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "clientId", keyParamName: "clientId", configuration });
|
|
100
|
-
// authentication PartnerSignature required
|
|
101
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, key: "Signature", keyParamName: "signature", configuration });
|
|
102
|
-
// authentication PartnerTimestamp required
|
|
103
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "timestamp", keyParamName: "timestamp", configuration });
|
|
104
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
105
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
106
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
107
|
-
queryParameters: localVarQueryParameter,
|
|
108
|
-
requestConfig: localVarRequestOptions,
|
|
109
|
-
path: localVarPath,
|
|
110
|
-
configuration,
|
|
111
|
-
pathTemplate: '/snapTrade/partners',
|
|
112
|
-
httpMethod: 'GET'
|
|
113
|
-
});
|
|
114
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
115
|
-
return {
|
|
116
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
117
|
-
options: localVarRequestOptions,
|
|
118
|
-
};
|
|
119
|
-
}),
|
|
120
|
-
/**
|
|
121
|
-
* Return all available security types supported by SnapTrade.
|
|
122
|
-
* @summary List security types
|
|
123
|
-
* @param {*} [options] Override http request option.
|
|
124
|
-
* @throws {RequiredError}
|
|
125
|
-
*/
|
|
126
|
-
getSecurityTypes: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
127
|
-
const localVarPath = `/securityTypes`;
|
|
128
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
129
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
130
|
-
let baseOptions;
|
|
131
|
-
if (configuration) {
|
|
132
|
-
baseOptions = configuration.baseOptions;
|
|
133
|
-
}
|
|
134
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
135
|
-
const localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
136
|
-
const localVarQueryParameter = {};
|
|
137
|
-
// authentication PartnerClientId required
|
|
138
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "clientId", keyParamName: "clientId", configuration });
|
|
139
|
-
// authentication PartnerSignature required
|
|
140
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, key: "Signature", keyParamName: "signature", configuration });
|
|
141
|
-
// authentication PartnerTimestamp required
|
|
142
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "timestamp", keyParamName: "timestamp", configuration });
|
|
143
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
144
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
145
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
146
|
-
queryParameters: localVarQueryParameter,
|
|
147
|
-
requestConfig: localVarRequestOptions,
|
|
148
|
-
path: localVarPath,
|
|
149
|
-
configuration,
|
|
150
|
-
pathTemplate: '/securityTypes',
|
|
151
|
-
httpMethod: 'GET'
|
|
152
|
-
});
|
|
153
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
154
|
-
return {
|
|
155
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
156
|
-
options: localVarRequestOptions,
|
|
157
|
-
};
|
|
158
|
-
}),
|
|
159
|
-
/**
|
|
160
|
-
* Returns a list of all supported Exchanges.
|
|
161
|
-
* @summary Get exchanges
|
|
162
|
-
* @param {*} [options] Override http request option.
|
|
163
|
-
* @throws {RequiredError}
|
|
164
|
-
*/
|
|
165
|
-
getStockExchanges: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
166
|
-
const localVarPath = `/exchanges`;
|
|
167
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
168
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
169
|
-
let baseOptions;
|
|
170
|
-
if (configuration) {
|
|
171
|
-
baseOptions = configuration.baseOptions;
|
|
172
|
-
}
|
|
173
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
174
|
-
const localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
175
|
-
const localVarQueryParameter = {};
|
|
176
|
-
// authentication PartnerClientId required
|
|
177
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "clientId", keyParamName: "clientId", configuration });
|
|
178
|
-
// authentication PartnerSignature required
|
|
179
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, key: "Signature", keyParamName: "signature", configuration });
|
|
180
|
-
// authentication PartnerTimestamp required
|
|
181
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "timestamp", keyParamName: "timestamp", configuration });
|
|
182
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
183
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
184
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
185
|
-
queryParameters: localVarQueryParameter,
|
|
186
|
-
requestConfig: localVarRequestOptions,
|
|
187
|
-
path: localVarPath,
|
|
188
|
-
configuration,
|
|
189
|
-
pathTemplate: '/exchanges',
|
|
190
|
-
httpMethod: 'GET'
|
|
191
|
-
});
|
|
192
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
193
|
-
return {
|
|
194
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
195
|
-
options: localVarRequestOptions,
|
|
196
|
-
};
|
|
197
|
-
}),
|
|
198
|
-
/**
|
|
199
|
-
* Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned.
|
|
200
|
-
* @summary Search symbols
|
|
201
|
-
* @param {SymbolQuery} [symbolQuery]
|
|
202
|
-
* @param {*} [options] Override http request option.
|
|
203
|
-
* @throws {RequiredError}
|
|
204
|
-
*/
|
|
205
|
-
getSymbols: (symbolQuery, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
206
|
-
const localVarPath = `/symbols`;
|
|
207
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
208
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
209
|
-
let baseOptions;
|
|
210
|
-
if (configuration) {
|
|
211
|
-
baseOptions = configuration.baseOptions;
|
|
212
|
-
}
|
|
213
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
214
|
-
const localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
215
|
-
const localVarQueryParameter = {};
|
|
216
|
-
// authentication PartnerClientId required
|
|
217
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "clientId", keyParamName: "clientId", configuration });
|
|
218
|
-
// authentication PartnerSignature required
|
|
219
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, key: "Signature", keyParamName: "signature", configuration });
|
|
220
|
-
// authentication PartnerTimestamp required
|
|
221
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "timestamp", keyParamName: "timestamp", configuration });
|
|
222
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
223
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
224
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
225
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
226
|
-
requestBody: symbolQuery,
|
|
227
|
-
queryParameters: localVarQueryParameter,
|
|
228
|
-
requestConfig: localVarRequestOptions,
|
|
229
|
-
path: localVarPath,
|
|
230
|
-
configuration,
|
|
231
|
-
pathTemplate: '/symbols',
|
|
232
|
-
httpMethod: 'POST'
|
|
233
|
-
});
|
|
234
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(symbolQuery, localVarRequestOptions, configuration);
|
|
235
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
236
|
-
return {
|
|
237
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
238
|
-
options: localVarRequestOptions,
|
|
239
|
-
};
|
|
240
|
-
}),
|
|
241
|
-
/**
|
|
242
|
-
* Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
|
|
243
|
-
* @summary Get symbol detail
|
|
244
|
-
* @param {string} query The ticker or Universal Symbol ID to look up the symbol with.
|
|
245
|
-
* @param {*} [options] Override http request option.
|
|
246
|
-
* @throws {RequiredError}
|
|
247
|
-
*/
|
|
248
|
-
getSymbolsByTicker: (query, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
249
|
-
// verify required parameter 'query' is not null or undefined
|
|
250
|
-
(0, common_1.assertParamExists)('getSymbolsByTicker', 'query', query);
|
|
251
|
-
const localVarPath = `/symbols/{query}`
|
|
252
|
-
.replace(`{${"query"}}`, encodeURIComponent(String(query !== undefined ? query : `-query-`)));
|
|
253
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
254
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
255
|
-
let baseOptions;
|
|
256
|
-
if (configuration) {
|
|
257
|
-
baseOptions = configuration.baseOptions;
|
|
258
|
-
}
|
|
259
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
260
|
-
const localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
261
|
-
const localVarQueryParameter = {};
|
|
262
|
-
// authentication PartnerClientId required
|
|
263
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "clientId", keyParamName: "clientId", configuration });
|
|
264
|
-
// authentication PartnerSignature required
|
|
265
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, key: "Signature", keyParamName: "signature", configuration });
|
|
266
|
-
// authentication PartnerTimestamp required
|
|
267
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "timestamp", keyParamName: "timestamp", configuration });
|
|
268
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
269
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
270
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
271
|
-
queryParameters: localVarQueryParameter,
|
|
272
|
-
requestConfig: localVarRequestOptions,
|
|
273
|
-
path: localVarPath,
|
|
274
|
-
configuration,
|
|
275
|
-
pathTemplate: '/symbols/{query}',
|
|
276
|
-
httpMethod: 'GET'
|
|
277
|
-
});
|
|
278
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
279
|
-
return {
|
|
280
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
281
|
-
options: localVarRequestOptions,
|
|
282
|
-
};
|
|
283
|
-
}),
|
|
284
|
-
/**
|
|
285
|
-
* Returns a list of all defined Brokerage authorization Type objects.
|
|
286
|
-
* @summary Get all brokerage authorization types
|
|
287
|
-
* @param {string} [brokerage] Comma separated value of brokerage slugs
|
|
288
|
-
* @param {*} [options] Override http request option.
|
|
289
|
-
* @throws {RequiredError}
|
|
290
|
-
*/
|
|
291
|
-
listAllBrokerageAuthorizationType: (brokerage, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
292
|
-
const localVarPath = `/brokerageAuthorizationTypes`;
|
|
293
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
294
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
295
|
-
let baseOptions;
|
|
296
|
-
if (configuration) {
|
|
297
|
-
baseOptions = configuration.baseOptions;
|
|
298
|
-
}
|
|
299
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
300
|
-
const localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
301
|
-
const localVarQueryParameter = {};
|
|
302
|
-
// authentication PartnerClientId required
|
|
303
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "clientId", keyParamName: "clientId", configuration });
|
|
304
|
-
// authentication PartnerSignature required
|
|
305
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, key: "Signature", keyParamName: "signature", configuration });
|
|
306
|
-
// authentication PartnerTimestamp required
|
|
307
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "timestamp", keyParamName: "timestamp", configuration });
|
|
308
|
-
if (brokerage !== undefined) {
|
|
309
|
-
localVarQueryParameter['brokerage'] = brokerage;
|
|
310
|
-
}
|
|
311
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
312
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
313
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
314
|
-
queryParameters: localVarQueryParameter,
|
|
315
|
-
requestConfig: localVarRequestOptions,
|
|
316
|
-
path: localVarPath,
|
|
317
|
-
configuration,
|
|
318
|
-
pathTemplate: '/brokerageAuthorizationTypes',
|
|
319
|
-
httpMethod: 'GET'
|
|
320
|
-
});
|
|
321
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
322
|
-
return {
|
|
323
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
324
|
-
options: localVarRequestOptions,
|
|
325
|
-
};
|
|
326
|
-
}),
|
|
327
|
-
/**
|
|
328
|
-
* Returns a list of all brokerage instruments available for a given brokerage. Not all brokerages support this. The ones that don\'t will return an empty list.
|
|
329
|
-
* @summary Get brokerage instruments
|
|
330
|
-
* @param {string} slug A short, unique identifier for the brokerage. It is usually the name of the brokerage in capital letters and will never change.
|
|
331
|
-
* @param {*} [options] Override http request option.
|
|
332
|
-
* @throws {RequiredError}
|
|
333
|
-
*/
|
|
334
|
-
listAllBrokerageInstruments: (slug, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
335
|
-
// verify required parameter 'slug' is not null or undefined
|
|
336
|
-
(0, common_1.assertParamExists)('listAllBrokerageInstruments', 'slug', slug);
|
|
337
|
-
const localVarPath = `/brokerages/{slug}/instruments`
|
|
338
|
-
.replace(`{${"slug"}}`, encodeURIComponent(String(slug !== undefined ? slug : `-slug-`)));
|
|
339
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
340
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
341
|
-
let baseOptions;
|
|
342
|
-
if (configuration) {
|
|
343
|
-
baseOptions = configuration.baseOptions;
|
|
344
|
-
}
|
|
345
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
346
|
-
const localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
347
|
-
const localVarQueryParameter = {};
|
|
348
|
-
// authentication PartnerClientId required
|
|
349
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "clientId", keyParamName: "clientId", configuration });
|
|
350
|
-
// authentication PartnerSignature required
|
|
351
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, key: "Signature", keyParamName: "signature", configuration });
|
|
352
|
-
// authentication PartnerTimestamp required
|
|
353
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "timestamp", keyParamName: "timestamp", configuration });
|
|
354
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
355
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
356
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
357
|
-
queryParameters: localVarQueryParameter,
|
|
358
|
-
requestConfig: localVarRequestOptions,
|
|
359
|
-
path: localVarPath,
|
|
360
|
-
configuration,
|
|
361
|
-
pathTemplate: '/brokerages/{slug}/instruments',
|
|
362
|
-
httpMethod: 'GET'
|
|
363
|
-
});
|
|
364
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
365
|
-
return {
|
|
366
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
367
|
-
options: localVarRequestOptions,
|
|
368
|
-
};
|
|
369
|
-
}),
|
|
370
|
-
/**
|
|
371
|
-
* Returns a list of all defined Brokerage objects.
|
|
372
|
-
* @summary Get brokerages
|
|
373
|
-
* @param {*} [options] Override http request option.
|
|
374
|
-
* @throws {RequiredError}
|
|
375
|
-
*/
|
|
376
|
-
listAllBrokerages: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
377
|
-
const localVarPath = `/brokerages`;
|
|
378
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
379
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
380
|
-
let baseOptions;
|
|
381
|
-
if (configuration) {
|
|
382
|
-
baseOptions = configuration.baseOptions;
|
|
383
|
-
}
|
|
384
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
385
|
-
const localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
386
|
-
const localVarQueryParameter = {};
|
|
387
|
-
// authentication PartnerClientId required
|
|
388
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "clientId", keyParamName: "clientId", configuration });
|
|
389
|
-
// authentication PartnerSignature required
|
|
390
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, key: "Signature", keyParamName: "signature", configuration });
|
|
391
|
-
// authentication PartnerTimestamp required
|
|
392
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "timestamp", keyParamName: "timestamp", configuration });
|
|
393
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
394
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
395
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
396
|
-
queryParameters: localVarQueryParameter,
|
|
397
|
-
requestConfig: localVarRequestOptions,
|
|
398
|
-
path: localVarPath,
|
|
399
|
-
configuration,
|
|
400
|
-
pathTemplate: '/brokerages',
|
|
401
|
-
httpMethod: 'GET'
|
|
402
|
-
});
|
|
403
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
404
|
-
return {
|
|
405
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
406
|
-
options: localVarRequestOptions,
|
|
407
|
-
};
|
|
408
|
-
}),
|
|
409
|
-
/**
|
|
410
|
-
* Returns a list of all defined Currency objects.
|
|
411
|
-
* @summary Get currencies
|
|
412
|
-
* @param {*} [options] Override http request option.
|
|
413
|
-
* @throws {RequiredError}
|
|
414
|
-
*/
|
|
415
|
-
listAllCurrencies: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
416
|
-
const localVarPath = `/currencies`;
|
|
417
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
418
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
419
|
-
let baseOptions;
|
|
420
|
-
if (configuration) {
|
|
421
|
-
baseOptions = configuration.baseOptions;
|
|
422
|
-
}
|
|
423
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
424
|
-
const localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
425
|
-
const localVarQueryParameter = {};
|
|
426
|
-
// authentication PartnerClientId required
|
|
427
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "clientId", keyParamName: "clientId", configuration });
|
|
428
|
-
// authentication PartnerSignature required
|
|
429
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, key: "Signature", keyParamName: "signature", configuration });
|
|
430
|
-
// authentication PartnerTimestamp required
|
|
431
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "timestamp", keyParamName: "timestamp", configuration });
|
|
432
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
433
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
434
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
435
|
-
queryParameters: localVarQueryParameter,
|
|
436
|
-
requestConfig: localVarRequestOptions,
|
|
437
|
-
path: localVarPath,
|
|
438
|
-
configuration,
|
|
439
|
-
pathTemplate: '/currencies',
|
|
440
|
-
httpMethod: 'GET'
|
|
441
|
-
});
|
|
442
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
443
|
-
return {
|
|
444
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
445
|
-
options: localVarRequestOptions,
|
|
446
|
-
};
|
|
447
|
-
}),
|
|
448
|
-
/**
|
|
449
|
-
* Returns a list of all Exchange Rate Pairs for all supported Currencies.
|
|
450
|
-
* @summary Get currency exchange rates
|
|
451
|
-
* @param {*} [options] Override http request option.
|
|
452
|
-
* @throws {RequiredError}
|
|
453
|
-
*/
|
|
454
|
-
listAllCurrenciesRates: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
455
|
-
const localVarPath = `/currencies/rates`;
|
|
456
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
457
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
458
|
-
let baseOptions;
|
|
459
|
-
if (configuration) {
|
|
460
|
-
baseOptions = configuration.baseOptions;
|
|
461
|
-
}
|
|
462
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
463
|
-
const localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
464
|
-
const localVarQueryParameter = {};
|
|
465
|
-
// authentication PartnerClientId required
|
|
466
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "clientId", keyParamName: "clientId", configuration });
|
|
467
|
-
// authentication PartnerSignature required
|
|
468
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, key: "Signature", keyParamName: "signature", configuration });
|
|
469
|
-
// authentication PartnerTimestamp required
|
|
470
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "timestamp", keyParamName: "timestamp", configuration });
|
|
471
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
472
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
473
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
474
|
-
queryParameters: localVarQueryParameter,
|
|
475
|
-
requestConfig: localVarRequestOptions,
|
|
476
|
-
path: localVarPath,
|
|
477
|
-
configuration,
|
|
478
|
-
pathTemplate: '/currencies/rates',
|
|
479
|
-
httpMethod: 'GET'
|
|
480
|
-
});
|
|
481
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
482
|
-
return {
|
|
483
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
484
|
-
options: localVarRequestOptions,
|
|
485
|
-
};
|
|
486
|
-
}),
|
|
487
|
-
/**
|
|
488
|
-
* Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned. The search results are further limited to the symbols supported by the brokerage for which the account is under.
|
|
489
|
-
* @summary Search account symbols
|
|
490
|
-
* @param {string} userId
|
|
491
|
-
* @param {string} userSecret
|
|
492
|
-
* @param {string} accountId
|
|
493
|
-
* @param {SymbolQuery} [symbolQuery]
|
|
494
|
-
* @param {*} [options] Override http request option.
|
|
495
|
-
* @throws {RequiredError}
|
|
496
|
-
*/
|
|
497
|
-
symbolSearchUserAccount: (userId, userSecret, accountId, symbolQuery, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
498
|
-
// verify required parameter 'userId' is not null or undefined
|
|
499
|
-
(0, common_1.assertParamExists)('symbolSearchUserAccount', 'userId', userId);
|
|
500
|
-
// verify required parameter 'userSecret' is not null or undefined
|
|
501
|
-
(0, common_1.assertParamExists)('symbolSearchUserAccount', 'userSecret', userSecret);
|
|
502
|
-
// verify required parameter 'accountId' is not null or undefined
|
|
503
|
-
(0, common_1.assertParamExists)('symbolSearchUserAccount', 'accountId', accountId);
|
|
504
|
-
const localVarPath = `/accounts/{accountId}/symbols`
|
|
505
|
-
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId !== undefined ? accountId : `-accountId-`)));
|
|
506
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
507
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
508
|
-
let baseOptions;
|
|
509
|
-
if (configuration) {
|
|
510
|
-
baseOptions = configuration.baseOptions;
|
|
511
|
-
}
|
|
512
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
513
|
-
const localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
514
|
-
const localVarQueryParameter = {};
|
|
515
|
-
// authentication PartnerClientId required
|
|
516
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "clientId", keyParamName: "clientId", configuration });
|
|
517
|
-
// authentication PartnerSignature required
|
|
518
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, key: "Signature", keyParamName: "signature", configuration });
|
|
519
|
-
// authentication PartnerTimestamp required
|
|
520
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "timestamp", keyParamName: "timestamp", configuration });
|
|
521
|
-
if (userId !== undefined) {
|
|
522
|
-
localVarQueryParameter['userId'] = userId;
|
|
523
|
-
}
|
|
524
|
-
if (userSecret !== undefined) {
|
|
525
|
-
localVarQueryParameter['userSecret'] = userSecret;
|
|
526
|
-
}
|
|
527
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
528
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
529
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
530
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
531
|
-
requestBody: symbolQuery,
|
|
532
|
-
queryParameters: localVarQueryParameter,
|
|
533
|
-
requestConfig: localVarRequestOptions,
|
|
534
|
-
path: localVarPath,
|
|
535
|
-
configuration,
|
|
536
|
-
pathTemplate: '/accounts/{accountId}/symbols',
|
|
537
|
-
httpMethod: 'POST'
|
|
538
|
-
});
|
|
539
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(symbolQuery, localVarRequestOptions, configuration);
|
|
540
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
541
|
-
return {
|
|
542
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
543
|
-
options: localVarRequestOptions,
|
|
544
|
-
};
|
|
545
|
-
}),
|
|
546
|
-
};
|
|
547
|
-
};
|
|
548
|
-
exports.ReferenceDataApiAxiosParamCreator = ReferenceDataApiAxiosParamCreator;
|
|
549
|
-
/**
|
|
550
|
-
* ReferenceDataApi - functional programming interface
|
|
551
|
-
* @export
|
|
552
|
-
*/
|
|
553
|
-
const ReferenceDataApiFp = function (configuration) {
|
|
554
|
-
const localVarAxiosParamCreator = (0, exports.ReferenceDataApiAxiosParamCreator)(configuration);
|
|
555
|
-
return {
|
|
556
|
-
/**
|
|
557
|
-
* Returns an Exchange Rate Pair object for the specified Currency Pair.
|
|
558
|
-
* @summary Get exchange rate of a currency pair
|
|
559
|
-
* @param {ReferenceDataApiGetCurrencyExchangeRatePairRequest} requestParameters Request parameters.
|
|
560
|
-
* @param {*} [options] Override http request option.
|
|
561
|
-
* @throws {RequiredError}
|
|
562
|
-
*/
|
|
563
|
-
getCurrencyExchangeRatePair(requestParameters, options) {
|
|
564
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
565
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCurrencyExchangeRatePair(requestParameters.currencyPair, options);
|
|
566
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
567
|
-
});
|
|
568
|
-
},
|
|
569
|
-
/**
|
|
570
|
-
* Returns configurations for your SnapTrade Client ID, including allowed brokerages and data access.
|
|
571
|
-
* @summary Get Client Info
|
|
572
|
-
* @param {*} [options] Override http request option.
|
|
573
|
-
* @throws {RequiredError}
|
|
574
|
-
*/
|
|
575
|
-
getPartnerInfo(options) {
|
|
576
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
577
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPartnerInfo(options);
|
|
578
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
579
|
-
});
|
|
580
|
-
},
|
|
581
|
-
/**
|
|
582
|
-
* Return all available security types supported by SnapTrade.
|
|
583
|
-
* @summary List security types
|
|
584
|
-
* @param {*} [options] Override http request option.
|
|
585
|
-
* @throws {RequiredError}
|
|
586
|
-
*/
|
|
587
|
-
getSecurityTypes(options) {
|
|
588
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
589
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSecurityTypes(options);
|
|
590
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
591
|
-
});
|
|
592
|
-
},
|
|
593
|
-
/**
|
|
594
|
-
* Returns a list of all supported Exchanges.
|
|
595
|
-
* @summary Get exchanges
|
|
596
|
-
* @param {*} [options] Override http request option.
|
|
597
|
-
* @throws {RequiredError}
|
|
598
|
-
*/
|
|
599
|
-
getStockExchanges(options) {
|
|
600
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
601
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getStockExchanges(options);
|
|
602
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
603
|
-
});
|
|
604
|
-
},
|
|
605
|
-
/**
|
|
606
|
-
* Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned.
|
|
607
|
-
* @summary Search symbols
|
|
608
|
-
* @param {ReferenceDataApiGetSymbolsRequest} requestParameters Request parameters.
|
|
609
|
-
* @param {*} [options] Override http request option.
|
|
610
|
-
* @throws {RequiredError}
|
|
611
|
-
*/
|
|
612
|
-
getSymbols(requestParameters = {}, options) {
|
|
613
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
614
|
-
const symbolQuery = {
|
|
615
|
-
substring: requestParameters.substring
|
|
616
|
-
};
|
|
617
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSymbols(symbolQuery, options);
|
|
618
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
619
|
-
});
|
|
620
|
-
},
|
|
621
|
-
/**
|
|
622
|
-
* Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
|
|
623
|
-
* @summary Get symbol detail
|
|
624
|
-
* @param {ReferenceDataApiGetSymbolsByTickerRequest} requestParameters Request parameters.
|
|
625
|
-
* @param {*} [options] Override http request option.
|
|
626
|
-
* @throws {RequiredError}
|
|
627
|
-
*/
|
|
628
|
-
getSymbolsByTicker(requestParameters, options) {
|
|
629
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
630
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSymbolsByTicker(requestParameters.query, options);
|
|
631
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
632
|
-
});
|
|
633
|
-
},
|
|
634
|
-
/**
|
|
635
|
-
* Returns a list of all defined Brokerage authorization Type objects.
|
|
636
|
-
* @summary Get all brokerage authorization types
|
|
637
|
-
* @param {ReferenceDataApiListAllBrokerageAuthorizationTypeRequest} requestParameters Request parameters.
|
|
638
|
-
* @param {*} [options] Override http request option.
|
|
639
|
-
* @throws {RequiredError}
|
|
640
|
-
*/
|
|
641
|
-
listAllBrokerageAuthorizationType(requestParameters = {}, options) {
|
|
642
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
643
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAllBrokerageAuthorizationType(requestParameters.brokerage, options);
|
|
644
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
645
|
-
});
|
|
646
|
-
},
|
|
647
|
-
/**
|
|
648
|
-
* Returns a list of all brokerage instruments available for a given brokerage. Not all brokerages support this. The ones that don\'t will return an empty list.
|
|
649
|
-
* @summary Get brokerage instruments
|
|
650
|
-
* @param {ReferenceDataApiListAllBrokerageInstrumentsRequest} requestParameters Request parameters.
|
|
651
|
-
* @param {*} [options] Override http request option.
|
|
652
|
-
* @throws {RequiredError}
|
|
653
|
-
*/
|
|
654
|
-
listAllBrokerageInstruments(requestParameters, options) {
|
|
655
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
656
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAllBrokerageInstruments(requestParameters.slug, options);
|
|
657
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
658
|
-
});
|
|
659
|
-
},
|
|
660
|
-
/**
|
|
661
|
-
* Returns a list of all defined Brokerage objects.
|
|
662
|
-
* @summary Get brokerages
|
|
663
|
-
* @param {*} [options] Override http request option.
|
|
664
|
-
* @throws {RequiredError}
|
|
665
|
-
*/
|
|
666
|
-
listAllBrokerages(options) {
|
|
667
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
668
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAllBrokerages(options);
|
|
669
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
670
|
-
});
|
|
671
|
-
},
|
|
672
|
-
/**
|
|
673
|
-
* Returns a list of all defined Currency objects.
|
|
674
|
-
* @summary Get currencies
|
|
675
|
-
* @param {*} [options] Override http request option.
|
|
676
|
-
* @throws {RequiredError}
|
|
677
|
-
*/
|
|
678
|
-
listAllCurrencies(options) {
|
|
679
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
680
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAllCurrencies(options);
|
|
681
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
682
|
-
});
|
|
683
|
-
},
|
|
684
|
-
/**
|
|
685
|
-
* Returns a list of all Exchange Rate Pairs for all supported Currencies.
|
|
686
|
-
* @summary Get currency exchange rates
|
|
687
|
-
* @param {*} [options] Override http request option.
|
|
688
|
-
* @throws {RequiredError}
|
|
689
|
-
*/
|
|
690
|
-
listAllCurrenciesRates(options) {
|
|
691
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
692
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAllCurrenciesRates(options);
|
|
693
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
694
|
-
});
|
|
695
|
-
},
|
|
696
|
-
/**
|
|
697
|
-
* Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned. The search results are further limited to the symbols supported by the brokerage for which the account is under.
|
|
698
|
-
* @summary Search account symbols
|
|
699
|
-
* @param {ReferenceDataApiSymbolSearchUserAccountRequest} requestParameters Request parameters.
|
|
700
|
-
* @param {*} [options] Override http request option.
|
|
701
|
-
* @throws {RequiredError}
|
|
702
|
-
*/
|
|
703
|
-
symbolSearchUserAccount(requestParameters, options) {
|
|
704
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
705
|
-
const symbolQuery = {
|
|
706
|
-
substring: requestParameters.substring
|
|
707
|
-
};
|
|
708
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.symbolSearchUserAccount(requestParameters.userId, requestParameters.userSecret, requestParameters.accountId, symbolQuery, options);
|
|
709
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
710
|
-
});
|
|
711
|
-
},
|
|
712
|
-
};
|
|
713
|
-
};
|
|
714
|
-
exports.ReferenceDataApiFp = ReferenceDataApiFp;
|
|
715
|
-
/**
|
|
716
|
-
* ReferenceDataApi - factory interface
|
|
717
|
-
* @export
|
|
718
|
-
*/
|
|
719
|
-
const ReferenceDataApiFactory = function (configuration, basePath, axios) {
|
|
720
|
-
const localVarFp = (0, exports.ReferenceDataApiFp)(configuration);
|
|
721
|
-
return {
|
|
722
|
-
/**
|
|
723
|
-
* Returns an Exchange Rate Pair object for the specified Currency Pair.
|
|
724
|
-
* @summary Get exchange rate of a currency pair
|
|
725
|
-
* @param {ReferenceDataApiGetCurrencyExchangeRatePairRequest} requestParameters Request parameters.
|
|
726
|
-
* @param {*} [options] Override http request option.
|
|
727
|
-
* @throws {RequiredError}
|
|
728
|
-
*/
|
|
729
|
-
getCurrencyExchangeRatePair(requestParameters, options) {
|
|
730
|
-
return localVarFp.getCurrencyExchangeRatePair(requestParameters, options).then((request) => request(axios, basePath));
|
|
731
|
-
},
|
|
732
|
-
/**
|
|
733
|
-
* Returns configurations for your SnapTrade Client ID, including allowed brokerages and data access.
|
|
734
|
-
* @summary Get Client Info
|
|
735
|
-
* @param {*} [options] Override http request option.
|
|
736
|
-
* @throws {RequiredError}
|
|
737
|
-
*/
|
|
738
|
-
getPartnerInfo(options) {
|
|
739
|
-
return localVarFp.getPartnerInfo(options).then((request) => request(axios, basePath));
|
|
740
|
-
},
|
|
741
|
-
/**
|
|
742
|
-
* Return all available security types supported by SnapTrade.
|
|
743
|
-
* @summary List security types
|
|
744
|
-
* @param {*} [options] Override http request option.
|
|
745
|
-
* @throws {RequiredError}
|
|
746
|
-
*/
|
|
747
|
-
getSecurityTypes(options) {
|
|
748
|
-
return localVarFp.getSecurityTypes(options).then((request) => request(axios, basePath));
|
|
749
|
-
},
|
|
750
|
-
/**
|
|
751
|
-
* Returns a list of all supported Exchanges.
|
|
752
|
-
* @summary Get exchanges
|
|
753
|
-
* @param {*} [options] Override http request option.
|
|
754
|
-
* @throws {RequiredError}
|
|
755
|
-
*/
|
|
756
|
-
getStockExchanges(options) {
|
|
757
|
-
return localVarFp.getStockExchanges(options).then((request) => request(axios, basePath));
|
|
758
|
-
},
|
|
759
|
-
/**
|
|
760
|
-
* Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned.
|
|
761
|
-
* @summary Search symbols
|
|
762
|
-
* @param {ReferenceDataApiGetSymbolsRequest} requestParameters Request parameters.
|
|
763
|
-
* @param {*} [options] Override http request option.
|
|
764
|
-
* @throws {RequiredError}
|
|
765
|
-
*/
|
|
766
|
-
getSymbols(requestParameters = {}, options) {
|
|
767
|
-
return localVarFp.getSymbols(requestParameters, options).then((request) => request(axios, basePath));
|
|
768
|
-
},
|
|
769
|
-
/**
|
|
770
|
-
* Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
|
|
771
|
-
* @summary Get symbol detail
|
|
772
|
-
* @param {ReferenceDataApiGetSymbolsByTickerRequest} requestParameters Request parameters.
|
|
773
|
-
* @param {*} [options] Override http request option.
|
|
774
|
-
* @throws {RequiredError}
|
|
775
|
-
*/
|
|
776
|
-
getSymbolsByTicker(requestParameters, options) {
|
|
777
|
-
return localVarFp.getSymbolsByTicker(requestParameters, options).then((request) => request(axios, basePath));
|
|
778
|
-
},
|
|
779
|
-
/**
|
|
780
|
-
* Returns a list of all defined Brokerage authorization Type objects.
|
|
781
|
-
* @summary Get all brokerage authorization types
|
|
782
|
-
* @param {ReferenceDataApiListAllBrokerageAuthorizationTypeRequest} requestParameters Request parameters.
|
|
783
|
-
* @param {*} [options] Override http request option.
|
|
784
|
-
* @throws {RequiredError}
|
|
785
|
-
*/
|
|
786
|
-
listAllBrokerageAuthorizationType(requestParameters = {}, options) {
|
|
787
|
-
return localVarFp.listAllBrokerageAuthorizationType(requestParameters, options).then((request) => request(axios, basePath));
|
|
788
|
-
},
|
|
789
|
-
/**
|
|
790
|
-
* Returns a list of all brokerage instruments available for a given brokerage. Not all brokerages support this. The ones that don\'t will return an empty list.
|
|
791
|
-
* @summary Get brokerage instruments
|
|
792
|
-
* @param {ReferenceDataApiListAllBrokerageInstrumentsRequest} requestParameters Request parameters.
|
|
793
|
-
* @param {*} [options] Override http request option.
|
|
794
|
-
* @throws {RequiredError}
|
|
795
|
-
*/
|
|
796
|
-
listAllBrokerageInstruments(requestParameters, options) {
|
|
797
|
-
return localVarFp.listAllBrokerageInstruments(requestParameters, options).then((request) => request(axios, basePath));
|
|
798
|
-
},
|
|
799
|
-
/**
|
|
800
|
-
* Returns a list of all defined Brokerage objects.
|
|
801
|
-
* @summary Get brokerages
|
|
802
|
-
* @param {*} [options] Override http request option.
|
|
803
|
-
* @throws {RequiredError}
|
|
804
|
-
*/
|
|
805
|
-
listAllBrokerages(options) {
|
|
806
|
-
return localVarFp.listAllBrokerages(options).then((request) => request(axios, basePath));
|
|
807
|
-
},
|
|
808
|
-
/**
|
|
809
|
-
* Returns a list of all defined Currency objects.
|
|
810
|
-
* @summary Get currencies
|
|
811
|
-
* @param {*} [options] Override http request option.
|
|
812
|
-
* @throws {RequiredError}
|
|
813
|
-
*/
|
|
814
|
-
listAllCurrencies(options) {
|
|
815
|
-
return localVarFp.listAllCurrencies(options).then((request) => request(axios, basePath));
|
|
816
|
-
},
|
|
817
|
-
/**
|
|
818
|
-
* Returns a list of all Exchange Rate Pairs for all supported Currencies.
|
|
819
|
-
* @summary Get currency exchange rates
|
|
820
|
-
* @param {*} [options] Override http request option.
|
|
821
|
-
* @throws {RequiredError}
|
|
822
|
-
*/
|
|
823
|
-
listAllCurrenciesRates(options) {
|
|
824
|
-
return localVarFp.listAllCurrenciesRates(options).then((request) => request(axios, basePath));
|
|
825
|
-
},
|
|
826
|
-
/**
|
|
827
|
-
* Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned. The search results are further limited to the symbols supported by the brokerage for which the account is under.
|
|
828
|
-
* @summary Search account symbols
|
|
829
|
-
* @param {ReferenceDataApiSymbolSearchUserAccountRequest} requestParameters Request parameters.
|
|
830
|
-
* @param {*} [options] Override http request option.
|
|
831
|
-
* @throws {RequiredError}
|
|
832
|
-
*/
|
|
833
|
-
symbolSearchUserAccount(requestParameters, options) {
|
|
834
|
-
return localVarFp.symbolSearchUserAccount(requestParameters, options).then((request) => request(axios, basePath));
|
|
835
|
-
},
|
|
836
|
-
};
|
|
837
|
-
};
|
|
838
|
-
exports.ReferenceDataApiFactory = ReferenceDataApiFactory;
|
|
839
|
-
/**
|
|
840
|
-
* ReferenceDataApiGenerated - object-oriented interface
|
|
841
|
-
* @export
|
|
842
|
-
* @class ReferenceDataApiGenerated
|
|
843
|
-
* @extends {BaseAPI}
|
|
844
|
-
*/
|
|
845
|
-
class ReferenceDataApiGenerated extends base_1.BaseAPI {
|
|
846
|
-
/**
|
|
847
|
-
* Returns an Exchange Rate Pair object for the specified Currency Pair.
|
|
848
|
-
* @summary Get exchange rate of a currency pair
|
|
849
|
-
* @param {ReferenceDataApiGetCurrencyExchangeRatePairRequest} requestParameters Request parameters.
|
|
850
|
-
* @param {*} [options] Override http request option.
|
|
851
|
-
* @throws {RequiredError}
|
|
852
|
-
* @memberof ReferenceDataApiGenerated
|
|
853
|
-
*/
|
|
854
|
-
getCurrencyExchangeRatePair(requestParameters, options) {
|
|
855
|
-
return (0, exports.ReferenceDataApiFp)(this.configuration).getCurrencyExchangeRatePair(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
856
|
-
}
|
|
857
|
-
/**
|
|
858
|
-
* Returns configurations for your SnapTrade Client ID, including allowed brokerages and data access.
|
|
859
|
-
* @summary Get Client Info
|
|
860
|
-
* @param {*} [options] Override http request option.
|
|
861
|
-
* @throws {RequiredError}
|
|
862
|
-
* @memberof ReferenceDataApiGenerated
|
|
863
|
-
*/
|
|
864
|
-
getPartnerInfo(options) {
|
|
865
|
-
return (0, exports.ReferenceDataApiFp)(this.configuration).getPartnerInfo(options).then((request) => request(this.axios, this.basePath));
|
|
866
|
-
}
|
|
867
|
-
/**
|
|
868
|
-
* Return all available security types supported by SnapTrade.
|
|
869
|
-
* @summary List security types
|
|
870
|
-
* @param {*} [options] Override http request option.
|
|
871
|
-
* @throws {RequiredError}
|
|
872
|
-
* @memberof ReferenceDataApiGenerated
|
|
873
|
-
*/
|
|
874
|
-
getSecurityTypes(options) {
|
|
875
|
-
return (0, exports.ReferenceDataApiFp)(this.configuration).getSecurityTypes(options).then((request) => request(this.axios, this.basePath));
|
|
876
|
-
}
|
|
877
|
-
/**
|
|
878
|
-
* Returns a list of all supported Exchanges.
|
|
879
|
-
* @summary Get exchanges
|
|
880
|
-
* @param {*} [options] Override http request option.
|
|
881
|
-
* @throws {RequiredError}
|
|
882
|
-
* @memberof ReferenceDataApiGenerated
|
|
883
|
-
*/
|
|
884
|
-
getStockExchanges(options) {
|
|
885
|
-
return (0, exports.ReferenceDataApiFp)(this.configuration).getStockExchanges(options).then((request) => request(this.axios, this.basePath));
|
|
886
|
-
}
|
|
887
|
-
/**
|
|
888
|
-
* Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned.
|
|
889
|
-
* @summary Search symbols
|
|
890
|
-
* @param {ReferenceDataApiGetSymbolsRequest} requestParameters Request parameters.
|
|
891
|
-
* @param {*} [options] Override http request option.
|
|
892
|
-
* @throws {RequiredError}
|
|
893
|
-
* @memberof ReferenceDataApiGenerated
|
|
894
|
-
*/
|
|
895
|
-
getSymbols(requestParameters = {}, options) {
|
|
896
|
-
return (0, exports.ReferenceDataApiFp)(this.configuration).getSymbols(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
897
|
-
}
|
|
898
|
-
/**
|
|
899
|
-
* Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
|
|
900
|
-
* @summary Get symbol detail
|
|
901
|
-
* @param {ReferenceDataApiGetSymbolsByTickerRequest} requestParameters Request parameters.
|
|
902
|
-
* @param {*} [options] Override http request option.
|
|
903
|
-
* @throws {RequiredError}
|
|
904
|
-
* @memberof ReferenceDataApiGenerated
|
|
905
|
-
*/
|
|
906
|
-
getSymbolsByTicker(requestParameters, options) {
|
|
907
|
-
return (0, exports.ReferenceDataApiFp)(this.configuration).getSymbolsByTicker(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
908
|
-
}
|
|
909
|
-
/**
|
|
910
|
-
* Returns a list of all defined Brokerage authorization Type objects.
|
|
911
|
-
* @summary Get all brokerage authorization types
|
|
912
|
-
* @param {ReferenceDataApiListAllBrokerageAuthorizationTypeRequest} requestParameters Request parameters.
|
|
913
|
-
* @param {*} [options] Override http request option.
|
|
914
|
-
* @throws {RequiredError}
|
|
915
|
-
* @memberof ReferenceDataApiGenerated
|
|
916
|
-
*/
|
|
917
|
-
listAllBrokerageAuthorizationType(requestParameters = {}, options) {
|
|
918
|
-
return (0, exports.ReferenceDataApiFp)(this.configuration).listAllBrokerageAuthorizationType(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
919
|
-
}
|
|
920
|
-
/**
|
|
921
|
-
* Returns a list of all brokerage instruments available for a given brokerage. Not all brokerages support this. The ones that don\'t will return an empty list.
|
|
922
|
-
* @summary Get brokerage instruments
|
|
923
|
-
* @param {ReferenceDataApiListAllBrokerageInstrumentsRequest} requestParameters Request parameters.
|
|
924
|
-
* @param {*} [options] Override http request option.
|
|
925
|
-
* @throws {RequiredError}
|
|
926
|
-
* @memberof ReferenceDataApiGenerated
|
|
927
|
-
*/
|
|
928
|
-
listAllBrokerageInstruments(requestParameters, options) {
|
|
929
|
-
return (0, exports.ReferenceDataApiFp)(this.configuration).listAllBrokerageInstruments(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
930
|
-
}
|
|
931
|
-
/**
|
|
932
|
-
* Returns a list of all defined Brokerage objects.
|
|
933
|
-
* @summary Get brokerages
|
|
934
|
-
* @param {*} [options] Override http request option.
|
|
935
|
-
* @throws {RequiredError}
|
|
936
|
-
* @memberof ReferenceDataApiGenerated
|
|
937
|
-
*/
|
|
938
|
-
listAllBrokerages(options) {
|
|
939
|
-
return (0, exports.ReferenceDataApiFp)(this.configuration).listAllBrokerages(options).then((request) => request(this.axios, this.basePath));
|
|
940
|
-
}
|
|
941
|
-
/**
|
|
942
|
-
* Returns a list of all defined Currency objects.
|
|
943
|
-
* @summary Get currencies
|
|
944
|
-
* @param {*} [options] Override http request option.
|
|
945
|
-
* @throws {RequiredError}
|
|
946
|
-
* @memberof ReferenceDataApiGenerated
|
|
947
|
-
*/
|
|
948
|
-
listAllCurrencies(options) {
|
|
949
|
-
return (0, exports.ReferenceDataApiFp)(this.configuration).listAllCurrencies(options).then((request) => request(this.axios, this.basePath));
|
|
950
|
-
}
|
|
951
|
-
/**
|
|
952
|
-
* Returns a list of all Exchange Rate Pairs for all supported Currencies.
|
|
953
|
-
* @summary Get currency exchange rates
|
|
954
|
-
* @param {*} [options] Override http request option.
|
|
955
|
-
* @throws {RequiredError}
|
|
956
|
-
* @memberof ReferenceDataApiGenerated
|
|
957
|
-
*/
|
|
958
|
-
listAllCurrenciesRates(options) {
|
|
959
|
-
return (0, exports.ReferenceDataApiFp)(this.configuration).listAllCurrenciesRates(options).then((request) => request(this.axios, this.basePath));
|
|
960
|
-
}
|
|
961
|
-
/**
|
|
962
|
-
* Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned. The search results are further limited to the symbols supported by the brokerage for which the account is under.
|
|
963
|
-
* @summary Search account symbols
|
|
964
|
-
* @param {ReferenceDataApiSymbolSearchUserAccountRequest} requestParameters Request parameters.
|
|
965
|
-
* @param {*} [options] Override http request option.
|
|
966
|
-
* @throws {RequiredError}
|
|
967
|
-
* @memberof ReferenceDataApiGenerated
|
|
968
|
-
*/
|
|
969
|
-
symbolSearchUserAccount(requestParameters, options) {
|
|
970
|
-
return (0, exports.ReferenceDataApiFp)(this.configuration).symbolSearchUserAccount(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
971
|
-
}
|
|
972
|
-
}
|
|
973
|
-
exports.ReferenceDataApiGenerated = ReferenceDataApiGenerated;
|