snaptrade-typescript-sdk 9.0.8 → 9.0.9
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 +20 -12
- package/dist/api/account-information-api-generated.js +24 -8
- package/dist/api/api-status-api-generated.js +3 -1
- package/dist/api/authentication-api-generated.js +18 -6
- package/dist/api/connections-api-generated.js +12 -4
- package/dist/api/error-logs-api-generated.js +3 -1
- package/dist/api/options-api-generated.js +15 -5
- package/dist/api/reference-data-api-generated.js +33 -11
- package/dist/api/trading-api-generated.js +18 -6
- package/dist/api/transactions-and-reporting-api-generated.js +6 -2
- package/dist/browser.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/models/account-order-record.d.ts +2 -2
- package/dist/models/manual-trade.d.ts +2 -2
- package/dist/operationParameterMap.d.ts +8 -0
- package/dist/operationParameterMap.js +584 -0
- package/dist/requestBeforeHook.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Connect brokerage accounts to your app for live positions and trading
|
|
8
8
|
|
|
9
|
-
[](https://www.npmjs.com/package/snaptrade-typescript-sdk/v/9.0.9)
|
|
10
10
|
[](https://snaptrade.com/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
@@ -227,7 +227,7 @@ const getUserAccountBalanceResponse =
|
|
|
227
227
|
await snaptrade.accountInformation.getUserAccountBalance({
|
|
228
228
|
userId: "John.doe@snaptrade.com",
|
|
229
229
|
userSecret: "USERSECRET123",
|
|
230
|
-
accountId: "
|
|
230
|
+
accountId: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
231
231
|
});
|
|
232
232
|
```
|
|
233
233
|
|
|
@@ -265,7 +265,7 @@ const getUserAccountDetailsResponse =
|
|
|
265
265
|
await snaptrade.accountInformation.getUserAccountDetails({
|
|
266
266
|
userId: "John.doe@snaptrade.com",
|
|
267
267
|
userSecret: "USERSECRET123",
|
|
268
|
-
accountId: "
|
|
268
|
+
accountId: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
269
269
|
});
|
|
270
270
|
```
|
|
271
271
|
|
|
@@ -305,7 +305,7 @@ const getUserAccountOrdersResponse =
|
|
|
305
305
|
userSecret: "USERSECRET123",
|
|
306
306
|
state: "all",
|
|
307
307
|
days: 30,
|
|
308
|
-
accountId: "
|
|
308
|
+
accountId: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
309
309
|
});
|
|
310
310
|
```
|
|
311
311
|
|
|
@@ -351,7 +351,7 @@ const getUserAccountPositionsResponse =
|
|
|
351
351
|
await snaptrade.accountInformation.getUserAccountPositions({
|
|
352
352
|
userId: "John.doe@snaptrade.com",
|
|
353
353
|
userSecret: "USERSECRET123",
|
|
354
|
-
accountId: "
|
|
354
|
+
accountId: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
355
355
|
});
|
|
356
356
|
```
|
|
357
357
|
|
|
@@ -1089,8 +1089,8 @@ const placeOptionStrategyResponse = await snaptrade.options.placeOptionStrategy(
|
|
|
1089
1089
|
userSecret: "USERSECRET123",
|
|
1090
1090
|
accountId: "2bcd7cc3-e922-4976-bce1-9858296801c3",
|
|
1091
1091
|
optionStrategyId: "2bcd7cc3-e922-4976-bce1-9858296801c3",
|
|
1092
|
-
order_type: "
|
|
1093
|
-
time_in_force: "
|
|
1092
|
+
order_type: "Limit",
|
|
1093
|
+
time_in_force: "FOK",
|
|
1094
1094
|
price: 31.33,
|
|
1095
1095
|
}
|
|
1096
1096
|
);
|
|
@@ -1414,7 +1414,7 @@ const symbolSearchUserAccountResponse =
|
|
|
1414
1414
|
await snaptrade.referenceData.symbolSearchUserAccount({
|
|
1415
1415
|
userId: "John.doe@snaptrade.com",
|
|
1416
1416
|
userSecret: "USERSECRET123",
|
|
1417
|
-
accountId: "
|
|
1417
|
+
accountId: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
1418
1418
|
substring: "apple",
|
|
1419
1419
|
});
|
|
1420
1420
|
```
|
|
@@ -1455,7 +1455,7 @@ const cancelUserAccountOrderResponse =
|
|
|
1455
1455
|
await snaptrade.trading.cancelUserAccountOrder({
|
|
1456
1456
|
userId: "John.doe@snaptrade.com",
|
|
1457
1457
|
userSecret: "USERSECRET123",
|
|
1458
|
-
accountId: "
|
|
1458
|
+
accountId: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
1459
1459
|
brokerage_order_id: "2bcd7cc3-e922-4976-bce1-9858296801c3",
|
|
1460
1460
|
});
|
|
1461
1461
|
```
|
|
@@ -1496,9 +1496,13 @@ const getOrderImpactResponse = await snaptrade.trading.getOrderImpact({
|
|
|
1496
1496
|
userId: "John.doe@snaptrade.com",
|
|
1497
1497
|
userSecret: "USERSECRET123",
|
|
1498
1498
|
account_id: "2bcd7cc3-e922-4976-bce1-9858296801c3",
|
|
1499
|
+
action: "BUY",
|
|
1500
|
+
order_type: "Limit",
|
|
1499
1501
|
price: 31.33,
|
|
1500
1502
|
stop: 31.33,
|
|
1503
|
+
time_in_force: "FOK",
|
|
1501
1504
|
universal_symbol_id: "2bcd7cc3-e922-4976-bce1-9858296801c3",
|
|
1505
|
+
notional_value: 100,
|
|
1502
1506
|
});
|
|
1503
1507
|
```
|
|
1504
1508
|
|
|
@@ -1561,7 +1565,7 @@ const getUserAccountQuotesResponse =
|
|
|
1561
1565
|
userId: "John.doe@snaptrade.com",
|
|
1562
1566
|
userSecret: "USERSECRET123",
|
|
1563
1567
|
symbols: "symbols_example",
|
|
1564
|
-
accountId: "
|
|
1568
|
+
accountId: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
1565
1569
|
});
|
|
1566
1570
|
```
|
|
1567
1571
|
|
|
@@ -1607,9 +1611,13 @@ const placeForceOrderResponse = await snaptrade.trading.placeForceOrder({
|
|
|
1607
1611
|
userId: "John.doe@snaptrade.com",
|
|
1608
1612
|
userSecret: "USERSECRET123",
|
|
1609
1613
|
account_id: "2bcd7cc3-e922-4976-bce1-9858296801c3",
|
|
1614
|
+
action: "BUY",
|
|
1615
|
+
order_type: "Limit",
|
|
1610
1616
|
price: 31.33,
|
|
1611
1617
|
stop: 31.33,
|
|
1618
|
+
time_in_force: "FOK",
|
|
1612
1619
|
universal_symbol_id: "2bcd7cc3-e922-4976-bce1-9858296801c3",
|
|
1620
|
+
notional_value: 100,
|
|
1613
1621
|
});
|
|
1614
1622
|
```
|
|
1615
1623
|
|
|
@@ -1679,11 +1687,11 @@ const placeOCOOrderResponse = await snaptrade.trading.placeOCOOrder({
|
|
|
1679
1687
|
|
|
1680
1688
|
##### userSecret: `string`<a id="usersecret-string"></a>
|
|
1681
1689
|
|
|
1682
|
-
##### first_trade_id
|
|
1690
|
+
##### first_trade_id: `any`<a id="first_trade_id-any"></a>
|
|
1683
1691
|
|
|
1684
1692
|
The ID of first trade object obtained from trade/impact endpoint
|
|
1685
1693
|
|
|
1686
|
-
##### second_trade_id
|
|
1694
|
+
##### second_trade_id: `any`<a id="second_trade_id-any"></a>
|
|
1687
1695
|
|
|
1688
1696
|
The ID of second trade object obtained from trade/impact endpoint
|
|
1689
1697
|
|
|
@@ -81,7 +81,9 @@ const AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
81
81
|
queryParameters: localVarQueryParameter,
|
|
82
82
|
requestConfig: localVarRequestOptions,
|
|
83
83
|
path: localVarPath,
|
|
84
|
-
configuration
|
|
84
|
+
configuration,
|
|
85
|
+
pathTemplate: '/holdings',
|
|
86
|
+
httpMethod: 'GET'
|
|
85
87
|
});
|
|
86
88
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
87
89
|
return {
|
|
@@ -134,7 +136,9 @@ const AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
134
136
|
queryParameters: localVarQueryParameter,
|
|
135
137
|
requestConfig: localVarRequestOptions,
|
|
136
138
|
path: localVarPath,
|
|
137
|
-
configuration
|
|
139
|
+
configuration,
|
|
140
|
+
pathTemplate: '/accounts/{accountId}/balances',
|
|
141
|
+
httpMethod: 'GET'
|
|
138
142
|
});
|
|
139
143
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
140
144
|
return {
|
|
@@ -187,7 +191,9 @@ const AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
187
191
|
queryParameters: localVarQueryParameter,
|
|
188
192
|
requestConfig: localVarRequestOptions,
|
|
189
193
|
path: localVarPath,
|
|
190
|
-
configuration
|
|
194
|
+
configuration,
|
|
195
|
+
pathTemplate: '/accounts/{accountId}',
|
|
196
|
+
httpMethod: 'GET'
|
|
191
197
|
});
|
|
192
198
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
193
199
|
return {
|
|
@@ -248,7 +254,9 @@ const AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
248
254
|
queryParameters: localVarQueryParameter,
|
|
249
255
|
requestConfig: localVarRequestOptions,
|
|
250
256
|
path: localVarPath,
|
|
251
|
-
configuration
|
|
257
|
+
configuration,
|
|
258
|
+
pathTemplate: '/accounts/{accountId}/orders',
|
|
259
|
+
httpMethod: 'GET'
|
|
252
260
|
});
|
|
253
261
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
254
262
|
return {
|
|
@@ -301,7 +309,9 @@ const AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
301
309
|
queryParameters: localVarQueryParameter,
|
|
302
310
|
requestConfig: localVarRequestOptions,
|
|
303
311
|
path: localVarPath,
|
|
304
|
-
configuration
|
|
312
|
+
configuration,
|
|
313
|
+
pathTemplate: '/accounts/{accountId}/positions',
|
|
314
|
+
httpMethod: 'GET'
|
|
305
315
|
});
|
|
306
316
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
307
317
|
return {
|
|
@@ -354,7 +364,9 @@ const AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
354
364
|
queryParameters: localVarQueryParameter,
|
|
355
365
|
requestConfig: localVarRequestOptions,
|
|
356
366
|
path: localVarPath,
|
|
357
|
-
configuration
|
|
367
|
+
configuration,
|
|
368
|
+
pathTemplate: '/accounts/{accountId}/holdings',
|
|
369
|
+
httpMethod: 'GET'
|
|
358
370
|
});
|
|
359
371
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
360
372
|
return {
|
|
@@ -403,7 +415,9 @@ const AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
403
415
|
queryParameters: localVarQueryParameter,
|
|
404
416
|
requestConfig: localVarRequestOptions,
|
|
405
417
|
path: localVarPath,
|
|
406
|
-
configuration
|
|
418
|
+
configuration,
|
|
419
|
+
pathTemplate: '/accounts',
|
|
420
|
+
httpMethod: 'GET'
|
|
407
421
|
});
|
|
408
422
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
409
423
|
return {
|
|
@@ -456,7 +470,9 @@ const AccountInformationApiAxiosParamCreator = function (configuration) {
|
|
|
456
470
|
queryParameters: localVarQueryParameter,
|
|
457
471
|
requestConfig: localVarRequestOptions,
|
|
458
472
|
path: localVarPath,
|
|
459
|
-
configuration
|
|
473
|
+
configuration,
|
|
474
|
+
pathTemplate: '/accounts/{accountId}',
|
|
475
|
+
httpMethod: 'PUT'
|
|
460
476
|
});
|
|
461
477
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
462
478
|
return {
|
|
@@ -58,7 +58,9 @@ const ApiStatusApiAxiosParamCreator = function (configuration) {
|
|
|
58
58
|
queryParameters: localVarQueryParameter,
|
|
59
59
|
requestConfig: localVarRequestOptions,
|
|
60
60
|
path: localVarPath,
|
|
61
|
-
configuration
|
|
61
|
+
configuration,
|
|
62
|
+
pathTemplate: '/',
|
|
63
|
+
httpMethod: 'GET'
|
|
62
64
|
});
|
|
63
65
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
64
66
|
return {
|
|
@@ -70,7 +70,9 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
70
70
|
queryParameters: localVarQueryParameter,
|
|
71
71
|
requestConfig: localVarRequestOptions,
|
|
72
72
|
path: localVarPath,
|
|
73
|
-
configuration
|
|
73
|
+
configuration,
|
|
74
|
+
pathTemplate: '/snapTrade/deleteUser',
|
|
75
|
+
httpMethod: 'DELETE'
|
|
74
76
|
});
|
|
75
77
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
76
78
|
return {
|
|
@@ -119,7 +121,9 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
119
121
|
queryParameters: localVarQueryParameter,
|
|
120
122
|
requestConfig: localVarRequestOptions,
|
|
121
123
|
path: localVarPath,
|
|
122
|
-
configuration
|
|
124
|
+
configuration,
|
|
125
|
+
pathTemplate: '/snapTrade/encryptedJWT',
|
|
126
|
+
httpMethod: 'GET'
|
|
123
127
|
});
|
|
124
128
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
125
129
|
return {
|
|
@@ -156,7 +160,9 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
156
160
|
queryParameters: localVarQueryParameter,
|
|
157
161
|
requestConfig: localVarRequestOptions,
|
|
158
162
|
path: localVarPath,
|
|
159
|
-
configuration
|
|
163
|
+
configuration,
|
|
164
|
+
pathTemplate: '/snapTrade/listUsers',
|
|
165
|
+
httpMethod: 'GET'
|
|
160
166
|
});
|
|
161
167
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
162
168
|
return {
|
|
@@ -208,7 +214,9 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
208
214
|
queryParameters: localVarQueryParameter,
|
|
209
215
|
requestConfig: localVarRequestOptions,
|
|
210
216
|
path: localVarPath,
|
|
211
|
-
configuration
|
|
217
|
+
configuration,
|
|
218
|
+
pathTemplate: '/snapTrade/login',
|
|
219
|
+
httpMethod: 'POST'
|
|
212
220
|
});
|
|
213
221
|
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(snapTradeLoginUserRequestBody, localVarRequestOptions, configuration);
|
|
214
222
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -251,7 +259,9 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
251
259
|
queryParameters: localVarQueryParameter,
|
|
252
260
|
requestConfig: localVarRequestOptions,
|
|
253
261
|
path: localVarPath,
|
|
254
|
-
configuration
|
|
262
|
+
configuration,
|
|
263
|
+
pathTemplate: '/snapTrade/registerUser',
|
|
264
|
+
httpMethod: 'POST'
|
|
255
265
|
});
|
|
256
266
|
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(snapTradeRegisterUserRequestBody, localVarRequestOptions, configuration);
|
|
257
267
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -294,7 +304,9 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
294
304
|
queryParameters: localVarQueryParameter,
|
|
295
305
|
requestConfig: localVarRequestOptions,
|
|
296
306
|
path: localVarPath,
|
|
297
|
-
configuration
|
|
307
|
+
configuration,
|
|
308
|
+
pathTemplate: '/snapTrade/resetUserSecret',
|
|
309
|
+
httpMethod: 'POST'
|
|
298
310
|
});
|
|
299
311
|
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(userIDandSecret, localVarRequestOptions, configuration);
|
|
300
312
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -80,7 +80,9 @@ const ConnectionsApiAxiosParamCreator = function (configuration) {
|
|
|
80
80
|
queryParameters: localVarQueryParameter,
|
|
81
81
|
requestConfig: localVarRequestOptions,
|
|
82
82
|
path: localVarPath,
|
|
83
|
-
configuration
|
|
83
|
+
configuration,
|
|
84
|
+
pathTemplate: '/authorizations/{authorizationId}',
|
|
85
|
+
httpMethod: 'GET'
|
|
84
86
|
});
|
|
85
87
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
86
88
|
return {
|
|
@@ -129,7 +131,9 @@ const ConnectionsApiAxiosParamCreator = function (configuration) {
|
|
|
129
131
|
queryParameters: localVarQueryParameter,
|
|
130
132
|
requestConfig: localVarRequestOptions,
|
|
131
133
|
path: localVarPath,
|
|
132
|
-
configuration
|
|
134
|
+
configuration,
|
|
135
|
+
pathTemplate: '/authorizations',
|
|
136
|
+
httpMethod: 'GET'
|
|
133
137
|
});
|
|
134
138
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
135
139
|
return {
|
|
@@ -182,7 +186,9 @@ const ConnectionsApiAxiosParamCreator = function (configuration) {
|
|
|
182
186
|
queryParameters: localVarQueryParameter,
|
|
183
187
|
requestConfig: localVarRequestOptions,
|
|
184
188
|
path: localVarPath,
|
|
185
|
-
configuration
|
|
189
|
+
configuration,
|
|
190
|
+
pathTemplate: '/authorizations/{authorizationId}',
|
|
191
|
+
httpMethod: 'DELETE'
|
|
186
192
|
});
|
|
187
193
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
188
194
|
return {
|
|
@@ -233,7 +239,9 @@ const ConnectionsApiAxiosParamCreator = function (configuration) {
|
|
|
233
239
|
queryParameters: localVarQueryParameter,
|
|
234
240
|
requestConfig: localVarRequestOptions,
|
|
235
241
|
path: localVarPath,
|
|
236
|
-
configuration
|
|
242
|
+
configuration,
|
|
243
|
+
pathTemplate: '/sessionEvents',
|
|
244
|
+
httpMethod: 'GET'
|
|
237
245
|
});
|
|
238
246
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
239
247
|
return {
|
|
@@ -76,7 +76,9 @@ const ErrorLogsApiAxiosParamCreator = function (configuration) {
|
|
|
76
76
|
queryParameters: localVarQueryParameter,
|
|
77
77
|
requestConfig: localVarRequestOptions,
|
|
78
78
|
path: localVarPath,
|
|
79
|
-
configuration
|
|
79
|
+
configuration,
|
|
80
|
+
pathTemplate: '/snapTrade/listUserErrors',
|
|
81
|
+
httpMethod: 'GET'
|
|
80
82
|
});
|
|
81
83
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
82
84
|
return {
|
|
@@ -85,7 +85,9 @@ const OptionsApiAxiosParamCreator = function (configuration) {
|
|
|
85
85
|
queryParameters: localVarQueryParameter,
|
|
86
86
|
requestConfig: localVarRequestOptions,
|
|
87
87
|
path: localVarPath,
|
|
88
|
-
configuration
|
|
88
|
+
configuration,
|
|
89
|
+
pathTemplate: '/accounts/{accountId}/optionStrategy',
|
|
90
|
+
httpMethod: 'POST'
|
|
89
91
|
});
|
|
90
92
|
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(optionsGetOptionStrategyRequest, localVarRequestOptions, configuration);
|
|
91
93
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -145,7 +147,9 @@ const OptionsApiAxiosParamCreator = function (configuration) {
|
|
|
145
147
|
queryParameters: localVarQueryParameter,
|
|
146
148
|
requestConfig: localVarRequestOptions,
|
|
147
149
|
path: localVarPath,
|
|
148
|
-
configuration
|
|
150
|
+
configuration,
|
|
151
|
+
pathTemplate: '/accounts/{accountId}/optionsChain',
|
|
152
|
+
httpMethod: 'GET'
|
|
149
153
|
});
|
|
150
154
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
151
155
|
return {
|
|
@@ -202,7 +206,9 @@ const OptionsApiAxiosParamCreator = function (configuration) {
|
|
|
202
206
|
queryParameters: localVarQueryParameter,
|
|
203
207
|
requestConfig: localVarRequestOptions,
|
|
204
208
|
path: localVarPath,
|
|
205
|
-
configuration
|
|
209
|
+
configuration,
|
|
210
|
+
pathTemplate: '/accounts/{accountId}/optionStrategy/{optionStrategyId}',
|
|
211
|
+
httpMethod: 'GET'
|
|
206
212
|
});
|
|
207
213
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
208
214
|
return {
|
|
@@ -255,7 +261,9 @@ const OptionsApiAxiosParamCreator = function (configuration) {
|
|
|
255
261
|
queryParameters: localVarQueryParameter,
|
|
256
262
|
requestConfig: localVarRequestOptions,
|
|
257
263
|
path: localVarPath,
|
|
258
|
-
configuration
|
|
264
|
+
configuration,
|
|
265
|
+
pathTemplate: '/accounts/{accountId}/options',
|
|
266
|
+
httpMethod: 'GET'
|
|
259
267
|
});
|
|
260
268
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
261
269
|
return {
|
|
@@ -317,7 +325,9 @@ const OptionsApiAxiosParamCreator = function (configuration) {
|
|
|
317
325
|
queryParameters: localVarQueryParameter,
|
|
318
326
|
requestConfig: localVarRequestOptions,
|
|
319
327
|
path: localVarPath,
|
|
320
|
-
configuration
|
|
328
|
+
configuration,
|
|
329
|
+
pathTemplate: '/accounts/{accountId}/optionStrategy/{optionStrategyId}/execute',
|
|
330
|
+
httpMethod: 'POST'
|
|
321
331
|
});
|
|
322
332
|
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(optionsPlaceOptionStrategyRequest, localVarRequestOptions, configuration);
|
|
323
333
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -68,7 +68,9 @@ const ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
68
68
|
queryParameters: localVarQueryParameter,
|
|
69
69
|
requestConfig: localVarRequestOptions,
|
|
70
70
|
path: localVarPath,
|
|
71
|
-
configuration
|
|
71
|
+
configuration,
|
|
72
|
+
pathTemplate: '/currencies/rates/{currencyPair}',
|
|
73
|
+
httpMethod: 'GET'
|
|
72
74
|
});
|
|
73
75
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
74
76
|
return {
|
|
@@ -105,7 +107,9 @@ const ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
105
107
|
queryParameters: localVarQueryParameter,
|
|
106
108
|
requestConfig: localVarRequestOptions,
|
|
107
109
|
path: localVarPath,
|
|
108
|
-
configuration
|
|
110
|
+
configuration,
|
|
111
|
+
pathTemplate: '/snapTrade/partners',
|
|
112
|
+
httpMethod: 'GET'
|
|
109
113
|
});
|
|
110
114
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
111
115
|
return {
|
|
@@ -142,7 +146,9 @@ const ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
142
146
|
queryParameters: localVarQueryParameter,
|
|
143
147
|
requestConfig: localVarRequestOptions,
|
|
144
148
|
path: localVarPath,
|
|
145
|
-
configuration
|
|
149
|
+
configuration,
|
|
150
|
+
pathTemplate: '/securityTypes',
|
|
151
|
+
httpMethod: 'GET'
|
|
146
152
|
});
|
|
147
153
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
148
154
|
return {
|
|
@@ -179,7 +185,9 @@ const ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
179
185
|
queryParameters: localVarQueryParameter,
|
|
180
186
|
requestConfig: localVarRequestOptions,
|
|
181
187
|
path: localVarPath,
|
|
182
|
-
configuration
|
|
188
|
+
configuration,
|
|
189
|
+
pathTemplate: '/exchanges',
|
|
190
|
+
httpMethod: 'GET'
|
|
183
191
|
});
|
|
184
192
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
185
193
|
return {
|
|
@@ -219,7 +227,9 @@ const ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
219
227
|
queryParameters: localVarQueryParameter,
|
|
220
228
|
requestConfig: localVarRequestOptions,
|
|
221
229
|
path: localVarPath,
|
|
222
|
-
configuration
|
|
230
|
+
configuration,
|
|
231
|
+
pathTemplate: '/symbols',
|
|
232
|
+
httpMethod: 'POST'
|
|
223
233
|
});
|
|
224
234
|
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(symbolQuery, localVarRequestOptions, configuration);
|
|
225
235
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -261,7 +271,9 @@ const ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
261
271
|
queryParameters: localVarQueryParameter,
|
|
262
272
|
requestConfig: localVarRequestOptions,
|
|
263
273
|
path: localVarPath,
|
|
264
|
-
configuration
|
|
274
|
+
configuration,
|
|
275
|
+
pathTemplate: '/symbols/{query}',
|
|
276
|
+
httpMethod: 'GET'
|
|
265
277
|
});
|
|
266
278
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
267
279
|
return {
|
|
@@ -302,7 +314,9 @@ const ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
302
314
|
queryParameters: localVarQueryParameter,
|
|
303
315
|
requestConfig: localVarRequestOptions,
|
|
304
316
|
path: localVarPath,
|
|
305
|
-
configuration
|
|
317
|
+
configuration,
|
|
318
|
+
pathTemplate: '/brokerageAuthorizationTypes',
|
|
319
|
+
httpMethod: 'GET'
|
|
306
320
|
});
|
|
307
321
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
308
322
|
return {
|
|
@@ -339,7 +353,9 @@ const ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
339
353
|
queryParameters: localVarQueryParameter,
|
|
340
354
|
requestConfig: localVarRequestOptions,
|
|
341
355
|
path: localVarPath,
|
|
342
|
-
configuration
|
|
356
|
+
configuration,
|
|
357
|
+
pathTemplate: '/brokerages',
|
|
358
|
+
httpMethod: 'GET'
|
|
343
359
|
});
|
|
344
360
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
345
361
|
return {
|
|
@@ -376,7 +392,9 @@ const ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
376
392
|
queryParameters: localVarQueryParameter,
|
|
377
393
|
requestConfig: localVarRequestOptions,
|
|
378
394
|
path: localVarPath,
|
|
379
|
-
configuration
|
|
395
|
+
configuration,
|
|
396
|
+
pathTemplate: '/currencies',
|
|
397
|
+
httpMethod: 'GET'
|
|
380
398
|
});
|
|
381
399
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
382
400
|
return {
|
|
@@ -413,7 +431,9 @@ const ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
413
431
|
queryParameters: localVarQueryParameter,
|
|
414
432
|
requestConfig: localVarRequestOptions,
|
|
415
433
|
path: localVarPath,
|
|
416
|
-
configuration
|
|
434
|
+
configuration,
|
|
435
|
+
pathTemplate: '/currencies/rates',
|
|
436
|
+
httpMethod: 'GET'
|
|
417
437
|
});
|
|
418
438
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
419
439
|
return {
|
|
@@ -469,7 +489,9 @@ const ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
469
489
|
queryParameters: localVarQueryParameter,
|
|
470
490
|
requestConfig: localVarRequestOptions,
|
|
471
491
|
path: localVarPath,
|
|
472
|
-
configuration
|
|
492
|
+
configuration,
|
|
493
|
+
pathTemplate: '/accounts/{accountId}/symbols',
|
|
494
|
+
httpMethod: 'POST'
|
|
473
495
|
});
|
|
474
496
|
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(symbolQuery, localVarRequestOptions, configuration);
|
|
475
497
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -85,7 +85,9 @@ const TradingApiAxiosParamCreator = function (configuration) {
|
|
|
85
85
|
queryParameters: localVarQueryParameter,
|
|
86
86
|
requestConfig: localVarRequestOptions,
|
|
87
87
|
path: localVarPath,
|
|
88
|
-
configuration
|
|
88
|
+
configuration,
|
|
89
|
+
pathTemplate: '/accounts/{accountId}/orders/cancel',
|
|
90
|
+
httpMethod: 'POST'
|
|
89
91
|
});
|
|
90
92
|
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(tradingCancelUserAccountOrderRequest, localVarRequestOptions, configuration);
|
|
91
93
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -140,7 +142,9 @@ const TradingApiAxiosParamCreator = function (configuration) {
|
|
|
140
142
|
queryParameters: localVarQueryParameter,
|
|
141
143
|
requestConfig: localVarRequestOptions,
|
|
142
144
|
path: localVarPath,
|
|
143
|
-
configuration
|
|
145
|
+
configuration,
|
|
146
|
+
pathTemplate: '/trade/impact',
|
|
147
|
+
httpMethod: 'POST'
|
|
144
148
|
});
|
|
145
149
|
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(manualTradeForm, localVarRequestOptions, configuration);
|
|
146
150
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -204,7 +208,9 @@ const TradingApiAxiosParamCreator = function (configuration) {
|
|
|
204
208
|
queryParameters: localVarQueryParameter,
|
|
205
209
|
requestConfig: localVarRequestOptions,
|
|
206
210
|
path: localVarPath,
|
|
207
|
-
configuration
|
|
211
|
+
configuration,
|
|
212
|
+
pathTemplate: '/accounts/{accountId}/quotes',
|
|
213
|
+
httpMethod: 'GET'
|
|
208
214
|
});
|
|
209
215
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
210
216
|
return {
|
|
@@ -258,7 +264,9 @@ const TradingApiAxiosParamCreator = function (configuration) {
|
|
|
258
264
|
queryParameters: localVarQueryParameter,
|
|
259
265
|
requestConfig: localVarRequestOptions,
|
|
260
266
|
path: localVarPath,
|
|
261
|
-
configuration
|
|
267
|
+
configuration,
|
|
268
|
+
pathTemplate: '/trade/place',
|
|
269
|
+
httpMethod: 'POST'
|
|
262
270
|
});
|
|
263
271
|
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(manualTradeForm, localVarRequestOptions, configuration);
|
|
264
272
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -314,7 +322,9 @@ const TradingApiAxiosParamCreator = function (configuration) {
|
|
|
314
322
|
queryParameters: localVarQueryParameter,
|
|
315
323
|
requestConfig: localVarRequestOptions,
|
|
316
324
|
path: localVarPath,
|
|
317
|
-
configuration
|
|
325
|
+
configuration,
|
|
326
|
+
pathTemplate: '/trade/oco',
|
|
327
|
+
httpMethod: 'POST'
|
|
318
328
|
});
|
|
319
329
|
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(tradingPlaceOCOOrderRequest, localVarRequestOptions, configuration);
|
|
320
330
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -371,7 +381,9 @@ const TradingApiAxiosParamCreator = function (configuration) {
|
|
|
371
381
|
queryParameters: localVarQueryParameter,
|
|
372
382
|
requestConfig: localVarRequestOptions,
|
|
373
383
|
path: localVarPath,
|
|
374
|
-
configuration
|
|
384
|
+
configuration,
|
|
385
|
+
pathTemplate: '/trade/{tradeId}',
|
|
386
|
+
httpMethod: 'POST'
|
|
375
387
|
});
|
|
376
388
|
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(validatedTradeBody, localVarRequestOptions, configuration);
|
|
377
389
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -100,7 +100,9 @@ const TransactionsAndReportingApiAxiosParamCreator = function (configuration) {
|
|
|
100
100
|
queryParameters: localVarQueryParameter,
|
|
101
101
|
requestConfig: localVarRequestOptions,
|
|
102
102
|
path: localVarPath,
|
|
103
|
-
configuration
|
|
103
|
+
configuration,
|
|
104
|
+
pathTemplate: '/activities',
|
|
105
|
+
httpMethod: 'GET'
|
|
104
106
|
});
|
|
105
107
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
106
108
|
return {
|
|
@@ -178,7 +180,9 @@ const TransactionsAndReportingApiAxiosParamCreator = function (configuration) {
|
|
|
178
180
|
queryParameters: localVarQueryParameter,
|
|
179
181
|
requestConfig: localVarRequestOptions,
|
|
180
182
|
path: localVarPath,
|
|
181
|
-
configuration
|
|
183
|
+
configuration,
|
|
184
|
+
pathTemplate: '/performance/custom',
|
|
185
|
+
httpMethod: 'GET'
|
|
182
186
|
});
|
|
183
187
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
184
188
|
return {
|