snaptrade-typescript-sdk 9.0.42 → 9.0.44
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 +16 -15
- package/dist/api/reference-data-api-generated.d.ts +44 -44
- package/dist/api/reference-data-api-generated.js +42 -42
- package/dist/browser.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/models/partner-data.d.ts +27 -26
- package/dist/models/symbol-query.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Connect brokerage accounts to your app for live positions and trading
|
|
8
8
|
|
|
9
|
-
[](https://www.npmjs.com/package/snaptrade-typescript-sdk/v/9.0.44)
|
|
10
10
|
[](https://snaptrade.com/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
@@ -1206,7 +1206,7 @@ A currency pair based on currency code for example, {CAD-USD}
|
|
|
1206
1206
|
|
|
1207
1207
|
### `snaptrade.referenceData.getPartnerInfo`<a id="snaptradereferencedatagetpartnerinfo"></a>
|
|
1208
1208
|
|
|
1209
|
-
Returns
|
|
1209
|
+
Returns configurations for your SnapTrade Client ID, including allowed brokerages and data access.
|
|
1210
1210
|
|
|
1211
1211
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1212
1212
|
|
|
@@ -1229,7 +1229,7 @@ const getPartnerInfoResponse = await snaptrade.referenceData.getPartnerInfo();
|
|
|
1229
1229
|
|
|
1230
1230
|
### `snaptrade.referenceData.getSecurityTypes`<a id="snaptradereferencedatagetsecuritytypes"></a>
|
|
1231
1231
|
|
|
1232
|
-
|
|
1232
|
+
Return all available security types supported by SnapTrade.
|
|
1233
1233
|
|
|
1234
1234
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1235
1235
|
|
|
@@ -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)
|
|
@@ -24,15 +24,15 @@ export declare const ReferenceDataApiAxiosParamCreator: (configuration?: Configu
|
|
|
24
24
|
*/
|
|
25
25
|
getCurrencyExchangeRatePair: (currencyPair: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
26
26
|
/**
|
|
27
|
-
* Returns
|
|
28
|
-
* @summary Get
|
|
27
|
+
* Returns configurations for your SnapTrade Client ID, including allowed brokerages and data access.
|
|
28
|
+
* @summary Get Client Info
|
|
29
29
|
* @param {*} [options] Override http request option.
|
|
30
30
|
* @throws {RequiredError}
|
|
31
31
|
*/
|
|
32
32
|
getPartnerInfo: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
35
|
-
* @summary List
|
|
34
|
+
* Return all available security types supported by SnapTrade.
|
|
35
|
+
* @summary List security types
|
|
36
36
|
* @param {*} [options] Override http request option.
|
|
37
37
|
* @throws {RequiredError}
|
|
38
38
|
*/
|
|
@@ -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}
|
|
@@ -115,15 +115,15 @@ export declare const ReferenceDataApiFp: (configuration?: Configuration) => {
|
|
|
115
115
|
*/
|
|
116
116
|
getCurrencyExchangeRatePair(requestParameters: ReferenceDataApiGetCurrencyExchangeRatePairRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExchangeRatePairs>>;
|
|
117
117
|
/**
|
|
118
|
-
* Returns
|
|
119
|
-
* @summary Get
|
|
118
|
+
* Returns configurations for your SnapTrade Client ID, including allowed brokerages and data access.
|
|
119
|
+
* @summary Get Client Info
|
|
120
120
|
* @param {*} [options] Override http request option.
|
|
121
121
|
* @throws {RequiredError}
|
|
122
122
|
*/
|
|
123
123
|
getPartnerInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PartnerData>>;
|
|
124
124
|
/**
|
|
125
|
-
*
|
|
126
|
-
* @summary List
|
|
125
|
+
* Return all available security types supported by SnapTrade.
|
|
126
|
+
* @summary List security types
|
|
127
127
|
* @param {*} [options] Override http request option.
|
|
128
128
|
* @throws {RequiredError}
|
|
129
129
|
*/
|
|
@@ -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}
|
|
@@ -203,15 +203,15 @@ export declare const ReferenceDataApiFactory: (configuration?: Configuration, ba
|
|
|
203
203
|
*/
|
|
204
204
|
getCurrencyExchangeRatePair(requestParameters: ReferenceDataApiGetCurrencyExchangeRatePairRequest, options?: AxiosRequestConfig): AxiosPromise<ExchangeRatePairs>;
|
|
205
205
|
/**
|
|
206
|
-
* Returns
|
|
207
|
-
* @summary Get
|
|
206
|
+
* Returns configurations for your SnapTrade Client ID, including allowed brokerages and data access.
|
|
207
|
+
* @summary Get Client Info
|
|
208
208
|
* @param {*} [options] Override http request option.
|
|
209
209
|
* @throws {RequiredError}
|
|
210
210
|
*/
|
|
211
211
|
getPartnerInfo(options?: AxiosRequestConfig): AxiosPromise<PartnerData>;
|
|
212
212
|
/**
|
|
213
|
-
*
|
|
214
|
-
* @summary List
|
|
213
|
+
* Return all available security types supported by SnapTrade.
|
|
214
|
+
* @summary List security types
|
|
215
215
|
* @param {*} [options] Override http request option.
|
|
216
216
|
* @throws {RequiredError}
|
|
217
217
|
*/
|
|
@@ -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
|
*/
|
|
@@ -364,16 +364,16 @@ export declare class ReferenceDataApiGenerated extends BaseAPI {
|
|
|
364
364
|
*/
|
|
365
365
|
getCurrencyExchangeRatePair(requestParameters: ReferenceDataApiGetCurrencyExchangeRatePairRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExchangeRatePairs, any>>;
|
|
366
366
|
/**
|
|
367
|
-
* Returns
|
|
368
|
-
* @summary Get
|
|
367
|
+
* Returns configurations for your SnapTrade Client ID, including allowed brokerages and data access.
|
|
368
|
+
* @summary Get Client Info
|
|
369
369
|
* @param {*} [options] Override http request option.
|
|
370
370
|
* @throws {RequiredError}
|
|
371
371
|
* @memberof ReferenceDataApiGenerated
|
|
372
372
|
*/
|
|
373
373
|
getPartnerInfo(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PartnerData, any>>;
|
|
374
374
|
/**
|
|
375
|
-
*
|
|
376
|
-
* @summary List
|
|
375
|
+
* Return all available security types supported by SnapTrade.
|
|
376
|
+
* @summary List security types
|
|
377
377
|
* @param {*} [options] Override http request option.
|
|
378
378
|
* @throws {RequiredError}
|
|
379
379
|
* @memberof ReferenceDataApiGenerated
|
|
@@ -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}
|
|
@@ -79,8 +79,8 @@ const ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
79
79
|
};
|
|
80
80
|
}),
|
|
81
81
|
/**
|
|
82
|
-
* Returns
|
|
83
|
-
* @summary Get
|
|
82
|
+
* Returns configurations for your SnapTrade Client ID, including allowed brokerages and data access.
|
|
83
|
+
* @summary Get Client Info
|
|
84
84
|
* @param {*} [options] Override http request option.
|
|
85
85
|
* @throws {RequiredError}
|
|
86
86
|
*/
|
|
@@ -118,8 +118,8 @@ const ReferenceDataApiAxiosParamCreator = function (configuration) {
|
|
|
118
118
|
};
|
|
119
119
|
}),
|
|
120
120
|
/**
|
|
121
|
-
*
|
|
122
|
-
* @summary List
|
|
121
|
+
* Return all available security types supported by SnapTrade.
|
|
122
|
+
* @summary List security types
|
|
123
123
|
* @param {*} [options] Override http request option.
|
|
124
124
|
* @throws {RequiredError}
|
|
125
125
|
*/
|
|
@@ -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}
|
|
@@ -524,8 +524,8 @@ const ReferenceDataApiFp = function (configuration) {
|
|
|
524
524
|
});
|
|
525
525
|
},
|
|
526
526
|
/**
|
|
527
|
-
* Returns
|
|
528
|
-
* @summary Get
|
|
527
|
+
* Returns configurations for your SnapTrade Client ID, including allowed brokerages and data access.
|
|
528
|
+
* @summary Get Client Info
|
|
529
529
|
* @param {*} [options] Override http request option.
|
|
530
530
|
* @throws {RequiredError}
|
|
531
531
|
*/
|
|
@@ -536,8 +536,8 @@ const ReferenceDataApiFp = function (configuration) {
|
|
|
536
536
|
});
|
|
537
537
|
},
|
|
538
538
|
/**
|
|
539
|
-
*
|
|
540
|
-
* @summary List
|
|
539
|
+
* Return all available security types supported by SnapTrade.
|
|
540
|
+
* @summary List security types
|
|
541
541
|
* @param {*} [options] Override http request option.
|
|
542
542
|
* @throws {RequiredError}
|
|
543
543
|
*/
|
|
@@ -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}
|
|
@@ -674,8 +674,8 @@ const ReferenceDataApiFactory = function (configuration, basePath, axios) {
|
|
|
674
674
|
return localVarFp.getCurrencyExchangeRatePair(requestParameters, options).then((request) => request(axios, basePath));
|
|
675
675
|
},
|
|
676
676
|
/**
|
|
677
|
-
* Returns
|
|
678
|
-
* @summary Get
|
|
677
|
+
* Returns configurations for your SnapTrade Client ID, including allowed brokerages and data access.
|
|
678
|
+
* @summary Get Client Info
|
|
679
679
|
* @param {*} [options] Override http request option.
|
|
680
680
|
* @throws {RequiredError}
|
|
681
681
|
*/
|
|
@@ -683,8 +683,8 @@ const ReferenceDataApiFactory = function (configuration, basePath, axios) {
|
|
|
683
683
|
return localVarFp.getPartnerInfo(options).then((request) => request(axios, basePath));
|
|
684
684
|
},
|
|
685
685
|
/**
|
|
686
|
-
*
|
|
687
|
-
* @summary List
|
|
686
|
+
* Return all available security types supported by SnapTrade.
|
|
687
|
+
* @summary List security types
|
|
688
688
|
* @param {*} [options] Override http request option.
|
|
689
689
|
* @throws {RequiredError}
|
|
690
690
|
*/
|
|
@@ -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}
|
|
@@ -789,8 +789,8 @@ class ReferenceDataApiGenerated extends base_1.BaseAPI {
|
|
|
789
789
|
return (0, exports.ReferenceDataApiFp)(this.configuration).getCurrencyExchangeRatePair(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
790
790
|
}
|
|
791
791
|
/**
|
|
792
|
-
* Returns
|
|
793
|
-
* @summary Get
|
|
792
|
+
* Returns configurations for your SnapTrade Client ID, including allowed brokerages and data access.
|
|
793
|
+
* @summary Get Client Info
|
|
794
794
|
* @param {*} [options] Override http request option.
|
|
795
795
|
* @throws {RequiredError}
|
|
796
796
|
* @memberof ReferenceDataApiGenerated
|
|
@@ -799,8 +799,8 @@ class ReferenceDataApiGenerated extends base_1.BaseAPI {
|
|
|
799
799
|
return (0, exports.ReferenceDataApiFp)(this.configuration).getPartnerInfo(options).then((request) => request(this.axios, this.basePath));
|
|
800
800
|
}
|
|
801
801
|
/**
|
|
802
|
-
*
|
|
803
|
-
* @summary List
|
|
802
|
+
* Return all available security types supported by SnapTrade.
|
|
803
|
+
* @summary List security types
|
|
804
804
|
* @param {*} [options] Override http request option.
|
|
805
805
|
* @throws {RequiredError}
|
|
806
806
|
* @memberof ReferenceDataApiGenerated
|
|
@@ -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}
|