snaptrade-typescript-sdk 9.0.2 → 9.0.4
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 +4 -4
- package/dist/api/account-information-api-generated.js +24 -24
- package/dist/api/authentication-api-generated.js +18 -18
- package/dist/api/connections-api-generated.js +12 -12
- package/dist/api/error-logs-api-generated.js +3 -3
- package/dist/api/options-api-generated.js +15 -15
- package/dist/api/reference-data-api-generated.js +33 -33
- package/dist/api/trading-api-generated.d.ts +4 -0
- package/dist/api/trading-api-generated.js +22 -18
- package/dist/api/transactions-and-reporting-api-generated.js +6 -6
- package/dist/browser.js +1 -1
- package/dist/common.d.ts +4 -4
- package/dist/configuration.js +2 -2
- package/dist/error.d.ts +5 -5
- package/dist/error.js +5 -5
- package/dist/requestAfterHook.js +1 -1
- package/package.json +5 -2
|
@@ -62,6 +62,7 @@ export declare const TradingApiAxiosParamCreator: (configuration?: Configuration
|
|
|
62
62
|
* @param {string} userSecret
|
|
63
63
|
* @param {TradingPlaceOCOOrderRequest} tradingPlaceOCOOrderRequest
|
|
64
64
|
* @param {*} [options] Override http request option.
|
|
65
|
+
* @deprecated
|
|
65
66
|
* @throws {RequiredError}
|
|
66
67
|
*/
|
|
67
68
|
placeOCOOrder: (userId: string, userSecret: string, tradingPlaceOCOOrderRequest: TradingPlaceOCOOrderRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
@@ -118,6 +119,7 @@ export declare const TradingApiFp: (configuration?: Configuration) => {
|
|
|
118
119
|
* @summary Place a OCO (One Cancels Other) order
|
|
119
120
|
* @param {TradingApiPlaceOCOOrderRequest} requestParameters Request parameters.
|
|
120
121
|
* @param {*} [options] Override http request option.
|
|
122
|
+
* @deprecated
|
|
121
123
|
* @throws {RequiredError}
|
|
122
124
|
*/
|
|
123
125
|
placeOCOOrder(requestParameters: TradingApiPlaceOCOOrderRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountOrderRecord>>;
|
|
@@ -172,6 +174,7 @@ export declare const TradingApiFactory: (configuration?: Configuration, basePath
|
|
|
172
174
|
* @summary Place a OCO (One Cancels Other) order
|
|
173
175
|
* @param {TradingApiPlaceOCOOrderRequest} requestParameters Request parameters.
|
|
174
176
|
* @param {*} [options] Override http request option.
|
|
177
|
+
* @deprecated
|
|
175
178
|
* @throws {RequiredError}
|
|
176
179
|
*/
|
|
177
180
|
placeOCOOrder(requestParameters: TradingApiPlaceOCOOrderRequest, options?: AxiosRequestConfig): AxiosPromise<AccountOrderRecord>;
|
|
@@ -376,6 +379,7 @@ export declare class TradingApiGenerated extends BaseAPI {
|
|
|
376
379
|
* @summary Place a OCO (One Cancels Other) order
|
|
377
380
|
* @param {TradingApiPlaceOCOOrderRequest} requestParameters Request parameters.
|
|
378
381
|
* @param {*} [options] Override http request option.
|
|
382
|
+
* @deprecated
|
|
379
383
|
* @throws {RequiredError}
|
|
380
384
|
* @memberof TradingApiGenerated
|
|
381
385
|
*/
|
|
@@ -66,11 +66,11 @@ const TradingApiAxiosParamCreator = function (configuration) {
|
|
|
66
66
|
const localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
67
67
|
const localVarQueryParameter = {};
|
|
68
68
|
// authentication PartnerClientId required
|
|
69
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration });
|
|
69
|
+
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "clientId", keyParamName: "clientId", configuration });
|
|
70
70
|
// authentication PartnerSignature required
|
|
71
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter,
|
|
71
|
+
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, key: "Signature", keyParamName: "signature", configuration });
|
|
72
72
|
// authentication PartnerTimestamp required
|
|
73
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration });
|
|
73
|
+
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "timestamp", keyParamName: "timestamp", configuration });
|
|
74
74
|
if (userId !== undefined) {
|
|
75
75
|
localVarQueryParameter['userId'] = userId;
|
|
76
76
|
}
|
|
@@ -121,11 +121,11 @@ const TradingApiAxiosParamCreator = function (configuration) {
|
|
|
121
121
|
const localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
122
122
|
const localVarQueryParameter = {};
|
|
123
123
|
// authentication PartnerClientId required
|
|
124
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration });
|
|
124
|
+
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "clientId", keyParamName: "clientId", configuration });
|
|
125
125
|
// authentication PartnerSignature required
|
|
126
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter,
|
|
126
|
+
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, key: "Signature", keyParamName: "signature", configuration });
|
|
127
127
|
// authentication PartnerTimestamp required
|
|
128
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration });
|
|
128
|
+
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "timestamp", keyParamName: "timestamp", configuration });
|
|
129
129
|
if (userId !== undefined) {
|
|
130
130
|
localVarQueryParameter['userId'] = userId;
|
|
131
131
|
}
|
|
@@ -181,11 +181,11 @@ const TradingApiAxiosParamCreator = function (configuration) {
|
|
|
181
181
|
const localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
182
182
|
const localVarQueryParameter = {};
|
|
183
183
|
// authentication PartnerClientId required
|
|
184
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration });
|
|
184
|
+
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "clientId", keyParamName: "clientId", configuration });
|
|
185
185
|
// authentication PartnerSignature required
|
|
186
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter,
|
|
186
|
+
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, key: "Signature", keyParamName: "signature", configuration });
|
|
187
187
|
// authentication PartnerTimestamp required
|
|
188
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration });
|
|
188
|
+
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "timestamp", keyParamName: "timestamp", configuration });
|
|
189
189
|
if (userId !== undefined) {
|
|
190
190
|
localVarQueryParameter['userId'] = userId;
|
|
191
191
|
}
|
|
@@ -239,11 +239,11 @@ const TradingApiAxiosParamCreator = function (configuration) {
|
|
|
239
239
|
const localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
240
240
|
const localVarQueryParameter = {};
|
|
241
241
|
// authentication PartnerClientId required
|
|
242
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration });
|
|
242
|
+
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "clientId", keyParamName: "clientId", configuration });
|
|
243
243
|
// authentication PartnerSignature required
|
|
244
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter,
|
|
244
|
+
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, key: "Signature", keyParamName: "signature", configuration });
|
|
245
245
|
// authentication PartnerTimestamp required
|
|
246
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration });
|
|
246
|
+
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "timestamp", keyParamName: "timestamp", configuration });
|
|
247
247
|
if (userId !== undefined) {
|
|
248
248
|
localVarQueryParameter['userId'] = userId;
|
|
249
249
|
}
|
|
@@ -274,6 +274,7 @@ const TradingApiAxiosParamCreator = function (configuration) {
|
|
|
274
274
|
* @param {string} userSecret
|
|
275
275
|
* @param {TradingPlaceOCOOrderRequest} tradingPlaceOCOOrderRequest
|
|
276
276
|
* @param {*} [options] Override http request option.
|
|
277
|
+
* @deprecated
|
|
277
278
|
* @throws {RequiredError}
|
|
278
279
|
*/
|
|
279
280
|
placeOCOOrder: (userId, userSecret, tradingPlaceOCOOrderRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -294,11 +295,11 @@ const TradingApiAxiosParamCreator = function (configuration) {
|
|
|
294
295
|
const localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
295
296
|
const localVarQueryParameter = {};
|
|
296
297
|
// authentication PartnerClientId required
|
|
297
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration });
|
|
298
|
+
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "clientId", keyParamName: "clientId", configuration });
|
|
298
299
|
// authentication PartnerSignature required
|
|
299
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter,
|
|
300
|
+
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, key: "Signature", keyParamName: "signature", configuration });
|
|
300
301
|
// authentication PartnerTimestamp required
|
|
301
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration });
|
|
302
|
+
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "timestamp", keyParamName: "timestamp", configuration });
|
|
302
303
|
if (userId !== undefined) {
|
|
303
304
|
localVarQueryParameter['userId'] = userId;
|
|
304
305
|
}
|
|
@@ -350,11 +351,11 @@ const TradingApiAxiosParamCreator = function (configuration) {
|
|
|
350
351
|
const localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
351
352
|
const localVarQueryParameter = {};
|
|
352
353
|
// authentication PartnerClientId required
|
|
353
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration });
|
|
354
|
+
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "clientId", keyParamName: "clientId", configuration });
|
|
354
355
|
// authentication PartnerSignature required
|
|
355
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter,
|
|
356
|
+
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, key: "Signature", keyParamName: "signature", configuration });
|
|
356
357
|
// authentication PartnerTimestamp required
|
|
357
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration });
|
|
358
|
+
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "timestamp", keyParamName: "timestamp", configuration });
|
|
358
359
|
if (userId !== undefined) {
|
|
359
360
|
localVarQueryParameter['userId'] = userId;
|
|
360
361
|
}
|
|
@@ -442,6 +443,7 @@ const TradingApiFp = function (configuration) {
|
|
|
442
443
|
* @summary Place a OCO (One Cancels Other) order
|
|
443
444
|
* @param {TradingApiPlaceOCOOrderRequest} requestParameters Request parameters.
|
|
444
445
|
* @param {*} [options] Override http request option.
|
|
446
|
+
* @deprecated
|
|
445
447
|
* @throws {RequiredError}
|
|
446
448
|
*/
|
|
447
449
|
placeOCOOrder(requestParameters, options) {
|
|
@@ -518,6 +520,7 @@ const TradingApiFactory = function (configuration, basePath, axios) {
|
|
|
518
520
|
* @summary Place a OCO (One Cancels Other) order
|
|
519
521
|
* @param {TradingApiPlaceOCOOrderRequest} requestParameters Request parameters.
|
|
520
522
|
* @param {*} [options] Override http request option.
|
|
523
|
+
* @deprecated
|
|
521
524
|
* @throws {RequiredError}
|
|
522
525
|
*/
|
|
523
526
|
placeOCOOrder(requestParameters, options) {
|
|
@@ -592,6 +595,7 @@ class TradingApiGenerated extends base_1.BaseAPI {
|
|
|
592
595
|
* @summary Place a OCO (One Cancels Other) order
|
|
593
596
|
* @param {TradingApiPlaceOCOOrderRequest} requestParameters Request parameters.
|
|
594
597
|
* @param {*} [options] Override http request option.
|
|
598
|
+
* @deprecated
|
|
595
599
|
* @throws {RequiredError}
|
|
596
600
|
* @memberof TradingApiGenerated
|
|
597
601
|
*/
|
|
@@ -64,11 +64,11 @@ const TransactionsAndReportingApiAxiosParamCreator = function (configuration) {
|
|
|
64
64
|
const localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
65
65
|
const localVarQueryParameter = {};
|
|
66
66
|
// authentication PartnerClientId required
|
|
67
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration });
|
|
67
|
+
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "clientId", keyParamName: "clientId", configuration });
|
|
68
68
|
// authentication PartnerSignature required
|
|
69
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter,
|
|
69
|
+
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, key: "Signature", keyParamName: "signature", configuration });
|
|
70
70
|
// authentication PartnerTimestamp required
|
|
71
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration });
|
|
71
|
+
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "timestamp", keyParamName: "timestamp", configuration });
|
|
72
72
|
if (startDate !== undefined) {
|
|
73
73
|
localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
|
|
74
74
|
startDate.toISOString().substr(0, 10) :
|
|
@@ -142,11 +142,11 @@ const TransactionsAndReportingApiAxiosParamCreator = function (configuration) {
|
|
|
142
142
|
const localVarHeaderParameter = configuration && !(0, common_1.isBrowser)() ? { "User-Agent": configuration.userAgent } : {};
|
|
143
143
|
const localVarQueryParameter = {};
|
|
144
144
|
// authentication PartnerClientId required
|
|
145
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration });
|
|
145
|
+
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "clientId", keyParamName: "clientId", configuration });
|
|
146
146
|
// authentication PartnerSignature required
|
|
147
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter,
|
|
147
|
+
yield (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, key: "Signature", keyParamName: "signature", configuration });
|
|
148
148
|
// authentication PartnerTimestamp required
|
|
149
|
-
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration });
|
|
149
|
+
yield (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, key: "timestamp", keyParamName: "timestamp", configuration });
|
|
150
150
|
if (startDate !== undefined) {
|
|
151
151
|
localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
|
|
152
152
|
startDate.toISOString().substr(0, 10) :
|