snaptrade-typescript-sdk 8.23.0 → 8.25.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 +45 -45
- package/dist/common.js +20 -6
- package/dist/configuration.js +1 -1
- package/dist/models/brokerage-symbol-option-symbol.d.ts +84 -0
- package/dist/models/brokerage-symbol-option-symbol.js +14 -0
- package/dist/models/brokerage-symbol-symbol.d.ts +68 -0
- package/dist/models/brokerage-symbol-symbol.js +14 -0
- package/dist/models/brokerage-symbol.d.ts +10 -3
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/universal-activity.d.ts +1 -1
- package/dist/models/user-idand-secret.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# snaptrade-typescript-sdk@8.
|
|
1
|
+
# snaptrade-typescript-sdk@8.25.0
|
|
2
2
|
|
|
3
3
|
Connect brokerage accounts to your app for live positions and trading
|
|
4
4
|
## Installing
|
|
@@ -99,49 +99,49 @@ main();
|
|
|
99
99
|
|
|
100
100
|
All URIs are relative to *https://api.snaptrade.com/api/v1*
|
|
101
101
|
|
|
102
|
-
|
|
102
|
+
Tag | Method | HTTP request | Description
|
|
103
103
|
------------ | ------------- | ------------- | -------------
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
*
|
|
104
|
+
*Account Information* | [**getAllUserHoldings**](docs/AccountInformationApi.md#getAllUserHoldings) | **GET** /holdings | List all accounts for the user, plus balances, positions, and orders for each account.
|
|
105
|
+
*Account Information* | [**getUserAccountBalance**](docs/AccountInformationApi.md#getUserAccountBalance) | **GET** /accounts/{accountId}/balances | List account balances
|
|
106
|
+
*Account Information* | [**getUserAccountDetails**](docs/AccountInformationApi.md#getUserAccountDetails) | **GET** /accounts/{accountId} | Return details of a specific investment account
|
|
107
|
+
*Account Information* | [**getUserAccountOrders**](docs/AccountInformationApi.md#getUserAccountOrders) | **GET** /accounts/{accountId}/orders | Get all history of orders placed in account
|
|
108
|
+
*Account Information* | [**getUserAccountPositions**](docs/AccountInformationApi.md#getUserAccountPositions) | **GET** /accounts/{accountId}/positions | List account positions
|
|
109
|
+
*Account Information* | [**getUserHoldings**](docs/AccountInformationApi.md#getUserHoldings) | **GET** /accounts/{accountId}/holdings | List balances, positions and orders for the specified account.
|
|
110
|
+
*Account Information* | [**listUserAccounts**](docs/AccountInformationApi.md#listUserAccounts) | **GET** /accounts | List accounts
|
|
111
|
+
*Account Information* | [**updateUserAccount**](docs/AccountInformationApi.md#updateUserAccount) | **PUT** /accounts/{accountId} | Update details of an investment account
|
|
112
|
+
*API Status* | [**check**](docs/ApiStatusApi.md#check) | **GET** / | Get API Status
|
|
113
|
+
*Authentication* | [**deleteSnapTradeUser**](docs/AuthenticationApi.md#deleteSnapTradeUser) | **DELETE** /snapTrade/deleteUser | Delete SnapTrade user
|
|
114
|
+
*Authentication* | [**getUserJWT**](docs/AuthenticationApi.md#getUserJWT) | **GET** /snapTrade/encryptedJWT | Generate encrypted JWT token
|
|
115
|
+
*Authentication* | [**listSnapTradeUsers**](docs/AuthenticationApi.md#listSnapTradeUsers) | **GET** /snapTrade/listUsers | List SnapTrade users
|
|
116
|
+
*Authentication* | [**loginSnapTradeUser**](docs/AuthenticationApi.md#loginSnapTradeUser) | **POST** /snapTrade/login | Login user & generate connection link
|
|
117
|
+
*Authentication* | [**registerSnapTradeUser**](docs/AuthenticationApi.md#registerSnapTradeUser) | **POST** /snapTrade/registerUser | Create SnapTrade user
|
|
118
|
+
*Connections* | [**detailBrokerageAuthorization**](docs/ConnectionsApi.md#detailBrokerageAuthorization) | **GET** /authorizations/{authorizationId} | Get detail of a specific brokerage authorizations for the user
|
|
119
|
+
*Connections* | [**listBrokerageAuthorizations**](docs/ConnectionsApi.md#listBrokerageAuthorizations) | **GET** /authorizations | List all brokerage authorizations for the user
|
|
120
|
+
*Connections* | [**removeBrokerageAuthorization**](docs/ConnectionsApi.md#removeBrokerageAuthorization) | **DELETE** /authorizations/{authorizationId} | Remove a brokerage authorization.
|
|
121
|
+
*Connections* | [**sessionEvents**](docs/ConnectionsApi.md#sessionEvents) | **GET** /sessionEvents | List all session events for the partner
|
|
122
|
+
*Error Logs* | [**listUserErrors**](docs/ErrorLogsApi.md#listUserErrors) | **GET** /snapTrade/listUserErrors | Retrieve error logs on behalf of your SnapTrade users
|
|
123
|
+
*Options* | [**getOptionStrategy**](docs/OptionsApi.md#getOptionStrategy) | **POST** /accounts/{accountId}/optionStrategy | Creates an option strategy object that will be used to place an option strategy order
|
|
124
|
+
*Options* | [**getOptionsChain**](docs/OptionsApi.md#getOptionsChain) | **GET** /accounts/{accountId}/optionsChain | Get the options chain
|
|
125
|
+
*Options* | [**getOptionsStrategyQuote**](docs/OptionsApi.md#getOptionsStrategyQuote) | **GET** /accounts/{accountId}/optionStrategy/{optionStrategyId} | Get latest market data of option strategy
|
|
126
|
+
*Options* | [**listOptionHoldings**](docs/OptionsApi.md#listOptionHoldings) | **GET** /accounts/{accountId}/options | Get the options holdings in the account
|
|
127
|
+
*Options* | [**placeOptionStrategy**](docs/OptionsApi.md#placeOptionStrategy) | **POST** /accounts/{accountId}/optionStrategy/{optionStrategyId}/execute | Place an option strategy order on the brokerage
|
|
128
|
+
*Reference Data* | [**getCurrencyExchangeRatePair**](docs/ReferenceDataApi.md#getCurrencyExchangeRatePair) | **GET** /currencies/rates/{currencyPair} | Return the exchange rate of a currency pair
|
|
129
|
+
*Reference Data* | [**getPartnerInfo**](docs/ReferenceDataApi.md#getPartnerInfo) | **GET** /snapTrade/partners | Get metadata related to Snaptrade partner
|
|
130
|
+
*Reference Data* | [**getSecurityTypes**](docs/ReferenceDataApi.md#getSecurityTypes) | **GET** /securityTypes | List of all security types.
|
|
131
|
+
*Reference Data* | [**getStockExchanges**](docs/ReferenceDataApi.md#getStockExchanges) | **GET** /exchanges | List exchanges
|
|
132
|
+
*Reference Data* | [**getSymbols**](docs/ReferenceDataApi.md#getSymbols) | **POST** /symbols | Search for symbols
|
|
133
|
+
*Reference Data* | [**getSymbolsByTicker**](docs/ReferenceDataApi.md#getSymbolsByTicker) | **GET** /symbols/{ticker} | Get details of a symbol by the ticker
|
|
134
|
+
*Reference Data* | [**listAllBrokerageAuthorizationType**](docs/ReferenceDataApi.md#listAllBrokerageAuthorizationType) | **GET** /brokerageAuthorizationTypes | List of all brokerage authorization types
|
|
135
|
+
*Reference Data* | [**listAllBrokerages**](docs/ReferenceDataApi.md#listAllBrokerages) | **GET** /brokerages | List brokerages
|
|
136
|
+
*Reference Data* | [**listAllCurrencies**](docs/ReferenceDataApi.md#listAllCurrencies) | **GET** /currencies | List currencies
|
|
137
|
+
*Reference Data* | [**listAllCurrenciesRates**](docs/ReferenceDataApi.md#listAllCurrenciesRates) | **GET** /currencies/rates | List currency exchange rates
|
|
138
|
+
*Reference Data* | [**symbolSearchUserAccount**](docs/ReferenceDataApi.md#symbolSearchUserAccount) | **POST** /accounts/{accountId}/symbols | Search for symbols available in an account
|
|
139
|
+
*Trading* | [**cancelUserAccountOrder**](docs/TradingApi.md#cancelUserAccountOrder) | **POST** /accounts/{accountId}/orders/cancel | Cancel open order in account
|
|
140
|
+
*Trading* | [**getOrderImpact**](docs/TradingApi.md#getOrderImpact) | **POST** /trade/impact | Check impact of trades on account.
|
|
141
|
+
*Trading* | [**getUserAccountQuotes**](docs/TradingApi.md#getUserAccountQuotes) | **GET** /accounts/{accountId}/quotes | Get symbol quotes
|
|
142
|
+
*Trading* | [**placeForceOrder**](docs/TradingApi.md#placeForceOrder) | **POST** /trade/place | Place a trade with NO validation.
|
|
143
|
+
*Trading* | [**placeOCOOrder**](docs/TradingApi.md#placeOCOOrder) | **POST** /trade/oco | Place a OCO (One Cancels Other) order
|
|
144
|
+
*Trading* | [**placeOrder**](docs/TradingApi.md#placeOrder) | **POST** /trade/{tradeId} | Place order
|
|
145
|
+
*Transactions And Reporting* | [**getActivities**](docs/TransactionsAndReportingApi.md#getActivities) | **GET** /activities | Get transaction history for a user
|
|
146
|
+
*Transactions And Reporting* | [**getReportingCustomRange**](docs/TransactionsAndReportingApi.md#getReportingCustomRange) | **GET** /performance/custom | Get performance information for a specific timeframe
|
|
147
147
|
|
package/dist/common.js
CHANGED
|
@@ -152,7 +152,7 @@ exports.toPathString = toPathString;
|
|
|
152
152
|
*/
|
|
153
153
|
const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
154
154
|
return (axios = globalAxios, basePath = BASE_PATH) => __awaiter(this, void 0, void 0, function* () {
|
|
155
|
-
var _a, _b;
|
|
155
|
+
var _a, _b, _c;
|
|
156
156
|
(0, requestBeforeUrlHook_1.requestBeforeUrlHook)({ axiosArgs, basePath, configuration });
|
|
157
157
|
const url = ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || basePath) + axiosArgs.url;
|
|
158
158
|
(0, requestAfterHook_1.requestAfterHook)({ axiosArgs, basePath, url, configuration });
|
|
@@ -161,12 +161,26 @@ const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, confi
|
|
|
161
161
|
}
|
|
162
162
|
catch (e) {
|
|
163
163
|
if (e instanceof axios_1.AxiosError && e.isAxiosError) {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
164
|
+
try {
|
|
165
|
+
const responseBody = ((_a = e.response) === null || _a === void 0 ? void 0 : _a.data) instanceof ReadableStream
|
|
166
|
+
? yield (0, error_1.readableStreamToString)(e.response.data)
|
|
167
|
+
: (_b = e.response) === null || _b === void 0 ? void 0 : _b.data;
|
|
168
|
+
throw new error_1.SnaptradeError(e, (0, error_1.parseIfJson)(responseBody));
|
|
169
|
+
}
|
|
170
|
+
catch (innerError) {
|
|
171
|
+
if (innerError instanceof ReferenceError) {
|
|
172
|
+
// Got: "ReferenceError: ReadableStream is not defined"
|
|
173
|
+
// This means we are in a Node environment so just throw the original error
|
|
174
|
+
throw new error_1.SnaptradeError(e, (_c = e.response) === null || _c === void 0 ? void 0 : _c.data);
|
|
175
|
+
}
|
|
176
|
+
if (innerError instanceof error_1.SnaptradeError) {
|
|
177
|
+
// Got "SnaptradeError" from the above try block
|
|
178
|
+
throw innerError;
|
|
179
|
+
}
|
|
180
|
+
// Something unexpected happened: propagate the error
|
|
181
|
+
throw e;
|
|
182
|
+
}
|
|
168
183
|
}
|
|
169
|
-
throw e;
|
|
170
184
|
}
|
|
171
185
|
});
|
|
172
186
|
};
|
package/dist/configuration.js
CHANGED
|
@@ -32,7 +32,7 @@ class Configuration {
|
|
|
32
32
|
this.accessToken = param.accessToken;
|
|
33
33
|
this.basePath = param.basePath;
|
|
34
34
|
this.baseOptions = (_a = param.baseOptions) !== null && _a !== void 0 ? _a : {};
|
|
35
|
-
this.userAgent = param.userAgent === undefined ? "Konfig/8.
|
|
35
|
+
this.userAgent = param.userAgent === undefined ? "Konfig/8.25.0/typescript" : param.userAgent;
|
|
36
36
|
this.formDataCtor = param.formDataCtor;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
* Do not edit the class manually.
|
|
10
|
+
*/
|
|
11
|
+
import { UnderlyingSymbol } from './underlying-symbol';
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface BrokerageSymbolOptionSymbol
|
|
16
|
+
*/
|
|
17
|
+
export interface BrokerageSymbolOptionSymbol {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BrokerageSymbolOptionSymbol
|
|
22
|
+
*/
|
|
23
|
+
'id'?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof BrokerageSymbolOptionSymbol
|
|
28
|
+
*/
|
|
29
|
+
'ticker'?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof BrokerageSymbolOptionSymbol
|
|
34
|
+
*/
|
|
35
|
+
'strike_price'?: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof BrokerageSymbolOptionSymbol
|
|
40
|
+
*/
|
|
41
|
+
'expiration_date'?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof BrokerageSymbolOptionSymbol
|
|
46
|
+
*/
|
|
47
|
+
'is_mini_option'?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {UnderlyingSymbol}
|
|
51
|
+
* @memberof BrokerageSymbolOptionSymbol
|
|
52
|
+
*/
|
|
53
|
+
'underlying_symbol'?: UnderlyingSymbol;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof BrokerageSymbolOptionSymbol
|
|
58
|
+
*/
|
|
59
|
+
'local_id'?: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {any}
|
|
63
|
+
* @memberof BrokerageSymbolOptionSymbol
|
|
64
|
+
*/
|
|
65
|
+
'security_type'?: any;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {any}
|
|
69
|
+
* @memberof BrokerageSymbolOptionSymbol
|
|
70
|
+
*/
|
|
71
|
+
'listing_exchange'?: any;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof BrokerageSymbolOptionSymbol
|
|
76
|
+
*/
|
|
77
|
+
'is_quotable'?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {boolean}
|
|
81
|
+
* @memberof BrokerageSymbolOptionSymbol
|
|
82
|
+
*/
|
|
83
|
+
'is_tradable'?: boolean;
|
|
84
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* SnapTrade
|
|
6
|
+
* Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: api@snaptrade.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
* Do not edit the class manually.
|
|
10
|
+
*/
|
|
11
|
+
import { Currency } from './currency';
|
|
12
|
+
import { Exchange } from './exchange';
|
|
13
|
+
import { SecurityType } from './security-type';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface BrokerageSymbolSymbol
|
|
18
|
+
*/
|
|
19
|
+
export interface BrokerageSymbolSymbol {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof BrokerageSymbolSymbol
|
|
24
|
+
*/
|
|
25
|
+
'id'?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof BrokerageSymbolSymbol
|
|
30
|
+
*/
|
|
31
|
+
'symbol'?: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof BrokerageSymbolSymbol
|
|
36
|
+
*/
|
|
37
|
+
'raw_symbol'?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof BrokerageSymbolSymbol
|
|
42
|
+
*/
|
|
43
|
+
'description'?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Currency}
|
|
47
|
+
* @memberof BrokerageSymbolSymbol
|
|
48
|
+
*/
|
|
49
|
+
'currency'?: Currency;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Exchange}
|
|
53
|
+
* @memberof BrokerageSymbolSymbol
|
|
54
|
+
*/
|
|
55
|
+
'exchange'?: Exchange;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {SecurityType}
|
|
59
|
+
* @memberof BrokerageSymbolSymbol
|
|
60
|
+
*/
|
|
61
|
+
'type'?: SecurityType;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<Currency>}
|
|
65
|
+
* @memberof BrokerageSymbolSymbol
|
|
66
|
+
*/
|
|
67
|
+
'currencies'?: Array<Currency>;
|
|
68
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* SnapTrade
|
|
6
|
+
* Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: api@snaptrade.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
* Do not edit the class manually.
|
|
10
10
|
*/
|
|
11
11
|
import { BrokerageAuthorization } from './brokerage-authorization';
|
|
12
|
-
import {
|
|
12
|
+
import { BrokerageSymbolOptionSymbol } from './brokerage-symbol-option-symbol';
|
|
13
|
+
import { BrokerageSymbolSymbol } from './brokerage-symbol-symbol';
|
|
13
14
|
/**
|
|
14
15
|
* Brokerage symbol
|
|
15
16
|
* @export
|
|
@@ -25,10 +26,10 @@ export interface BrokerageSymbol {
|
|
|
25
26
|
'id'?: string;
|
|
26
27
|
/**
|
|
27
28
|
*
|
|
28
|
-
* @type {
|
|
29
|
+
* @type {BrokerageSymbolSymbol}
|
|
29
30
|
* @memberof BrokerageSymbol
|
|
30
31
|
*/
|
|
31
|
-
'symbol'?:
|
|
32
|
+
'symbol'?: BrokerageSymbolSymbol | null;
|
|
32
33
|
/**
|
|
33
34
|
*
|
|
34
35
|
* @type {BrokerageAuthorization}
|
|
@@ -47,4 +48,10 @@ export interface BrokerageSymbol {
|
|
|
47
48
|
* @memberof BrokerageSymbol
|
|
48
49
|
*/
|
|
49
50
|
'allows_fractional_units'?: boolean | null;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {BrokerageSymbolOptionSymbol}
|
|
54
|
+
* @memberof BrokerageSymbol
|
|
55
|
+
*/
|
|
56
|
+
'option_symbol'?: BrokerageSymbolOptionSymbol | null;
|
|
50
57
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ export * from './brokerage-authorization-type';
|
|
|
14
14
|
export * from './brokerage-authorization-type-read-only';
|
|
15
15
|
export * from './brokerage-authorization-type-read-only-brokerage';
|
|
16
16
|
export * from './brokerage-symbol';
|
|
17
|
+
export * from './brokerage-symbol-option-symbol';
|
|
18
|
+
export * from './brokerage-symbol-symbol';
|
|
17
19
|
export * from './brokerage-type';
|
|
18
20
|
export * from './calculated-trade';
|
|
19
21
|
export * from './cash-restriction';
|
package/dist/models/index.js
CHANGED
|
@@ -30,6 +30,8 @@ __exportStar(require("./brokerage-authorization-type"), exports);
|
|
|
30
30
|
__exportStar(require("./brokerage-authorization-type-read-only"), exports);
|
|
31
31
|
__exportStar(require("./brokerage-authorization-type-read-only-brokerage"), exports);
|
|
32
32
|
__exportStar(require("./brokerage-symbol"), exports);
|
|
33
|
+
__exportStar(require("./brokerage-symbol-option-symbol"), exports);
|
|
34
|
+
__exportStar(require("./brokerage-symbol-symbol"), exports);
|
|
33
35
|
__exportStar(require("./brokerage-type"), exports);
|
|
34
36
|
__exportStar(require("./calculated-trade"), exports);
|
|
35
37
|
__exportStar(require("./cash-restriction"), exports);
|
|
@@ -104,7 +104,7 @@ export interface UniversalActivity {
|
|
|
104
104
|
*/
|
|
105
105
|
'trade_date'?: string | null;
|
|
106
106
|
/**
|
|
107
|
-
* Potential values include - DIVIDEND - BUY - SELL - CONTRIBUTION - WITHDRAWAL - EXTERNAL_ASSET_TRANSFER_IN - EXTERNAL_ASSET_TRANSFER_OUT - INTERNAL_CASH_TRANSFER_IN - INTERNAL_CASH_TRANSFER_OUT - INTERNAL_ASSET_TRANSFER_IN - INTERNAL_ASSET_TRANSFER_OUT - INTEREST - REBATE - GOV_GRANT - TAX - FEE - REI - FXT
|
|
107
|
+
* Potential values include (but are not limited to) - DIVIDEND - BUY - SELL - CONTRIBUTION - WITHDRAWAL - EXTERNAL_ASSET_TRANSFER_IN - EXTERNAL_ASSET_TRANSFER_OUT - INTERNAL_CASH_TRANSFER_IN - INTERNAL_CASH_TRANSFER_OUT - INTERNAL_ASSET_TRANSFER_IN - INTERNAL_ASSET_TRANSFER_OUT - INTEREST - REBATE - GOV_GRANT - TAX - FEE - REI - FXT
|
|
108
108
|
* @type {string}
|
|
109
109
|
* @memberof UniversalActivity
|
|
110
110
|
*/
|
|
@@ -22,7 +22,7 @@ export interface UserIDandSecret {
|
|
|
22
22
|
*/
|
|
23
23
|
'userId'?: string;
|
|
24
24
|
/**
|
|
25
|
-
* SnapTrade User Secret randomly generated by
|
|
25
|
+
* SnapTrade User Secret randomly generated by SnapTrade. This should be considered priviledged information and if compromised, you should delete and re-create this SnapTrade user.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof UserIDandSecret
|
|
28
28
|
*/
|