snaptrade-typescript-sdk 9.0.41 → 9.0.43
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 +15 -14
- package/dist/api/reference-data-api-generated.d.ts +28 -28
- package/dist/api/reference-data-api-generated.js +26 -26
- package/dist/api/trading-api-generated.d.ts +4 -4
- package/dist/api/trading-api-generated.js +4 -4
- package/dist/browser.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/models/options-position.d.ts +1 -1
- package/dist/models/snap-trade-login-user-request-body.d.ts +1 -1
- package/dist/models/symbol-query.d.ts +2 -2
- package/dist/models/universal-activity.d.ts +1 -1
- package/package.json +2 -2
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.43)
|
|
10
10
|
[](https://snaptrade.com/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
@@ -1277,16 +1277,14 @@ const getStockExchangesResponse =
|
|
|
1277
1277
|
|
|
1278
1278
|
### `snaptrade.referenceData.getSymbols`<a id="snaptradereferencedatagetsymbols"></a>
|
|
1279
1279
|
|
|
1280
|
-
Returns a list of Universal Symbol objects that match
|
|
1281
|
-
|
|
1282
|
-
Matches on ticker or name.
|
|
1280
|
+
Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned.
|
|
1283
1281
|
|
|
1284
1282
|
|
|
1285
1283
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1286
1284
|
|
|
1287
1285
|
```typescript
|
|
1288
1286
|
const getSymbolsResponse = await snaptrade.referenceData.getSymbols({
|
|
1289
|
-
substring: "
|
|
1287
|
+
substring: "AAPL",
|
|
1290
1288
|
});
|
|
1291
1289
|
```
|
|
1292
1290
|
|
|
@@ -1294,6 +1292,8 @@ const getSymbolsResponse = await snaptrade.referenceData.getSymbols({
|
|
|
1294
1292
|
|
|
1295
1293
|
##### substring: `string`<a id="substring-string"></a>
|
|
1296
1294
|
|
|
1295
|
+
The search query for symbols.
|
|
1296
|
+
|
|
1297
1297
|
#### 🔄 Return<a id="🔄-return"></a>
|
|
1298
1298
|
|
|
1299
1299
|
[UniversalSymbol](./models/universal-symbol.ts)
|
|
@@ -1309,7 +1309,8 @@ const getSymbolsResponse = await snaptrade.referenceData.getSymbols({
|
|
|
1309
1309
|
|
|
1310
1310
|
### `snaptrade.referenceData.getSymbolsByTicker`<a id="snaptradereferencedatagetsymbolsbyticker"></a>
|
|
1311
1311
|
|
|
1312
|
-
Returns the Universal Symbol object specified by the ticker or the
|
|
1312
|
+
Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on "Yahoo Finance Market Coverage and Data Delays"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
|
|
1313
|
+
|
|
1313
1314
|
|
|
1314
1315
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1315
1316
|
|
|
@@ -1324,7 +1325,7 @@ const getSymbolsByTickerResponse =
|
|
|
1324
1325
|
|
|
1325
1326
|
##### query: `string`<a id="query-string"></a>
|
|
1326
1327
|
|
|
1327
|
-
The ticker or
|
|
1328
|
+
The ticker or Universal Symbol ID to look up the symbol with.
|
|
1328
1329
|
|
|
1329
1330
|
#### 🔄 Return<a id="🔄-return"></a>
|
|
1330
1331
|
|
|
@@ -1445,9 +1446,9 @@ const listAllCurrenciesRatesResponse =
|
|
|
1445
1446
|
|
|
1446
1447
|
### `snaptrade.referenceData.symbolSearchUserAccount`<a id="snaptradereferencedatasymbolsearchuseraccount"></a>
|
|
1447
1448
|
|
|
1448
|
-
Returns a list of
|
|
1449
|
-
|
|
1450
|
-
|
|
1449
|
+
Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned.
|
|
1450
|
+
|
|
1451
|
+
The search results are further limited to the symbols supported by the brokerage for which the account is under.
|
|
1451
1452
|
|
|
1452
1453
|
|
|
1453
1454
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
@@ -1458,7 +1459,7 @@ const symbolSearchUserAccountResponse =
|
|
|
1458
1459
|
userId: "snaptrade-user-123",
|
|
1459
1460
|
userSecret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
1460
1461
|
accountId: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
1461
|
-
substring: "
|
|
1462
|
+
substring: "AAPL",
|
|
1462
1463
|
});
|
|
1463
1464
|
```
|
|
1464
1465
|
|
|
@@ -1470,10 +1471,10 @@ const symbolSearchUserAccountResponse =
|
|
|
1470
1471
|
|
|
1471
1472
|
##### accountId: `string`<a id="accountid-string"></a>
|
|
1472
1473
|
|
|
1473
|
-
The ID of the account to search for symbols within.
|
|
1474
|
-
|
|
1475
1474
|
##### substring: `string`<a id="substring-string"></a>
|
|
1476
1475
|
|
|
1476
|
+
The search query for symbols.
|
|
1477
|
+
|
|
1477
1478
|
#### 🔄 Return<a id="🔄-return"></a>
|
|
1478
1479
|
|
|
1479
1480
|
[UniversalSymbol](./models/universal-symbol.ts)
|
|
@@ -1648,7 +1649,7 @@ Should be set to `True` if `symbols` are comprised of tickers. Defaults to `Fals
|
|
|
1648
1649
|
|
|
1649
1650
|
### `snaptrade.trading.placeForceOrder`<a id="snaptradetradingplaceforceorder"></a>
|
|
1650
1651
|
|
|
1651
|
-
Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds.
|
|
1652
|
+
Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds.
|
|
1652
1653
|
|
|
1653
1654
|
This endpoint does not compute the impact to the account balance from the order and any potential commissions before submitting the order to the brokerage. If that is desired, you can use the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact).
|
|
1654
1655
|
|
|
@@ -45,17 +45,17 @@ export declare const ReferenceDataApiAxiosParamCreator: (configuration?: Configu
|
|
|
45
45
|
*/
|
|
46
46
|
getStockExchanges: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
47
|
/**
|
|
48
|
-
* Returns a list of Universal Symbol objects that match
|
|
49
|
-
* @summary Search
|
|
48
|
+
* Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned.
|
|
49
|
+
* @summary Search symbols
|
|
50
50
|
* @param {SymbolQuery} [symbolQuery]
|
|
51
51
|
* @param {*} [options] Override http request option.
|
|
52
52
|
* @throws {RequiredError}
|
|
53
53
|
*/
|
|
54
54
|
getSymbols: (symbolQuery?: SymbolQuery, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
55
55
|
/**
|
|
56
|
-
* Returns the Universal Symbol object specified by the ticker or the
|
|
57
|
-
* @summary Get
|
|
58
|
-
* @param {string} query The ticker or
|
|
56
|
+
* Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
|
|
57
|
+
* @summary Get symbol detail
|
|
58
|
+
* @param {string} query The ticker or Universal Symbol ID to look up the symbol with.
|
|
59
59
|
* @param {*} [options] Override http request option.
|
|
60
60
|
* @throws {RequiredError}
|
|
61
61
|
*/
|
|
@@ -90,11 +90,11 @@ export declare const ReferenceDataApiAxiosParamCreator: (configuration?: Configu
|
|
|
90
90
|
*/
|
|
91
91
|
listAllCurrenciesRates: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
92
92
|
/**
|
|
93
|
-
* Returns a list of
|
|
94
|
-
* @summary Search
|
|
93
|
+
* Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned. The search results are further limited to the symbols supported by the brokerage for which the account is under.
|
|
94
|
+
* @summary Search account symbols
|
|
95
95
|
* @param {string} userId
|
|
96
96
|
* @param {string} userSecret
|
|
97
|
-
* @param {string} accountId
|
|
97
|
+
* @param {string} accountId
|
|
98
98
|
* @param {SymbolQuery} [symbolQuery]
|
|
99
99
|
* @param {*} [options] Override http request option.
|
|
100
100
|
* @throws {RequiredError}
|
|
@@ -136,16 +136,16 @@ export declare const ReferenceDataApiFp: (configuration?: Configuration) => {
|
|
|
136
136
|
*/
|
|
137
137
|
getStockExchanges(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Exchange>>>;
|
|
138
138
|
/**
|
|
139
|
-
* Returns a list of Universal Symbol objects that match
|
|
140
|
-
* @summary Search
|
|
139
|
+
* Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned.
|
|
140
|
+
* @summary Search symbols
|
|
141
141
|
* @param {ReferenceDataApiGetSymbolsRequest} requestParameters Request parameters.
|
|
142
142
|
* @param {*} [options] Override http request option.
|
|
143
143
|
* @throws {RequiredError}
|
|
144
144
|
*/
|
|
145
145
|
getSymbols(requestParameters?: ReferenceDataApiGetSymbolsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UniversalSymbol>>>;
|
|
146
146
|
/**
|
|
147
|
-
* Returns the Universal Symbol object specified by the ticker or the
|
|
148
|
-
* @summary Get
|
|
147
|
+
* Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
|
|
148
|
+
* @summary Get symbol detail
|
|
149
149
|
* @param {ReferenceDataApiGetSymbolsByTickerRequest} requestParameters Request parameters.
|
|
150
150
|
* @param {*} [options] Override http request option.
|
|
151
151
|
* @throws {RequiredError}
|
|
@@ -181,8 +181,8 @@ export declare const ReferenceDataApiFp: (configuration?: Configuration) => {
|
|
|
181
181
|
*/
|
|
182
182
|
listAllCurrenciesRates(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ExchangeRatePairs>>>;
|
|
183
183
|
/**
|
|
184
|
-
* Returns a list of
|
|
185
|
-
* @summary Search
|
|
184
|
+
* Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned. The search results are further limited to the symbols supported by the brokerage for which the account is under.
|
|
185
|
+
* @summary Search account symbols
|
|
186
186
|
* @param {ReferenceDataApiSymbolSearchUserAccountRequest} requestParameters Request parameters.
|
|
187
187
|
* @param {*} [options] Override http request option.
|
|
188
188
|
* @throws {RequiredError}
|
|
@@ -224,16 +224,16 @@ export declare const ReferenceDataApiFactory: (configuration?: Configuration, ba
|
|
|
224
224
|
*/
|
|
225
225
|
getStockExchanges(options?: AxiosRequestConfig): AxiosPromise<Array<Exchange>>;
|
|
226
226
|
/**
|
|
227
|
-
* Returns a list of Universal Symbol objects that match
|
|
228
|
-
* @summary Search
|
|
227
|
+
* Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned.
|
|
228
|
+
* @summary Search symbols
|
|
229
229
|
* @param {ReferenceDataApiGetSymbolsRequest} requestParameters Request parameters.
|
|
230
230
|
* @param {*} [options] Override http request option.
|
|
231
231
|
* @throws {RequiredError}
|
|
232
232
|
*/
|
|
233
233
|
getSymbols(requestParameters?: ReferenceDataApiGetSymbolsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UniversalSymbol>>;
|
|
234
234
|
/**
|
|
235
|
-
* Returns the Universal Symbol object specified by the ticker or the
|
|
236
|
-
* @summary Get
|
|
235
|
+
* Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
|
|
236
|
+
* @summary Get symbol detail
|
|
237
237
|
* @param {ReferenceDataApiGetSymbolsByTickerRequest} requestParameters Request parameters.
|
|
238
238
|
* @param {*} [options] Override http request option.
|
|
239
239
|
* @throws {RequiredError}
|
|
@@ -269,8 +269,8 @@ export declare const ReferenceDataApiFactory: (configuration?: Configuration, ba
|
|
|
269
269
|
*/
|
|
270
270
|
listAllCurrenciesRates(options?: AxiosRequestConfig): AxiosPromise<Array<ExchangeRatePairs>>;
|
|
271
271
|
/**
|
|
272
|
-
* Returns a list of
|
|
273
|
-
* @summary Search
|
|
272
|
+
* Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned. The search results are further limited to the symbols supported by the brokerage for which the account is under.
|
|
273
|
+
* @summary Search account symbols
|
|
274
274
|
* @param {ReferenceDataApiSymbolSearchUserAccountRequest} requestParameters Request parameters.
|
|
275
275
|
* @param {*} [options] Override http request option.
|
|
276
276
|
* @throws {RequiredError}
|
|
@@ -303,7 +303,7 @@ export type ReferenceDataApiGetSymbolsRequest = {} & SymbolQuery;
|
|
|
303
303
|
*/
|
|
304
304
|
export type ReferenceDataApiGetSymbolsByTickerRequest = {
|
|
305
305
|
/**
|
|
306
|
-
* The ticker or
|
|
306
|
+
* The ticker or Universal Symbol ID to look up the symbol with.
|
|
307
307
|
* @type {string}
|
|
308
308
|
* @memberof ReferenceDataApiGetSymbolsByTicker
|
|
309
309
|
*/
|
|
@@ -341,7 +341,7 @@ export type ReferenceDataApiSymbolSearchUserAccountRequest = {
|
|
|
341
341
|
*/
|
|
342
342
|
readonly userSecret: string;
|
|
343
343
|
/**
|
|
344
|
-
*
|
|
344
|
+
*
|
|
345
345
|
* @type {string}
|
|
346
346
|
* @memberof ReferenceDataApiSymbolSearchUserAccount
|
|
347
347
|
*/
|
|
@@ -388,8 +388,8 @@ export declare class ReferenceDataApiGenerated extends BaseAPI {
|
|
|
388
388
|
*/
|
|
389
389
|
getStockExchanges(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Exchange[], any>>;
|
|
390
390
|
/**
|
|
391
|
-
* Returns a list of Universal Symbol objects that match
|
|
392
|
-
* @summary Search
|
|
391
|
+
* Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned.
|
|
392
|
+
* @summary Search symbols
|
|
393
393
|
* @param {ReferenceDataApiGetSymbolsRequest} requestParameters Request parameters.
|
|
394
394
|
* @param {*} [options] Override http request option.
|
|
395
395
|
* @throws {RequiredError}
|
|
@@ -397,8 +397,8 @@ export declare class ReferenceDataApiGenerated extends BaseAPI {
|
|
|
397
397
|
*/
|
|
398
398
|
getSymbols(requestParameters?: ReferenceDataApiGetSymbolsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UniversalSymbol[], any>>;
|
|
399
399
|
/**
|
|
400
|
-
* Returns the Universal Symbol object specified by the ticker or the
|
|
401
|
-
* @summary Get
|
|
400
|
+
* Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
|
|
401
|
+
* @summary Get symbol detail
|
|
402
402
|
* @param {ReferenceDataApiGetSymbolsByTickerRequest} requestParameters Request parameters.
|
|
403
403
|
* @param {*} [options] Override http request option.
|
|
404
404
|
* @throws {RequiredError}
|
|
@@ -439,8 +439,8 @@ export declare class ReferenceDataApiGenerated extends BaseAPI {
|
|
|
439
439
|
*/
|
|
440
440
|
listAllCurrenciesRates(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExchangeRatePairs[], any>>;
|
|
441
441
|
/**
|
|
442
|
-
* Returns a list of
|
|
443
|
-
* @summary Search
|
|
442
|
+
* Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned. The search results are further limited to the symbols supported by the brokerage for which the account is under.
|
|
443
|
+
* @summary Search account symbols
|
|
444
444
|
* @param {ReferenceDataApiSymbolSearchUserAccountRequest} requestParameters Request parameters.
|
|
445
445
|
* @param {*} [options] Override http request option.
|
|
446
446
|
* @throws {RequiredError}
|
|
@@ -196,8 +196,8 @@ const ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
196
196
|
};
|
|
197
197
|
}),
|
|
198
198
|
/**
|
|
199
|
-
* Returns a list of Universal Symbol objects that match
|
|
200
|
-
* @summary Search
|
|
199
|
+
* Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned.
|
|
200
|
+
* @summary Search symbols
|
|
201
201
|
* @param {SymbolQuery} [symbolQuery]
|
|
202
202
|
* @param {*} [options] Override http request option.
|
|
203
203
|
* @throws {RequiredError}
|
|
@@ -239,9 +239,9 @@ const ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
239
239
|
};
|
|
240
240
|
}),
|
|
241
241
|
/**
|
|
242
|
-
* Returns the Universal Symbol object specified by the ticker or the
|
|
243
|
-
* @summary Get
|
|
244
|
-
* @param {string} query The ticker or
|
|
242
|
+
* Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
|
|
243
|
+
* @summary Get symbol detail
|
|
244
|
+
* @param {string} query The ticker or Universal Symbol ID to look up the symbol with.
|
|
245
245
|
* @param {*} [options] Override http request option.
|
|
246
246
|
* @throws {RequiredError}
|
|
247
247
|
*/
|
|
@@ -442,11 +442,11 @@ const ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
442
442
|
};
|
|
443
443
|
}),
|
|
444
444
|
/**
|
|
445
|
-
* Returns a list of
|
|
446
|
-
* @summary Search
|
|
445
|
+
* Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned. The search results are further limited to the symbols supported by the brokerage for which the account is under.
|
|
446
|
+
* @summary Search account symbols
|
|
447
447
|
* @param {string} userId
|
|
448
448
|
* @param {string} userSecret
|
|
449
|
-
* @param {string} accountId
|
|
449
|
+
* @param {string} accountId
|
|
450
450
|
* @param {SymbolQuery} [symbolQuery]
|
|
451
451
|
* @param {*} [options] Override http request option.
|
|
452
452
|
* @throws {RequiredError}
|
|
@@ -560,8 +560,8 @@ const ReferenceDataApiFp = function (configuration) {
|
|
|
560
560
|
});
|
|
561
561
|
},
|
|
562
562
|
/**
|
|
563
|
-
* Returns a list of Universal Symbol objects that match
|
|
564
|
-
* @summary Search
|
|
563
|
+
* Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned.
|
|
564
|
+
* @summary Search symbols
|
|
565
565
|
* @param {ReferenceDataApiGetSymbolsRequest} requestParameters Request parameters.
|
|
566
566
|
* @param {*} [options] Override http request option.
|
|
567
567
|
* @throws {RequiredError}
|
|
@@ -576,8 +576,8 @@ const ReferenceDataApiFp = function (configuration) {
|
|
|
576
576
|
});
|
|
577
577
|
},
|
|
578
578
|
/**
|
|
579
|
-
* Returns the Universal Symbol object specified by the ticker or the
|
|
580
|
-
* @summary Get
|
|
579
|
+
* Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
|
|
580
|
+
* @summary Get symbol detail
|
|
581
581
|
* @param {ReferenceDataApiGetSymbolsByTickerRequest} requestParameters Request parameters.
|
|
582
582
|
* @param {*} [options] Override http request option.
|
|
583
583
|
* @throws {RequiredError}
|
|
@@ -638,8 +638,8 @@ const ReferenceDataApiFp = function (configuration) {
|
|
|
638
638
|
});
|
|
639
639
|
},
|
|
640
640
|
/**
|
|
641
|
-
* Returns a list of
|
|
642
|
-
* @summary Search
|
|
641
|
+
* Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned. The search results are further limited to the symbols supported by the brokerage for which the account is under.
|
|
642
|
+
* @summary Search account symbols
|
|
643
643
|
* @param {ReferenceDataApiSymbolSearchUserAccountRequest} requestParameters Request parameters.
|
|
644
644
|
* @param {*} [options] Override http request option.
|
|
645
645
|
* @throws {RequiredError}
|
|
@@ -701,8 +701,8 @@ const ReferenceDataApiFactory = function (configuration, basePath, axios) {
|
|
|
701
701
|
return localVarFp.getStockExchanges(options).then((request) => request(axios, basePath));
|
|
702
702
|
},
|
|
703
703
|
/**
|
|
704
|
-
* Returns a list of Universal Symbol objects that match
|
|
705
|
-
* @summary Search
|
|
704
|
+
* Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned.
|
|
705
|
+
* @summary Search symbols
|
|
706
706
|
* @param {ReferenceDataApiGetSymbolsRequest} requestParameters Request parameters.
|
|
707
707
|
* @param {*} [options] Override http request option.
|
|
708
708
|
* @throws {RequiredError}
|
|
@@ -711,8 +711,8 @@ const ReferenceDataApiFactory = function (configuration, basePath, axios) {
|
|
|
711
711
|
return localVarFp.getSymbols(requestParameters, options).then((request) => request(axios, basePath));
|
|
712
712
|
},
|
|
713
713
|
/**
|
|
714
|
-
* Returns the Universal Symbol object specified by the ticker or the
|
|
715
|
-
* @summary Get
|
|
714
|
+
* Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
|
|
715
|
+
* @summary Get symbol detail
|
|
716
716
|
* @param {ReferenceDataApiGetSymbolsByTickerRequest} requestParameters Request parameters.
|
|
717
717
|
* @param {*} [options] Override http request option.
|
|
718
718
|
* @throws {RequiredError}
|
|
@@ -758,8 +758,8 @@ const ReferenceDataApiFactory = function (configuration, basePath, axios) {
|
|
|
758
758
|
return localVarFp.listAllCurrenciesRates(options).then((request) => request(axios, basePath));
|
|
759
759
|
},
|
|
760
760
|
/**
|
|
761
|
-
* Returns a list of
|
|
762
|
-
* @summary Search
|
|
761
|
+
* Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned. The search results are further limited to the symbols supported by the brokerage for which the account is under.
|
|
762
|
+
* @summary Search account symbols
|
|
763
763
|
* @param {ReferenceDataApiSymbolSearchUserAccountRequest} requestParameters Request parameters.
|
|
764
764
|
* @param {*} [options] Override http request option.
|
|
765
765
|
* @throws {RequiredError}
|
|
@@ -819,8 +819,8 @@ class ReferenceDataApiGenerated extends base_1.BaseAPI {
|
|
|
819
819
|
return (0, exports.ReferenceDataApiFp)(this.configuration).getStockExchanges(options).then((request) => request(this.axios, this.basePath));
|
|
820
820
|
}
|
|
821
821
|
/**
|
|
822
|
-
* Returns a list of Universal Symbol objects that match
|
|
823
|
-
* @summary Search
|
|
822
|
+
* Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned.
|
|
823
|
+
* @summary Search symbols
|
|
824
824
|
* @param {ReferenceDataApiGetSymbolsRequest} requestParameters Request parameters.
|
|
825
825
|
* @param {*} [options] Override http request option.
|
|
826
826
|
* @throws {RequiredError}
|
|
@@ -830,8 +830,8 @@ class ReferenceDataApiGenerated extends base_1.BaseAPI {
|
|
|
830
830
|
return (0, exports.ReferenceDataApiFp)(this.configuration).getSymbols(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
831
831
|
}
|
|
832
832
|
/**
|
|
833
|
-
* Returns the Universal Symbol object specified by the ticker or the
|
|
834
|
-
* @summary Get
|
|
833
|
+
* Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
|
|
834
|
+
* @summary Get symbol detail
|
|
835
835
|
* @param {ReferenceDataApiGetSymbolsByTickerRequest} requestParameters Request parameters.
|
|
836
836
|
* @param {*} [options] Override http request option.
|
|
837
837
|
* @throws {RequiredError}
|
|
@@ -882,8 +882,8 @@ class ReferenceDataApiGenerated extends base_1.BaseAPI {
|
|
|
882
882
|
return (0, exports.ReferenceDataApiFp)(this.configuration).listAllCurrenciesRates(options).then((request) => request(this.axios, this.basePath));
|
|
883
883
|
}
|
|
884
884
|
/**
|
|
885
|
-
* Returns a list of
|
|
886
|
-
* @summary Search
|
|
885
|
+
* Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned. The search results are further limited to the symbols supported by the brokerage for which the account is under.
|
|
886
|
+
* @summary Search account symbols
|
|
887
887
|
* @param {ReferenceDataApiSymbolSearchUserAccountRequest} requestParameters Request parameters.
|
|
888
888
|
* @param {*} [options] Override http request option.
|
|
889
889
|
* @throws {RequiredError}
|
|
@@ -46,7 +46,7 @@ export declare const TradingApiAxiosParamCreator: (configuration?: Configuration
|
|
|
46
46
|
*/
|
|
47
47
|
getUserAccountQuotes: (userId: string, userSecret: string, symbols: string, accountId: string, useTicker?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
48
48
|
/**
|
|
49
|
-
* Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds.
|
|
49
|
+
* Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds. This endpoint does not compute the impact to the account balance from the order and any potential commissions before submitting the order to the brokerage. If that is desired, you can use the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact). It\'s recommended to trigger a manual refresh of the account after placing an order to ensure the account is up to date. You can use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint for this.
|
|
50
50
|
* @summary Place order
|
|
51
51
|
* @param {string} userId
|
|
52
52
|
* @param {string} userSecret
|
|
@@ -97,7 +97,7 @@ export declare const TradingApiFp: (configuration?: Configuration) => {
|
|
|
97
97
|
*/
|
|
98
98
|
getUserAccountQuotes(requestParameters: TradingApiGetUserAccountQuotesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SymbolsQuotesInner>>>;
|
|
99
99
|
/**
|
|
100
|
-
* Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds.
|
|
100
|
+
* Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds. This endpoint does not compute the impact to the account balance from the order and any potential commissions before submitting the order to the brokerage. If that is desired, you can use the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact). It\'s recommended to trigger a manual refresh of the account after placing an order to ensure the account is up to date. You can use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint for this.
|
|
101
101
|
* @summary Place order
|
|
102
102
|
* @param {TradingApiPlaceForceOrderRequest} requestParameters Request parameters.
|
|
103
103
|
* @param {*} [options] Override http request option.
|
|
@@ -143,7 +143,7 @@ export declare const TradingApiFactory: (configuration?: Configuration, basePath
|
|
|
143
143
|
*/
|
|
144
144
|
getUserAccountQuotes(requestParameters: TradingApiGetUserAccountQuotesRequest, options?: AxiosRequestConfig): AxiosPromise<Array<SymbolsQuotesInner>>;
|
|
145
145
|
/**
|
|
146
|
-
* Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds.
|
|
146
|
+
* Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds. This endpoint does not compute the impact to the account balance from the order and any potential commissions before submitting the order to the brokerage. If that is desired, you can use the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact). It\'s recommended to trigger a manual refresh of the account after placing an order to ensure the account is up to date. You can use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint for this.
|
|
147
147
|
* @summary Place order
|
|
148
148
|
* @param {TradingApiPlaceForceOrderRequest} requestParameters Request parameters.
|
|
149
149
|
* @param {*} [options] Override http request option.
|
|
@@ -319,7 +319,7 @@ export declare class TradingApiGenerated extends BaseAPI {
|
|
|
319
319
|
*/
|
|
320
320
|
getUserAccountQuotes(requestParameters: TradingApiGetUserAccountQuotesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SymbolsQuotesInner[], any>>;
|
|
321
321
|
/**
|
|
322
|
-
* Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds.
|
|
322
|
+
* Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds. This endpoint does not compute the impact to the account balance from the order and any potential commissions before submitting the order to the brokerage. If that is desired, you can use the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact). It\'s recommended to trigger a manual refresh of the account after placing an order to ensure the account is up to date. You can use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint for this.
|
|
323
323
|
* @summary Place order
|
|
324
324
|
* @param {TradingApiPlaceForceOrderRequest} requestParameters Request parameters.
|
|
325
325
|
* @param {*} [options] Override http request option.
|
|
@@ -219,7 +219,7 @@ const TradingApiAxiosParamCreator = function (configuration) {
|
|
|
219
219
|
};
|
|
220
220
|
}),
|
|
221
221
|
/**
|
|
222
|
-
* Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds.
|
|
222
|
+
* Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds. This endpoint does not compute the impact to the account balance from the order and any potential commissions before submitting the order to the brokerage. If that is desired, you can use the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact). It\'s recommended to trigger a manual refresh of the account after placing an order to ensure the account is up to date. You can use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint for this.
|
|
223
223
|
* @summary Place order
|
|
224
224
|
* @param {string} userId
|
|
225
225
|
* @param {string} userSecret
|
|
@@ -398,7 +398,7 @@ const TradingApiFp = function (configuration) {
|
|
|
398
398
|
});
|
|
399
399
|
},
|
|
400
400
|
/**
|
|
401
|
-
* Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds.
|
|
401
|
+
* Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds. This endpoint does not compute the impact to the account balance from the order and any potential commissions before submitting the order to the brokerage. If that is desired, you can use the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact). It\'s recommended to trigger a manual refresh of the account after placing an order to ensure the account is up to date. You can use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint for this.
|
|
402
402
|
* @summary Place order
|
|
403
403
|
* @param {TradingApiPlaceForceOrderRequest} requestParameters Request parameters.
|
|
404
404
|
* @param {*} [options] Override http request option.
|
|
@@ -478,7 +478,7 @@ const TradingApiFactory = function (configuration, basePath, axios) {
|
|
|
478
478
|
return localVarFp.getUserAccountQuotes(requestParameters, options).then((request) => request(axios, basePath));
|
|
479
479
|
},
|
|
480
480
|
/**
|
|
481
|
-
* Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds.
|
|
481
|
+
* Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds. This endpoint does not compute the impact to the account balance from the order and any potential commissions before submitting the order to the brokerage. If that is desired, you can use the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact). It\'s recommended to trigger a manual refresh of the account after placing an order to ensure the account is up to date. You can use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint for this.
|
|
482
482
|
* @summary Place order
|
|
483
483
|
* @param {TradingApiPlaceForceOrderRequest} requestParameters Request parameters.
|
|
484
484
|
* @param {*} [options] Override http request option.
|
|
@@ -541,7 +541,7 @@ class TradingApiGenerated extends base_1.BaseAPI {
|
|
|
541
541
|
return (0, exports.TradingApiFp)(this.configuration).getUserAccountQuotes(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
542
542
|
}
|
|
543
543
|
/**
|
|
544
|
-
* Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds.
|
|
544
|
+
* Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds. This endpoint does not compute the impact to the account balance from the order and any potential commissions before submitting the order to the brokerage. If that is desired, you can use the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact). It\'s recommended to trigger a manual refresh of the account after placing an order to ensure the account is up to date. You can use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint for this.
|
|
545
545
|
* @summary Place order
|
|
546
546
|
* @param {TradingApiPlaceForceOrderRequest} requestParameters Request parameters.
|
|
547
547
|
* @param {*} [options] Override http request option.
|