snaptrade-typescript-sdk 6.2.0 → 6.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.konfig/generate-id.txt +1 -1
- package/README.md +12 -24
- package/api/account-information-api-custom.ts +3 -0
- package/api/account-information-api.ts +42 -73
- package/api/api-disclaimer-api-custom.ts +3 -0
- package/api/api-disclaimer-api.ts +9 -11
- package/api/api-status-api-custom.ts +3 -0
- package/api/api-status-api.ts +6 -6
- package/api/authentication-api-custom.ts +3 -0
- package/api/authentication-api.ts +31 -48
- package/api/connections-api-custom.ts +3 -0
- package/api/connections-api.ts +128 -27
- package/api/error-logs-api-custom.ts +3 -0
- package/api/error-logs-api.ts +7 -10
- package/api/options-api-custom.ts +3 -0
- package/api/options-api.ts +31 -48
- package/api/portfolio-management-api-custom.ts +3 -0
- package/api/portfolio-management-api.ts +183 -306
- package/api/reference-data-api-custom.ts +3 -0
- package/api/reference-data-api.ts +61 -102
- package/api/trading-api-custom.ts +3 -0
- package/api/trading-api.ts +62 -96
- package/api/transactions-and-reporting-api-custom.ts +3 -0
- package/api/transactions-and-reporting-api.ts +26 -21
- package/client-custom.ts +5 -0
- package/client.ts +3 -1
- package/common.ts +9 -4
- package/configuration.ts +3 -2
- package/dist/api/account-information-api-custom.d.ts +3 -0
- package/dist/api/account-information-api-custom.js +27 -0
- package/dist/api/account-information-api.d.ts +3 -2
- package/dist/api/account-information-api.js +2 -1
- package/dist/api/api-disclaimer-api-custom.d.ts +3 -0
- package/dist/api/api-disclaimer-api-custom.js +27 -0
- package/dist/api/api-disclaimer-api.d.ts +3 -2
- package/dist/api/api-disclaimer-api.js +4 -2
- package/dist/api/api-status-api-custom.d.ts +3 -0
- package/dist/api/api-status-api-custom.js +27 -0
- package/dist/api/api-status-api.d.ts +3 -2
- package/dist/api/api-status-api.js +2 -1
- package/dist/api/authentication-api-custom.d.ts +3 -0
- package/dist/api/authentication-api-custom.js +27 -0
- package/dist/api/authentication-api.d.ts +3 -2
- package/dist/api/authentication-api.js +6 -3
- package/dist/api/connections-api-custom.d.ts +3 -0
- package/dist/api/connections-api-custom.js +27 -0
- package/dist/api/connections-api.d.ts +57 -2
- package/dist/api/connections-api.js +111 -1
- package/dist/api/error-logs-api-custom.d.ts +3 -0
- package/dist/api/error-logs-api-custom.js +27 -0
- package/dist/api/error-logs-api.d.ts +3 -2
- package/dist/api/error-logs-api.js +2 -1
- package/dist/api/options-api-custom.d.ts +3 -0
- package/dist/api/options-api-custom.js +27 -0
- package/dist/api/options-api.d.ts +3 -2
- package/dist/api/options-api.js +6 -3
- package/dist/api/portfolio-management-api-custom.d.ts +3 -0
- package/dist/api/portfolio-management-api-custom.js +27 -0
- package/dist/api/portfolio-management-api.d.ts +3 -2
- package/dist/api/portfolio-management-api.js +18 -9
- package/dist/api/reference-data-api-custom.d.ts +3 -0
- package/dist/api/reference-data-api-custom.js +27 -0
- package/dist/api/reference-data-api.d.ts +3 -2
- package/dist/api/reference-data-api.js +6 -3
- package/dist/api/trading-api-custom.d.ts +3 -0
- package/dist/api/trading-api-custom.js +27 -0
- package/dist/api/trading-api.d.ts +3 -2
- package/dist/api/trading-api.js +12 -6
- package/dist/api/transactions-and-reporting-api-custom.d.ts +3 -0
- package/dist/api/transactions-and-reporting-api-custom.js +27 -0
- package/dist/api/transactions-and-reporting-api.d.ts +11 -3
- package/dist/api/transactions-and-reporting-api.js +8 -3
- package/dist/client-custom.d.ts +4 -0
- package/dist/client-custom.js +9 -0
- package/dist/client.d.ts +2 -1
- package/dist/client.js +32 -13
- package/dist/common.d.ts +2 -1
- package/dist/common.js +12 -10
- package/dist/configuration.js +3 -2
- package/dist/models/connections-session-events200-response-inner.d.ts +17 -0
- package/dist/models/connections-session-events200-response-inner.js +15 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/session-event.d.ts +59 -0
- package/dist/models/session-event.js +25 -0
- package/dist/models/symbol.d.ts +6 -0
- package/dist/requestBeforeHook.d.ts +1 -0
- package/docs/ConnectionsApi.md +55 -0
- package/docs/TransactionsAndReportingApi.md +2 -0
- package/models/connections-session-events200-response-inner.ts +25 -0
- package/models/index.ts +2 -0
- package/models/session-event.ts +68 -0
- package/models/symbol.ts +6 -0
- package/package.json +1 -1
- package/requestBeforeHook.ts +1 -0
package/.konfig/generate-id.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
ef1bca40-b1e0-4bee-a0fc-3ad6bf8353b5
|
package/README.md
CHANGED
|
@@ -1,36 +1,24 @@
|
|
|
1
|
-
## snaptrade-typescript-sdk@6.
|
|
1
|
+
## snaptrade-typescript-sdk@6.4.0
|
|
2
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
2
3
|
|
|
3
|
-
This library that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* Webpack
|
|
8
|
-
* Browserify
|
|
5
|
+
**Important note: this library is can be used in both the client-side or server-side, but using it
|
|
6
|
+
in client-side browser code is not recommended as you would expose security credentials.**
|
|
9
7
|
|
|
10
|
-
|
|
11
|
-
* ES5 - you must have a Promises/A+ library installed
|
|
12
|
-
* ES6
|
|
8
|
+
### Installing
|
|
13
9
|
|
|
14
|
-
|
|
15
|
-
* CommonJS
|
|
16
|
-
* ES6 module system
|
|
17
|
-
|
|
18
|
-
### Building
|
|
19
|
-
|
|
20
|
-
To build and compile the typescript sources to javascript use:
|
|
10
|
+
#### npm
|
|
21
11
|
```
|
|
22
|
-
npm install
|
|
23
|
-
npm run build
|
|
12
|
+
npm install snaptrade-typescript-sdk --save
|
|
24
13
|
```
|
|
25
14
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
navigate to the folder of your consuming project and run the following command.
|
|
29
|
-
|
|
15
|
+
#### yarn
|
|
30
16
|
```
|
|
31
|
-
|
|
17
|
+
yarn add snaptrade-typescript-sdk
|
|
32
18
|
```
|
|
33
19
|
|
|
20
|
+
|
|
21
|
+
|
|
34
22
|
### Getting Started
|
|
35
23
|
|
|
36
24
|
```typescript
|
|
@@ -133,6 +121,7 @@ Class | Method | HTTP request | Description
|
|
|
133
121
|
*ConnectionsApi* | [**detailBrokerageAuthorization**](docs/ConnectionsApi.md#detailBrokerageAuthorization) | **GET** /authorizations/{authorizationId} | Get detail of a specific brokerage authorizations for the user
|
|
134
122
|
*ConnectionsApi* | [**listBrokerageAuthorizations**](docs/ConnectionsApi.md#listBrokerageAuthorizations) | **GET** /authorizations | List all brokerage authorizations for the user
|
|
135
123
|
*ConnectionsApi* | [**removeBrokerageAuthorization**](docs/ConnectionsApi.md#removeBrokerageAuthorization) | **DELETE** /authorizations/{authorizationId} | Remove a brokerage authorization.
|
|
124
|
+
*ConnectionsApi* | [**sessionEvents**](docs/ConnectionsApi.md#sessionEvents) | **GET** /sessionEvents | List all session events for the partner
|
|
136
125
|
*ErrorLogsApi* | [**listUserErrors**](docs/ErrorLogsApi.md#listUserErrors) | **GET** /snapTrade/listUserErrors | Retrieve error logs on behalf of your SnapTrade users
|
|
137
126
|
*OptionsApi* | [**getOptionStrategy**](docs/OptionsApi.md#getOptionStrategy) | **POST** /accounts/{accountId}/optionStrategy | Creates an option strategy object that will be used to place an option strategy order
|
|
138
127
|
*OptionsApi* | [**getOptionsChain**](docs/OptionsApi.md#getOptionsChain) | **GET** /accounts/{accountId}/optionsChain | Get the options chain
|
|
@@ -196,4 +185,3 @@ Class | Method | HTTP request | Description
|
|
|
196
185
|
*TransactionsAndReportingApi* | [**getActivities**](docs/TransactionsAndReportingApi.md#getActivities) | **GET** /activities | Get transaction history for a user
|
|
197
186
|
*TransactionsAndReportingApi* | [**getReportingCustomRange**](docs/TransactionsAndReportingApi.md#getReportingCustomRange) | **GET** /performance/custom | Get performance information for a specific timeframe
|
|
198
187
|
|
|
199
|
-
|
|
@@ -35,6 +35,7 @@ import { Model403FailedRequestResponse } from '../models';
|
|
|
35
35
|
import { Position } from '../models';
|
|
36
36
|
import { paginate } from "../pagination/paginate";
|
|
37
37
|
import { requestBeforeHook } from '../requestBeforeHook';
|
|
38
|
+
import { AccountInformationApiCustom } from "./account-information-api-custom";
|
|
38
39
|
/**
|
|
39
40
|
* AccountInformationApi - axios parameter creator
|
|
40
41
|
* @export
|
|
@@ -69,13 +70,10 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
69
70
|
|
|
70
71
|
// authentication PartnerClientId required
|
|
71
72
|
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
72
|
-
|
|
73
73
|
// authentication PartnerSignature required
|
|
74
|
-
await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
|
|
75
|
-
|
|
74
|
+
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
76
75
|
// authentication PartnerTimestamp required
|
|
77
76
|
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
78
|
-
|
|
79
77
|
if (userId !== undefined) {
|
|
80
78
|
localVarQueryParameter['userId'] = userId;
|
|
81
79
|
}
|
|
@@ -92,12 +90,11 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
92
90
|
|
|
93
91
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
94
92
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
95
|
-
|
|
96
93
|
requestBeforeHook({
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
94
|
+
queryParameters: localVarQueryParameter,
|
|
95
|
+
requestConfig: localVarRequestOptions,
|
|
96
|
+
path: localVarPath,
|
|
97
|
+
configuration
|
|
101
98
|
});
|
|
102
99
|
|
|
103
100
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -137,13 +134,10 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
137
134
|
|
|
138
135
|
// authentication PartnerClientId required
|
|
139
136
|
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
140
|
-
|
|
141
137
|
// authentication PartnerSignature required
|
|
142
|
-
await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
|
|
143
|
-
|
|
138
|
+
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
144
139
|
// authentication PartnerTimestamp required
|
|
145
140
|
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
146
|
-
|
|
147
141
|
if (userId !== undefined) {
|
|
148
142
|
localVarQueryParameter['userId'] = userId;
|
|
149
143
|
}
|
|
@@ -156,12 +150,11 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
156
150
|
|
|
157
151
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
158
152
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
159
|
-
|
|
160
153
|
requestBeforeHook({
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
154
|
+
queryParameters: localVarQueryParameter,
|
|
155
|
+
requestConfig: localVarRequestOptions,
|
|
156
|
+
path: localVarPath,
|
|
157
|
+
configuration
|
|
165
158
|
});
|
|
166
159
|
|
|
167
160
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -201,13 +194,10 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
201
194
|
|
|
202
195
|
// authentication PartnerClientId required
|
|
203
196
|
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
204
|
-
|
|
205
197
|
// authentication PartnerSignature required
|
|
206
|
-
await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
|
|
207
|
-
|
|
198
|
+
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
208
199
|
// authentication PartnerTimestamp required
|
|
209
200
|
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
210
|
-
|
|
211
201
|
if (userId !== undefined) {
|
|
212
202
|
localVarQueryParameter['userId'] = userId;
|
|
213
203
|
}
|
|
@@ -220,12 +210,11 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
220
210
|
|
|
221
211
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
222
212
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
223
|
-
|
|
224
213
|
requestBeforeHook({
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
214
|
+
queryParameters: localVarQueryParameter,
|
|
215
|
+
requestConfig: localVarRequestOptions,
|
|
216
|
+
path: localVarPath,
|
|
217
|
+
configuration
|
|
229
218
|
});
|
|
230
219
|
|
|
231
220
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -266,13 +255,10 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
266
255
|
|
|
267
256
|
// authentication PartnerClientId required
|
|
268
257
|
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
269
|
-
|
|
270
258
|
// authentication PartnerSignature required
|
|
271
|
-
await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
|
|
272
|
-
|
|
259
|
+
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
273
260
|
// authentication PartnerTimestamp required
|
|
274
261
|
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
275
|
-
|
|
276
262
|
if (userId !== undefined) {
|
|
277
263
|
localVarQueryParameter['userId'] = userId;
|
|
278
264
|
}
|
|
@@ -289,12 +275,11 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
289
275
|
|
|
290
276
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
291
277
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
292
|
-
|
|
293
278
|
requestBeforeHook({
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
279
|
+
queryParameters: localVarQueryParameter,
|
|
280
|
+
requestConfig: localVarRequestOptions,
|
|
281
|
+
path: localVarPath,
|
|
282
|
+
configuration
|
|
298
283
|
});
|
|
299
284
|
|
|
300
285
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -334,13 +319,10 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
334
319
|
|
|
335
320
|
// authentication PartnerClientId required
|
|
336
321
|
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
337
|
-
|
|
338
322
|
// authentication PartnerSignature required
|
|
339
|
-
await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
|
|
340
|
-
|
|
323
|
+
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
341
324
|
// authentication PartnerTimestamp required
|
|
342
325
|
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
343
|
-
|
|
344
326
|
if (userId !== undefined) {
|
|
345
327
|
localVarQueryParameter['userId'] = userId;
|
|
346
328
|
}
|
|
@@ -353,12 +335,11 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
353
335
|
|
|
354
336
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
355
337
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
356
|
-
|
|
357
338
|
requestBeforeHook({
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
339
|
+
queryParameters: localVarQueryParameter,
|
|
340
|
+
requestConfig: localVarRequestOptions,
|
|
341
|
+
path: localVarPath,
|
|
342
|
+
configuration
|
|
362
343
|
});
|
|
363
344
|
|
|
364
345
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -398,13 +379,10 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
398
379
|
|
|
399
380
|
// authentication PartnerClientId required
|
|
400
381
|
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
401
|
-
|
|
402
382
|
// authentication PartnerSignature required
|
|
403
|
-
await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
|
|
404
|
-
|
|
383
|
+
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
405
384
|
// authentication PartnerTimestamp required
|
|
406
385
|
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
407
|
-
|
|
408
386
|
if (userId !== undefined) {
|
|
409
387
|
localVarQueryParameter['userId'] = userId;
|
|
410
388
|
}
|
|
@@ -417,12 +395,11 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
417
395
|
|
|
418
396
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
419
397
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
420
|
-
|
|
421
398
|
requestBeforeHook({
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
399
|
+
queryParameters: localVarQueryParameter,
|
|
400
|
+
requestConfig: localVarRequestOptions,
|
|
401
|
+
path: localVarPath,
|
|
402
|
+
configuration
|
|
426
403
|
});
|
|
427
404
|
|
|
428
405
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -458,13 +435,10 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
458
435
|
|
|
459
436
|
// authentication PartnerClientId required
|
|
460
437
|
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
461
|
-
|
|
462
438
|
// authentication PartnerSignature required
|
|
463
|
-
await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
|
|
464
|
-
|
|
439
|
+
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
465
440
|
// authentication PartnerTimestamp required
|
|
466
441
|
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
467
|
-
|
|
468
442
|
if (userId !== undefined) {
|
|
469
443
|
localVarQueryParameter['userId'] = userId;
|
|
470
444
|
}
|
|
@@ -477,12 +451,11 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
477
451
|
|
|
478
452
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
479
453
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
480
|
-
|
|
481
454
|
requestBeforeHook({
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
455
|
+
queryParameters: localVarQueryParameter,
|
|
456
|
+
requestConfig: localVarRequestOptions,
|
|
457
|
+
path: localVarPath,
|
|
458
|
+
configuration
|
|
486
459
|
});
|
|
487
460
|
|
|
488
461
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -522,13 +495,10 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
522
495
|
|
|
523
496
|
// authentication PartnerClientId required
|
|
524
497
|
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
525
|
-
|
|
526
498
|
// authentication PartnerSignature required
|
|
527
|
-
await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
|
|
528
|
-
|
|
499
|
+
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
529
500
|
// authentication PartnerTimestamp required
|
|
530
501
|
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
531
|
-
|
|
532
502
|
if (userId !== undefined) {
|
|
533
503
|
localVarQueryParameter['userId'] = userId;
|
|
534
504
|
}
|
|
@@ -541,12 +511,11 @@ export const AccountInformationApiAxiosParamCreator = function (configuration?:
|
|
|
541
511
|
|
|
542
512
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
543
513
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
544
|
-
|
|
545
514
|
requestBeforeHook({
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
515
|
+
queryParameters: localVarQueryParameter,
|
|
516
|
+
requestConfig: localVarRequestOptions,
|
|
517
|
+
path: localVarPath,
|
|
518
|
+
configuration
|
|
550
519
|
});
|
|
551
520
|
|
|
552
521
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -992,7 +961,7 @@ export type AccountInformationApiUpdateUserAccountRequest = {
|
|
|
992
961
|
* @class AccountInformationApi
|
|
993
962
|
* @extends {BaseAPI}
|
|
994
963
|
*/
|
|
995
|
-
export class AccountInformationApi extends
|
|
964
|
+
export class AccountInformationApi extends AccountInformationApiCustom {
|
|
996
965
|
/**
|
|
997
966
|
*
|
|
998
967
|
* @summary List all accounts for the user, plus balances and positions for each account.
|
|
@@ -25,6 +25,7 @@ import { APIDisclaimerAcceptRequest } from '../models';
|
|
|
25
25
|
import { SnapTradeAPIDisclaimerAcceptStatus } from '../models';
|
|
26
26
|
import { paginate } from "../pagination/paginate";
|
|
27
27
|
import { requestBeforeHook } from '../requestBeforeHook';
|
|
28
|
+
import { ApiDisclaimerApiCustom } from "./api-disclaimer-api-custom";
|
|
28
29
|
/**
|
|
29
30
|
* ApiDisclaimerApi - axios parameter creator
|
|
30
31
|
* @export
|
|
@@ -61,13 +62,10 @@ export const ApiDisclaimerApiAxiosParamCreator = function (configuration?: Confi
|
|
|
61
62
|
|
|
62
63
|
// authentication PartnerClientId required
|
|
63
64
|
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
64
|
-
|
|
65
65
|
// authentication PartnerSignature required
|
|
66
|
-
await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
|
|
67
|
-
|
|
66
|
+
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
68
67
|
// authentication PartnerTimestamp required
|
|
69
68
|
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
70
|
-
|
|
71
69
|
if (userId !== undefined) {
|
|
72
70
|
localVarQueryParameter['userId'] = userId;
|
|
73
71
|
}
|
|
@@ -82,14 +80,14 @@ export const ApiDisclaimerApiAxiosParamCreator = function (configuration?: Confi
|
|
|
82
80
|
|
|
83
81
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
84
82
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
85
|
-
localVarRequestOptions.data = serializeDataIfNeeded(aPIDisclaimerAcceptRequest, localVarRequestOptions, configuration)
|
|
86
|
-
|
|
87
83
|
requestBeforeHook({
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
84
|
+
requestBody: aPIDisclaimerAcceptRequest,
|
|
85
|
+
queryParameters: localVarQueryParameter,
|
|
86
|
+
requestConfig: localVarRequestOptions,
|
|
87
|
+
path: localVarPath,
|
|
88
|
+
configuration
|
|
92
89
|
});
|
|
90
|
+
localVarRequestOptions.data = serializeDataIfNeeded(aPIDisclaimerAcceptRequest, localVarRequestOptions, configuration)
|
|
93
91
|
|
|
94
92
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
95
93
|
return {
|
|
@@ -170,7 +168,7 @@ export type ApiDisclaimerApiAcceptRequest = {
|
|
|
170
168
|
* @class ApiDisclaimerApi
|
|
171
169
|
* @extends {BaseAPI}
|
|
172
170
|
*/
|
|
173
|
-
export class ApiDisclaimerApi extends
|
|
171
|
+
export class ApiDisclaimerApi extends ApiDisclaimerApiCustom {
|
|
174
172
|
/**
|
|
175
173
|
*
|
|
176
174
|
* @summary Accept or Reject SnapTrade disclaimer agreement
|
package/api/api-status-api.ts
CHANGED
|
@@ -23,6 +23,7 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
23
23
|
import { Status } from '../models';
|
|
24
24
|
import { paginate } from "../pagination/paginate";
|
|
25
25
|
import { requestBeforeHook } from '../requestBeforeHook';
|
|
26
|
+
import { ApiStatusApiCustom } from "./api-status-api-custom";
|
|
26
27
|
/**
|
|
27
28
|
* ApiStatusApi - axios parameter creator
|
|
28
29
|
* @export
|
|
@@ -52,12 +53,11 @@ export const ApiStatusApiAxiosParamCreator = function (configuration?: Configura
|
|
|
52
53
|
|
|
53
54
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
54
55
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
55
|
-
|
|
56
56
|
requestBeforeHook({
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
queryParameters: localVarQueryParameter,
|
|
58
|
+
requestConfig: localVarRequestOptions,
|
|
59
|
+
path: localVarPath,
|
|
60
|
+
configuration
|
|
61
61
|
});
|
|
62
62
|
|
|
63
63
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -114,7 +114,7 @@ export const ApiStatusApiFactory = function (configuration?: Configuration, base
|
|
|
114
114
|
* @class ApiStatusApi
|
|
115
115
|
* @extends {BaseAPI}
|
|
116
116
|
*/
|
|
117
|
-
export class ApiStatusApi extends
|
|
117
|
+
export class ApiStatusApi extends ApiStatusApiCustom {
|
|
118
118
|
/**
|
|
119
119
|
* Check whether the API is operational and verify timestamps.
|
|
120
120
|
* @summary Get API Status
|
|
@@ -39,6 +39,7 @@ import { SnapTradeRegisterUserRequestBody } from '../models';
|
|
|
39
39
|
import { UserIDandSecret } from '../models';
|
|
40
40
|
import { paginate } from "../pagination/paginate";
|
|
41
41
|
import { requestBeforeHook } from '../requestBeforeHook';
|
|
42
|
+
import { AuthenticationApiCustom } from "./authentication-api-custom";
|
|
42
43
|
/**
|
|
43
44
|
* AuthenticationApi - axios parameter creator
|
|
44
45
|
* @export
|
|
@@ -69,13 +70,10 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
|
|
|
69
70
|
|
|
70
71
|
// authentication PartnerClientId required
|
|
71
72
|
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
72
|
-
|
|
73
73
|
// authentication PartnerSignature required
|
|
74
|
-
await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
|
|
75
|
-
|
|
74
|
+
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
76
75
|
// authentication PartnerTimestamp required
|
|
77
76
|
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
78
|
-
|
|
79
77
|
if (userId !== undefined) {
|
|
80
78
|
localVarQueryParameter['userId'] = userId;
|
|
81
79
|
}
|
|
@@ -84,12 +82,11 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
|
|
|
84
82
|
|
|
85
83
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
86
84
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
87
|
-
|
|
88
85
|
requestBeforeHook({
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
86
|
+
queryParameters: localVarQueryParameter,
|
|
87
|
+
requestConfig: localVarRequestOptions,
|
|
88
|
+
path: localVarPath,
|
|
89
|
+
configuration
|
|
93
90
|
});
|
|
94
91
|
|
|
95
92
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -125,13 +122,10 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
|
|
|
125
122
|
|
|
126
123
|
// authentication PartnerClientId required
|
|
127
124
|
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
128
|
-
|
|
129
125
|
// authentication PartnerSignature required
|
|
130
|
-
await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
|
|
131
|
-
|
|
126
|
+
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
132
127
|
// authentication PartnerTimestamp required
|
|
133
128
|
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
134
|
-
|
|
135
129
|
if (userId !== undefined) {
|
|
136
130
|
localVarQueryParameter['userId'] = userId;
|
|
137
131
|
}
|
|
@@ -144,12 +138,11 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
|
|
|
144
138
|
|
|
145
139
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
146
140
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
147
|
-
|
|
148
141
|
requestBeforeHook({
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
142
|
+
queryParameters: localVarQueryParameter,
|
|
143
|
+
requestConfig: localVarRequestOptions,
|
|
144
|
+
path: localVarPath,
|
|
145
|
+
configuration
|
|
153
146
|
});
|
|
154
147
|
|
|
155
148
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -179,23 +172,19 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
|
|
|
179
172
|
|
|
180
173
|
// authentication PartnerClientId required
|
|
181
174
|
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
182
|
-
|
|
183
175
|
// authentication PartnerSignature required
|
|
184
|
-
await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
|
|
185
|
-
|
|
176
|
+
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
186
177
|
// authentication PartnerTimestamp required
|
|
187
178
|
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
188
179
|
|
|
189
|
-
|
|
190
180
|
|
|
191
181
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
192
182
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
193
|
-
|
|
194
183
|
requestBeforeHook({
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
184
|
+
queryParameters: localVarQueryParameter,
|
|
185
|
+
requestConfig: localVarRequestOptions,
|
|
186
|
+
path: localVarPath,
|
|
187
|
+
configuration
|
|
199
188
|
});
|
|
200
189
|
|
|
201
190
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -232,13 +221,10 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
|
|
|
232
221
|
|
|
233
222
|
// authentication PartnerClientId required
|
|
234
223
|
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
235
|
-
|
|
236
224
|
// authentication PartnerSignature required
|
|
237
|
-
await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
|
|
238
|
-
|
|
225
|
+
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
239
226
|
// authentication PartnerTimestamp required
|
|
240
227
|
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
241
|
-
|
|
242
228
|
if (userId !== undefined) {
|
|
243
229
|
localVarQueryParameter['userId'] = userId;
|
|
244
230
|
}
|
|
@@ -253,14 +239,14 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
|
|
|
253
239
|
|
|
254
240
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
255
241
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
256
|
-
localVarRequestOptions.data = serializeDataIfNeeded(snapTradeLoginUserRequestBody, localVarRequestOptions, configuration)
|
|
257
|
-
|
|
258
242
|
requestBeforeHook({
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
243
|
+
requestBody: snapTradeLoginUserRequestBody,
|
|
244
|
+
queryParameters: localVarQueryParameter,
|
|
245
|
+
requestConfig: localVarRequestOptions,
|
|
246
|
+
path: localVarPath,
|
|
247
|
+
configuration
|
|
263
248
|
});
|
|
249
|
+
localVarRequestOptions.data = serializeDataIfNeeded(snapTradeLoginUserRequestBody, localVarRequestOptions, configuration)
|
|
264
250
|
|
|
265
251
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
266
252
|
return {
|
|
@@ -292,27 +278,24 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
|
|
|
292
278
|
|
|
293
279
|
// authentication PartnerClientId required
|
|
294
280
|
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
295
|
-
|
|
296
281
|
// authentication PartnerSignature required
|
|
297
|
-
await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
|
|
298
|
-
|
|
282
|
+
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
299
283
|
// authentication PartnerTimestamp required
|
|
300
284
|
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
301
285
|
|
|
302
|
-
|
|
303
286
|
|
|
304
287
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
305
288
|
|
|
306
289
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
307
290
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
308
|
-
localVarRequestOptions.data = serializeDataIfNeeded(snapTradeRegisterUserRequestBody, localVarRequestOptions, configuration)
|
|
309
|
-
|
|
310
291
|
requestBeforeHook({
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
292
|
+
requestBody: snapTradeRegisterUserRequestBody,
|
|
293
|
+
queryParameters: localVarQueryParameter,
|
|
294
|
+
requestConfig: localVarRequestOptions,
|
|
295
|
+
path: localVarPath,
|
|
296
|
+
configuration
|
|
315
297
|
});
|
|
298
|
+
localVarRequestOptions.data = serializeDataIfNeeded(snapTradeRegisterUserRequestBody, localVarRequestOptions, configuration)
|
|
316
299
|
|
|
317
300
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
318
301
|
return {
|
|
@@ -523,7 +506,7 @@ export type AuthenticationApiRegisterSnapTradeUserRequest = {
|
|
|
523
506
|
* @class AuthenticationApi
|
|
524
507
|
* @extends {BaseAPI}
|
|
525
508
|
*/
|
|
526
|
-
export class AuthenticationApi extends
|
|
509
|
+
export class AuthenticationApi extends AuthenticationApiCustom {
|
|
527
510
|
/**
|
|
528
511
|
*
|
|
529
512
|
* @summary Delete user from SnapTrade, disabling all brokerage authorizations and permanently deleting all data associated with the user
|