snaptrade-typescript-sdk 9.0.87 → 9.0.89

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 CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Connect brokerage accounts to your app for live positions and trading
8
8
 
9
- [![npm](https://img.shields.io/badge/npm-v9.0.87-blue)](https://www.npmjs.com/package/snaptrade-typescript-sdk/v/9.0.87)
9
+ [![npm](https://img.shields.io/badge/npm-v9.0.89-blue)](https://www.npmjs.com/package/snaptrade-typescript-sdk/v/9.0.89)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -1162,7 +1162,7 @@ Order ID returned by brokerage. This is the unique identifier for the order in t
1162
1162
 
1163
1163
  #### 🔄 Return<a id="🔄-return"></a>
1164
1164
 
1165
- [AccountOrderRecord](./models/account-order-record.ts)
1165
+ [OrderUpdatedResponse](./models/order-updated-response.ts)
1166
1166
 
1167
1167
  #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1168
1168
 
@@ -1189,7 +1189,7 @@ const cryptoSpotPlaceOrderResponse =
1189
1189
  accountId: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
1190
1190
  symbol: {
1191
1191
  base: "BTC",
1192
- quote: "BTC",
1192
+ quote: "USD",
1193
1193
  },
1194
1194
  side: "BUY",
1195
1195
  type: "MARKET",
@@ -1238,7 +1238,7 @@ The stop price. Required if the order type is STOP_LOSS_MARKET, STOP_LOSS_LIMIT,
1238
1238
 
1239
1239
  ##### post_only: `boolean`<a id="post_only-boolean"></a>
1240
1240
 
1241
- Required for order type LIMIT. If true orders that would be filled immediately are rejected to avoid incurring TAKER fees.
1241
+ Valid and required only for order type LIMIT. If true orders that would be filled immediately are rejected to avoid incurring TAKER fees.
1242
1242
 
1243
1243
  ##### expiration_date: `string`<a id="expiration_date-string"></a>
1244
1244
 
@@ -1246,7 +1246,7 @@ The expiration date of the order. Required if the time_in_force is GTD.
1246
1246
 
1247
1247
  #### 🔄 Return<a id="🔄-return"></a>
1248
1248
 
1249
- [AccountOrderRecord](./models/account-order-record.ts)
1249
+ [OrderUpdatedResponse](./models/order-updated-response.ts)
1250
1250
 
1251
1251
  #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1252
1252
 
@@ -1272,7 +1272,7 @@ const cryptoSpotPreviewOrderResponse =
1272
1272
  accountId: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
1273
1273
  symbol: {
1274
1274
  base: "BTC",
1275
- quote: "BTC",
1275
+ quote: "USD",
1276
1276
  },
1277
1277
  side: "BUY",
1278
1278
  type: "MARKET",
@@ -1321,7 +1321,7 @@ The stop price. Required if the order type is STOP_LOSS_MARKET, STOP_LOSS_LIMIT,
1321
1321
 
1322
1322
  ##### post_only: `boolean`<a id="post_only-boolean"></a>
1323
1323
 
1324
- Required for order type LIMIT. If true orders that would be filled immediately are rejected to avoid incurring TAKER fees.
1324
+ Valid and required only for order type LIMIT. If true orders that would be filled immediately are rejected to avoid incurring TAKER fees.
1325
1325
 
1326
1326
  ##### expiration_date: `string`<a id="expiration_date-string"></a>
1327
1327
 
@@ -1354,7 +1354,7 @@ const cryptoSpotQuoteResponse =
1354
1354
  userSecret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
1355
1355
  accountId: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
1356
1356
  base: "BTC",
1357
- quote: "BTC",
1357
+ quote: "USD",
1358
1358
  });
1359
1359
  ```
1360
1360
 
@@ -1397,7 +1397,7 @@ const cryptoSpotSymbolsResponse =
1397
1397
  userSecret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
1398
1398
  accountId: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
1399
1399
  base: "BTC",
1400
- quote: "BTC",
1400
+ quote: "USD",
1401
1401
  });
1402
1402
  ```
1403
1403
 
@@ -1,9 +1,9 @@
1
1
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
2
2
  import { Configuration } from '../configuration';
3
3
  import { RequestArgs, BaseAPI } from '../base';
4
- import { AccountOrderRecord } from '../models';
5
4
  import { CryptoSpotOrderPreview } from '../models';
6
5
  import { CryptoSpotQuote } from '../models';
6
+ import { OrderUpdatedResponse } from '../models';
7
7
  import { TradingCryptoSpotCancelOrderRequest } from '../models';
8
8
  import { TradingCryptoSpotPlaceOrderRequest } from '../models';
9
9
  import { TradingCryptoSpotSymbols200Response } from '../models';
@@ -36,7 +36,7 @@ export declare const CryptoSpotTradingApiAxiosParamCreator: (configuration?: Con
36
36
  cryptoSpotPlaceOrder: (userId: string, userSecret: string, accountId: string, tradingCryptoSpotPlaceOrderRequest: TradingCryptoSpotPlaceOrderRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
37
37
  /**
38
38
  * Previews a cryptocurrency spot order using the specified account.
39
- * @summary Place a spot order on a crypto exchange
39
+ * @summary Preview a crypto spot order
40
40
  * @param {string} userId
41
41
  * @param {string} userSecret
42
42
  * @param {string} accountId
@@ -47,7 +47,7 @@ export declare const CryptoSpotTradingApiAxiosParamCreator: (configuration?: Con
47
47
  cryptoSpotPreviewOrder: (userId: string, userSecret: string, accountId: string, tradingCryptoSpotPlaceOrderRequest: TradingCryptoSpotPlaceOrderRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
48
48
  /**
49
49
  * Gets a quote for the specified account.
50
- * @summary Get a quote for a cyrptocurrency market
50
+ * @summary Get a cryptocurrency spot market quote
51
51
  * @param {string} userId
52
52
  * @param {string} userSecret
53
53
  * @param {string} accountId
@@ -82,7 +82,7 @@ export declare const CryptoSpotTradingApiFp: (configuration?: Configuration) =>
82
82
  * @param {*} [options] Override http request option.
83
83
  * @throws {RequiredError}
84
84
  */
85
- cryptoSpotCancelOrder(requestParameters: CryptoSpotTradingApiCryptoSpotCancelOrderRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountOrderRecord>>;
85
+ cryptoSpotCancelOrder(requestParameters: CryptoSpotTradingApiCryptoSpotCancelOrderRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderUpdatedResponse>>;
86
86
  /**
87
87
  * Places a spot cryptocurrency order in the specified account. This endpoint does not compute the impact to the account balance from the order before submitting the order to the exchange.
88
88
  * @summary Place a spot order on a crypto exchange
@@ -90,10 +90,10 @@ export declare const CryptoSpotTradingApiFp: (configuration?: Configuration) =>
90
90
  * @param {*} [options] Override http request option.
91
91
  * @throws {RequiredError}
92
92
  */
93
- cryptoSpotPlaceOrder(requestParameters: CryptoSpotTradingApiCryptoSpotPlaceOrderRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountOrderRecord>>;
93
+ cryptoSpotPlaceOrder(requestParameters: CryptoSpotTradingApiCryptoSpotPlaceOrderRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderUpdatedResponse>>;
94
94
  /**
95
95
  * Previews a cryptocurrency spot order using the specified account.
96
- * @summary Place a spot order on a crypto exchange
96
+ * @summary Preview a crypto spot order
97
97
  * @param {CryptoSpotTradingApiCryptoSpotPreviewOrderRequest} requestParameters Request parameters.
98
98
  * @param {*} [options] Override http request option.
99
99
  * @throws {RequiredError}
@@ -101,7 +101,7 @@ export declare const CryptoSpotTradingApiFp: (configuration?: Configuration) =>
101
101
  cryptoSpotPreviewOrder(requestParameters: CryptoSpotTradingApiCryptoSpotPreviewOrderRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CryptoSpotOrderPreview>>;
102
102
  /**
103
103
  * Gets a quote for the specified account.
104
- * @summary Get a quote for a cyrptocurrency market
104
+ * @summary Get a cryptocurrency spot market quote
105
105
  * @param {CryptoSpotTradingApiCryptoSpotQuoteRequest} requestParameters Request parameters.
106
106
  * @param {*} [options] Override http request option.
107
107
  * @throws {RequiredError}
@@ -128,7 +128,7 @@ export declare const CryptoSpotTradingApiFactory: (configuration?: Configuration
128
128
  * @param {*} [options] Override http request option.
129
129
  * @throws {RequiredError}
130
130
  */
131
- cryptoSpotCancelOrder(requestParameters: CryptoSpotTradingApiCryptoSpotCancelOrderRequest, options?: AxiosRequestConfig): AxiosPromise<AccountOrderRecord>;
131
+ cryptoSpotCancelOrder(requestParameters: CryptoSpotTradingApiCryptoSpotCancelOrderRequest, options?: AxiosRequestConfig): AxiosPromise<OrderUpdatedResponse>;
132
132
  /**
133
133
  * Places a spot cryptocurrency order in the specified account. This endpoint does not compute the impact to the account balance from the order before submitting the order to the exchange.
134
134
  * @summary Place a spot order on a crypto exchange
@@ -136,10 +136,10 @@ export declare const CryptoSpotTradingApiFactory: (configuration?: Configuration
136
136
  * @param {*} [options] Override http request option.
137
137
  * @throws {RequiredError}
138
138
  */
139
- cryptoSpotPlaceOrder(requestParameters: CryptoSpotTradingApiCryptoSpotPlaceOrderRequest, options?: AxiosRequestConfig): AxiosPromise<AccountOrderRecord>;
139
+ cryptoSpotPlaceOrder(requestParameters: CryptoSpotTradingApiCryptoSpotPlaceOrderRequest, options?: AxiosRequestConfig): AxiosPromise<OrderUpdatedResponse>;
140
140
  /**
141
141
  * Previews a cryptocurrency spot order using the specified account.
142
- * @summary Place a spot order on a crypto exchange
142
+ * @summary Preview a crypto spot order
143
143
  * @param {CryptoSpotTradingApiCryptoSpotPreviewOrderRequest} requestParameters Request parameters.
144
144
  * @param {*} [options] Override http request option.
145
145
  * @throws {RequiredError}
@@ -147,7 +147,7 @@ export declare const CryptoSpotTradingApiFactory: (configuration?: Configuration
147
147
  cryptoSpotPreviewOrder(requestParameters: CryptoSpotTradingApiCryptoSpotPreviewOrderRequest, options?: AxiosRequestConfig): AxiosPromise<CryptoSpotOrderPreview>;
148
148
  /**
149
149
  * Gets a quote for the specified account.
150
- * @summary Get a quote for a cyrptocurrency market
150
+ * @summary Get a cryptocurrency spot market quote
151
151
  * @param {CryptoSpotTradingApiCryptoSpotQuoteRequest} requestParameters Request parameters.
152
152
  * @param {*} [options] Override http request option.
153
153
  * @throws {RequiredError}
@@ -326,7 +326,7 @@ export declare class CryptoSpotTradingApiGenerated extends BaseAPI {
326
326
  * @throws {RequiredError}
327
327
  * @memberof CryptoSpotTradingApiGenerated
328
328
  */
329
- cryptoSpotCancelOrder(requestParameters: CryptoSpotTradingApiCryptoSpotCancelOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountOrderRecord, any>>;
329
+ cryptoSpotCancelOrder(requestParameters: CryptoSpotTradingApiCryptoSpotCancelOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderUpdatedResponse, any>>;
330
330
  /**
331
331
  * Places a spot cryptocurrency order in the specified account. This endpoint does not compute the impact to the account balance from the order before submitting the order to the exchange.
332
332
  * @summary Place a spot order on a crypto exchange
@@ -335,10 +335,10 @@ export declare class CryptoSpotTradingApiGenerated extends BaseAPI {
335
335
  * @throws {RequiredError}
336
336
  * @memberof CryptoSpotTradingApiGenerated
337
337
  */
338
- cryptoSpotPlaceOrder(requestParameters: CryptoSpotTradingApiCryptoSpotPlaceOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountOrderRecord, any>>;
338
+ cryptoSpotPlaceOrder(requestParameters: CryptoSpotTradingApiCryptoSpotPlaceOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderUpdatedResponse, any>>;
339
339
  /**
340
340
  * Previews a cryptocurrency spot order using the specified account.
341
- * @summary Place a spot order on a crypto exchange
341
+ * @summary Preview a crypto spot order
342
342
  * @param {CryptoSpotTradingApiCryptoSpotPreviewOrderRequest} requestParameters Request parameters.
343
343
  * @param {*} [options] Override http request option.
344
344
  * @throws {RequiredError}
@@ -347,7 +347,7 @@ export declare class CryptoSpotTradingApiGenerated extends BaseAPI {
347
347
  cryptoSpotPreviewOrder(requestParameters: CryptoSpotTradingApiCryptoSpotPreviewOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CryptoSpotOrderPreview, any>>;
348
348
  /**
349
349
  * Gets a quote for the specified account.
350
- * @summary Get a quote for a cyrptocurrency market
350
+ * @summary Get a cryptocurrency spot market quote
351
351
  * @param {CryptoSpotTradingApiCryptoSpotQuoteRequest} requestParameters Request parameters.
352
352
  * @param {*} [options] Override http request option.
353
353
  * @throws {RequiredError}
@@ -159,7 +159,7 @@ const CryptoSpotTradingApiAxiosParamCreator = function (configuration) {
159
159
  }),
160
160
  /**
161
161
  * Previews a cryptocurrency spot order using the specified account.
162
- * @summary Place a spot order on a crypto exchange
162
+ * @summary Preview a crypto spot order
163
163
  * @param {string} userId
164
164
  * @param {string} userSecret
165
165
  * @param {string} accountId
@@ -220,7 +220,7 @@ const CryptoSpotTradingApiAxiosParamCreator = function (configuration) {
220
220
  }),
221
221
  /**
222
222
  * Gets a quote for the specified account.
223
- * @summary Get a quote for a cyrptocurrency market
223
+ * @summary Get a cryptocurrency spot market quote
224
224
  * @param {string} userId
225
225
  * @param {string} userSecret
226
226
  * @param {string} accountId
@@ -400,7 +400,7 @@ const CryptoSpotTradingApiFp = function (configuration) {
400
400
  },
401
401
  /**
402
402
  * Previews a cryptocurrency spot order using the specified account.
403
- * @summary Place a spot order on a crypto exchange
403
+ * @summary Preview a crypto spot order
404
404
  * @param {CryptoSpotTradingApiCryptoSpotPreviewOrderRequest} requestParameters Request parameters.
405
405
  * @param {*} [options] Override http request option.
406
406
  * @throws {RequiredError}
@@ -424,7 +424,7 @@ const CryptoSpotTradingApiFp = function (configuration) {
424
424
  },
425
425
  /**
426
426
  * Gets a quote for the specified account.
427
- * @summary Get a quote for a cyrptocurrency market
427
+ * @summary Get a cryptocurrency spot market quote
428
428
  * @param {CryptoSpotTradingApiCryptoSpotQuoteRequest} requestParameters Request parameters.
429
429
  * @param {*} [options] Override http request option.
430
430
  * @throws {RequiredError}
@@ -480,7 +480,7 @@ const CryptoSpotTradingApiFactory = function (configuration, basePath, axios) {
480
480
  },
481
481
  /**
482
482
  * Previews a cryptocurrency spot order using the specified account.
483
- * @summary Place a spot order on a crypto exchange
483
+ * @summary Preview a crypto spot order
484
484
  * @param {CryptoSpotTradingApiCryptoSpotPreviewOrderRequest} requestParameters Request parameters.
485
485
  * @param {*} [options] Override http request option.
486
486
  * @throws {RequiredError}
@@ -490,7 +490,7 @@ const CryptoSpotTradingApiFactory = function (configuration, basePath, axios) {
490
490
  },
491
491
  /**
492
492
  * Gets a quote for the specified account.
493
- * @summary Get a quote for a cyrptocurrency market
493
+ * @summary Get a cryptocurrency spot market quote
494
494
  * @param {CryptoSpotTradingApiCryptoSpotQuoteRequest} requestParameters Request parameters.
495
495
  * @param {*} [options] Override http request option.
496
496
  * @throws {RequiredError}
@@ -542,7 +542,7 @@ class CryptoSpotTradingApiGenerated extends base_1.BaseAPI {
542
542
  }
543
543
  /**
544
544
  * Previews a cryptocurrency spot order using the specified account.
545
- * @summary Place a spot order on a crypto exchange
545
+ * @summary Preview a crypto spot order
546
546
  * @param {CryptoSpotTradingApiCryptoSpotPreviewOrderRequest} requestParameters Request parameters.
547
547
  * @param {*} [options] Override http request option.
548
548
  * @throws {RequiredError}
@@ -553,7 +553,7 @@ class CryptoSpotTradingApiGenerated extends base_1.BaseAPI {
553
553
  }
554
554
  /**
555
555
  * Gets a quote for the specified account.
556
- * @summary Get a quote for a cyrptocurrency market
556
+ * @summary Get a cryptocurrency spot market quote
557
557
  * @param {CryptoSpotTradingApiCryptoSpotQuoteRequest} requestParameters Request parameters.
558
558
  * @param {*} [options] Override http request option.
559
559
  * @throws {RequiredError}