snaptrade-typescript-sdk 9.0.18 → 9.0.20
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 +23 -16
- package/dist/api/connections-api-generated.d.ts +4 -4
- package/dist/api/connections-api-generated.js +4 -4
- package/dist/api/reference-data-api-generated.d.ts +60 -60
- package/dist/api/reference-data-api-generated.js +60 -60
- package/dist/api/trading-api-generated.d.ts +16 -16
- package/dist/api/trading-api-generated.js +16 -16
- package/dist/browser.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/models/account-order-record.d.ts +3 -4
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/dist/models/manual-trade-form.d.ts +3 -3
- package/dist/models/manual-trade.d.ts +3 -3
- package/dist/models/options-place-option-strategy-request.d.ts +3 -3
- package/dist/models/order-type-strict.d.ts +6 -0
- package/dist/models/strategy-order-record.d.ts +3 -4
- package/package.json +1 -1
- package/dist/models/order-type.d.ts +0 -6
- /package/dist/models/{order-type.js → order-type-strict.js} +0 -0
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.20)
|
|
10
10
|
[](https://snaptrade.com/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
@@ -177,6 +177,7 @@ main();
|
|
|
177
177
|
|
|
178
178
|
|
|
179
179
|
### `snaptrade.accountInformation.getAllUserHoldings`<a id="snaptradeaccountinformationgetalluserholdings"></a>
|
|
180
|
+

|
|
180
181
|
|
|
181
182
|
Lists balances, positions and orders for the specified account. The data returned is similar to
|
|
182
183
|
the data returned over the more fine-grained **positions**, **orders** and **balances** endpoints.
|
|
@@ -775,7 +776,7 @@ The ID of a brokerage authorization object.
|
|
|
775
776
|
|
|
776
777
|
### `snaptrade.connections.listBrokerageAuthorizations`<a id="snaptradeconnectionslistbrokerageauthorizations"></a>
|
|
777
778
|
|
|
778
|
-
Returns a list of Brokerage
|
|
779
|
+
Returns a list of Brokerage Authorization objects for the user
|
|
779
780
|
|
|
780
781
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
781
782
|
|
|
@@ -1080,7 +1081,7 @@ const placeOptionStrategyResponse = await snaptrade.options.placeOptionStrategy(
|
|
|
1080
1081
|
|
|
1081
1082
|
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
|
1082
1083
|
|
|
1083
|
-
##### order_type: [`
|
|
1084
|
+
##### order_type: [`OrderTypeStrict`](./models/order-type-strict.ts)<a id="order_type-ordertypestrictmodelsorder-type-strictts"></a>
|
|
1084
1085
|
|
|
1085
1086
|
Order Type
|
|
1086
1087
|
|
|
@@ -1119,7 +1120,7 @@ Trade Price if limit or stop limit order
|
|
|
1119
1120
|
|
|
1120
1121
|
### `snaptrade.referenceData.getCurrencyExchangeRatePair`<a id="snaptradereferencedatagetcurrencyexchangeratepair"></a>
|
|
1121
1122
|
|
|
1122
|
-
|
|
1123
|
+
Returns an Exchange Rate Pair object for the specified Currency Pair.
|
|
1123
1124
|
|
|
1124
1125
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1125
1126
|
|
|
@@ -1198,7 +1199,7 @@ const getSecurityTypesResponse =
|
|
|
1198
1199
|
|
|
1199
1200
|
### `snaptrade.referenceData.getStockExchanges`<a id="snaptradereferencedatagetstockexchanges"></a>
|
|
1200
1201
|
|
|
1201
|
-
|
|
1202
|
+
Returns a list of all supported Exchanges.
|
|
1202
1203
|
|
|
1203
1204
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1204
1205
|
|
|
@@ -1222,7 +1223,10 @@ const getStockExchangesResponse =
|
|
|
1222
1223
|
|
|
1223
1224
|
### `snaptrade.referenceData.getSymbols`<a id="snaptradereferencedatagetsymbols"></a>
|
|
1224
1225
|
|
|
1225
|
-
|
|
1226
|
+
Returns a list of Universal Symbol objects that match a defined string.
|
|
1227
|
+
|
|
1228
|
+
Matches on ticker or name.
|
|
1229
|
+
|
|
1226
1230
|
|
|
1227
1231
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1228
1232
|
|
|
@@ -1251,7 +1255,7 @@ const getSymbolsResponse = await snaptrade.referenceData.getSymbols({
|
|
|
1251
1255
|
|
|
1252
1256
|
### `snaptrade.referenceData.getSymbolsByTicker`<a id="snaptradereferencedatagetsymbolsbyticker"></a>
|
|
1253
1257
|
|
|
1254
|
-
|
|
1258
|
+
Returns the Universal Symbol object specified by the ticker or the universal_symbol_id.
|
|
1255
1259
|
|
|
1256
1260
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1257
1261
|
|
|
@@ -1283,7 +1287,7 @@ The ticker or universal_symbol_id of the UniversalSymbol to get.
|
|
|
1283
1287
|
|
|
1284
1288
|
### `snaptrade.referenceData.listAllBrokerageAuthorizationType`<a id="snaptradereferencedatalistallbrokerageauthorizationtype"></a>
|
|
1285
1289
|
|
|
1286
|
-
|
|
1290
|
+
Returns a list of all defined Brokerage authorization Type objects.
|
|
1287
1291
|
|
|
1288
1292
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1289
1293
|
|
|
@@ -1315,7 +1319,7 @@ Comma separated value of brokerage slugs
|
|
|
1315
1319
|
|
|
1316
1320
|
### `snaptrade.referenceData.listAllBrokerages`<a id="snaptradereferencedatalistallbrokerages"></a>
|
|
1317
1321
|
|
|
1318
|
-
|
|
1322
|
+
Returns a list of all defined Brokerage objects.
|
|
1319
1323
|
|
|
1320
1324
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1321
1325
|
|
|
@@ -1339,7 +1343,7 @@ const listAllBrokeragesResponse =
|
|
|
1339
1343
|
|
|
1340
1344
|
### `snaptrade.referenceData.listAllCurrencies`<a id="snaptradereferencedatalistallcurrencies"></a>
|
|
1341
1345
|
|
|
1342
|
-
|
|
1346
|
+
Returns a list of all defined Currency objects.
|
|
1343
1347
|
|
|
1344
1348
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1345
1349
|
|
|
@@ -1363,7 +1367,7 @@ const listAllCurrenciesResponse =
|
|
|
1363
1367
|
|
|
1364
1368
|
### `snaptrade.referenceData.listAllCurrenciesRates`<a id="snaptradereferencedatalistallcurrenciesrates"></a>
|
|
1365
1369
|
|
|
1366
|
-
|
|
1370
|
+
Returns a list of all Exchange Rate Pairs for all supported Currencies.
|
|
1367
1371
|
|
|
1368
1372
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1369
1373
|
|
|
@@ -1474,7 +1478,7 @@ The ID of the account to cancel the order in.
|
|
|
1474
1478
|
|
|
1475
1479
|
### `snaptrade.trading.getOrderImpact`<a id="snaptradetradinggetorderimpact"></a>
|
|
1476
1480
|
|
|
1477
|
-
|
|
1481
|
+
Return the trade object and it's impact on the account for the specified order.
|
|
1478
1482
|
|
|
1479
1483
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1480
1484
|
|
|
@@ -1505,7 +1509,7 @@ const getOrderImpactResponse = await snaptrade.trading.getOrderImpact({
|
|
|
1505
1509
|
|
|
1506
1510
|
Trade Action
|
|
1507
1511
|
|
|
1508
|
-
##### order_type: [`
|
|
1512
|
+
##### order_type: [`OrderTypeStrict`](./models/order-type-strict.ts)<a id="order_type-ordertypestrictmodelsorder-type-strictts"></a>
|
|
1509
1513
|
|
|
1510
1514
|
Order Type
|
|
1511
1515
|
|
|
@@ -1589,7 +1593,7 @@ Should be set to True if providing tickers.
|
|
|
1589
1593
|
|
|
1590
1594
|
### `snaptrade.trading.placeForceOrder`<a id="snaptradetradingplaceforceorder"></a>
|
|
1591
1595
|
|
|
1592
|
-
|
|
1596
|
+
Places a specified trade in the specified account.
|
|
1593
1597
|
|
|
1594
1598
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1595
1599
|
|
|
@@ -1620,7 +1624,7 @@ const placeForceOrderResponse = await snaptrade.trading.placeForceOrder({
|
|
|
1620
1624
|
|
|
1621
1625
|
Trade Action
|
|
1622
1626
|
|
|
1623
|
-
##### order_type: [`
|
|
1627
|
+
##### order_type: [`OrderTypeStrict`](./models/order-type-strict.ts)<a id="order_type-ordertypestrictmodelsorder-type-strictts"></a>
|
|
1624
1628
|
|
|
1625
1629
|
Order Type
|
|
1626
1630
|
|
|
@@ -1657,7 +1661,9 @@ Trade time in force examples: * FOK - Fill Or Kill * Day - Day * GTC - Goo
|
|
|
1657
1661
|
|
|
1658
1662
|
### `snaptrade.trading.placeOrder`<a id="snaptradetradingplaceorder"></a>
|
|
1659
1663
|
|
|
1660
|
-
|
|
1664
|
+
Places the specified trade object. This places the order in the account and
|
|
1665
|
+
returns the status of the order from the brokerage.
|
|
1666
|
+
|
|
1661
1667
|
|
|
1662
1668
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1663
1669
|
|
|
@@ -1754,6 +1760,7 @@ Optional comma seperated list of types to filter activities by. This is not an e
|
|
|
1754
1760
|
|
|
1755
1761
|
|
|
1756
1762
|
### `snaptrade.transactionsAndReporting.getReportingCustomRange`<a id="snaptradetransactionsandreportinggetreportingcustomrange"></a>
|
|
1763
|
+

|
|
1757
1764
|
|
|
1758
1765
|
Returns performance information (contributions, dividends, rate of return, etc) for a specific timeframe. Please note that Total Equity Timeframe and Rate of Returns are experimental features. Please contact support@snaptrade.com if you notice any inconsistencies.
|
|
1759
1766
|
|
|
@@ -19,7 +19,7 @@ export declare const ConnectionsApiAxiosParamCreator: (configuration?: Configura
|
|
|
19
19
|
*/
|
|
20
20
|
detailBrokerageAuthorization: (authorizationId: string, userId: string, userSecret: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
21
21
|
/**
|
|
22
|
-
* Returns a list of Brokerage
|
|
22
|
+
* Returns a list of Brokerage Authorization objects for the user
|
|
23
23
|
* @summary List all brokerage authorizations for the User
|
|
24
24
|
* @param {string} userId
|
|
25
25
|
* @param {string} userSecret
|
|
@@ -62,7 +62,7 @@ export declare const ConnectionsApiFp: (configuration?: Configuration) => {
|
|
|
62
62
|
*/
|
|
63
63
|
detailBrokerageAuthorization(requestParameters: ConnectionsApiDetailBrokerageAuthorizationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BrokerageAuthorization>>;
|
|
64
64
|
/**
|
|
65
|
-
* Returns a list of Brokerage
|
|
65
|
+
* Returns a list of Brokerage Authorization objects for the user
|
|
66
66
|
* @summary List all brokerage authorizations for the User
|
|
67
67
|
* @param {ConnectionsApiListBrokerageAuthorizationsRequest} requestParameters Request parameters.
|
|
68
68
|
* @param {*} [options] Override http request option.
|
|
@@ -100,7 +100,7 @@ export declare const ConnectionsApiFactory: (configuration?: Configuration, base
|
|
|
100
100
|
*/
|
|
101
101
|
detailBrokerageAuthorization(requestParameters: ConnectionsApiDetailBrokerageAuthorizationRequest, options?: AxiosRequestConfig): AxiosPromise<BrokerageAuthorization>;
|
|
102
102
|
/**
|
|
103
|
-
* Returns a list of Brokerage
|
|
103
|
+
* Returns a list of Brokerage Authorization objects for the user
|
|
104
104
|
* @summary List all brokerage authorizations for the User
|
|
105
105
|
* @param {ConnectionsApiListBrokerageAuthorizationsRequest} requestParameters Request parameters.
|
|
106
106
|
* @param {*} [options] Override http request option.
|
|
@@ -235,7 +235,7 @@ export declare class ConnectionsApiGenerated extends BaseAPI {
|
|
|
235
235
|
*/
|
|
236
236
|
detailBrokerageAuthorization(requestParameters: ConnectionsApiDetailBrokerageAuthorizationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BrokerageAuthorization, any>>;
|
|
237
237
|
/**
|
|
238
|
-
* Returns a list of Brokerage
|
|
238
|
+
* Returns a list of Brokerage Authorization objects for the user
|
|
239
239
|
* @summary List all brokerage authorizations for the User
|
|
240
240
|
* @param {ConnectionsApiListBrokerageAuthorizationsRequest} requestParameters Request parameters.
|
|
241
241
|
* @param {*} [options] Override http request option.
|
|
@@ -91,7 +91,7 @@ const ConnectionsApiAxiosParamCreator = function (configuration) {
|
|
|
91
91
|
};
|
|
92
92
|
}),
|
|
93
93
|
/**
|
|
94
|
-
* Returns a list of Brokerage
|
|
94
|
+
* Returns a list of Brokerage Authorization objects for the user
|
|
95
95
|
* @summary List all brokerage authorizations for the User
|
|
96
96
|
* @param {string} userId
|
|
97
97
|
* @param {string} userSecret
|
|
@@ -273,7 +273,7 @@ const ConnectionsApiFp = function (configuration) {
|
|
|
273
273
|
});
|
|
274
274
|
},
|
|
275
275
|
/**
|
|
276
|
-
* Returns a list of Brokerage
|
|
276
|
+
* Returns a list of Brokerage Authorization objects for the user
|
|
277
277
|
* @summary List all brokerage authorizations for the User
|
|
278
278
|
* @param {ConnectionsApiListBrokerageAuthorizationsRequest} requestParameters Request parameters.
|
|
279
279
|
* @param {*} [options] Override http request option.
|
|
@@ -332,7 +332,7 @@ const ConnectionsApiFactory = function (configuration, basePath, axios) {
|
|
|
332
332
|
return localVarFp.detailBrokerageAuthorization(requestParameters, options).then((request) => request(axios, basePath));
|
|
333
333
|
},
|
|
334
334
|
/**
|
|
335
|
-
* Returns a list of Brokerage
|
|
335
|
+
* Returns a list of Brokerage Authorization objects for the user
|
|
336
336
|
* @summary List all brokerage authorizations for the User
|
|
337
337
|
* @param {ConnectionsApiListBrokerageAuthorizationsRequest} requestParameters Request parameters.
|
|
338
338
|
* @param {*} [options] Override http request option.
|
|
@@ -383,7 +383,7 @@ class ConnectionsApiGenerated extends base_1.BaseAPI {
|
|
|
383
383
|
return (0, exports.ConnectionsApiFp)(this.configuration).detailBrokerageAuthorization(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
384
384
|
}
|
|
385
385
|
/**
|
|
386
|
-
* Returns a list of Brokerage
|
|
386
|
+
* Returns a list of Brokerage Authorization objects for the user
|
|
387
387
|
* @summary List all brokerage authorizations for the User
|
|
388
388
|
* @param {ConnectionsApiListBrokerageAuthorizationsRequest} requestParameters Request parameters.
|
|
389
389
|
* @param {*} [options] Override http request option.
|
|
@@ -16,8 +16,8 @@ import { UniversalSymbol } from '../models';
|
|
|
16
16
|
*/
|
|
17
17
|
export declare const ReferenceDataApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
20
|
-
* @summary
|
|
19
|
+
* Returns an Exchange Rate Pair object for the specified Currency Pair.
|
|
20
|
+
* @summary Get exchange rate of a currency pair
|
|
21
21
|
* @param {string} currencyPair A currency pair based on currency code for example, {CAD-USD}
|
|
22
22
|
* @param {*} [options] Override http request option.
|
|
23
23
|
* @throws {RequiredError}
|
|
@@ -38,14 +38,14 @@ export declare const ReferenceDataApiAxiosParamCreator: (configuration?: Configu
|
|
|
38
38
|
*/
|
|
39
39
|
getSecurityTypes: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
42
|
-
* @summary
|
|
41
|
+
* Returns a list of all supported Exchanges.
|
|
42
|
+
* @summary Get exchanges
|
|
43
43
|
* @param {*} [options] Override http request option.
|
|
44
44
|
* @throws {RequiredError}
|
|
45
45
|
*/
|
|
46
46
|
getStockExchanges: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Returns a list of Universal Symbol objects that match a defined string. Matches on ticker or name.
|
|
49
49
|
* @summary Search for symbols
|
|
50
50
|
* @param {SymbolQuery} [symbolQuery]
|
|
51
51
|
* @param {*} [options] Override http request option.
|
|
@@ -53,38 +53,38 @@ export declare const ReferenceDataApiAxiosParamCreator: (configuration?: Configu
|
|
|
53
53
|
*/
|
|
54
54
|
getSymbols: (symbolQuery?: SymbolQuery, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
57
|
-
* @summary Get details of a symbol
|
|
56
|
+
* Returns the Universal Symbol object specified by the ticker or the universal_symbol_id.
|
|
57
|
+
* @summary Get details of a symbol
|
|
58
58
|
* @param {string} query The ticker or universal_symbol_id of the UniversalSymbol to get.
|
|
59
59
|
* @param {*} [options] Override http request option.
|
|
60
60
|
* @throws {RequiredError}
|
|
61
61
|
*/
|
|
62
62
|
getSymbolsByTicker: (query: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
65
|
-
* @summary
|
|
64
|
+
* Returns a list of all defined Brokerage authorization Type objects.
|
|
65
|
+
* @summary Get all brokerage authorization types
|
|
66
66
|
* @param {string} [brokerage] Comma separated value of brokerage slugs
|
|
67
67
|
* @param {*} [options] Override http request option.
|
|
68
68
|
* @throws {RequiredError}
|
|
69
69
|
*/
|
|
70
70
|
listAllBrokerageAuthorizationType: (brokerage?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
73
|
-
* @summary
|
|
72
|
+
* Returns a list of all defined Brokerage objects.
|
|
73
|
+
* @summary Get brokerages
|
|
74
74
|
* @param {*} [options] Override http request option.
|
|
75
75
|
* @throws {RequiredError}
|
|
76
76
|
*/
|
|
77
77
|
listAllBrokerages: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
80
|
-
* @summary
|
|
79
|
+
* Returns a list of all defined Currency objects.
|
|
80
|
+
* @summary Get currencies
|
|
81
81
|
* @param {*} [options] Override http request option.
|
|
82
82
|
* @throws {RequiredError}
|
|
83
83
|
*/
|
|
84
84
|
listAllCurrencies: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
85
85
|
/**
|
|
86
|
-
*
|
|
87
|
-
* @summary
|
|
86
|
+
* Returns a list of all Exchange Rate Pairs for all supported Currencies.
|
|
87
|
+
* @summary Get currency exchange rates
|
|
88
88
|
* @param {*} [options] Override http request option.
|
|
89
89
|
* @throws {RequiredError}
|
|
90
90
|
*/
|
|
@@ -107,8 +107,8 @@ export declare const ReferenceDataApiAxiosParamCreator: (configuration?: Configu
|
|
|
107
107
|
*/
|
|
108
108
|
export declare const ReferenceDataApiFp: (configuration?: Configuration) => {
|
|
109
109
|
/**
|
|
110
|
-
*
|
|
111
|
-
* @summary
|
|
110
|
+
* Returns an Exchange Rate Pair object for the specified Currency Pair.
|
|
111
|
+
* @summary Get exchange rate of a currency pair
|
|
112
112
|
* @param {ReferenceDataApiGetCurrencyExchangeRatePairRequest} requestParameters Request parameters.
|
|
113
113
|
* @param {*} [options] Override http request option.
|
|
114
114
|
* @throws {RequiredError}
|
|
@@ -129,14 +129,14 @@ export declare const ReferenceDataApiFp: (configuration?: Configuration) => {
|
|
|
129
129
|
*/
|
|
130
130
|
getSecurityTypes(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SecurityType>>>;
|
|
131
131
|
/**
|
|
132
|
-
*
|
|
133
|
-
* @summary
|
|
132
|
+
* Returns a list of all supported Exchanges.
|
|
133
|
+
* @summary Get exchanges
|
|
134
134
|
* @param {*} [options] Override http request option.
|
|
135
135
|
* @throws {RequiredError}
|
|
136
136
|
*/
|
|
137
137
|
getStockExchanges(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Exchange>>>;
|
|
138
138
|
/**
|
|
139
|
-
*
|
|
139
|
+
* Returns a list of Universal Symbol objects that match a defined string. Matches on ticker or name.
|
|
140
140
|
* @summary Search for symbols
|
|
141
141
|
* @param {ReferenceDataApiGetSymbolsRequest} requestParameters Request parameters.
|
|
142
142
|
* @param {*} [options] Override http request option.
|
|
@@ -144,38 +144,38 @@ export declare const ReferenceDataApiFp: (configuration?: Configuration) => {
|
|
|
144
144
|
*/
|
|
145
145
|
getSymbols(requestParameters?: ReferenceDataApiGetSymbolsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UniversalSymbol>>>;
|
|
146
146
|
/**
|
|
147
|
-
*
|
|
148
|
-
* @summary Get details of a symbol
|
|
147
|
+
* Returns the Universal Symbol object specified by the ticker or the universal_symbol_id.
|
|
148
|
+
* @summary Get details of a symbol
|
|
149
149
|
* @param {ReferenceDataApiGetSymbolsByTickerRequest} requestParameters Request parameters.
|
|
150
150
|
* @param {*} [options] Override http request option.
|
|
151
151
|
* @throws {RequiredError}
|
|
152
152
|
*/
|
|
153
153
|
getSymbolsByTicker(requestParameters: ReferenceDataApiGetSymbolsByTickerRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UniversalSymbol>>;
|
|
154
154
|
/**
|
|
155
|
-
*
|
|
156
|
-
* @summary
|
|
155
|
+
* Returns a list of all defined Brokerage authorization Type objects.
|
|
156
|
+
* @summary Get all brokerage authorization types
|
|
157
157
|
* @param {ReferenceDataApiListAllBrokerageAuthorizationTypeRequest} requestParameters Request parameters.
|
|
158
158
|
* @param {*} [options] Override http request option.
|
|
159
159
|
* @throws {RequiredError}
|
|
160
160
|
*/
|
|
161
161
|
listAllBrokerageAuthorizationType(requestParameters?: ReferenceDataApiListAllBrokerageAuthorizationTypeRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BrokerageAuthorizationTypeReadOnly>>>;
|
|
162
162
|
/**
|
|
163
|
-
*
|
|
164
|
-
* @summary
|
|
163
|
+
* Returns a list of all defined Brokerage objects.
|
|
164
|
+
* @summary Get brokerages
|
|
165
165
|
* @param {*} [options] Override http request option.
|
|
166
166
|
* @throws {RequiredError}
|
|
167
167
|
*/
|
|
168
168
|
listAllBrokerages(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Brokerage>>>;
|
|
169
169
|
/**
|
|
170
|
-
*
|
|
171
|
-
* @summary
|
|
170
|
+
* Returns a list of all defined Currency objects.
|
|
171
|
+
* @summary Get currencies
|
|
172
172
|
* @param {*} [options] Override http request option.
|
|
173
173
|
* @throws {RequiredError}
|
|
174
174
|
*/
|
|
175
175
|
listAllCurrencies(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Currency>>>;
|
|
176
176
|
/**
|
|
177
|
-
*
|
|
178
|
-
* @summary
|
|
177
|
+
* Returns a list of all Exchange Rate Pairs for all supported Currencies.
|
|
178
|
+
* @summary Get currency exchange rates
|
|
179
179
|
* @param {*} [options] Override http request option.
|
|
180
180
|
* @throws {RequiredError}
|
|
181
181
|
*/
|
|
@@ -195,8 +195,8 @@ export declare const ReferenceDataApiFp: (configuration?: Configuration) => {
|
|
|
195
195
|
*/
|
|
196
196
|
export declare const ReferenceDataApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
197
197
|
/**
|
|
198
|
-
*
|
|
199
|
-
* @summary
|
|
198
|
+
* Returns an Exchange Rate Pair object for the specified Currency Pair.
|
|
199
|
+
* @summary Get exchange rate of a currency pair
|
|
200
200
|
* @param {ReferenceDataApiGetCurrencyExchangeRatePairRequest} requestParameters Request parameters.
|
|
201
201
|
* @param {*} [options] Override http request option.
|
|
202
202
|
* @throws {RequiredError}
|
|
@@ -217,14 +217,14 @@ export declare const ReferenceDataApiFactory: (configuration?: Configuration, ba
|
|
|
217
217
|
*/
|
|
218
218
|
getSecurityTypes(options?: AxiosRequestConfig): AxiosPromise<Array<SecurityType>>;
|
|
219
219
|
/**
|
|
220
|
-
*
|
|
221
|
-
* @summary
|
|
220
|
+
* Returns a list of all supported Exchanges.
|
|
221
|
+
* @summary Get exchanges
|
|
222
222
|
* @param {*} [options] Override http request option.
|
|
223
223
|
* @throws {RequiredError}
|
|
224
224
|
*/
|
|
225
225
|
getStockExchanges(options?: AxiosRequestConfig): AxiosPromise<Array<Exchange>>;
|
|
226
226
|
/**
|
|
227
|
-
*
|
|
227
|
+
* Returns a list of Universal Symbol objects that match a defined string. Matches on ticker or name.
|
|
228
228
|
* @summary Search for symbols
|
|
229
229
|
* @param {ReferenceDataApiGetSymbolsRequest} requestParameters Request parameters.
|
|
230
230
|
* @param {*} [options] Override http request option.
|
|
@@ -232,38 +232,38 @@ export declare const ReferenceDataApiFactory: (configuration?: Configuration, ba
|
|
|
232
232
|
*/
|
|
233
233
|
getSymbols(requestParameters?: ReferenceDataApiGetSymbolsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UniversalSymbol>>;
|
|
234
234
|
/**
|
|
235
|
-
*
|
|
236
|
-
* @summary Get details of a symbol
|
|
235
|
+
* Returns the Universal Symbol object specified by the ticker or the universal_symbol_id.
|
|
236
|
+
* @summary Get details of a symbol
|
|
237
237
|
* @param {ReferenceDataApiGetSymbolsByTickerRequest} requestParameters Request parameters.
|
|
238
238
|
* @param {*} [options] Override http request option.
|
|
239
239
|
* @throws {RequiredError}
|
|
240
240
|
*/
|
|
241
241
|
getSymbolsByTicker(requestParameters: ReferenceDataApiGetSymbolsByTickerRequest, options?: AxiosRequestConfig): AxiosPromise<UniversalSymbol>;
|
|
242
242
|
/**
|
|
243
|
-
*
|
|
244
|
-
* @summary
|
|
243
|
+
* Returns a list of all defined Brokerage authorization Type objects.
|
|
244
|
+
* @summary Get all brokerage authorization types
|
|
245
245
|
* @param {ReferenceDataApiListAllBrokerageAuthorizationTypeRequest} requestParameters Request parameters.
|
|
246
246
|
* @param {*} [options] Override http request option.
|
|
247
247
|
* @throws {RequiredError}
|
|
248
248
|
*/
|
|
249
249
|
listAllBrokerageAuthorizationType(requestParameters?: ReferenceDataApiListAllBrokerageAuthorizationTypeRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BrokerageAuthorizationTypeReadOnly>>;
|
|
250
250
|
/**
|
|
251
|
-
*
|
|
252
|
-
* @summary
|
|
251
|
+
* Returns a list of all defined Brokerage objects.
|
|
252
|
+
* @summary Get brokerages
|
|
253
253
|
* @param {*} [options] Override http request option.
|
|
254
254
|
* @throws {RequiredError}
|
|
255
255
|
*/
|
|
256
256
|
listAllBrokerages(options?: AxiosRequestConfig): AxiosPromise<Array<Brokerage>>;
|
|
257
257
|
/**
|
|
258
|
-
*
|
|
259
|
-
* @summary
|
|
258
|
+
* Returns a list of all defined Currency objects.
|
|
259
|
+
* @summary Get currencies
|
|
260
260
|
* @param {*} [options] Override http request option.
|
|
261
261
|
* @throws {RequiredError}
|
|
262
262
|
*/
|
|
263
263
|
listAllCurrencies(options?: AxiosRequestConfig): AxiosPromise<Array<Currency>>;
|
|
264
264
|
/**
|
|
265
|
-
*
|
|
266
|
-
* @summary
|
|
265
|
+
* Returns a list of all Exchange Rate Pairs for all supported Currencies.
|
|
266
|
+
* @summary Get currency exchange rates
|
|
267
267
|
* @param {*} [options] Override http request option.
|
|
268
268
|
* @throws {RequiredError}
|
|
269
269
|
*/
|
|
@@ -355,8 +355,8 @@ export type ReferenceDataApiSymbolSearchUserAccountRequest = {
|
|
|
355
355
|
*/
|
|
356
356
|
export declare class ReferenceDataApiGenerated extends BaseAPI {
|
|
357
357
|
/**
|
|
358
|
-
*
|
|
359
|
-
* @summary
|
|
358
|
+
* Returns an Exchange Rate Pair object for the specified Currency Pair.
|
|
359
|
+
* @summary Get exchange rate of a currency pair
|
|
360
360
|
* @param {ReferenceDataApiGetCurrencyExchangeRatePairRequest} requestParameters Request parameters.
|
|
361
361
|
* @param {*} [options] Override http request option.
|
|
362
362
|
* @throws {RequiredError}
|
|
@@ -380,15 +380,15 @@ export declare class ReferenceDataApiGenerated extends BaseAPI {
|
|
|
380
380
|
*/
|
|
381
381
|
getSecurityTypes(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SecurityType[], any>>;
|
|
382
382
|
/**
|
|
383
|
-
*
|
|
384
|
-
* @summary
|
|
383
|
+
* Returns a list of all supported Exchanges.
|
|
384
|
+
* @summary Get exchanges
|
|
385
385
|
* @param {*} [options] Override http request option.
|
|
386
386
|
* @throws {RequiredError}
|
|
387
387
|
* @memberof ReferenceDataApiGenerated
|
|
388
388
|
*/
|
|
389
389
|
getStockExchanges(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Exchange[], any>>;
|
|
390
390
|
/**
|
|
391
|
-
*
|
|
391
|
+
* Returns a list of Universal Symbol objects that match a defined string. Matches on ticker or name.
|
|
392
392
|
* @summary Search for symbols
|
|
393
393
|
* @param {ReferenceDataApiGetSymbolsRequest} requestParameters Request parameters.
|
|
394
394
|
* @param {*} [options] Override http request option.
|
|
@@ -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
|
-
*
|
|
401
|
-
* @summary Get details of a symbol
|
|
400
|
+
* Returns the Universal Symbol object specified by the ticker or the universal_symbol_id.
|
|
401
|
+
* @summary Get details of a symbol
|
|
402
402
|
* @param {ReferenceDataApiGetSymbolsByTickerRequest} requestParameters Request parameters.
|
|
403
403
|
* @param {*} [options] Override http request option.
|
|
404
404
|
* @throws {RequiredError}
|
|
@@ -406,8 +406,8 @@ export declare class ReferenceDataApiGenerated extends BaseAPI {
|
|
|
406
406
|
*/
|
|
407
407
|
getSymbolsByTicker(requestParameters: ReferenceDataApiGetSymbolsByTickerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UniversalSymbol, any>>;
|
|
408
408
|
/**
|
|
409
|
-
*
|
|
410
|
-
* @summary
|
|
409
|
+
* Returns a list of all defined Brokerage authorization Type objects.
|
|
410
|
+
* @summary Get all brokerage authorization types
|
|
411
411
|
* @param {ReferenceDataApiListAllBrokerageAuthorizationTypeRequest} requestParameters Request parameters.
|
|
412
412
|
* @param {*} [options] Override http request option.
|
|
413
413
|
* @throws {RequiredError}
|
|
@@ -415,24 +415,24 @@ export declare class ReferenceDataApiGenerated extends BaseAPI {
|
|
|
415
415
|
*/
|
|
416
416
|
listAllBrokerageAuthorizationType(requestParameters?: ReferenceDataApiListAllBrokerageAuthorizationTypeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BrokerageAuthorizationTypeReadOnly[], any>>;
|
|
417
417
|
/**
|
|
418
|
-
*
|
|
419
|
-
* @summary
|
|
418
|
+
* Returns a list of all defined Brokerage objects.
|
|
419
|
+
* @summary Get brokerages
|
|
420
420
|
* @param {*} [options] Override http request option.
|
|
421
421
|
* @throws {RequiredError}
|
|
422
422
|
* @memberof ReferenceDataApiGenerated
|
|
423
423
|
*/
|
|
424
424
|
listAllBrokerages(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Brokerage[], any>>;
|
|
425
425
|
/**
|
|
426
|
-
*
|
|
427
|
-
* @summary
|
|
426
|
+
* Returns a list of all defined Currency objects.
|
|
427
|
+
* @summary Get currencies
|
|
428
428
|
* @param {*} [options] Override http request option.
|
|
429
429
|
* @throws {RequiredError}
|
|
430
430
|
* @memberof ReferenceDataApiGenerated
|
|
431
431
|
*/
|
|
432
432
|
listAllCurrencies(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Currency[], any>>;
|
|
433
433
|
/**
|
|
434
|
-
*
|
|
435
|
-
* @summary
|
|
434
|
+
* Returns a list of all Exchange Rate Pairs for all supported Currencies.
|
|
435
|
+
* @summary Get currency exchange rates
|
|
436
436
|
* @param {*} [options] Override http request option.
|
|
437
437
|
* @throws {RequiredError}
|
|
438
438
|
* @memberof ReferenceDataApiGenerated
|