snaptrade-typescript-sdk 3.0.0 → 4.0.0
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/.konfig/generate-id.txt +1 -1
- package/.konfigignore +3 -1
- package/README.md +107 -23
- package/api/account-information-api.ts +1075 -0
- package/api/api-disclaimer-api.ts +190 -0
- package/api/api-status-api.ts +128 -0
- package/api/authentication-api.ts +591 -0
- package/api/connections-api.ts +425 -0
- package/api/error-logs-api.ts +175 -0
- package/api/options-api.ts +758 -0
- package/api/portfolio-management-api.ts +3402 -0
- package/api/reference-data-api.ts +1076 -0
- package/api/trading-api.ts +1339 -0
- package/api/transactions-and-reporting-api.ts +391 -0
- package/api.ts +12 -11530
- package/base.ts +1 -2
- package/client.ts +55 -0
- package/common.ts +16 -54
- package/configuration.ts +33 -10
- package/dist/api/account-information-api.d.ts +525 -0
- package/dist/api/account-information-api.js +1049 -0
- package/dist/api/api-disclaimer-api.d.ts +102 -0
- package/dist/api/api-disclaimer-api.js +245 -0
- package/dist/api/api-status-api.d.ts +70 -0
- package/dist/api/api-status-api.js +203 -0
- package/dist/api/authentication-api.d.ts +280 -0
- package/dist/api/authentication-api.js +659 -0
- package/dist/api/connections-api.d.ts +214 -0
- package/dist/api/connections-api.js +470 -0
- package/dist/api/error-logs-api.d.ts +94 -0
- package/dist/api/error-logs-api.js +240 -0
- package/dist/api/options-api.d.ts +381 -0
- package/dist/api/options-api.js +728 -0
- package/dist/api/portfolio-management-api.d.ts +1624 -0
- package/dist/api/portfolio-management-api.js +3574 -0
- package/dist/api/reference-data-api.d.ts +481 -0
- package/dist/api/reference-data-api.js +1244 -0
- package/dist/api/trading-api.d.ts +662 -0
- package/dist/api/trading-api.js +1276 -0
- package/dist/api/transactions-and-reporting-api.d.ts +204 -0
- package/dist/api/transactions-and-reporting-api.js +387 -0
- package/dist/api.d.ts +12 -7363
- package/dist/api.js +24 -9175
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -2
- package/dist/client.d.ts +27 -0
- package/dist/client.js +34 -0
- package/dist/common.d.ts +1 -6
- package/dist/common.js +26 -81
- package/dist/configuration.d.ts +21 -6
- package/dist/configuration.js +13 -8
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -2
- package/dist/index.test.js +84 -14
- package/dist/jest.config.js +0 -1
- package/dist/models/account-holdings.d.ts +47 -0
- package/dist/models/account-holdings.js +15 -0
- package/dist/models/account-order-record-status.d.ts +39 -0
- package/dist/models/account-order-record-status.js +43 -0
- package/dist/models/account-order-record.d.ts +126 -0
- package/dist/models/account-order-record.js +15 -0
- package/dist/models/account-simple.d.ts +37 -0
- package/dist/models/account-simple.js +15 -0
- package/dist/models/account.d.ts +76 -0
- package/dist/models/account.js +15 -0
- package/dist/models/action.d.ts +21 -0
- package/dist/models/action.js +25 -0
- package/dist/models/apidisclaimer-accept-request.d.ts +24 -0
- package/dist/models/apidisclaimer-accept-request.js +15 -0
- package/dist/models/authentication-login-snap-trade-user200-response.d.ts +18 -0
- package/dist/models/authentication-login-snap-trade-user200-response.js +15 -0
- package/dist/models/balance.d.ts +32 -0
- package/dist/models/balance.js +15 -0
- package/dist/models/brokerage-authorization-type-read-only-brokerage.d.ts +37 -0
- package/dist/models/brokerage-authorization-type-read-only-brokerage.js +15 -0
- package/dist/models/brokerage-authorization-type-read-only.d.ts +56 -0
- package/dist/models/brokerage-authorization-type-read-only.js +26 -0
- package/dist/models/brokerage-authorization-type.d.ts +30 -0
- package/dist/models/brokerage-authorization-type.js +20 -0
- package/dist/models/brokerage-authorization.d.ts +76 -0
- package/dist/models/brokerage-authorization.js +15 -0
- package/dist/models/brokerage-symbol.d.ts +51 -0
- package/dist/models/brokerage-symbol.js +15 -0
- package/dist/models/brokerage-type.d.ts +31 -0
- package/dist/models/brokerage-type.js +15 -0
- package/dist/models/brokerage.d.ts +128 -0
- package/dist/models/brokerage.js +15 -0
- package/dist/models/calculated-trade.d.ts +32 -0
- package/dist/models/calculated-trade.js +15 -0
- package/dist/models/cash-restriction.d.ts +54 -0
- package/dist/models/cash-restriction.js +20 -0
- package/dist/models/currency.d.ts +37 -0
- package/dist/models/currency.js +15 -0
- package/dist/models/delete-user-response.d.ts +31 -0
- package/dist/models/delete-user-response.js +15 -0
- package/dist/models/dividend-at-date.d.ts +37 -0
- package/dist/models/dividend-at-date.js +15 -0
- package/dist/models/encrypted-response-encrypted-message-data.d.ts +37 -0
- package/dist/models/encrypted-response-encrypted-message-data.js +15 -0
- package/dist/models/encrypted-response.d.ts +31 -0
- package/dist/models/encrypted-response.js +15 -0
- package/dist/models/exchange-rate-pairs.d.ts +38 -0
- package/dist/models/exchange-rate-pairs.js +15 -0
- package/dist/models/exchange.d.ts +67 -0
- package/dist/models/exchange.js +15 -0
- package/dist/models/excluded-asset.d.ts +26 -0
- package/dist/models/excluded-asset.js +15 -0
- package/dist/models/index.d.ts +102 -0
- package/dist/models/index.js +118 -0
- package/dist/models/jwt.d.ts +25 -0
- package/dist/models/jwt.js +15 -0
- package/dist/models/login-redirect-uri.d.ts +30 -0
- package/dist/models/login-redirect-uri.js +15 -0
- package/dist/models/manual-trade-and-impact.d.ts +39 -0
- package/dist/models/manual-trade-and-impact.js +15 -0
- package/dist/models/manual-trade-balance.d.ts +39 -0
- package/dist/models/manual-trade-balance.js +15 -0
- package/dist/models/manual-trade-form.d.ts +69 -0
- package/dist/models/manual-trade-form.js +15 -0
- package/dist/models/manual-trade-symbol.d.ts +56 -0
- package/dist/models/manual-trade-symbol.js +15 -0
- package/dist/models/manual-trade.d.ts +72 -0
- package/dist/models/manual-trade.js +15 -0
- package/dist/models/model-asset-class-details.d.ts +32 -0
- package/dist/models/model-asset-class-details.js +15 -0
- package/dist/models/model-asset-class-target.d.ts +26 -0
- package/dist/models/model-asset-class-target.js +15 -0
- package/dist/models/model-asset-class.d.ts +31 -0
- package/dist/models/model-asset-class.js +15 -0
- package/dist/models/model-portfolio-asset-class.d.ts +32 -0
- package/dist/models/model-portfolio-asset-class.js +15 -0
- package/dist/models/model-portfolio-details.d.ts +39 -0
- package/dist/models/model-portfolio-details.js +15 -0
- package/dist/models/model-portfolio-security.d.ts +32 -0
- package/dist/models/model-portfolio-security.js +15 -0
- package/dist/models/model-portfolio.d.ts +43 -0
- package/dist/models/model-portfolio.js +21 -0
- package/dist/models/model400-failed-request-response.d.ts +31 -0
- package/dist/models/model400-failed-request-response.js +15 -0
- package/dist/models/model401-failed-request-response.d.ts +31 -0
- package/dist/models/model401-failed-request-response.js +15 -0
- package/dist/models/model403-failed-request-response.d.ts +31 -0
- package/dist/models/model403-failed-request-response.js +15 -0
- package/dist/models/model404-failed-request-response.d.ts +31 -0
- package/dist/models/model404-failed-request-response.js +15 -0
- package/dist/models/monthly-dividends.d.ts +32 -0
- package/dist/models/monthly-dividends.js +15 -0
- package/dist/models/net-contributions.d.ts +37 -0
- package/dist/models/net-contributions.js +15 -0
- package/dist/models/net-dividend.d.ts +38 -0
- package/dist/models/net-dividend.js +15 -0
- package/dist/models/option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner.d.ts +37 -0
- package/dist/models/option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner.js +15 -0
- package/dist/models/option-chain-inner-chain-per-root-inner.d.ts +38 -0
- package/dist/models/option-chain-inner-chain-per-root-inner.js +15 -0
- package/dist/models/option-chain-inner.d.ts +50 -0
- package/dist/models/option-chain-inner.js +15 -0
- package/dist/models/option-leg.d.ts +44 -0
- package/dist/models/option-leg.js +22 -0
- package/dist/models/option-strategy-legs-inner.d.ts +42 -0
- package/dist/models/option-strategy-legs-inner.js +15 -0
- package/dist/models/option-strategy.d.ts +51 -0
- package/dist/models/option-strategy.js +15 -0
- package/dist/models/options-get-option-strategy-request.d.ts +41 -0
- package/dist/models/options-get-option-strategy-request.js +19 -0
- package/dist/models/options-holdings.d.ts +57 -0
- package/dist/models/options-holdings.js +15 -0
- package/dist/models/options-place-option-strategy-request.d.ts +48 -0
- package/dist/models/options-place-option-strategy-request.js +26 -0
- package/dist/models/options-position.d.ts +63 -0
- package/dist/models/options-position.js +15 -0
- package/dist/models/options-symbol.d.ts +86 -0
- package/dist/models/options-symbol.js +15 -0
- package/dist/models/order-type.d.ts +23 -0
- package/dist/models/order-type.js +27 -0
- package/dist/models/partner-data.d.ts +92 -0
- package/dist/models/partner-data.js +15 -0
- package/dist/models/past-value.d.ts +37 -0
- package/dist/models/past-value.js +15 -0
- package/dist/models/performance-custom.d.ts +138 -0
- package/dist/models/performance-custom.js +15 -0
- package/dist/models/portfolio-group-info.d.ts +93 -0
- package/dist/models/portfolio-group-info.js +15 -0
- package/dist/models/portfolio-group-position.d.ts +38 -0
- package/dist/models/portfolio-group-position.js +15 -0
- package/dist/models/portfolio-group-settings.d.ts +50 -0
- package/dist/models/portfolio-group-settings.js +15 -0
- package/dist/models/portfolio-group.d.ts +31 -0
- package/dist/models/portfolio-group.js +15 -0
- package/dist/models/position-symbol.d.ts +56 -0
- package/dist/models/position-symbol.js +15 -0
- package/dist/models/position.d.ts +56 -0
- package/dist/models/position.js +15 -0
- package/dist/models/redirect-tokenand-pin.d.ts +31 -0
- package/dist/models/redirect-tokenand-pin.js +15 -0
- package/dist/models/security-type.d.ts +43 -0
- package/dist/models/security-type.js +15 -0
- package/dist/models/snap-trade-apidisclaimer-accept-status.d.ts +31 -0
- package/dist/models/snap-trade-apidisclaimer-accept-status.js +15 -0
- package/dist/models/snap-trade-holdings-account.d.ts +64 -0
- package/dist/models/snap-trade-holdings-account.js +15 -0
- package/dist/models/snap-trade-holdings-total-value.d.ts +31 -0
- package/dist/models/snap-trade-holdings-total-value.js +15 -0
- package/dist/models/snap-trade-login-user-request-body.d.ts +53 -0
- package/dist/models/snap-trade-login-user-request-body.js +20 -0
- package/dist/models/snap-trade-register-user-request-body.d.ts +30 -0
- package/dist/models/snap-trade-register-user-request-body.js +15 -0
- package/dist/models/status.d.ts +37 -0
- package/dist/models/status.js +15 -0
- package/dist/models/strategy-impact-legs-inner.d.ts +61 -0
- package/dist/models/strategy-impact-legs-inner.js +15 -0
- package/dist/models/strategy-impact.d.ts +86 -0
- package/dist/models/strategy-impact.js +15 -0
- package/dist/models/strategy-order-place-orders-inner-legs-inner.d.ts +61 -0
- package/dist/models/strategy-order-place-orders-inner-legs-inner.js +15 -0
- package/dist/models/strategy-order-place-orders-inner.d.ts +278 -0
- package/dist/models/strategy-order-place-orders-inner.js +15 -0
- package/dist/models/strategy-order-place.d.ts +32 -0
- package/dist/models/strategy-order-place.js +15 -0
- package/dist/models/strategy-order-record.d.ts +120 -0
- package/dist/models/strategy-order-record.js +47 -0
- package/dist/models/strategy-quotes-greek.d.ts +49 -0
- package/dist/models/strategy-quotes-greek.js +15 -0
- package/dist/models/strategy-quotes.d.ts +57 -0
- package/dist/models/strategy-quotes.js +15 -0
- package/dist/models/sub-period-return-rate.d.ts +37 -0
- package/dist/models/sub-period-return-rate.js +15 -0
- package/dist/models/symbol-query.d.ts +24 -0
- package/dist/models/symbol-query.js +15 -0
- package/dist/models/symbol.d.ts +51 -0
- package/dist/models/symbol.js +15 -0
- package/dist/models/symbols-quotes.d.ts +56 -0
- package/dist/models/symbols-quotes.js +15 -0
- package/dist/models/target-asset.d.ts +55 -0
- package/dist/models/target-asset.js +15 -0
- package/dist/models/time-in-force.d.ts +22 -0
- package/dist/models/time-in-force.js +26 -0
- package/dist/models/trade-execution-status.d.ts +91 -0
- package/dist/models/trade-execution-status.js +27 -0
- package/dist/models/trade-impact.d.ts +51 -0
- package/dist/models/trade-impact.js +15 -0
- package/dist/models/trade.d.ts +74 -0
- package/dist/models/trade.js +20 -0
- package/dist/models/trading-place-ocoorder-request.d.ts +30 -0
- package/dist/models/trading-place-ocoorder-request.js +15 -0
- package/dist/models/underlying-symbol.d.ts +64 -0
- package/dist/models/underlying-symbol.js +15 -0
- package/dist/models/universal-activity.d.ts +134 -0
- package/dist/models/universal-activity.js +36 -0
- package/dist/models/universal-symbol-ticker.d.ts +70 -0
- package/dist/models/universal-symbol-ticker.js +15 -0
- package/dist/models/universal-symbol.d.ts +69 -0
- package/dist/models/universal-symbol.js +15 -0
- package/dist/models/user-error-log.d.ts +55 -0
- package/dist/models/user-error-log.js +15 -0
- package/dist/models/user-idand-secret.d.ts +31 -0
- package/dist/models/user-idand-secret.js +15 -0
- package/dist/models/user-settings.d.ts +80 -0
- package/dist/models/user-settings.js +15 -0
- package/dist/models/usexchange.d.ts +73 -0
- package/dist/models/usexchange.js +15 -0
- package/dist/pagination/page.d.ts +31 -0
- package/dist/pagination/page.js +58 -0
- package/dist/pagination/pageable.d.ts +53 -0
- package/dist/pagination/pageable.js +128 -0
- package/dist/pagination/paginate.d.ts +17 -0
- package/dist/pagination/paginate.js +78 -0
- package/dist/requestAfterHook.d.ts +8 -0
- package/dist/requestAfterHook.js +45 -0
- package/dist/requestBeforeHook.d.ts +8 -0
- package/dist/requestBeforeHook.js +8 -0
- package/docs/AccountInformationApi.md +485 -0
- package/docs/ApiDisclaimerApi.md +69 -0
- package/docs/ApiStatusApi.md +60 -0
- package/docs/AuthenticationApi.md +307 -0
- package/docs/ConnectionsApi.md +186 -0
- package/docs/ErrorLogsApi.md +65 -0
- package/docs/OptionsApi.md +321 -0
- package/docs/PortfolioManagementApi.md +1866 -0
- package/docs/ReferenceDataApi.md +597 -0
- package/docs/TradingApi.md +629 -0
- package/docs/TransactionsAndReportingApi.md +141 -0
- package/index.test.ts +62 -13
- package/index.ts +3 -3
- package/models/account-holdings.ts +61 -0
- package/models/account-order-record-status.ts +48 -0
- package/models/account-order-record.ts +142 -0
- package/models/account-simple.ts +43 -0
- package/models/account.ts +82 -0
- package/models/action.ts +30 -0
- package/models/apidisclaimer-accept-request.ts +29 -0
- package/models/authentication-login-snap-trade-user200-response.ts +31 -0
- package/models/balance.ts +40 -0
- package/models/brokerage-authorization-type-read-only-brokerage.ts +43 -0
- package/models/brokerage-authorization-type-read-only.ts +68 -0
- package/models/brokerage-authorization-type.ts +39 -0
- package/models/brokerage-authorization.ts +82 -0
- package/models/brokerage-symbol.ts +61 -0
- package/models/brokerage-type.ts +37 -0
- package/models/brokerage.ts +136 -0
- package/models/calculated-trade.ts +40 -0
- package/models/cash-restriction.ts +63 -0
- package/models/currency.ts +43 -0
- package/models/delete-user-response.ts +37 -0
- package/models/dividend-at-date.ts +43 -0
- package/models/encrypted-response-encrypted-message-data.ts +43 -0
- package/models/encrypted-response.ts +38 -0
- package/models/exchange-rate-pairs.ts +46 -0
- package/models/exchange.ts +73 -0
- package/models/excluded-asset.ts +34 -0
- package/models/index.ts +102 -0
- package/models/jwt.ts +31 -0
- package/models/login-redirect-uri.ts +35 -0
- package/models/manual-trade-and-impact.ts +49 -0
- package/models/manual-trade-balance.ts +49 -0
- package/models/manual-trade-form.ts +80 -0
- package/models/manual-trade-symbol.ts +64 -0
- package/models/manual-trade.ts +88 -0
- package/models/model-asset-class-details.ts +41 -0
- package/models/model-asset-class-target.ts +34 -0
- package/models/model-asset-class.ts +37 -0
- package/models/model-portfolio-asset-class.ts +40 -0
- package/models/model-portfolio-details.ts +50 -0
- package/models/model-portfolio-security.ts +40 -0
- package/models/model-portfolio.ts +52 -0
- package/models/model400-failed-request-response.ts +37 -0
- package/models/model401-failed-request-response.ts +37 -0
- package/models/model403-failed-request-response.ts +37 -0
- package/models/model404-failed-request-response.ts +37 -0
- package/models/monthly-dividends.ts +40 -0
- package/models/net-contributions.ts +43 -0
- package/models/net-dividend.ts +46 -0
- package/models/option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner.ts +43 -0
- package/models/option-chain-inner-chain-per-root-inner.ts +46 -0
- package/models/option-chain-inner.ts +58 -0
- package/models/option-leg.ts +53 -0
- package/models/option-strategy-legs-inner.ts +47 -0
- package/models/option-strategy.ts +61 -0
- package/models/options-get-option-strategy-request.ts +51 -0
- package/models/options-holdings.ts +67 -0
- package/models/options-place-option-strategy-request.ts +57 -0
- package/models/options-position.ts +73 -0
- package/models/options-symbol.ts +94 -0
- package/models/order-type.ts +32 -0
- package/models/partner-data.ts +100 -0
- package/models/past-value.ts +43 -0
- package/models/performance-custom.ts +154 -0
- package/models/portfolio-group-info.ts +115 -0
- package/models/portfolio-group-position.ts +46 -0
- package/models/portfolio-group-settings.ts +58 -0
- package/models/portfolio-group.ts +37 -0
- package/models/position-symbol.ts +64 -0
- package/models/position.ts +64 -0
- package/models/redirect-tokenand-pin.ts +37 -0
- package/models/security-type.ts +49 -0
- package/models/snap-trade-apidisclaimer-accept-status.ts +37 -0
- package/models/snap-trade-holdings-account.ts +70 -0
- package/models/snap-trade-holdings-total-value.ts +37 -0
- package/models/snap-trade-login-user-request-body.ts +61 -0
- package/models/snap-trade-register-user-request-body.ts +35 -0
- package/models/status.ts +43 -0
- package/models/strategy-impact-legs-inner.ts +67 -0
- package/models/strategy-impact.ts +94 -0
- package/models/strategy-order-place-orders-inner-legs-inner.ts +67 -0
- package/models/strategy-order-place-orders-inner.ts +286 -0
- package/models/strategy-order-place.ts +40 -0
- package/models/strategy-order-record.ts +133 -0
- package/models/strategy-quotes-greek.ts +55 -0
- package/models/strategy-quotes.ts +67 -0
- package/models/sub-period-return-rate.ts +43 -0
- package/models/symbol-query.ts +29 -0
- package/models/symbol.ts +61 -0
- package/models/symbols-quotes.ts +64 -0
- package/models/target-asset.ts +62 -0
- package/models/time-in-force.ts +31 -0
- package/models/trade-execution-status.ts +105 -0
- package/models/trade-impact.ts +61 -0
- package/models/trade.ts +88 -0
- package/models/trading-place-ocoorder-request.ts +35 -0
- package/models/underlying-symbol.ts +76 -0
- package/models/universal-activity.ts +151 -0
- package/models/universal-symbol-ticker.ts +82 -0
- package/models/universal-symbol.ts +80 -0
- package/models/user-error-log.ts +61 -0
- package/models/user-idand-secret.ts +37 -0
- package/models/user-settings.ts +88 -0
- package/models/usexchange.ts +79 -0
- package/package.json +1 -1
- package/pagination/page.ts +50 -0
- package/pagination/pageable.ts +107 -0
- package/pagination/paginate.ts +40 -0
- package/requestAfterHook.ts +53 -0
- package/requestBeforeHook.ts +14 -0
- package/tsconfig.json +0 -1
- package/dist/api.js.map +0 -1
- package/dist/base.js.map +0 -1
- package/dist/common.js.map +0 -1
- package/dist/configuration.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.test.js.map +0 -1
- package/dist/jest.config.js.map +0 -1
|
@@ -0,0 +1,662 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SnapTrade
|
|
3
|
+
* Connect brokerage accounts to your app for live positions and trading
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: api@snaptrade.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
9
|
+
* https://konfigthis.com
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
+
import { Configuration } from '../configuration';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { AccountOrderRecord } from '../models';
|
|
16
|
+
import { ManualTradeAndImpact } from '../models';
|
|
17
|
+
import { ManualTradeForm } from '../models';
|
|
18
|
+
import { SymbolsQuotes } from '../models';
|
|
19
|
+
import { Trade } from '../models';
|
|
20
|
+
import { TradeExecutionStatus } from '../models';
|
|
21
|
+
import { TradeImpact } from '../models';
|
|
22
|
+
import { TradingPlaceOCOOrderRequest } from '../models';
|
|
23
|
+
/**
|
|
24
|
+
* TradingApi - axios parameter creator
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
export declare const TradingApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @summary Cancel open order in account
|
|
31
|
+
* @param {string} userId
|
|
32
|
+
* @param {string} userSecret
|
|
33
|
+
* @param {string} accountId The ID of the account get positions.
|
|
34
|
+
* @param {string} body
|
|
35
|
+
* @param {*} [options] Override http request option.
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
*/
|
|
38
|
+
cancelUserAccountOrder: (userId: string, userSecret: string, accountId: string, body: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @summary Return details of a specific trade before it\'s placed
|
|
42
|
+
* @param {string} portfolioGroupId The ID of the PortfolioGroup to perform rebalancing calculations
|
|
43
|
+
* @param {string} calculatedTradeId The ID of calculated trade to get account impact
|
|
44
|
+
* @param {string} tradeId The ID of trade object
|
|
45
|
+
* @param {*} [options] Override http request option.
|
|
46
|
+
* @throws {RequiredError}
|
|
47
|
+
*/
|
|
48
|
+
getCalculatedTradeImpactById: (portfolioGroupId: string, calculatedTradeId: string, tradeId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @summary Return the impact of placing a series of trades on the portfolio
|
|
52
|
+
* @param {string} portfolioGroupId The ID of the PortfolioGroup to perform rebalancing calculations
|
|
53
|
+
* @param {string} calculatedTradeId The ID of calculated trade to get account impact
|
|
54
|
+
* @param {*} [options] Override http request option.
|
|
55
|
+
* @throws {RequiredError}
|
|
56
|
+
*/
|
|
57
|
+
getCalculatedTradesImpact: (portfolioGroupId: string, calculatedTradeId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @summary Check impact of trades on account.
|
|
61
|
+
* @param {string} userId
|
|
62
|
+
* @param {string} userSecret
|
|
63
|
+
* @param {ManualTradeForm} manualTradeForm
|
|
64
|
+
* @param {*} [options] Override http request option.
|
|
65
|
+
* @throws {RequiredError}
|
|
66
|
+
*/
|
|
67
|
+
getOrderImpact: (userId: string, userSecret: string, manualTradeForm: ManualTradeForm, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @summary Get symbol quotes
|
|
71
|
+
* @param {string} userId
|
|
72
|
+
* @param {string} userSecret
|
|
73
|
+
* @param {string} symbols List of universal_symbol_id or tickers to get quotes for.
|
|
74
|
+
* @param {string} accountId The ID of the account to get quotes.
|
|
75
|
+
* @param {boolean} [useTicker] Should be set to True if providing tickers.
|
|
76
|
+
* @param {*} [options] Override http request option.
|
|
77
|
+
* @throws {RequiredError}
|
|
78
|
+
*/
|
|
79
|
+
getUserAccountQuotes: (userId: string, userSecret: string, symbols: string, accountId: string, useTicker?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @summary Modify units of a trade before it is placed
|
|
83
|
+
* @param {string} portfolioGroupId The ID of the PortfolioGroup to perform rebalancing calculations
|
|
84
|
+
* @param {string} calculatedTradeId The ID of calculated trade to get account impact
|
|
85
|
+
* @param {string} tradeId The ID of trade object
|
|
86
|
+
* @param {Trade} [trade]
|
|
87
|
+
* @param {*} [options] Override http request option.
|
|
88
|
+
* @throws {RequiredError}
|
|
89
|
+
*/
|
|
90
|
+
modifyCalculatedTradeById: (portfolioGroupId: string, calculatedTradeId: string, tradeId: string, trade?: Trade, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @summary Place orders for the CalculatedTrades in series
|
|
94
|
+
* @param {string} portfolioGroupId The ID of the PortfolioGroup to perform rebalancing calculations
|
|
95
|
+
* @param {string} calculatedTradeId The ID of calculated trade to get account impact
|
|
96
|
+
* @param {*} [options] Override http request option.
|
|
97
|
+
* @throws {RequiredError}
|
|
98
|
+
*/
|
|
99
|
+
placeCalculatedTrades: (portfolioGroupId: string, calculatedTradeId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @summary Place a trade with NO validation.
|
|
103
|
+
* @param {string} userId
|
|
104
|
+
* @param {string} userSecret
|
|
105
|
+
* @param {ManualTradeForm} manualTradeForm
|
|
106
|
+
* @param {*} [options] Override http request option.
|
|
107
|
+
* @throws {RequiredError}
|
|
108
|
+
*/
|
|
109
|
+
placeForceOrder: (userId: string, userSecret: string, manualTradeForm: ManualTradeForm, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @summary Place a OCO (One Cancels Other) order
|
|
113
|
+
* @param {string} userId
|
|
114
|
+
* @param {string} userSecret
|
|
115
|
+
* @param {TradingPlaceOCOOrderRequest} tradingPlaceOCOOrderRequest
|
|
116
|
+
* @param {*} [options] Override http request option.
|
|
117
|
+
* @throws {RequiredError}
|
|
118
|
+
*/
|
|
119
|
+
placeOCOOrder: (userId: string, userSecret: string, tradingPlaceOCOOrderRequest: TradingPlaceOCOOrderRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @summary Place order
|
|
123
|
+
* @param {string} tradeId The ID of trade object obtained from trade/impact endpoint
|
|
124
|
+
* @param {string} userId
|
|
125
|
+
* @param {string} userSecret
|
|
126
|
+
* @param {*} [options] Override http request option.
|
|
127
|
+
* @throws {RequiredError}
|
|
128
|
+
*/
|
|
129
|
+
placeOrder: (tradeId: string, userId: string, userSecret: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* TradingApi - functional programming interface
|
|
133
|
+
* @export
|
|
134
|
+
*/
|
|
135
|
+
export declare const TradingApiFp: (configuration?: Configuration) => {
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @summary Cancel open order in account
|
|
139
|
+
* @param {TradingApiCancelUserAccountOrderRequest} requestParameters Request parameters.
|
|
140
|
+
* @param {*} [options] Override http request option.
|
|
141
|
+
* @throws {RequiredError}
|
|
142
|
+
*/
|
|
143
|
+
cancelUserAccountOrder(requestParameters: TradingApiCancelUserAccountOrderRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountOrderRecord>>;
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @summary Return details of a specific trade before it\'s placed
|
|
147
|
+
* @param {TradingApiGetCalculatedTradeImpactByIdRequest} requestParameters Request parameters.
|
|
148
|
+
* @param {*} [options] Override http request option.
|
|
149
|
+
* @throws {RequiredError}
|
|
150
|
+
*/
|
|
151
|
+
getCalculatedTradeImpactById(requestParameters: TradingApiGetCalculatedTradeImpactByIdRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Trade>>;
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* @summary Return the impact of placing a series of trades on the portfolio
|
|
155
|
+
* @param {TradingApiGetCalculatedTradesImpactRequest} requestParameters Request parameters.
|
|
156
|
+
* @param {*} [options] Override http request option.
|
|
157
|
+
* @throws {RequiredError}
|
|
158
|
+
*/
|
|
159
|
+
getCalculatedTradesImpact(requestParameters: TradingApiGetCalculatedTradesImpactRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TradeImpact>>>;
|
|
160
|
+
/**
|
|
161
|
+
*
|
|
162
|
+
* @summary Check impact of trades on account.
|
|
163
|
+
* @param {TradingApiGetOrderImpactRequest} requestParameters Request parameters.
|
|
164
|
+
* @param {*} [options] Override http request option.
|
|
165
|
+
* @throws {RequiredError}
|
|
166
|
+
*/
|
|
167
|
+
getOrderImpact(requestParameters: TradingApiGetOrderImpactRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManualTradeAndImpact>>;
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
* @summary Get symbol quotes
|
|
171
|
+
* @param {TradingApiGetUserAccountQuotesRequest} requestParameters Request parameters.
|
|
172
|
+
* @param {*} [options] Override http request option.
|
|
173
|
+
* @throws {RequiredError}
|
|
174
|
+
*/
|
|
175
|
+
getUserAccountQuotes(requestParameters: TradingApiGetUserAccountQuotesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SymbolsQuotes>>;
|
|
176
|
+
/**
|
|
177
|
+
*
|
|
178
|
+
* @summary Modify units of a trade before it is placed
|
|
179
|
+
* @param {TradingApiModifyCalculatedTradeByIdRequest} requestParameters Request parameters.
|
|
180
|
+
* @param {*} [options] Override http request option.
|
|
181
|
+
* @throws {RequiredError}
|
|
182
|
+
*/
|
|
183
|
+
modifyCalculatedTradeById(requestParameters: TradingApiModifyCalculatedTradeByIdRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Trade>>;
|
|
184
|
+
/**
|
|
185
|
+
*
|
|
186
|
+
* @summary Place orders for the CalculatedTrades in series
|
|
187
|
+
* @param {TradingApiPlaceCalculatedTradesRequest} requestParameters Request parameters.
|
|
188
|
+
* @param {*} [options] Override http request option.
|
|
189
|
+
* @throws {RequiredError}
|
|
190
|
+
*/
|
|
191
|
+
placeCalculatedTrades(requestParameters: TradingApiPlaceCalculatedTradesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TradeExecutionStatus>>>;
|
|
192
|
+
/**
|
|
193
|
+
*
|
|
194
|
+
* @summary Place a trade with NO validation.
|
|
195
|
+
* @param {TradingApiPlaceForceOrderRequest} requestParameters Request parameters.
|
|
196
|
+
* @param {*} [options] Override http request option.
|
|
197
|
+
* @throws {RequiredError}
|
|
198
|
+
*/
|
|
199
|
+
placeForceOrder(requestParameters: TradingApiPlaceForceOrderRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountOrderRecord>>;
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
* @summary Place a OCO (One Cancels Other) order
|
|
203
|
+
* @param {TradingApiPlaceOCOOrderRequest} requestParameters Request parameters.
|
|
204
|
+
* @param {*} [options] Override http request option.
|
|
205
|
+
* @throws {RequiredError}
|
|
206
|
+
*/
|
|
207
|
+
placeOCOOrder(requestParameters: TradingApiPlaceOCOOrderRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountOrderRecord>>;
|
|
208
|
+
/**
|
|
209
|
+
*
|
|
210
|
+
* @summary Place order
|
|
211
|
+
* @param {TradingApiPlaceOrderRequest} requestParameters Request parameters.
|
|
212
|
+
* @param {*} [options] Override http request option.
|
|
213
|
+
* @throws {RequiredError}
|
|
214
|
+
*/
|
|
215
|
+
placeOrder(requestParameters: TradingApiPlaceOrderRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountOrderRecord>>;
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* TradingApi - factory interface
|
|
219
|
+
* @export
|
|
220
|
+
*/
|
|
221
|
+
export declare const TradingApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
* @summary Cancel open order in account
|
|
225
|
+
* @param {TradingApiCancelUserAccountOrderRequest} requestParameters Request parameters.
|
|
226
|
+
* @param {*} [options] Override http request option.
|
|
227
|
+
* @throws {RequiredError}
|
|
228
|
+
*/
|
|
229
|
+
cancelUserAccountOrder(requestParameters: TradingApiCancelUserAccountOrderRequest, options?: AxiosRequestConfig): AxiosPromise<AccountOrderRecord>;
|
|
230
|
+
/**
|
|
231
|
+
*
|
|
232
|
+
* @summary Return details of a specific trade before it\'s placed
|
|
233
|
+
* @param {TradingApiGetCalculatedTradeImpactByIdRequest} requestParameters Request parameters.
|
|
234
|
+
* @param {*} [options] Override http request option.
|
|
235
|
+
* @throws {RequiredError}
|
|
236
|
+
*/
|
|
237
|
+
getCalculatedTradeImpactById(requestParameters: TradingApiGetCalculatedTradeImpactByIdRequest, options?: AxiosRequestConfig): AxiosPromise<Trade>;
|
|
238
|
+
/**
|
|
239
|
+
*
|
|
240
|
+
* @summary Return the impact of placing a series of trades on the portfolio
|
|
241
|
+
* @param {TradingApiGetCalculatedTradesImpactRequest} requestParameters Request parameters.
|
|
242
|
+
* @param {*} [options] Override http request option.
|
|
243
|
+
* @throws {RequiredError}
|
|
244
|
+
*/
|
|
245
|
+
getCalculatedTradesImpact(requestParameters: TradingApiGetCalculatedTradesImpactRequest, options?: AxiosRequestConfig): AxiosPromise<Array<TradeImpact>>;
|
|
246
|
+
/**
|
|
247
|
+
*
|
|
248
|
+
* @summary Check impact of trades on account.
|
|
249
|
+
* @param {TradingApiGetOrderImpactRequest} requestParameters Request parameters.
|
|
250
|
+
* @param {*} [options] Override http request option.
|
|
251
|
+
* @throws {RequiredError}
|
|
252
|
+
*/
|
|
253
|
+
getOrderImpact(requestParameters: TradingApiGetOrderImpactRequest, options?: AxiosRequestConfig): AxiosPromise<ManualTradeAndImpact>;
|
|
254
|
+
/**
|
|
255
|
+
*
|
|
256
|
+
* @summary Get symbol quotes
|
|
257
|
+
* @param {TradingApiGetUserAccountQuotesRequest} requestParameters Request parameters.
|
|
258
|
+
* @param {*} [options] Override http request option.
|
|
259
|
+
* @throws {RequiredError}
|
|
260
|
+
*/
|
|
261
|
+
getUserAccountQuotes(requestParameters: TradingApiGetUserAccountQuotesRequest, options?: AxiosRequestConfig): AxiosPromise<SymbolsQuotes>;
|
|
262
|
+
/**
|
|
263
|
+
*
|
|
264
|
+
* @summary Modify units of a trade before it is placed
|
|
265
|
+
* @param {TradingApiModifyCalculatedTradeByIdRequest} requestParameters Request parameters.
|
|
266
|
+
* @param {*} [options] Override http request option.
|
|
267
|
+
* @throws {RequiredError}
|
|
268
|
+
*/
|
|
269
|
+
modifyCalculatedTradeById(requestParameters: TradingApiModifyCalculatedTradeByIdRequest, options?: AxiosRequestConfig): AxiosPromise<Trade>;
|
|
270
|
+
/**
|
|
271
|
+
*
|
|
272
|
+
* @summary Place orders for the CalculatedTrades in series
|
|
273
|
+
* @param {TradingApiPlaceCalculatedTradesRequest} requestParameters Request parameters.
|
|
274
|
+
* @param {*} [options] Override http request option.
|
|
275
|
+
* @throws {RequiredError}
|
|
276
|
+
*/
|
|
277
|
+
placeCalculatedTrades(requestParameters: TradingApiPlaceCalculatedTradesRequest, options?: AxiosRequestConfig): AxiosPromise<Array<TradeExecutionStatus>>;
|
|
278
|
+
/**
|
|
279
|
+
*
|
|
280
|
+
* @summary Place a trade with NO validation.
|
|
281
|
+
* @param {TradingApiPlaceForceOrderRequest} requestParameters Request parameters.
|
|
282
|
+
* @param {*} [options] Override http request option.
|
|
283
|
+
* @throws {RequiredError}
|
|
284
|
+
*/
|
|
285
|
+
placeForceOrder(requestParameters: TradingApiPlaceForceOrderRequest, options?: AxiosRequestConfig): AxiosPromise<AccountOrderRecord>;
|
|
286
|
+
/**
|
|
287
|
+
*
|
|
288
|
+
* @summary Place a OCO (One Cancels Other) order
|
|
289
|
+
* @param {TradingApiPlaceOCOOrderRequest} requestParameters Request parameters.
|
|
290
|
+
* @param {*} [options] Override http request option.
|
|
291
|
+
* @throws {RequiredError}
|
|
292
|
+
*/
|
|
293
|
+
placeOCOOrder(requestParameters: TradingApiPlaceOCOOrderRequest, options?: AxiosRequestConfig): AxiosPromise<AccountOrderRecord>;
|
|
294
|
+
/**
|
|
295
|
+
*
|
|
296
|
+
* @summary Place order
|
|
297
|
+
* @param {TradingApiPlaceOrderRequest} requestParameters Request parameters.
|
|
298
|
+
* @param {*} [options] Override http request option.
|
|
299
|
+
* @throws {RequiredError}
|
|
300
|
+
*/
|
|
301
|
+
placeOrder(requestParameters: TradingApiPlaceOrderRequest, options?: AxiosRequestConfig): AxiosPromise<AccountOrderRecord>;
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
* Request parameters for cancelUserAccountOrder operation in TradingApi.
|
|
305
|
+
* @export
|
|
306
|
+
* @interface TradingApiCancelUserAccountOrderRequest
|
|
307
|
+
*/
|
|
308
|
+
export interface TradingApiCancelUserAccountOrderRequest {
|
|
309
|
+
/**
|
|
310
|
+
*
|
|
311
|
+
* @type {string}
|
|
312
|
+
* @memberof TradingApiCancelUserAccountOrder
|
|
313
|
+
*/
|
|
314
|
+
readonly userId: string;
|
|
315
|
+
/**
|
|
316
|
+
*
|
|
317
|
+
* @type {string}
|
|
318
|
+
* @memberof TradingApiCancelUserAccountOrder
|
|
319
|
+
*/
|
|
320
|
+
readonly userSecret: string;
|
|
321
|
+
/**
|
|
322
|
+
* The ID of the account get positions.
|
|
323
|
+
* @type {string}
|
|
324
|
+
* @memberof TradingApiCancelUserAccountOrder
|
|
325
|
+
*/
|
|
326
|
+
readonly accountId: string;
|
|
327
|
+
/**
|
|
328
|
+
*
|
|
329
|
+
* @type {string}
|
|
330
|
+
* @memberof TradingApiCancelUserAccountOrder
|
|
331
|
+
*/
|
|
332
|
+
readonly requestBody: string;
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Request parameters for getCalculatedTradeImpactById operation in TradingApi.
|
|
336
|
+
* @export
|
|
337
|
+
* @interface TradingApiGetCalculatedTradeImpactByIdRequest
|
|
338
|
+
*/
|
|
339
|
+
export interface TradingApiGetCalculatedTradeImpactByIdRequest {
|
|
340
|
+
/**
|
|
341
|
+
* The ID of the PortfolioGroup to perform rebalancing calculations
|
|
342
|
+
* @type {string}
|
|
343
|
+
* @memberof TradingApiGetCalculatedTradeImpactById
|
|
344
|
+
*/
|
|
345
|
+
readonly portfolioGroupId: string;
|
|
346
|
+
/**
|
|
347
|
+
* The ID of calculated trade to get account impact
|
|
348
|
+
* @type {string}
|
|
349
|
+
* @memberof TradingApiGetCalculatedTradeImpactById
|
|
350
|
+
*/
|
|
351
|
+
readonly calculatedTradeId: string;
|
|
352
|
+
/**
|
|
353
|
+
* The ID of trade object
|
|
354
|
+
* @type {string}
|
|
355
|
+
* @memberof TradingApiGetCalculatedTradeImpactById
|
|
356
|
+
*/
|
|
357
|
+
readonly tradeId: string;
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* Request parameters for getCalculatedTradesImpact operation in TradingApi.
|
|
361
|
+
* @export
|
|
362
|
+
* @interface TradingApiGetCalculatedTradesImpactRequest
|
|
363
|
+
*/
|
|
364
|
+
export interface TradingApiGetCalculatedTradesImpactRequest {
|
|
365
|
+
/**
|
|
366
|
+
* The ID of the PortfolioGroup to perform rebalancing calculations
|
|
367
|
+
* @type {string}
|
|
368
|
+
* @memberof TradingApiGetCalculatedTradesImpact
|
|
369
|
+
*/
|
|
370
|
+
readonly portfolioGroupId: string;
|
|
371
|
+
/**
|
|
372
|
+
* The ID of calculated trade to get account impact
|
|
373
|
+
* @type {string}
|
|
374
|
+
* @memberof TradingApiGetCalculatedTradesImpact
|
|
375
|
+
*/
|
|
376
|
+
readonly calculatedTradeId: string;
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Request parameters for getOrderImpact operation in TradingApi.
|
|
380
|
+
* @export
|
|
381
|
+
* @interface TradingApiGetOrderImpactRequest
|
|
382
|
+
*/
|
|
383
|
+
export interface TradingApiGetOrderImpactRequest {
|
|
384
|
+
/**
|
|
385
|
+
*
|
|
386
|
+
* @type {string}
|
|
387
|
+
* @memberof TradingApiGetOrderImpact
|
|
388
|
+
*/
|
|
389
|
+
readonly userId: string;
|
|
390
|
+
/**
|
|
391
|
+
*
|
|
392
|
+
* @type {string}
|
|
393
|
+
* @memberof TradingApiGetOrderImpact
|
|
394
|
+
*/
|
|
395
|
+
readonly userSecret: string;
|
|
396
|
+
/**
|
|
397
|
+
*
|
|
398
|
+
* @type {ManualTradeForm}
|
|
399
|
+
* @memberof TradingApiGetOrderImpact
|
|
400
|
+
*/
|
|
401
|
+
readonly requestBody: ManualTradeForm;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* Request parameters for getUserAccountQuotes operation in TradingApi.
|
|
405
|
+
* @export
|
|
406
|
+
* @interface TradingApiGetUserAccountQuotesRequest
|
|
407
|
+
*/
|
|
408
|
+
export interface TradingApiGetUserAccountQuotesRequest {
|
|
409
|
+
/**
|
|
410
|
+
*
|
|
411
|
+
* @type {string}
|
|
412
|
+
* @memberof TradingApiGetUserAccountQuotes
|
|
413
|
+
*/
|
|
414
|
+
readonly userId: string;
|
|
415
|
+
/**
|
|
416
|
+
*
|
|
417
|
+
* @type {string}
|
|
418
|
+
* @memberof TradingApiGetUserAccountQuotes
|
|
419
|
+
*/
|
|
420
|
+
readonly userSecret: string;
|
|
421
|
+
/**
|
|
422
|
+
* List of universal_symbol_id or tickers to get quotes for.
|
|
423
|
+
* @type {string}
|
|
424
|
+
* @memberof TradingApiGetUserAccountQuotes
|
|
425
|
+
*/
|
|
426
|
+
readonly symbols: string;
|
|
427
|
+
/**
|
|
428
|
+
* The ID of the account to get quotes.
|
|
429
|
+
* @type {string}
|
|
430
|
+
* @memberof TradingApiGetUserAccountQuotes
|
|
431
|
+
*/
|
|
432
|
+
readonly accountId: string;
|
|
433
|
+
/**
|
|
434
|
+
* Should be set to True if providing tickers.
|
|
435
|
+
* @type {boolean}
|
|
436
|
+
* @memberof TradingApiGetUserAccountQuotes
|
|
437
|
+
*/
|
|
438
|
+
readonly useTicker?: boolean;
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* Request parameters for modifyCalculatedTradeById operation in TradingApi.
|
|
442
|
+
* @export
|
|
443
|
+
* @interface TradingApiModifyCalculatedTradeByIdRequest
|
|
444
|
+
*/
|
|
445
|
+
export interface TradingApiModifyCalculatedTradeByIdRequest {
|
|
446
|
+
/**
|
|
447
|
+
* The ID of the PortfolioGroup to perform rebalancing calculations
|
|
448
|
+
* @type {string}
|
|
449
|
+
* @memberof TradingApiModifyCalculatedTradeById
|
|
450
|
+
*/
|
|
451
|
+
readonly portfolioGroupId: string;
|
|
452
|
+
/**
|
|
453
|
+
* The ID of calculated trade to get account impact
|
|
454
|
+
* @type {string}
|
|
455
|
+
* @memberof TradingApiModifyCalculatedTradeById
|
|
456
|
+
*/
|
|
457
|
+
readonly calculatedTradeId: string;
|
|
458
|
+
/**
|
|
459
|
+
* The ID of trade object
|
|
460
|
+
* @type {string}
|
|
461
|
+
* @memberof TradingApiModifyCalculatedTradeById
|
|
462
|
+
*/
|
|
463
|
+
readonly tradeId: string;
|
|
464
|
+
/**
|
|
465
|
+
*
|
|
466
|
+
* @type {Trade}
|
|
467
|
+
* @memberof TradingApiModifyCalculatedTradeById
|
|
468
|
+
*/
|
|
469
|
+
readonly requestBody?: Trade;
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* Request parameters for placeCalculatedTrades operation in TradingApi.
|
|
473
|
+
* @export
|
|
474
|
+
* @interface TradingApiPlaceCalculatedTradesRequest
|
|
475
|
+
*/
|
|
476
|
+
export interface TradingApiPlaceCalculatedTradesRequest {
|
|
477
|
+
/**
|
|
478
|
+
* The ID of the PortfolioGroup to perform rebalancing calculations
|
|
479
|
+
* @type {string}
|
|
480
|
+
* @memberof TradingApiPlaceCalculatedTrades
|
|
481
|
+
*/
|
|
482
|
+
readonly portfolioGroupId: string;
|
|
483
|
+
/**
|
|
484
|
+
* The ID of calculated trade to get account impact
|
|
485
|
+
* @type {string}
|
|
486
|
+
* @memberof TradingApiPlaceCalculatedTrades
|
|
487
|
+
*/
|
|
488
|
+
readonly calculatedTradeId: string;
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* Request parameters for placeForceOrder operation in TradingApi.
|
|
492
|
+
* @export
|
|
493
|
+
* @interface TradingApiPlaceForceOrderRequest
|
|
494
|
+
*/
|
|
495
|
+
export interface TradingApiPlaceForceOrderRequest {
|
|
496
|
+
/**
|
|
497
|
+
*
|
|
498
|
+
* @type {string}
|
|
499
|
+
* @memberof TradingApiPlaceForceOrder
|
|
500
|
+
*/
|
|
501
|
+
readonly userId: string;
|
|
502
|
+
/**
|
|
503
|
+
*
|
|
504
|
+
* @type {string}
|
|
505
|
+
* @memberof TradingApiPlaceForceOrder
|
|
506
|
+
*/
|
|
507
|
+
readonly userSecret: string;
|
|
508
|
+
/**
|
|
509
|
+
*
|
|
510
|
+
* @type {ManualTradeForm}
|
|
511
|
+
* @memberof TradingApiPlaceForceOrder
|
|
512
|
+
*/
|
|
513
|
+
readonly requestBody: ManualTradeForm;
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* Request parameters for placeOCOOrder operation in TradingApi.
|
|
517
|
+
* @export
|
|
518
|
+
* @interface TradingApiPlaceOCOOrderRequest
|
|
519
|
+
*/
|
|
520
|
+
export interface TradingApiPlaceOCOOrderRequest {
|
|
521
|
+
/**
|
|
522
|
+
*
|
|
523
|
+
* @type {string}
|
|
524
|
+
* @memberof TradingApiPlaceOCOOrder
|
|
525
|
+
*/
|
|
526
|
+
readonly userId: string;
|
|
527
|
+
/**
|
|
528
|
+
*
|
|
529
|
+
* @type {string}
|
|
530
|
+
* @memberof TradingApiPlaceOCOOrder
|
|
531
|
+
*/
|
|
532
|
+
readonly userSecret: string;
|
|
533
|
+
/**
|
|
534
|
+
*
|
|
535
|
+
* @type {TradingPlaceOCOOrderRequest}
|
|
536
|
+
* @memberof TradingApiPlaceOCOOrder
|
|
537
|
+
*/
|
|
538
|
+
readonly requestBody: TradingPlaceOCOOrderRequest;
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
* Request parameters for placeOrder operation in TradingApi.
|
|
542
|
+
* @export
|
|
543
|
+
* @interface TradingApiPlaceOrderRequest
|
|
544
|
+
*/
|
|
545
|
+
export interface TradingApiPlaceOrderRequest {
|
|
546
|
+
/**
|
|
547
|
+
* The ID of trade object obtained from trade/impact endpoint
|
|
548
|
+
* @type {string}
|
|
549
|
+
* @memberof TradingApiPlaceOrder
|
|
550
|
+
*/
|
|
551
|
+
readonly tradeId: string;
|
|
552
|
+
/**
|
|
553
|
+
*
|
|
554
|
+
* @type {string}
|
|
555
|
+
* @memberof TradingApiPlaceOrder
|
|
556
|
+
*/
|
|
557
|
+
readonly userId: string;
|
|
558
|
+
/**
|
|
559
|
+
*
|
|
560
|
+
* @type {string}
|
|
561
|
+
* @memberof TradingApiPlaceOrder
|
|
562
|
+
*/
|
|
563
|
+
readonly userSecret: string;
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* TradingApi - object-oriented interface
|
|
567
|
+
* @export
|
|
568
|
+
* @class TradingApi
|
|
569
|
+
* @extends {BaseAPI}
|
|
570
|
+
*/
|
|
571
|
+
export declare class TradingApi extends BaseAPI {
|
|
572
|
+
/**
|
|
573
|
+
*
|
|
574
|
+
* @summary Cancel open order in account
|
|
575
|
+
* @param {TradingApiCancelUserAccountOrderRequest} requestParameters Request parameters.
|
|
576
|
+
* @param {*} [options] Override http request option.
|
|
577
|
+
* @throws {RequiredError}
|
|
578
|
+
* @memberof TradingApi
|
|
579
|
+
*/
|
|
580
|
+
cancelUserAccountOrder(requestParameters: TradingApiCancelUserAccountOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountOrderRecord, any>>;
|
|
581
|
+
/**
|
|
582
|
+
*
|
|
583
|
+
* @summary Return details of a specific trade before it\'s placed
|
|
584
|
+
* @param {TradingApiGetCalculatedTradeImpactByIdRequest} requestParameters Request parameters.
|
|
585
|
+
* @param {*} [options] Override http request option.
|
|
586
|
+
* @throws {RequiredError}
|
|
587
|
+
* @memberof TradingApi
|
|
588
|
+
*/
|
|
589
|
+
getCalculatedTradeImpactById(requestParameters: TradingApiGetCalculatedTradeImpactByIdRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Trade, any>>;
|
|
590
|
+
/**
|
|
591
|
+
*
|
|
592
|
+
* @summary Return the impact of placing a series of trades on the portfolio
|
|
593
|
+
* @param {TradingApiGetCalculatedTradesImpactRequest} requestParameters Request parameters.
|
|
594
|
+
* @param {*} [options] Override http request option.
|
|
595
|
+
* @throws {RequiredError}
|
|
596
|
+
* @memberof TradingApi
|
|
597
|
+
*/
|
|
598
|
+
getCalculatedTradesImpact(requestParameters: TradingApiGetCalculatedTradesImpactRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TradeImpact[], any>>;
|
|
599
|
+
/**
|
|
600
|
+
*
|
|
601
|
+
* @summary Check impact of trades on account.
|
|
602
|
+
* @param {TradingApiGetOrderImpactRequest} requestParameters Request parameters.
|
|
603
|
+
* @param {*} [options] Override http request option.
|
|
604
|
+
* @throws {RequiredError}
|
|
605
|
+
* @memberof TradingApi
|
|
606
|
+
*/
|
|
607
|
+
getOrderImpact(requestParameters: TradingApiGetOrderImpactRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ManualTradeAndImpact, any>>;
|
|
608
|
+
/**
|
|
609
|
+
*
|
|
610
|
+
* @summary Get symbol quotes
|
|
611
|
+
* @param {TradingApiGetUserAccountQuotesRequest} requestParameters Request parameters.
|
|
612
|
+
* @param {*} [options] Override http request option.
|
|
613
|
+
* @throws {RequiredError}
|
|
614
|
+
* @memberof TradingApi
|
|
615
|
+
*/
|
|
616
|
+
getUserAccountQuotes(requestParameters: TradingApiGetUserAccountQuotesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SymbolsQuotes, any>>;
|
|
617
|
+
/**
|
|
618
|
+
*
|
|
619
|
+
* @summary Modify units of a trade before it is placed
|
|
620
|
+
* @param {TradingApiModifyCalculatedTradeByIdRequest} requestParameters Request parameters.
|
|
621
|
+
* @param {*} [options] Override http request option.
|
|
622
|
+
* @throws {RequiredError}
|
|
623
|
+
* @memberof TradingApi
|
|
624
|
+
*/
|
|
625
|
+
modifyCalculatedTradeById(requestParameters: TradingApiModifyCalculatedTradeByIdRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Trade, any>>;
|
|
626
|
+
/**
|
|
627
|
+
*
|
|
628
|
+
* @summary Place orders for the CalculatedTrades in series
|
|
629
|
+
* @param {TradingApiPlaceCalculatedTradesRequest} requestParameters Request parameters.
|
|
630
|
+
* @param {*} [options] Override http request option.
|
|
631
|
+
* @throws {RequiredError}
|
|
632
|
+
* @memberof TradingApi
|
|
633
|
+
*/
|
|
634
|
+
placeCalculatedTrades(requestParameters: TradingApiPlaceCalculatedTradesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TradeExecutionStatus[], any>>;
|
|
635
|
+
/**
|
|
636
|
+
*
|
|
637
|
+
* @summary Place a trade with NO validation.
|
|
638
|
+
* @param {TradingApiPlaceForceOrderRequest} requestParameters Request parameters.
|
|
639
|
+
* @param {*} [options] Override http request option.
|
|
640
|
+
* @throws {RequiredError}
|
|
641
|
+
* @memberof TradingApi
|
|
642
|
+
*/
|
|
643
|
+
placeForceOrder(requestParameters: TradingApiPlaceForceOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountOrderRecord, any>>;
|
|
644
|
+
/**
|
|
645
|
+
*
|
|
646
|
+
* @summary Place a OCO (One Cancels Other) order
|
|
647
|
+
* @param {TradingApiPlaceOCOOrderRequest} requestParameters Request parameters.
|
|
648
|
+
* @param {*} [options] Override http request option.
|
|
649
|
+
* @throws {RequiredError}
|
|
650
|
+
* @memberof TradingApi
|
|
651
|
+
*/
|
|
652
|
+
placeOCOOrder(requestParameters: TradingApiPlaceOCOOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountOrderRecord, any>>;
|
|
653
|
+
/**
|
|
654
|
+
*
|
|
655
|
+
* @summary Place order
|
|
656
|
+
* @param {TradingApiPlaceOrderRequest} requestParameters Request parameters.
|
|
657
|
+
* @param {*} [options] Override http request option.
|
|
658
|
+
* @throws {RequiredError}
|
|
659
|
+
* @memberof TradingApi
|
|
660
|
+
*/
|
|
661
|
+
placeOrder(requestParameters: TradingApiPlaceOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountOrderRecord, any>>;
|
|
662
|
+
}
|