snaptrade-typescript-sdk 8.17.0 → 8.19.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/README.md +1 -37
- package/dist/api/account-information-api.d.ts +3 -4
- package/dist/api/account-information-api.js +8 -9
- package/dist/api/api-status-api.d.ts +0 -1
- package/dist/api/api-status-api.js +1 -2
- package/dist/api/authentication-api.d.ts +0 -1
- package/dist/api/authentication-api.js +5 -6
- package/dist/api/connections-api.d.ts +0 -1
- package/dist/api/connections-api.js +4 -5
- package/dist/api/error-logs-api.d.ts +0 -1
- package/dist/api/error-logs-api.js +1 -2
- package/dist/api/options-api.d.ts +3 -4
- package/dist/api/options-api.js +5 -6
- package/dist/api/reference-data-api.d.ts +0 -1
- package/dist/api/reference-data-api.js +11 -12
- package/dist/api/trading-api.d.ts +0 -231
- package/dist/api/trading-api.js +6 -447
- package/dist/api/transactions-and-reporting-api.d.ts +0 -1
- package/dist/api/transactions-and-reporting-api.js +2 -3
- package/dist/api.d.ts +0 -2
- package/dist/api.js +0 -2
- package/dist/base.d.ts +0 -1
- package/dist/base.js +0 -1
- package/dist/client.d.ts +1 -3
- package/dist/client.js +0 -2
- package/dist/common.d.ts +1 -1
- package/dist/common.js +5 -2
- package/dist/configuration.d.ts +0 -1
- package/dist/configuration.js +1 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/models/account-holdings-account.d.ts +3 -4
- package/dist/models/account-holdings-account.js +0 -1
- package/dist/models/account-holdings.d.ts +2 -3
- package/dist/models/account-holdings.js +0 -1
- package/dist/models/account-order-record-status.d.ts +0 -1
- package/dist/models/account-order-record-status.js +0 -1
- package/dist/models/account-order-record.d.ts +0 -1
- package/dist/models/account-order-record.js +0 -1
- package/dist/models/account-simple.d.ts +0 -1
- package/dist/models/account-simple.js +0 -1
- package/dist/models/account-sync-status.d.ts +0 -1
- package/dist/models/account-sync-status.js +0 -1
- package/dist/models/account.d.ts +0 -1
- package/dist/models/account.js +0 -1
- package/dist/models/action.d.ts +0 -1
- package/dist/models/action.js +0 -1
- package/dist/models/authentication-login-snap-trade-user200-response.d.ts +0 -1
- package/dist/models/authentication-login-snap-trade-user200-response.js +0 -1
- package/dist/models/balance.d.ts +0 -1
- package/dist/models/balance.js +0 -1
- package/dist/models/brokerage-authorization-type-read-only-brokerage.d.ts +0 -1
- package/dist/models/brokerage-authorization-type-read-only-brokerage.js +0 -1
- package/dist/models/brokerage-authorization-type-read-only.d.ts +0 -1
- package/dist/models/brokerage-authorization-type-read-only.js +0 -1
- package/dist/models/brokerage-authorization-type.d.ts +0 -1
- package/dist/models/brokerage-authorization-type.js +0 -1
- package/dist/models/brokerage-authorization.d.ts +0 -1
- package/dist/models/brokerage-authorization.js +0 -1
- package/dist/models/brokerage-symbol.d.ts +0 -1
- package/dist/models/brokerage-symbol.js +0 -1
- package/dist/models/brokerage-type.d.ts +0 -1
- package/dist/models/brokerage-type.js +0 -1
- package/dist/models/brokerage.d.ts +0 -1
- package/dist/models/brokerage.js +0 -1
- package/dist/models/calculated-trade.d.ts +0 -1
- package/dist/models/calculated-trade.js +0 -1
- package/dist/models/cash-restriction.d.ts +0 -1
- package/dist/models/cash-restriction.js +0 -1
- package/dist/models/connections-session-events200-response-inner.d.ts +0 -1
- package/dist/models/connections-session-events200-response-inner.js +0 -1
- package/dist/models/currency.d.ts +0 -1
- package/dist/models/currency.js +0 -1
- package/dist/models/delete-user-response.d.ts +0 -1
- package/dist/models/delete-user-response.js +0 -1
- package/dist/models/dividend-at-date.d.ts +0 -1
- package/dist/models/dividend-at-date.js +0 -1
- package/dist/models/encrypted-response-encrypted-message-data.d.ts +0 -1
- package/dist/models/encrypted-response-encrypted-message-data.js +0 -1
- package/dist/models/encrypted-response.d.ts +0 -1
- package/dist/models/encrypted-response.js +0 -1
- package/dist/models/exchange-rate-pairs.d.ts +0 -1
- package/dist/models/exchange-rate-pairs.js +0 -1
- package/dist/models/exchange.d.ts +0 -1
- package/dist/models/exchange.js +0 -1
- package/dist/models/excluded-asset.d.ts +0 -1
- package/dist/models/excluded-asset.js +0 -1
- package/dist/models/jwt.d.ts +0 -1
- package/dist/models/jwt.js +0 -1
- package/dist/models/login-redirect-uri.d.ts +0 -1
- package/dist/models/login-redirect-uri.js +0 -1
- package/dist/models/manual-trade-and-impact.d.ts +0 -1
- package/dist/models/manual-trade-and-impact.js +0 -1
- package/dist/models/manual-trade-balance.d.ts +0 -1
- package/dist/models/manual-trade-balance.js +0 -1
- package/dist/models/manual-trade-form.d.ts +0 -1
- package/dist/models/manual-trade-form.js +0 -1
- package/dist/models/manual-trade-symbol.d.ts +0 -1
- package/dist/models/manual-trade-symbol.js +0 -1
- package/dist/models/manual-trade.d.ts +0 -1
- package/dist/models/manual-trade.js +0 -1
- package/dist/models/model-asset-class-details.d.ts +1 -1
- package/dist/models/model-asset-class-details.js +0 -1
- package/dist/models/model-asset-class-target.d.ts +0 -1
- package/dist/models/model-asset-class-target.js +0 -1
- package/dist/models/model-asset-class.d.ts +0 -1
- package/dist/models/model-asset-class.js +0 -1
- package/dist/models/model-portfolio-asset-class.d.ts +0 -1
- package/dist/models/model-portfolio-asset-class.js +0 -1
- package/dist/models/model-portfolio-details.d.ts +1 -1
- package/dist/models/model-portfolio-details.js +0 -1
- package/dist/models/model-portfolio-security.d.ts +0 -1
- package/dist/models/model-portfolio-security.js +0 -1
- package/dist/models/model-portfolio.d.ts +0 -1
- package/dist/models/model-portfolio.js +0 -1
- package/dist/models/model400-failed-request-response.d.ts +0 -1
- package/dist/models/model400-failed-request-response.js +0 -1
- package/dist/models/model401-failed-request-response.d.ts +0 -1
- package/dist/models/model401-failed-request-response.js +0 -1
- package/dist/models/model403-failed-request-response.d.ts +0 -1
- package/dist/models/model403-failed-request-response.js +0 -1
- package/dist/models/model404-failed-request-response.d.ts +0 -1
- package/dist/models/model404-failed-request-response.js +0 -1
- package/dist/models/monthly-dividends.d.ts +0 -1
- package/dist/models/monthly-dividends.js +0 -1
- package/dist/models/net-contributions.d.ts +0 -1
- package/dist/models/net-contributions.js +0 -1
- package/dist/models/net-dividend.d.ts +0 -1
- package/dist/models/net-dividend.js +0 -1
- package/dist/models/option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner.d.ts +0 -1
- package/dist/models/option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner.js +0 -1
- package/dist/models/option-chain-inner-chain-per-root-inner.d.ts +0 -1
- package/dist/models/option-chain-inner-chain-per-root-inner.js +0 -1
- package/dist/models/option-chain-inner.d.ts +0 -1
- package/dist/models/option-chain-inner.js +0 -1
- package/dist/models/option-leg.d.ts +0 -1
- package/dist/models/option-leg.js +0 -1
- package/dist/models/option-strategy-legs-inner.d.ts +0 -1
- package/dist/models/option-strategy-legs-inner.js +0 -1
- package/dist/models/option-strategy.d.ts +0 -1
- package/dist/models/option-strategy.js +0 -1
- package/dist/models/options-get-option-strategy-request.d.ts +0 -1
- package/dist/models/options-get-option-strategy-request.js +0 -1
- package/dist/models/options-holdings.d.ts +0 -1
- package/dist/models/options-holdings.js +0 -1
- package/dist/models/options-place-option-strategy-request.d.ts +0 -1
- package/dist/models/options-place-option-strategy-request.js +0 -1
- package/dist/models/options-position.d.ts +0 -1
- package/dist/models/options-position.js +0 -1
- package/dist/models/options-symbol.d.ts +0 -1
- package/dist/models/options-symbol.js +0 -1
- package/dist/models/order-type.d.ts +0 -1
- package/dist/models/order-type.js +0 -1
- package/dist/models/partner-data.d.ts +0 -1
- package/dist/models/partner-data.js +0 -1
- package/dist/models/past-value.d.ts +0 -1
- package/dist/models/past-value.js +0 -1
- package/dist/models/performance-custom.d.ts +0 -1
- package/dist/models/performance-custom.js +0 -1
- package/dist/models/portfolio-group-info.d.ts +0 -1
- package/dist/models/portfolio-group-info.js +0 -1
- package/dist/models/portfolio-group-position.d.ts +0 -1
- package/dist/models/portfolio-group-position.js +0 -1
- package/dist/models/portfolio-group-settings.d.ts +0 -1
- package/dist/models/portfolio-group-settings.js +0 -1
- package/dist/models/portfolio-group.d.ts +0 -1
- package/dist/models/portfolio-group.js +0 -1
- package/dist/models/position-symbol.d.ts +0 -1
- package/dist/models/position-symbol.js +0 -1
- package/dist/models/position.d.ts +0 -1
- package/dist/models/position.js +0 -1
- package/dist/models/redirect-tokenand-pin.d.ts +0 -1
- package/dist/models/redirect-tokenand-pin.js +0 -1
- package/dist/models/security-type.d.ts +0 -1
- package/dist/models/security-type.js +0 -1
- package/dist/models/session-event.d.ts +0 -1
- package/dist/models/session-event.js +0 -1
- package/dist/models/snap-trade-apidisclaimer-accept-status.d.ts +0 -1
- package/dist/models/snap-trade-apidisclaimer-accept-status.js +0 -1
- package/dist/models/snap-trade-holdings-account-account-id.d.ts +0 -1
- package/dist/models/snap-trade-holdings-account-account-id.js +0 -1
- package/dist/models/snap-trade-holdings-account.d.ts +0 -1
- package/dist/models/snap-trade-holdings-account.js +0 -1
- package/dist/models/snap-trade-holdings-total-value.d.ts +0 -1
- package/dist/models/snap-trade-holdings-total-value.js +0 -1
- package/dist/models/snap-trade-login-user-request-body.d.ts +0 -1
- package/dist/models/snap-trade-login-user-request-body.js +0 -1
- package/dist/models/snap-trade-register-user-request-body.d.ts +0 -1
- package/dist/models/snap-trade-register-user-request-body.js +0 -1
- package/dist/models/status.d.ts +0 -1
- package/dist/models/status.js +0 -1
- package/dist/models/strategy-impact-legs-inner.d.ts +0 -1
- package/dist/models/strategy-impact-legs-inner.js +0 -1
- package/dist/models/strategy-impact.d.ts +0 -1
- package/dist/models/strategy-impact.js +0 -1
- package/dist/models/strategy-order-place-orders-inner-legs-inner.d.ts +0 -1
- package/dist/models/strategy-order-place-orders-inner-legs-inner.js +0 -1
- package/dist/models/strategy-order-place-orders-inner.d.ts +0 -1
- package/dist/models/strategy-order-place-orders-inner.js +0 -1
- package/dist/models/strategy-order-place.d.ts +0 -1
- package/dist/models/strategy-order-place.js +0 -1
- package/dist/models/strategy-order-record.d.ts +0 -1
- package/dist/models/strategy-order-record.js +0 -1
- package/dist/models/strategy-quotes-greek.d.ts +0 -1
- package/dist/models/strategy-quotes-greek.js +0 -1
- package/dist/models/strategy-quotes.d.ts +0 -1
- package/dist/models/strategy-quotes.js +0 -1
- package/dist/models/sub-period-return-rate.d.ts +0 -1
- package/dist/models/sub-period-return-rate.js +0 -1
- package/dist/models/symbol-query.d.ts +0 -1
- package/dist/models/symbol-query.js +0 -1
- package/dist/models/symbol.d.ts +0 -1
- package/dist/models/symbol.js +0 -1
- package/dist/models/symbols-quotes-inner.d.ts +0 -1
- package/dist/models/symbols-quotes-inner.js +0 -1
- package/dist/models/target-asset.d.ts +1 -1
- package/dist/models/target-asset.js +0 -1
- package/dist/models/time-in-force.d.ts +0 -1
- package/dist/models/time-in-force.js +0 -1
- package/dist/models/trade-execution-status.d.ts +0 -1
- package/dist/models/trade-execution-status.js +0 -1
- package/dist/models/trade-impact.d.ts +0 -1
- package/dist/models/trade-impact.js +0 -1
- package/dist/models/trade.d.ts +1 -1
- package/dist/models/trade.js +0 -1
- package/dist/models/trading-cancel-user-account-order-request.d.ts +0 -1
- package/dist/models/trading-cancel-user-account-order-request.js +0 -1
- package/dist/models/trading-place-ocoorder-request.d.ts +0 -1
- package/dist/models/trading-place-ocoorder-request.js +0 -1
- package/dist/models/transactions-status.d.ts +0 -1
- package/dist/models/transactions-status.js +0 -1
- package/dist/models/underlying-symbol.d.ts +0 -1
- package/dist/models/underlying-symbol.js +0 -1
- package/dist/models/universal-activity.d.ts +0 -1
- package/dist/models/universal-activity.js +0 -1
- package/dist/models/universal-symbol-ticker.d.ts +0 -1
- package/dist/models/universal-symbol-ticker.js +0 -1
- package/dist/models/universal-symbol.d.ts +1 -1
- package/dist/models/universal-symbol.js +0 -1
- package/dist/models/user-error-log.d.ts +0 -1
- package/dist/models/user-error-log.js +0 -1
- package/dist/models/user-idand-secret.d.ts +0 -1
- package/dist/models/user-idand-secret.js +0 -1
- package/dist/models/user-settings.d.ts +0 -1
- package/dist/models/user-settings.js +0 -1
- package/dist/models/usexchange.d.ts +0 -1
- package/dist/models/usexchange.js +0 -1
- package/dist/pagination/page-types.d.ts +0 -1
- package/dist/pagination/page-types.js +0 -1
- package/dist/pagination/page.d.ts +0 -1
- package/dist/pagination/page.js +0 -1
- package/dist/pagination/pageable.d.ts +0 -1
- package/dist/pagination/pageable.js +0 -1
- package/dist/pagination/paginate.d.ts +0 -1
- package/dist/pagination/paginate.js +0 -1
- package/package.json +1 -1
- package/dist/api/portfolio-management-api-custom.d.ts +0 -3
- package/dist/api/portfolio-management-api-custom.js +0 -27
- package/dist/api/portfolio-management-api.d.ts +0 -1612
- package/dist/api/portfolio-management-api.js +0 -3534
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# snaptrade-typescript-sdk@8.
|
|
1
|
+
# snaptrade-typescript-sdk@8.19.0
|
|
2
2
|
|
|
3
3
|
Connect brokerage accounts to your app for live positions and trading
|
|
4
4
|
## Installing
|
|
@@ -125,38 +125,6 @@ Class | Method | HTTP request | Description
|
|
|
125
125
|
*OptionsApi* | [**getOptionsStrategyQuote**](docs/OptionsApi.md#getOptionsStrategyQuote) | **GET** /accounts/{accountId}/optionStrategy/{optionStrategyId} | Get latest market data of option strategy
|
|
126
126
|
*OptionsApi* | [**listOptionHoldings**](docs/OptionsApi.md#listOptionHoldings) | **GET** /accounts/{accountId}/options | Get the options holdings in the account
|
|
127
127
|
*OptionsApi* | [**placeOptionStrategy**](docs/OptionsApi.md#placeOptionStrategy) | **POST** /accounts/{accountId}/optionStrategy/{optionStrategyId}/execute | Place an option strategy order on the brokerage
|
|
128
|
-
*PortfolioManagementApi* | [**addPortfolioExcludedAsset**](docs/PortfolioManagementApi.md#addPortfolioExcludedAsset) | **POST** /portfolioGroups/{portfolioGroupId}/excludedassets | Adds an asset to exclude to a portfolio group
|
|
129
|
-
*PortfolioManagementApi* | [**create**](docs/PortfolioManagementApi.md#create) | **POST** /portfolioGroups | Create new portfolio group
|
|
130
|
-
*PortfolioManagementApi* | [**createAssetClass**](docs/PortfolioManagementApi.md#createAssetClass) | **POST** /modelAssetClass | Create a new model asset class
|
|
131
|
-
*PortfolioManagementApi* | [**createModelPortfolio**](docs/PortfolioManagementApi.md#createModelPortfolio) | **POST** /modelPortfolio | Creates a new model portfolio
|
|
132
|
-
*PortfolioManagementApi* | [**deleteAssetClass**](docs/PortfolioManagementApi.md#deleteAssetClass) | **DELETE** /modelAssetClass/{modelAssetClassId} | Deletes a model asset class
|
|
133
|
-
*PortfolioManagementApi* | [**deleteExcludedAsset**](docs/PortfolioManagementApi.md#deleteExcludedAsset) | **DELETE** /portfolioGroups/{portfolioGroupId}/excludedassets/{symbolId} | Unexclude an asset from a portfolio group
|
|
134
|
-
*PortfolioManagementApi* | [**deleteModelPortfolioById**](docs/PortfolioManagementApi.md#deleteModelPortfolioById) | **DELETE** /modelPortfolio/{modelPortfolioId} | Deletes a model portfolio
|
|
135
|
-
*PortfolioManagementApi* | [**deletePortfoli**](docs/PortfolioManagementApi.md#deletePortfoli) | **DELETE** /portfolioGroups/{portfolioGroupId} | Remove a target portfolio.
|
|
136
|
-
*PortfolioManagementApi* | [**deletePortfolioTargetById**](docs/PortfolioManagementApi.md#deletePortfolioTargetById) | **DELETE** /portfolioGroups/{portfolioGroupId}/targets/{targetAssetId} | Remove a TargetAsset.
|
|
137
|
-
*PortfolioManagementApi* | [**detailAssetClass**](docs/PortfolioManagementApi.md#detailAssetClass) | **GET** /modelAssetClass/{modelAssetClassId} | Get details of a model asset class
|
|
138
|
-
*PortfolioManagementApi* | [**getCalculatedTradeById**](docs/PortfolioManagementApi.md#getCalculatedTradeById) | **GET** /portfolioGroups/{portfolioGroupId}/calculatedtrades/{calculatedTradeId}/{TradeId} | Return an individual trade
|
|
139
|
-
*PortfolioManagementApi* | [**getModelDetailsById**](docs/PortfolioManagementApi.md#getModelDetailsById) | **GET** /modelPortfolio/{modelPortfolioId} | Get details of a model portfolio
|
|
140
|
-
*PortfolioManagementApi* | [**getPortfolioBalances**](docs/PortfolioManagementApi.md#getPortfolioBalances) | **GET** /portfolioGroups/{portfolioGroupId}/balances | Get sum of cash balances in portfolio group
|
|
141
|
-
*PortfolioManagementApi* | [**getPortfolioDetailsById**](docs/PortfolioManagementApi.md#getPortfolioDetailsById) | **GET** /portfolioGroups/{portfolioGroupId} | Get details of a target portfolio
|
|
142
|
-
*PortfolioManagementApi* | [**getPortfolioInfo**](docs/PortfolioManagementApi.md#getPortfolioInfo) | **GET** /portfolioGroups/{portfolioGroupId}/info | Return a whole bunch of relevant information relating to a portfolio group.
|
|
143
|
-
*PortfolioManagementApi* | [**getPortfolioSettings**](docs/PortfolioManagementApi.md#getPortfolioSettings) | **GET** /portfolioGroups/{portfolioGroupId}/settings | Get portfolio group settings
|
|
144
|
-
*PortfolioManagementApi* | [**getPortfolioTargetById**](docs/PortfolioManagementApi.md#getPortfolioTargetById) | **GET** /portfolioGroups/{portfolioGroupId}/targets/{targetAssetId} | Get a specific target from a portfolio group
|
|
145
|
-
*PortfolioManagementApi* | [**getPortfolioTargets**](docs/PortfolioManagementApi.md#getPortfolioTargets) | **GET** /portfolioGroups/{portfolioGroupId}/targets | Get all target assets under the specified PortfolioGroup.
|
|
146
|
-
*PortfolioManagementApi* | [**getPortoflioExcludedAssets**](docs/PortfolioManagementApi.md#getPortoflioExcludedAssets) | **GET** /portfolioGroups/{portfolioGroupId}/excludedassets | Get an array of excluded assets associated with a portfolio group\\
|
|
147
|
-
*PortfolioManagementApi* | [**importModelPortfolio**](docs/PortfolioManagementApi.md#importModelPortfolio) | **POST** /portfolioGroups/{portfolioGroupId}/import | Import target allocation based on portfolio group
|
|
148
|
-
*PortfolioManagementApi* | [**list**](docs/PortfolioManagementApi.md#list) | **GET** /portfolioGroups | List all portfolio groups
|
|
149
|
-
*PortfolioManagementApi* | [**listAssetClasses**](docs/PortfolioManagementApi.md#listAssetClasses) | **GET** /modelAssetClass | List of model asset class
|
|
150
|
-
*PortfolioManagementApi* | [**listCalculatedTrades**](docs/PortfolioManagementApi.md#listCalculatedTrades) | **GET** /portfolioGroups/{portfolioGroupId}/calculatedtrades | List of trades to make to rebalance portfolio group
|
|
151
|
-
*PortfolioManagementApi* | [**listModelPortfolio**](docs/PortfolioManagementApi.md#listModelPortfolio) | **GET** /modelPortfolio | List of model portfolio
|
|
152
|
-
*PortfolioManagementApi* | [**listPortfolioAccounts**](docs/PortfolioManagementApi.md#listPortfolioAccounts) | **GET** /portfolioGroups/{portfolioGroupId}/accounts | Get all accounts associated with a portfolio group
|
|
153
|
-
*PortfolioManagementApi* | [**modifyModelPortfolioById**](docs/PortfolioManagementApi.md#modifyModelPortfolioById) | **POST** /modelPortfolio/{modelPortfolioId} | Updates model portfolio object
|
|
154
|
-
*PortfolioManagementApi* | [**savePortfolio**](docs/PortfolioManagementApi.md#savePortfolio) | **PATCH** /portfolioGroups/{portfolioGroupId} | Update an existing target portfolio.
|
|
155
|
-
*PortfolioManagementApi* | [**searchPortfolioSymbols**](docs/PortfolioManagementApi.md#searchPortfolioSymbols) | **POST** /portfolioGroups/{portfolioGroupId}/symbols | Search for symbols limited to brokerages under the specified portfolio group
|
|
156
|
-
*PortfolioManagementApi* | [**setPortfolioTargets**](docs/PortfolioManagementApi.md#setPortfolioTargets) | **POST** /portfolioGroups/{portfolioGroupId}/targets | Set a new list of target assets under the specified PortfolioGroup. All existing target assets under this portfolio group will be replaced with the new list.
|
|
157
|
-
*PortfolioManagementApi* | [**updateAssetClass**](docs/PortfolioManagementApi.md#updateAssetClass) | **POST** /modelAssetClass/{modelAssetClassId} | Updates model asset class objects
|
|
158
|
-
*PortfolioManagementApi* | [**updatePortfolioSettings**](docs/PortfolioManagementApi.md#updatePortfolioSettings) | **PATCH** /portfolioGroups/{portfolioGroupId}/settings | Updates portfolio group settings
|
|
159
|
-
*PortfolioManagementApi* | [**updatePortfolioTargetById**](docs/PortfolioManagementApi.md#updatePortfolioTargetById) | **PATCH** /portfolioGroups/{portfolioGroupId}/targets/{targetAssetId} | Update a TargetAsset under the specified PortfolioGroup.
|
|
160
128
|
*ReferenceDataApi* | [**getCurrencyExchangeRatePair**](docs/ReferenceDataApi.md#getCurrencyExchangeRatePair) | **GET** /currencies/rates/{currencyPair} | Return the exchange rate of a currency pair
|
|
161
129
|
*ReferenceDataApi* | [**getPartnerInfo**](docs/ReferenceDataApi.md#getPartnerInfo) | **GET** /snapTrade/partners | Get metadata related to Snaptrade partner
|
|
162
130
|
*ReferenceDataApi* | [**getSecurityTypes**](docs/ReferenceDataApi.md#getSecurityTypes) | **GET** /securityTypes | List of all security types.
|
|
@@ -169,12 +137,8 @@ Class | Method | HTTP request | Description
|
|
|
169
137
|
*ReferenceDataApi* | [**listAllCurrenciesRates**](docs/ReferenceDataApi.md#listAllCurrenciesRates) | **GET** /currencies/rates | Return the exchange rates of all supported currencies
|
|
170
138
|
*ReferenceDataApi* | [**symbolSearchUserAccount**](docs/ReferenceDataApi.md#symbolSearchUserAccount) | **POST** /accounts/{accountId}/symbols | Search for symbols that are supported by a brokerage account using a substring
|
|
171
139
|
*TradingApi* | [**cancelUserAccountOrder**](docs/TradingApi.md#cancelUserAccountOrder) | **POST** /accounts/{accountId}/orders/cancel | Cancel open order in account
|
|
172
|
-
*TradingApi* | [**getCalculatedTradeImpactById**](docs/TradingApi.md#getCalculatedTradeImpactById) | **GET** /portfolioGroups/{portfolioGroupId}/calculatedtrades/{calculatedTradeId}/modify/{tradeId} | Return details of a specific trade before it\'s placed
|
|
173
|
-
*TradingApi* | [**getCalculatedTradesImpact**](docs/TradingApi.md#getCalculatedTradesImpact) | **GET** /portfolioGroups/{portfolioGroupId}/calculatedtrades/{calculatedTradeId}/impact | Return the impact of placing a series of trades on the portfolio
|
|
174
140
|
*TradingApi* | [**getOrderImpact**](docs/TradingApi.md#getOrderImpact) | **POST** /trade/impact | Check impact of trades on account.
|
|
175
141
|
*TradingApi* | [**getUserAccountQuotes**](docs/TradingApi.md#getUserAccountQuotes) | **GET** /accounts/{accountId}/quotes | Get symbol quotes
|
|
176
|
-
*TradingApi* | [**modifyCalculatedTradeById**](docs/TradingApi.md#modifyCalculatedTradeById) | **PATCH** /portfolioGroups/{portfolioGroupId}/calculatedtrades/{calculatedTradeId}/modify/{tradeId} | Modify units of a trade before it is placed
|
|
177
|
-
*TradingApi* | [**placeCalculatedTrades**](docs/TradingApi.md#placeCalculatedTrades) | **POST** /portfolioGroups/{portfolioGroupId}/calculatedtrades/{calculatedTradeId}/placeOrders | Place orders for the CalculatedTrades in series
|
|
178
142
|
*TradingApi* | [**placeForceOrder**](docs/TradingApi.md#placeForceOrder) | **POST** /trade/place | Place a trade with NO validation.
|
|
179
143
|
*TradingApi* | [**placeOCOOrder**](docs/TradingApi.md#placeOCOOrder) | **POST** /trade/oco | Place a OCO (One Cancels Other) order
|
|
180
144
|
*TradingApi* | [**placeOrder**](docs/TradingApi.md#placeOrder) | **POST** /trade/{tradeId} | Place order
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* Contact: api@snaptrade.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
9
|
-
* https://konfigthis.com
|
|
10
9
|
* Do not edit the class manually.
|
|
11
10
|
*/
|
|
12
11
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
@@ -133,7 +132,7 @@ export declare const AccountInformationApiFp: (configuration?: Configuration) =>
|
|
|
133
132
|
* @param {*} [options] Override http request option.
|
|
134
133
|
* @throws {RequiredError}
|
|
135
134
|
*/
|
|
136
|
-
getUserAccountDetails(requestParameters: AccountInformationApiGetUserAccountDetailsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
135
|
+
getUserAccountDetails(requestParameters: AccountInformationApiGetUserAccountDetailsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Account>>;
|
|
137
136
|
/**
|
|
138
137
|
*
|
|
139
138
|
* @summary Get all history of orders placed in account
|
|
@@ -203,7 +202,7 @@ export declare const AccountInformationApiFactory: (configuration?: Configuratio
|
|
|
203
202
|
* @param {*} [options] Override http request option.
|
|
204
203
|
* @throws {RequiredError}
|
|
205
204
|
*/
|
|
206
|
-
getUserAccountDetails(requestParameters: AccountInformationApiGetUserAccountDetailsRequest, options?: AxiosRequestConfig): AxiosPromise<
|
|
205
|
+
getUserAccountDetails(requestParameters: AccountInformationApiGetUserAccountDetailsRequest, options?: AxiosRequestConfig): AxiosPromise<Account>;
|
|
207
206
|
/**
|
|
208
207
|
*
|
|
209
208
|
* @summary Get all history of orders placed in account
|
|
@@ -478,7 +477,7 @@ export declare class AccountInformationApi extends AccountInformationApiCustom {
|
|
|
478
477
|
* @throws {RequiredError}
|
|
479
478
|
* @memberof AccountInformationApi
|
|
480
479
|
*/
|
|
481
|
-
getUserAccountDetails(requestParameters: AccountInformationApiGetUserAccountDetailsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Account
|
|
480
|
+
getUserAccountDetails(requestParameters: AccountInformationApiGetUserAccountDetailsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Account, any>>;
|
|
482
481
|
/**
|
|
483
482
|
*
|
|
484
483
|
* @summary Get all history of orders placed in account
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* Contact: api@snaptrade.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
12
|
-
* https://konfigthis.com
|
|
13
12
|
* Do not edit the class manually.
|
|
14
13
|
*/
|
|
15
14
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -117,7 +116,7 @@ var AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
117
116
|
baseOptions = configuration.baseOptions;
|
|
118
117
|
}
|
|
119
118
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
120
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
119
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
121
120
|
localVarQueryParameter = {};
|
|
122
121
|
// authentication PartnerClientId required
|
|
123
122
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -193,7 +192,7 @@ var AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
193
192
|
baseOptions = configuration.baseOptions;
|
|
194
193
|
}
|
|
195
194
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
196
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
195
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
197
196
|
localVarQueryParameter = {};
|
|
198
197
|
// authentication PartnerClientId required
|
|
199
198
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -266,7 +265,7 @@ var AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
266
265
|
baseOptions = configuration.baseOptions;
|
|
267
266
|
}
|
|
268
267
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
269
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
268
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
270
269
|
localVarQueryParameter = {};
|
|
271
270
|
// authentication PartnerClientId required
|
|
272
271
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -340,7 +339,7 @@ var AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
340
339
|
baseOptions = configuration.baseOptions;
|
|
341
340
|
}
|
|
342
341
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
343
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
342
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
344
343
|
localVarQueryParameter = {};
|
|
345
344
|
// authentication PartnerClientId required
|
|
346
345
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -416,7 +415,7 @@ var AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
416
415
|
baseOptions = configuration.baseOptions;
|
|
417
416
|
}
|
|
418
417
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
419
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
418
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
420
419
|
localVarQueryParameter = {};
|
|
421
420
|
// authentication PartnerClientId required
|
|
422
421
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -489,7 +488,7 @@ var AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
489
488
|
baseOptions = configuration.baseOptions;
|
|
490
489
|
}
|
|
491
490
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
492
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
491
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
493
492
|
localVarQueryParameter = {};
|
|
494
493
|
// authentication PartnerClientId required
|
|
495
494
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -558,7 +557,7 @@ var AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
558
557
|
baseOptions = configuration.baseOptions;
|
|
559
558
|
}
|
|
560
559
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
561
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
560
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
562
561
|
localVarQueryParameter = {};
|
|
563
562
|
// authentication PartnerClientId required
|
|
564
563
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -631,7 +630,7 @@ var AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
631
630
|
baseOptions = configuration.baseOptions;
|
|
632
631
|
}
|
|
633
632
|
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
634
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
633
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
635
634
|
localVarQueryParameter = {};
|
|
636
635
|
// authentication PartnerClientId required
|
|
637
636
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* Contact: api@snaptrade.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
12
|
-
* https://konfigthis.com
|
|
13
12
|
* Do not edit the class manually.
|
|
14
13
|
*/
|
|
15
14
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -108,7 +107,7 @@ var ApiStatusApiAxiosParamCreator = function (configuration) {
|
|
|
108
107
|
baseOptions = configuration.baseOptions;
|
|
109
108
|
}
|
|
110
109
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
111
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
110
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
112
111
|
localVarQueryParameter = {};
|
|
113
112
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
114
113
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* Contact: api@snaptrade.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
12
|
-
* https://konfigthis.com
|
|
13
12
|
* Do not edit the class manually.
|
|
14
13
|
*/
|
|
15
14
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -113,7 +112,7 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
113
112
|
baseOptions = configuration.baseOptions;
|
|
114
113
|
}
|
|
115
114
|
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
116
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
115
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
117
116
|
localVarQueryParameter = {};
|
|
118
117
|
// authentication PartnerClientId required
|
|
119
118
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -179,7 +178,7 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
179
178
|
baseOptions = configuration.baseOptions;
|
|
180
179
|
}
|
|
181
180
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
182
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
181
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
183
182
|
localVarQueryParameter = {};
|
|
184
183
|
// authentication PartnerClientId required
|
|
185
184
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -242,7 +241,7 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
242
241
|
baseOptions = configuration.baseOptions;
|
|
243
242
|
}
|
|
244
243
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
245
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
244
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
246
245
|
localVarQueryParameter = {};
|
|
247
246
|
// authentication PartnerClientId required
|
|
248
247
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -306,7 +305,7 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
306
305
|
baseOptions = configuration.baseOptions;
|
|
307
306
|
}
|
|
308
307
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
309
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
308
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
310
309
|
localVarQueryParameter = {};
|
|
311
310
|
// authentication PartnerClientId required
|
|
312
311
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -375,7 +374,7 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
375
374
|
baseOptions = configuration.baseOptions;
|
|
376
375
|
}
|
|
377
376
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
378
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
377
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
379
378
|
localVarQueryParameter = {};
|
|
380
379
|
// authentication PartnerClientId required
|
|
381
380
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* Contact: api@snaptrade.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
12
|
-
* https://konfigthis.com
|
|
13
12
|
* Do not edit the class manually.
|
|
14
13
|
*/
|
|
15
14
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -120,7 +119,7 @@ var ConnectionsApiAxiosParamCreator = function (configuration) {
|
|
|
120
119
|
baseOptions = configuration.baseOptions;
|
|
121
120
|
}
|
|
122
121
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
123
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
122
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
124
123
|
localVarQueryParameter = {};
|
|
125
124
|
// authentication PartnerClientId required
|
|
126
125
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -189,7 +188,7 @@ var ConnectionsApiAxiosParamCreator = function (configuration) {
|
|
|
189
188
|
baseOptions = configuration.baseOptions;
|
|
190
189
|
}
|
|
191
190
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
192
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
191
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
193
192
|
localVarQueryParameter = {};
|
|
194
193
|
// authentication PartnerClientId required
|
|
195
194
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -262,7 +261,7 @@ var ConnectionsApiAxiosParamCreator = function (configuration) {
|
|
|
262
261
|
baseOptions = configuration.baseOptions;
|
|
263
262
|
}
|
|
264
263
|
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
265
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
264
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
266
265
|
localVarQueryParameter = {};
|
|
267
266
|
// authentication PartnerClientId required
|
|
268
267
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -330,7 +329,7 @@ var ConnectionsApiAxiosParamCreator = function (configuration) {
|
|
|
330
329
|
baseOptions = configuration.baseOptions;
|
|
331
330
|
}
|
|
332
331
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
333
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
332
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
334
333
|
localVarQueryParameter = {};
|
|
335
334
|
// authentication PartnerClientId required
|
|
336
335
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* Contact: api@snaptrade.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
12
|
-
* https://konfigthis.com
|
|
13
12
|
* Do not edit the class manually.
|
|
14
13
|
*/
|
|
15
14
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -116,7 +115,7 @@ var ErrorLogsApiAxiosParamCreator = function (configuration) {
|
|
|
116
115
|
baseOptions = configuration.baseOptions;
|
|
117
116
|
}
|
|
118
117
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
119
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
118
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
120
119
|
localVarQueryParameter = {};
|
|
121
120
|
// authentication PartnerClientId required
|
|
122
121
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* Contact: api@snaptrade.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
9
|
-
* https://konfigthis.com
|
|
10
9
|
* Do not edit the class manually.
|
|
11
10
|
*/
|
|
12
11
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
@@ -116,7 +115,7 @@ export declare const OptionsApiFp: (configuration?: Configuration) => {
|
|
|
116
115
|
* @param {*} [options] Override http request option.
|
|
117
116
|
* @throws {RequiredError}
|
|
118
117
|
*/
|
|
119
|
-
listOptionHoldings(requestParameters: OptionsApiListOptionHoldingsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OptionsHoldings
|
|
118
|
+
listOptionHoldings(requestParameters: OptionsApiListOptionHoldingsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OptionsHoldings>>>;
|
|
120
119
|
/**
|
|
121
120
|
*
|
|
122
121
|
* @summary Place an option strategy order on the brokerage
|
|
@@ -162,7 +161,7 @@ export declare const OptionsApiFactory: (configuration?: Configuration, basePath
|
|
|
162
161
|
* @param {*} [options] Override http request option.
|
|
163
162
|
* @throws {RequiredError}
|
|
164
163
|
*/
|
|
165
|
-
listOptionHoldings(requestParameters: OptionsApiListOptionHoldingsRequest, options?: AxiosRequestConfig): AxiosPromise<OptionsHoldings
|
|
164
|
+
listOptionHoldings(requestParameters: OptionsApiListOptionHoldingsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<OptionsHoldings>>;
|
|
166
165
|
/**
|
|
167
166
|
*
|
|
168
167
|
* @summary Place an option strategy order on the brokerage
|
|
@@ -357,7 +356,7 @@ export declare class OptionsApi extends OptionsApiCustom {
|
|
|
357
356
|
* @throws {RequiredError}
|
|
358
357
|
* @memberof OptionsApi
|
|
359
358
|
*/
|
|
360
|
-
listOptionHoldings(requestParameters: OptionsApiListOptionHoldingsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OptionsHoldings, any>>;
|
|
359
|
+
listOptionHoldings(requestParameters: OptionsApiListOptionHoldingsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OptionsHoldings[], any>>;
|
|
361
360
|
/**
|
|
362
361
|
*
|
|
363
362
|
* @summary Place an option strategy order on the brokerage
|
package/dist/api/options-api.js
CHANGED
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* Contact: api@snaptrade.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
12
|
-
* https://konfigthis.com
|
|
13
12
|
* Do not edit the class manually.
|
|
14
13
|
*/
|
|
15
14
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -123,7 +122,7 @@ var OptionsApiAxiosParamCreator = function (configuration) {
|
|
|
123
122
|
baseOptions = configuration.baseOptions;
|
|
124
123
|
}
|
|
125
124
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
126
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
125
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
127
126
|
localVarQueryParameter = {};
|
|
128
127
|
// authentication PartnerClientId required
|
|
129
128
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -202,7 +201,7 @@ var OptionsApiAxiosParamCreator = function (configuration) {
|
|
|
202
201
|
baseOptions = configuration.baseOptions;
|
|
203
202
|
}
|
|
204
203
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
205
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
204
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
206
205
|
localVarQueryParameter = {};
|
|
207
206
|
// authentication PartnerClientId required
|
|
208
207
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -282,7 +281,7 @@ var OptionsApiAxiosParamCreator = function (configuration) {
|
|
|
282
281
|
baseOptions = configuration.baseOptions;
|
|
283
282
|
}
|
|
284
283
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
285
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
284
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
286
285
|
localVarQueryParameter = {};
|
|
287
286
|
// authentication PartnerClientId required
|
|
288
287
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -355,7 +354,7 @@ var OptionsApiAxiosParamCreator = function (configuration) {
|
|
|
355
354
|
baseOptions = configuration.baseOptions;
|
|
356
355
|
}
|
|
357
356
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
358
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
357
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
359
358
|
localVarQueryParameter = {};
|
|
360
359
|
// authentication PartnerClientId required
|
|
361
360
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -435,7 +434,7 @@ var OptionsApiAxiosParamCreator = function (configuration) {
|
|
|
435
434
|
baseOptions = configuration.baseOptions;
|
|
436
435
|
}
|
|
437
436
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
438
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
437
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
439
438
|
localVarQueryParameter = {};
|
|
440
439
|
// authentication PartnerClientId required
|
|
441
440
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* Contact: api@snaptrade.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
12
|
-
* https://konfigthis.com
|
|
13
12
|
* Do not edit the class manually.
|
|
14
13
|
*/
|
|
15
14
|
var __extends = (this && this.__extends) || (function () {
|
|
@@ -114,7 +113,7 @@ var ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
114
113
|
baseOptions = configuration.baseOptions;
|
|
115
114
|
}
|
|
116
115
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
117
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
116
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
118
117
|
localVarQueryParameter = {};
|
|
119
118
|
// authentication PartnerClientId required
|
|
120
119
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -171,7 +170,7 @@ var ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
171
170
|
baseOptions = configuration.baseOptions;
|
|
172
171
|
}
|
|
173
172
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
174
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
173
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
175
174
|
localVarQueryParameter = {};
|
|
176
175
|
// authentication PartnerClientId required
|
|
177
176
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -228,7 +227,7 @@ var ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
228
227
|
baseOptions = configuration.baseOptions;
|
|
229
228
|
}
|
|
230
229
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
231
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
230
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
232
231
|
localVarQueryParameter = {};
|
|
233
232
|
// authentication PartnerClientId required
|
|
234
233
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -285,7 +284,7 @@ var ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
285
284
|
baseOptions = configuration.baseOptions;
|
|
286
285
|
}
|
|
287
286
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
288
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
287
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
289
288
|
localVarQueryParameter = {};
|
|
290
289
|
// authentication PartnerClientId required
|
|
291
290
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -343,7 +342,7 @@ var ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
343
342
|
baseOptions = configuration.baseOptions;
|
|
344
343
|
}
|
|
345
344
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
346
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
345
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
347
346
|
localVarQueryParameter = {};
|
|
348
347
|
// authentication PartnerClientId required
|
|
349
348
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -408,7 +407,7 @@ var ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
408
407
|
baseOptions = configuration.baseOptions;
|
|
409
408
|
}
|
|
410
409
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
411
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
410
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
412
411
|
localVarQueryParameter = {};
|
|
413
412
|
// authentication PartnerClientId required
|
|
414
413
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -469,7 +468,7 @@ var ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
469
468
|
baseOptions = configuration.baseOptions;
|
|
470
469
|
}
|
|
471
470
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
472
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
471
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
473
472
|
localVarQueryParameter = {};
|
|
474
473
|
// authentication PartnerClientId required
|
|
475
474
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -529,7 +528,7 @@ var ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
529
528
|
baseOptions = configuration.baseOptions;
|
|
530
529
|
}
|
|
531
530
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
532
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
531
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
533
532
|
localVarQueryParameter = {};
|
|
534
533
|
// authentication PartnerClientId required
|
|
535
534
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -586,7 +585,7 @@ var ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
586
585
|
baseOptions = configuration.baseOptions;
|
|
587
586
|
}
|
|
588
587
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
589
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
588
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
590
589
|
localVarQueryParameter = {};
|
|
591
590
|
// authentication PartnerClientId required
|
|
592
591
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -643,7 +642,7 @@ var ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
643
642
|
baseOptions = configuration.baseOptions;
|
|
644
643
|
}
|
|
645
644
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
646
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
645
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
647
646
|
localVarQueryParameter = {};
|
|
648
647
|
// authentication PartnerClientId required
|
|
649
648
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
@@ -711,7 +710,7 @@ var ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
711
710
|
baseOptions = configuration.baseOptions;
|
|
712
711
|
}
|
|
713
712
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
714
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
713
|
+
localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
715
714
|
localVarQueryParameter = {};
|
|
716
715
|
// authentication PartnerClientId required
|
|
717
716
|
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|