snaptrade-typescript-sdk 8.17.0 → 8.18.0

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.
Files changed (288) hide show
  1. package/README.md +147 -183
  2. package/dist/api/account-information-api-custom.d.ts +3 -3
  3. package/dist/api/account-information-api-custom.js +27 -27
  4. package/dist/api/account-information-api.d.ts +526 -527
  5. package/dist/api/account-information-api.js +1049 -1050
  6. package/dist/api/api-status-api-custom.d.ts +3 -3
  7. package/dist/api/api-status-api-custom.js +27 -27
  8. package/dist/api/api-status-api.d.ts +70 -71
  9. package/dist/api/api-status-api.js +203 -204
  10. package/dist/api/authentication-api-custom.d.ts +3 -3
  11. package/dist/api/authentication-api-custom.js +27 -27
  12. package/dist/api/authentication-api.d.ts +267 -268
  13. package/dist/api/authentication-api.js +661 -662
  14. package/dist/api/connections-api-custom.d.ts +3 -3
  15. package/dist/api/connections-api-custom.js +27 -27
  16. package/dist/api/connections-api.d.ts +275 -276
  17. package/dist/api/connections-api.js +583 -584
  18. package/dist/api/error-logs-api-custom.d.ts +3 -3
  19. package/dist/api/error-logs-api-custom.js +27 -27
  20. package/dist/api/error-logs-api.d.ts +94 -95
  21. package/dist/api/error-logs-api.js +240 -241
  22. package/dist/api/options-api-custom.d.ts +3 -3
  23. package/dist/api/options-api-custom.js +27 -27
  24. package/dist/api/options-api.d.ts +369 -370
  25. package/dist/api/options-api.js +730 -731
  26. package/dist/api/reference-data-api-custom.d.ts +3 -3
  27. package/dist/api/reference-data-api-custom.js +27 -27
  28. package/dist/api/reference-data-api.d.ts +468 -469
  29. package/dist/api/reference-data-api.js +1246 -1247
  30. package/dist/api/trading-api-custom.d.ts +3 -3
  31. package/dist/api/trading-api-custom.js +27 -27
  32. package/dist/api/trading-api.d.ts +403 -634
  33. package/dist/api/trading-api.js +841 -1282
  34. package/dist/api/transactions-and-reporting-api-custom.d.ts +3 -3
  35. package/dist/api/transactions-and-reporting-api-custom.js +27 -27
  36. package/dist/api/transactions-and-reporting-api.d.ts +218 -219
  37. package/dist/api/transactions-and-reporting-api.js +403 -404
  38. package/dist/api.d.ts +19 -21
  39. package/dist/api.js +37 -39
  40. package/dist/base.d.ts +54 -55
  41. package/dist/base.js +81 -82
  42. package/dist/client-custom.d.ts +4 -4
  43. package/dist/client-custom.js +9 -9
  44. package/dist/client.d.ts +25 -27
  45. package/dist/client.js +50 -52
  46. package/dist/common.d.ts +67 -67
  47. package/dist/common.js +236 -233
  48. package/dist/configuration.d.ts +99 -100
  49. package/dist/configuration.js +55 -56
  50. package/dist/index.d.ts +14 -15
  51. package/dist/index.js +32 -33
  52. package/dist/jest.config.d.ts +3 -3
  53. package/dist/jest.config.js +13 -13
  54. package/dist/models/account-holdings-account.d.ts +53 -54
  55. package/dist/models/account-holdings-account.js +14 -15
  56. package/dist/models/account-holdings.d.ts +46 -47
  57. package/dist/models/account-holdings.js +14 -15
  58. package/dist/models/account-order-record-status.d.ts +16 -17
  59. package/dist/models/account-order-record-status.js +14 -15
  60. package/dist/models/account-order-record.d.ts +132 -133
  61. package/dist/models/account-order-record.js +14 -15
  62. package/dist/models/account-simple.d.ts +43 -44
  63. package/dist/models/account-simple.js +14 -15
  64. package/dist/models/account-sync-status.d.ts +24 -25
  65. package/dist/models/account-sync-status.js +14 -15
  66. package/dist/models/account.d.ts +82 -83
  67. package/dist/models/account.js +14 -15
  68. package/dist/models/action.d.ts +16 -17
  69. package/dist/models/action.js +14 -15
  70. package/dist/models/authentication-login-snap-trade-user200-response.d.ts +17 -18
  71. package/dist/models/authentication-login-snap-trade-user200-response.js +14 -15
  72. package/dist/models/balance.d.ts +31 -32
  73. package/dist/models/balance.js +14 -15
  74. package/dist/models/brokerage-authorization-type-read-only-brokerage.d.ts +36 -37
  75. package/dist/models/brokerage-authorization-type-read-only-brokerage.js +14 -15
  76. package/dist/models/brokerage-authorization-type-read-only.d.ts +46 -47
  77. package/dist/models/brokerage-authorization-type-read-only.js +14 -15
  78. package/dist/models/brokerage-authorization-type.d.ts +26 -27
  79. package/dist/models/brokerage-authorization-type.js +14 -15
  80. package/dist/models/brokerage-authorization.d.ts +75 -76
  81. package/dist/models/brokerage-authorization.js +14 -15
  82. package/dist/models/brokerage-symbol.d.ts +50 -51
  83. package/dist/models/brokerage-symbol.js +14 -15
  84. package/dist/models/brokerage-type.d.ts +30 -31
  85. package/dist/models/brokerage-type.js +14 -15
  86. package/dist/models/brokerage.d.ts +127 -128
  87. package/dist/models/brokerage.js +14 -15
  88. package/dist/models/calculated-trade.d.ts +31 -32
  89. package/dist/models/calculated-trade.js +14 -15
  90. package/dist/models/cash-restriction.d.ts +50 -51
  91. package/dist/models/cash-restriction.js +14 -15
  92. package/dist/models/connections-session-events200-response-inner.d.ts +16 -17
  93. package/dist/models/connections-session-events200-response-inner.js +14 -15
  94. package/dist/models/currency.d.ts +36 -37
  95. package/dist/models/currency.js +14 -15
  96. package/dist/models/delete-user-response.d.ts +30 -31
  97. package/dist/models/delete-user-response.js +14 -15
  98. package/dist/models/dividend-at-date.d.ts +36 -37
  99. package/dist/models/dividend-at-date.js +14 -15
  100. package/dist/models/encrypted-response-encrypted-message-data.d.ts +36 -37
  101. package/dist/models/encrypted-response-encrypted-message-data.js +14 -15
  102. package/dist/models/encrypted-response.d.ts +30 -31
  103. package/dist/models/encrypted-response.js +14 -15
  104. package/dist/models/exchange-rate-pairs.d.ts +37 -38
  105. package/dist/models/exchange-rate-pairs.js +14 -15
  106. package/dist/models/exchange.d.ts +66 -67
  107. package/dist/models/exchange.js +14 -15
  108. package/dist/models/excluded-asset.d.ts +25 -26
  109. package/dist/models/excluded-asset.js +14 -15
  110. package/dist/models/index.d.ts +108 -108
  111. package/dist/models/index.js +124 -124
  112. package/dist/models/jwt.d.ts +24 -25
  113. package/dist/models/jwt.js +14 -15
  114. package/dist/models/login-redirect-uri.d.ts +29 -30
  115. package/dist/models/login-redirect-uri.js +14 -15
  116. package/dist/models/manual-trade-and-impact.d.ts +38 -39
  117. package/dist/models/manual-trade-and-impact.js +14 -15
  118. package/dist/models/manual-trade-balance.d.ts +38 -39
  119. package/dist/models/manual-trade-balance.js +14 -15
  120. package/dist/models/manual-trade-form.d.ts +68 -69
  121. package/dist/models/manual-trade-form.js +14 -15
  122. package/dist/models/manual-trade-symbol.d.ts +55 -56
  123. package/dist/models/manual-trade-symbol.js +14 -15
  124. package/dist/models/manual-trade.d.ts +70 -71
  125. package/dist/models/manual-trade.js +14 -15
  126. package/dist/models/model-asset-class-details.d.ts +32 -32
  127. package/dist/models/model-asset-class-details.js +14 -15
  128. package/dist/models/model-asset-class-target.d.ts +25 -26
  129. package/dist/models/model-asset-class-target.js +14 -15
  130. package/dist/models/model-asset-class.d.ts +30 -31
  131. package/dist/models/model-asset-class.js +14 -15
  132. package/dist/models/model-portfolio-asset-class.d.ts +31 -32
  133. package/dist/models/model-portfolio-asset-class.js +14 -15
  134. package/dist/models/model-portfolio-details.d.ts +39 -39
  135. package/dist/models/model-portfolio-details.js +14 -15
  136. package/dist/models/model-portfolio-security.d.ts +31 -32
  137. package/dist/models/model-portfolio-security.js +14 -15
  138. package/dist/models/model-portfolio.d.ts +38 -39
  139. package/dist/models/model-portfolio.js +14 -15
  140. package/dist/models/model400-failed-request-response.d.ts +30 -31
  141. package/dist/models/model400-failed-request-response.js +14 -15
  142. package/dist/models/model401-failed-request-response.d.ts +30 -31
  143. package/dist/models/model401-failed-request-response.js +14 -15
  144. package/dist/models/model403-failed-request-response.d.ts +30 -31
  145. package/dist/models/model403-failed-request-response.js +14 -15
  146. package/dist/models/model404-failed-request-response.d.ts +30 -31
  147. package/dist/models/model404-failed-request-response.js +14 -15
  148. package/dist/models/monthly-dividends.d.ts +31 -32
  149. package/dist/models/monthly-dividends.js +14 -15
  150. package/dist/models/net-contributions.d.ts +36 -37
  151. package/dist/models/net-contributions.js +14 -15
  152. package/dist/models/net-dividend.d.ts +37 -38
  153. package/dist/models/net-dividend.js +14 -15
  154. package/dist/models/option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner.d.ts +36 -37
  155. package/dist/models/option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner.js +14 -15
  156. package/dist/models/option-chain-inner-chain-per-root-inner.d.ts +37 -38
  157. package/dist/models/option-chain-inner-chain-per-root-inner.js +14 -15
  158. package/dist/models/option-chain-inner.d.ts +49 -50
  159. package/dist/models/option-chain-inner.js +14 -15
  160. package/dist/models/option-leg.d.ts +38 -39
  161. package/dist/models/option-leg.js +14 -15
  162. package/dist/models/option-strategy-legs-inner.d.ts +41 -42
  163. package/dist/models/option-strategy-legs-inner.js +14 -15
  164. package/dist/models/option-strategy.d.ts +50 -51
  165. package/dist/models/option-strategy.js +14 -15
  166. package/dist/models/options-get-option-strategy-request.d.ts +38 -39
  167. package/dist/models/options-get-option-strategy-request.js +14 -15
  168. package/dist/models/options-holdings.d.ts +56 -57
  169. package/dist/models/options-holdings.js +14 -15
  170. package/dist/models/options-place-option-strategy-request.d.ts +38 -39
  171. package/dist/models/options-place-option-strategy-request.js +14 -15
  172. package/dist/models/options-position.d.ts +62 -63
  173. package/dist/models/options-position.js +14 -15
  174. package/dist/models/options-symbol.d.ts +85 -86
  175. package/dist/models/options-symbol.js +14 -15
  176. package/dist/models/order-type.d.ts +16 -17
  177. package/dist/models/order-type.js +14 -15
  178. package/dist/models/partner-data.d.ts +91 -92
  179. package/dist/models/partner-data.js +14 -15
  180. package/dist/models/past-value.d.ts +36 -37
  181. package/dist/models/past-value.js +14 -15
  182. package/dist/models/performance-custom.d.ts +137 -138
  183. package/dist/models/performance-custom.js +14 -15
  184. package/dist/models/portfolio-group-info.d.ts +92 -93
  185. package/dist/models/portfolio-group-info.js +14 -15
  186. package/dist/models/portfolio-group-position.d.ts +37 -38
  187. package/dist/models/portfolio-group-position.js +14 -15
  188. package/dist/models/portfolio-group-settings.d.ts +49 -50
  189. package/dist/models/portfolio-group-settings.js +14 -15
  190. package/dist/models/portfolio-group.d.ts +30 -31
  191. package/dist/models/portfolio-group.js +14 -15
  192. package/dist/models/position-symbol.d.ts +55 -56
  193. package/dist/models/position-symbol.js +14 -15
  194. package/dist/models/position.d.ts +55 -56
  195. package/dist/models/position.js +14 -15
  196. package/dist/models/redirect-tokenand-pin.d.ts +30 -31
  197. package/dist/models/redirect-tokenand-pin.js +14 -15
  198. package/dist/models/security-type.d.ts +42 -43
  199. package/dist/models/security-type.js +14 -15
  200. package/dist/models/session-event.d.ts +62 -63
  201. package/dist/models/session-event.js +14 -15
  202. package/dist/models/snap-trade-apidisclaimer-accept-status.d.ts +30 -31
  203. package/dist/models/snap-trade-apidisclaimer-accept-status.js +14 -15
  204. package/dist/models/snap-trade-holdings-account-account-id.d.ts +75 -76
  205. package/dist/models/snap-trade-holdings-account-account-id.js +14 -15
  206. package/dist/models/snap-trade-holdings-account.d.ts +70 -71
  207. package/dist/models/snap-trade-holdings-account.js +14 -15
  208. package/dist/models/snap-trade-holdings-total-value.d.ts +30 -31
  209. package/dist/models/snap-trade-holdings-total-value.js +14 -15
  210. package/dist/models/snap-trade-login-user-request-body.d.ts +49 -50
  211. package/dist/models/snap-trade-login-user-request-body.js +14 -15
  212. package/dist/models/snap-trade-register-user-request-body.d.ts +29 -30
  213. package/dist/models/snap-trade-register-user-request-body.js +14 -15
  214. package/dist/models/status.d.ts +36 -37
  215. package/dist/models/status.js +14 -15
  216. package/dist/models/strategy-impact-legs-inner.d.ts +60 -61
  217. package/dist/models/strategy-impact-legs-inner.js +14 -15
  218. package/dist/models/strategy-impact.d.ts +85 -86
  219. package/dist/models/strategy-impact.js +14 -15
  220. package/dist/models/strategy-order-place-orders-inner-legs-inner.d.ts +60 -61
  221. package/dist/models/strategy-order-place-orders-inner-legs-inner.js +14 -15
  222. package/dist/models/strategy-order-place-orders-inner.d.ts +277 -278
  223. package/dist/models/strategy-order-place-orders-inner.js +14 -15
  224. package/dist/models/strategy-order-place.d.ts +31 -32
  225. package/dist/models/strategy-order-place.js +14 -15
  226. package/dist/models/strategy-order-record.d.ts +89 -90
  227. package/dist/models/strategy-order-record.js +14 -15
  228. package/dist/models/strategy-quotes-greek.d.ts +48 -49
  229. package/dist/models/strategy-quotes-greek.js +14 -15
  230. package/dist/models/strategy-quotes.d.ts +56 -57
  231. package/dist/models/strategy-quotes.js +14 -15
  232. package/dist/models/sub-period-return-rate.d.ts +36 -37
  233. package/dist/models/sub-period-return-rate.js +14 -15
  234. package/dist/models/symbol-query.d.ts +23 -24
  235. package/dist/models/symbol-query.js +14 -15
  236. package/dist/models/symbol.d.ts +63 -64
  237. package/dist/models/symbol.js +14 -15
  238. package/dist/models/symbols-quotes-inner.d.ts +54 -55
  239. package/dist/models/symbols-quotes-inner.js +14 -15
  240. package/dist/models/target-asset.d.ts +57 -57
  241. package/dist/models/target-asset.js +14 -15
  242. package/dist/models/time-in-force.d.ts +16 -17
  243. package/dist/models/time-in-force.js +14 -15
  244. package/dist/models/trade-execution-status.d.ts +80 -81
  245. package/dist/models/trade-execution-status.js +14 -15
  246. package/dist/models/trade-impact.d.ts +50 -51
  247. package/dist/models/trade-impact.js +14 -15
  248. package/dist/models/trade.d.ts +71 -71
  249. package/dist/models/trade.js +14 -15
  250. package/dist/models/trading-cancel-user-account-order-request.d.ts +23 -24
  251. package/dist/models/trading-cancel-user-account-order-request.js +14 -15
  252. package/dist/models/trading-place-ocoorder-request.d.ts +29 -30
  253. package/dist/models/trading-place-ocoorder-request.js +14 -15
  254. package/dist/models/transactions-status.d.ts +29 -30
  255. package/dist/models/transactions-status.js +14 -15
  256. package/dist/models/underlying-symbol.d.ts +63 -64
  257. package/dist/models/underlying-symbol.js +14 -15
  258. package/dist/models/universal-activity.d.ts +118 -119
  259. package/dist/models/universal-activity.js +14 -15
  260. package/dist/models/universal-symbol-ticker.d.ts +69 -70
  261. package/dist/models/universal-symbol-ticker.js +14 -15
  262. package/dist/models/universal-symbol.d.ts +69 -69
  263. package/dist/models/universal-symbol.js +14 -15
  264. package/dist/models/user-error-log.d.ts +54 -55
  265. package/dist/models/user-error-log.js +14 -15
  266. package/dist/models/user-idand-secret.d.ts +30 -31
  267. package/dist/models/user-idand-secret.js +14 -15
  268. package/dist/models/user-settings.d.ts +79 -80
  269. package/dist/models/user-settings.js +14 -15
  270. package/dist/models/usexchange.d.ts +72 -73
  271. package/dist/models/usexchange.js +14 -15
  272. package/dist/pagination/page-types.d.ts +26 -27
  273. package/dist/pagination/page-types.js +12 -13
  274. package/dist/pagination/page.d.ts +35 -36
  275. package/dist/pagination/page.js +60 -61
  276. package/dist/pagination/pageable.d.ts +57 -58
  277. package/dist/pagination/pageable.js +126 -127
  278. package/dist/pagination/paginate.d.ts +16 -17
  279. package/dist/pagination/paginate.js +77 -78
  280. package/dist/requestAfterHook.d.ts +8 -8
  281. package/dist/requestAfterHook.js +45 -45
  282. package/dist/requestBeforeHook.d.ts +9 -9
  283. package/dist/requestBeforeHook.js +8 -8
  284. package/package.json +42 -42
  285. package/dist/api/portfolio-management-api-custom.d.ts +0 -3
  286. package/dist/api/portfolio-management-api-custom.js +0 -27
  287. package/dist/api/portfolio-management-api.d.ts +0 -1612
  288. package/dist/api/portfolio-management-api.js +0 -3534
@@ -1,469 +1,468 @@
1
- /**
2
- * SnapTrade
3
- * Connect brokerage accounts to your app for live positions and trading
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- * Contact: api@snaptrade.com
7
- *
8
- * NOTE: This file is auto generated by Konfig (https://konfigthis.com).
9
- * https://konfigthis.com
10
- * Do not edit the class manually.
11
- */
12
- import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
- import { Configuration } from '../configuration';
14
- import { RequestArgs } from '../base';
15
- import { Brokerage } from '../models';
16
- import { BrokerageAuthorizationTypeReadOnly } from '../models';
17
- import { Currency } from '../models';
18
- import { Exchange } from '../models';
19
- import { ExchangeRatePairs } from '../models';
20
- import { PartnerData } from '../models';
21
- import { SecurityType } from '../models';
22
- import { SymbolQuery } from '../models';
23
- import { UniversalSymbol } from '../models';
24
- import { ReferenceDataApiCustom } from "./reference-data-api-custom";
25
- /**
26
- * ReferenceDataApi - axios parameter creator
27
- * @export
28
- */
29
- export declare const ReferenceDataApiAxiosParamCreator: (configuration?: Configuration) => {
30
- /**
31
- *
32
- * @summary Return the exchange rate of a currency pair
33
- * @param {string} currencyPair A currency pair based on currency code for example, {CAD-USD}
34
- * @param {*} [options] Override http request option.
35
- * @throws {RequiredError}
36
- */
37
- getCurrencyExchangeRatePair: (currencyPair: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
38
- /**
39
- *
40
- * @summary Get metadata related to Snaptrade partner
41
- * @param {*} [options] Override http request option.
42
- * @throws {RequiredError}
43
- */
44
- getPartnerInfo: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
45
- /**
46
- *
47
- * @summary List of all security types.
48
- * @param {*} [options] Override http request option.
49
- * @throws {RequiredError}
50
- */
51
- getSecurityTypes: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
52
- /**
53
- *
54
- * @summary Return list of stock exchanges on Passiv and their suffixes
55
- * @param {*} [options] Override http request option.
56
- * @throws {RequiredError}
57
- */
58
- getStockExchanges: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
59
- /**
60
- *
61
- * @summary Search for symbols
62
- * @param {SymbolQuery} [symbolQuery]
63
- * @param {*} [options] Override http request option.
64
- * @throws {RequiredError}
65
- */
66
- getSymbols: (symbolQuery?: SymbolQuery, options?: AxiosRequestConfig) => Promise<RequestArgs>;
67
- /**
68
- *
69
- * @summary Get details of a symbol by the ticker
70
- * @param {string} ticker The ticker of the UniversalSymbol to get.
71
- * @param {string} [symbolId] OPTIONAL IN PATH Can be used instead of the ticker ; The ID of the UniversalSymbol to get.
72
- * @param {*} [options] Override http request option.
73
- * @throws {RequiredError}
74
- */
75
- getSymbolsByTicker: (ticker: string, symbolId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
76
- /**
77
- *
78
- * @summary List of all brokerage authorization types
79
- * @param {string} [brokerage] Comma separated value of brokerage slugs
80
- * @param {*} [options] Override http request option.
81
- * @throws {RequiredError}
82
- */
83
- listAllBrokerageAuthorizationType: (brokerage?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
84
- /**
85
- *
86
- * @summary List of all brokerages.
87
- * @param {*} [options] Override http request option.
88
- * @throws {RequiredError}
89
- */
90
- listAllBrokerages: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
91
- /**
92
- *
93
- * @summary List of all supported currencies
94
- * @param {*} [options] Override http request option.
95
- * @throws {RequiredError}
96
- */
97
- listAllCurrencies: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
98
- /**
99
- *
100
- * @summary Return the exchange rates of all supported currencies
101
- * @param {*} [options] Override http request option.
102
- * @throws {RequiredError}
103
- */
104
- listAllCurrenciesRates: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
105
- /**
106
- *
107
- * @summary Search for symbols that are supported by a brokerage account using a substring
108
- * @param {string} userId
109
- * @param {string} userSecret
110
- * @param {string} accountId The ID of the account get positions.
111
- * @param {SymbolQuery} [symbolQuery]
112
- * @param {*} [options] Override http request option.
113
- * @throws {RequiredError}
114
- */
115
- symbolSearchUserAccount: (userId: string, userSecret: string, accountId: string, symbolQuery?: SymbolQuery, options?: AxiosRequestConfig) => Promise<RequestArgs>;
116
- };
117
- /**
118
- * ReferenceDataApi - functional programming interface
119
- * @export
120
- */
121
- export declare const ReferenceDataApiFp: (configuration?: Configuration) => {
122
- /**
123
- *
124
- * @summary Return the exchange rate of a currency pair
125
- * @param {ReferenceDataApiGetCurrencyExchangeRatePairRequest} requestParameters Request parameters.
126
- * @param {*} [options] Override http request option.
127
- * @throws {RequiredError}
128
- */
129
- getCurrencyExchangeRatePair(requestParameters: ReferenceDataApiGetCurrencyExchangeRatePairRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExchangeRatePairs>>;
130
- /**
131
- *
132
- * @summary Get metadata related to Snaptrade partner
133
- * @param {*} [options] Override http request option.
134
- * @throws {RequiredError}
135
- */
136
- getPartnerInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PartnerData>>;
137
- /**
138
- *
139
- * @summary List of all security types.
140
- * @param {*} [options] Override http request option.
141
- * @throws {RequiredError}
142
- */
143
- getSecurityTypes(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SecurityType>>>;
144
- /**
145
- *
146
- * @summary Return list of stock exchanges on Passiv and their suffixes
147
- * @param {*} [options] Override http request option.
148
- * @throws {RequiredError}
149
- */
150
- getStockExchanges(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Exchange>>>;
151
- /**
152
- *
153
- * @summary Search for symbols
154
- * @param {ReferenceDataApiGetSymbolsRequest} requestParameters Request parameters.
155
- * @param {*} [options] Override http request option.
156
- * @throws {RequiredError}
157
- */
158
- getSymbols(requestParameters?: ReferenceDataApiGetSymbolsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UniversalSymbol>>>;
159
- /**
160
- *
161
- * @summary Get details of a symbol by the ticker
162
- * @param {ReferenceDataApiGetSymbolsByTickerRequest} requestParameters Request parameters.
163
- * @param {*} [options] Override http request option.
164
- * @throws {RequiredError}
165
- */
166
- getSymbolsByTicker(requestParameters: ReferenceDataApiGetSymbolsByTickerRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UniversalSymbol>>;
167
- /**
168
- *
169
- * @summary List of all brokerage authorization types
170
- * @param {ReferenceDataApiListAllBrokerageAuthorizationTypeRequest} requestParameters Request parameters.
171
- * @param {*} [options] Override http request option.
172
- * @throws {RequiredError}
173
- */
174
- listAllBrokerageAuthorizationType(requestParameters?: ReferenceDataApiListAllBrokerageAuthorizationTypeRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BrokerageAuthorizationTypeReadOnly>>>;
175
- /**
176
- *
177
- * @summary List of all brokerages.
178
- * @param {*} [options] Override http request option.
179
- * @throws {RequiredError}
180
- */
181
- listAllBrokerages(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Brokerage>>>;
182
- /**
183
- *
184
- * @summary List of all supported currencies
185
- * @param {*} [options] Override http request option.
186
- * @throws {RequiredError}
187
- */
188
- listAllCurrencies(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Currency>>>;
189
- /**
190
- *
191
- * @summary Return the exchange rates of all supported currencies
192
- * @param {*} [options] Override http request option.
193
- * @throws {RequiredError}
194
- */
195
- listAllCurrenciesRates(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ExchangeRatePairs>>>;
196
- /**
197
- *
198
- * @summary Search for symbols that are supported by a brokerage account using a substring
199
- * @param {ReferenceDataApiSymbolSearchUserAccountRequest} requestParameters Request parameters.
200
- * @param {*} [options] Override http request option.
201
- * @throws {RequiredError}
202
- */
203
- symbolSearchUserAccount(requestParameters: ReferenceDataApiSymbolSearchUserAccountRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UniversalSymbol>>>;
204
- };
205
- /**
206
- * ReferenceDataApi - factory interface
207
- * @export
208
- */
209
- export declare const ReferenceDataApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
210
- /**
211
- *
212
- * @summary Return the exchange rate of a currency pair
213
- * @param {ReferenceDataApiGetCurrencyExchangeRatePairRequest} requestParameters Request parameters.
214
- * @param {*} [options] Override http request option.
215
- * @throws {RequiredError}
216
- */
217
- getCurrencyExchangeRatePair(requestParameters: ReferenceDataApiGetCurrencyExchangeRatePairRequest, options?: AxiosRequestConfig): AxiosPromise<ExchangeRatePairs>;
218
- /**
219
- *
220
- * @summary Get metadata related to Snaptrade partner
221
- * @param {*} [options] Override http request option.
222
- * @throws {RequiredError}
223
- */
224
- getPartnerInfo(options?: AxiosRequestConfig): AxiosPromise<PartnerData>;
225
- /**
226
- *
227
- * @summary List of all security types.
228
- * @param {*} [options] Override http request option.
229
- * @throws {RequiredError}
230
- */
231
- getSecurityTypes(options?: AxiosRequestConfig): AxiosPromise<Array<SecurityType>>;
232
- /**
233
- *
234
- * @summary Return list of stock exchanges on Passiv and their suffixes
235
- * @param {*} [options] Override http request option.
236
- * @throws {RequiredError}
237
- */
238
- getStockExchanges(options?: AxiosRequestConfig): AxiosPromise<Array<Exchange>>;
239
- /**
240
- *
241
- * @summary Search for symbols
242
- * @param {ReferenceDataApiGetSymbolsRequest} requestParameters Request parameters.
243
- * @param {*} [options] Override http request option.
244
- * @throws {RequiredError}
245
- */
246
- getSymbols(requestParameters?: ReferenceDataApiGetSymbolsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UniversalSymbol>>;
247
- /**
248
- *
249
- * @summary Get details of a symbol by the ticker
250
- * @param {ReferenceDataApiGetSymbolsByTickerRequest} requestParameters Request parameters.
251
- * @param {*} [options] Override http request option.
252
- * @throws {RequiredError}
253
- */
254
- getSymbolsByTicker(requestParameters: ReferenceDataApiGetSymbolsByTickerRequest, options?: AxiosRequestConfig): AxiosPromise<UniversalSymbol>;
255
- /**
256
- *
257
- * @summary List of all brokerage authorization types
258
- * @param {ReferenceDataApiListAllBrokerageAuthorizationTypeRequest} requestParameters Request parameters.
259
- * @param {*} [options] Override http request option.
260
- * @throws {RequiredError}
261
- */
262
- listAllBrokerageAuthorizationType(requestParameters?: ReferenceDataApiListAllBrokerageAuthorizationTypeRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BrokerageAuthorizationTypeReadOnly>>;
263
- /**
264
- *
265
- * @summary List of all brokerages.
266
- * @param {*} [options] Override http request option.
267
- * @throws {RequiredError}
268
- */
269
- listAllBrokerages(options?: AxiosRequestConfig): AxiosPromise<Array<Brokerage>>;
270
- /**
271
- *
272
- * @summary List of all supported currencies
273
- * @param {*} [options] Override http request option.
274
- * @throws {RequiredError}
275
- */
276
- listAllCurrencies(options?: AxiosRequestConfig): AxiosPromise<Array<Currency>>;
277
- /**
278
- *
279
- * @summary Return the exchange rates of all supported currencies
280
- * @param {*} [options] Override http request option.
281
- * @throws {RequiredError}
282
- */
283
- listAllCurrenciesRates(options?: AxiosRequestConfig): AxiosPromise<Array<ExchangeRatePairs>>;
284
- /**
285
- *
286
- * @summary Search for symbols that are supported by a brokerage account using a substring
287
- * @param {ReferenceDataApiSymbolSearchUserAccountRequest} requestParameters Request parameters.
288
- * @param {*} [options] Override http request option.
289
- * @throws {RequiredError}
290
- */
291
- symbolSearchUserAccount(requestParameters: ReferenceDataApiSymbolSearchUserAccountRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UniversalSymbol>>;
292
- };
293
- /**
294
- * Request parameters for getCurrencyExchangeRatePair operation in ReferenceDataApi.
295
- * @export
296
- * @interface ReferenceDataApiGetCurrencyExchangeRatePairRequest
297
- */
298
- export type ReferenceDataApiGetCurrencyExchangeRatePairRequest = {
299
- /**
300
- * A currency pair based on currency code for example, {CAD-USD}
301
- * @type {string}
302
- * @memberof ReferenceDataApiGetCurrencyExchangeRatePair
303
- */
304
- readonly currencyPair: string;
305
- };
306
- /**
307
- * Request parameters for getSymbols operation in ReferenceDataApi.
308
- * @export
309
- * @interface ReferenceDataApiGetSymbolsRequest
310
- */
311
- export type ReferenceDataApiGetSymbolsRequest = {} & SymbolQuery;
312
- /**
313
- * Request parameters for getSymbolsByTicker operation in ReferenceDataApi.
314
- * @export
315
- * @interface ReferenceDataApiGetSymbolsByTickerRequest
316
- */
317
- export type ReferenceDataApiGetSymbolsByTickerRequest = {
318
- /**
319
- * The ticker of the UniversalSymbol to get.
320
- * @type {string}
321
- * @memberof ReferenceDataApiGetSymbolsByTicker
322
- */
323
- readonly ticker: string;
324
- /**
325
- * OPTIONAL IN PATH Can be used instead of the ticker ; The ID of the UniversalSymbol to get.
326
- * @type {string}
327
- * @memberof ReferenceDataApiGetSymbolsByTicker
328
- */
329
- readonly symbolId?: string;
330
- };
331
- /**
332
- * Request parameters for listAllBrokerageAuthorizationType operation in ReferenceDataApi.
333
- * @export
334
- * @interface ReferenceDataApiListAllBrokerageAuthorizationTypeRequest
335
- */
336
- export type ReferenceDataApiListAllBrokerageAuthorizationTypeRequest = {
337
- /**
338
- * Comma separated value of brokerage slugs
339
- * @type {string}
340
- * @memberof ReferenceDataApiListAllBrokerageAuthorizationType
341
- */
342
- readonly brokerage?: string;
343
- };
344
- /**
345
- * Request parameters for symbolSearchUserAccount operation in ReferenceDataApi.
346
- * @export
347
- * @interface ReferenceDataApiSymbolSearchUserAccountRequest
348
- */
349
- export type ReferenceDataApiSymbolSearchUserAccountRequest = {
350
- /**
351
- *
352
- * @type {string}
353
- * @memberof ReferenceDataApiSymbolSearchUserAccount
354
- */
355
- readonly userId: string;
356
- /**
357
- *
358
- * @type {string}
359
- * @memberof ReferenceDataApiSymbolSearchUserAccount
360
- */
361
- readonly userSecret: string;
362
- /**
363
- * The ID of the account get positions.
364
- * @type {string}
365
- * @memberof ReferenceDataApiSymbolSearchUserAccount
366
- */
367
- readonly accountId: string;
368
- } & SymbolQuery;
369
- /**
370
- * ReferenceDataApi - object-oriented interface
371
- * @export
372
- * @class ReferenceDataApi
373
- * @extends {BaseAPI}
374
- */
375
- export declare class ReferenceDataApi extends ReferenceDataApiCustom {
376
- /**
377
- *
378
- * @summary Return the exchange rate of a currency pair
379
- * @param {ReferenceDataApiGetCurrencyExchangeRatePairRequest} requestParameters Request parameters.
380
- * @param {*} [options] Override http request option.
381
- * @throws {RequiredError}
382
- * @memberof ReferenceDataApi
383
- */
384
- getCurrencyExchangeRatePair(requestParameters: ReferenceDataApiGetCurrencyExchangeRatePairRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExchangeRatePairs, any>>;
385
- /**
386
- *
387
- * @summary Get metadata related to Snaptrade partner
388
- * @param {*} [options] Override http request option.
389
- * @throws {RequiredError}
390
- * @memberof ReferenceDataApi
391
- */
392
- getPartnerInfo(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PartnerData, any>>;
393
- /**
394
- *
395
- * @summary List of all security types.
396
- * @param {*} [options] Override http request option.
397
- * @throws {RequiredError}
398
- * @memberof ReferenceDataApi
399
- */
400
- getSecurityTypes(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SecurityType[], any>>;
401
- /**
402
- *
403
- * @summary Return list of stock exchanges on Passiv and their suffixes
404
- * @param {*} [options] Override http request option.
405
- * @throws {RequiredError}
406
- * @memberof ReferenceDataApi
407
- */
408
- getStockExchanges(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Exchange[], any>>;
409
- /**
410
- *
411
- * @summary Search for symbols
412
- * @param {ReferenceDataApiGetSymbolsRequest} requestParameters Request parameters.
413
- * @param {*} [options] Override http request option.
414
- * @throws {RequiredError}
415
- * @memberof ReferenceDataApi
416
- */
417
- getSymbols(requestParameters?: ReferenceDataApiGetSymbolsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UniversalSymbol[], any>>;
418
- /**
419
- *
420
- * @summary Get details of a symbol by the ticker
421
- * @param {ReferenceDataApiGetSymbolsByTickerRequest} requestParameters Request parameters.
422
- * @param {*} [options] Override http request option.
423
- * @throws {RequiredError}
424
- * @memberof ReferenceDataApi
425
- */
426
- getSymbolsByTicker(requestParameters: ReferenceDataApiGetSymbolsByTickerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UniversalSymbol, any>>;
427
- /**
428
- *
429
- * @summary List of all brokerage authorization types
430
- * @param {ReferenceDataApiListAllBrokerageAuthorizationTypeRequest} requestParameters Request parameters.
431
- * @param {*} [options] Override http request option.
432
- * @throws {RequiredError}
433
- * @memberof ReferenceDataApi
434
- */
435
- listAllBrokerageAuthorizationType(requestParameters?: ReferenceDataApiListAllBrokerageAuthorizationTypeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BrokerageAuthorizationTypeReadOnly[], any>>;
436
- /**
437
- *
438
- * @summary List of all brokerages.
439
- * @param {*} [options] Override http request option.
440
- * @throws {RequiredError}
441
- * @memberof ReferenceDataApi
442
- */
443
- listAllBrokerages(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Brokerage[], any>>;
444
- /**
445
- *
446
- * @summary List of all supported currencies
447
- * @param {*} [options] Override http request option.
448
- * @throws {RequiredError}
449
- * @memberof ReferenceDataApi
450
- */
451
- listAllCurrencies(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Currency[], any>>;
452
- /**
453
- *
454
- * @summary Return the exchange rates of all supported currencies
455
- * @param {*} [options] Override http request option.
456
- * @throws {RequiredError}
457
- * @memberof ReferenceDataApi
458
- */
459
- listAllCurrenciesRates(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExchangeRatePairs[], any>>;
460
- /**
461
- *
462
- * @summary Search for symbols that are supported by a brokerage account using a substring
463
- * @param {ReferenceDataApiSymbolSearchUserAccountRequest} requestParameters Request parameters.
464
- * @param {*} [options] Override http request option.
465
- * @throws {RequiredError}
466
- * @memberof ReferenceDataApi
467
- */
468
- symbolSearchUserAccount(requestParameters: ReferenceDataApiSymbolSearchUserAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UniversalSymbol[], any>>;
469
- }
1
+ /**
2
+ * SnapTrade
3
+ * Connect brokerage accounts to your app for live positions and trading
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: api@snaptrade.com
7
+ *
8
+ * NOTE: This file is auto generated by Konfig (https://konfigthis.com).
9
+ * Do not edit the class manually.
10
+ */
11
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
12
+ import { Configuration } from '../configuration';
13
+ import { RequestArgs } from '../base';
14
+ import { Brokerage } from '../models';
15
+ import { BrokerageAuthorizationTypeReadOnly } from '../models';
16
+ import { Currency } from '../models';
17
+ import { Exchange } from '../models';
18
+ import { ExchangeRatePairs } from '../models';
19
+ import { PartnerData } from '../models';
20
+ import { SecurityType } from '../models';
21
+ import { SymbolQuery } from '../models';
22
+ import { UniversalSymbol } from '../models';
23
+ import { ReferenceDataApiCustom } from "./reference-data-api-custom";
24
+ /**
25
+ * ReferenceDataApi - axios parameter creator
26
+ * @export
27
+ */
28
+ export declare const ReferenceDataApiAxiosParamCreator: (configuration?: Configuration) => {
29
+ /**
30
+ *
31
+ * @summary Return the exchange rate of a currency pair
32
+ * @param {string} currencyPair A currency pair based on currency code for example, {CAD-USD}
33
+ * @param {*} [options] Override http request option.
34
+ * @throws {RequiredError}
35
+ */
36
+ getCurrencyExchangeRatePair: (currencyPair: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
37
+ /**
38
+ *
39
+ * @summary Get metadata related to Snaptrade partner
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ getPartnerInfo: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
44
+ /**
45
+ *
46
+ * @summary List of all security types.
47
+ * @param {*} [options] Override http request option.
48
+ * @throws {RequiredError}
49
+ */
50
+ getSecurityTypes: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
51
+ /**
52
+ *
53
+ * @summary Return list of stock exchanges on Passiv and their suffixes
54
+ * @param {*} [options] Override http request option.
55
+ * @throws {RequiredError}
56
+ */
57
+ getStockExchanges: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
58
+ /**
59
+ *
60
+ * @summary Search for symbols
61
+ * @param {SymbolQuery} [symbolQuery]
62
+ * @param {*} [options] Override http request option.
63
+ * @throws {RequiredError}
64
+ */
65
+ getSymbols: (symbolQuery?: SymbolQuery, options?: AxiosRequestConfig) => Promise<RequestArgs>;
66
+ /**
67
+ *
68
+ * @summary Get details of a symbol by the ticker
69
+ * @param {string} ticker The ticker of the UniversalSymbol to get.
70
+ * @param {string} [symbolId] OPTIONAL IN PATH Can be used instead of the ticker ; The ID of the UniversalSymbol to get.
71
+ * @param {*} [options] Override http request option.
72
+ * @throws {RequiredError}
73
+ */
74
+ getSymbolsByTicker: (ticker: string, symbolId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
75
+ /**
76
+ *
77
+ * @summary List of all brokerage authorization types
78
+ * @param {string} [brokerage] Comma separated value of brokerage slugs
79
+ * @param {*} [options] Override http request option.
80
+ * @throws {RequiredError}
81
+ */
82
+ listAllBrokerageAuthorizationType: (brokerage?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
83
+ /**
84
+ *
85
+ * @summary List of all brokerages.
86
+ * @param {*} [options] Override http request option.
87
+ * @throws {RequiredError}
88
+ */
89
+ listAllBrokerages: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
90
+ /**
91
+ *
92
+ * @summary List of all supported currencies
93
+ * @param {*} [options] Override http request option.
94
+ * @throws {RequiredError}
95
+ */
96
+ listAllCurrencies: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
97
+ /**
98
+ *
99
+ * @summary Return the exchange rates of all supported currencies
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ listAllCurrenciesRates: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
104
+ /**
105
+ *
106
+ * @summary Search for symbols that are supported by a brokerage account using a substring
107
+ * @param {string} userId
108
+ * @param {string} userSecret
109
+ * @param {string} accountId The ID of the account get positions.
110
+ * @param {SymbolQuery} [symbolQuery]
111
+ * @param {*} [options] Override http request option.
112
+ * @throws {RequiredError}
113
+ */
114
+ symbolSearchUserAccount: (userId: string, userSecret: string, accountId: string, symbolQuery?: SymbolQuery, options?: AxiosRequestConfig) => Promise<RequestArgs>;
115
+ };
116
+ /**
117
+ * ReferenceDataApi - functional programming interface
118
+ * @export
119
+ */
120
+ export declare const ReferenceDataApiFp: (configuration?: Configuration) => {
121
+ /**
122
+ *
123
+ * @summary Return the exchange rate of a currency pair
124
+ * @param {ReferenceDataApiGetCurrencyExchangeRatePairRequest} requestParameters Request parameters.
125
+ * @param {*} [options] Override http request option.
126
+ * @throws {RequiredError}
127
+ */
128
+ getCurrencyExchangeRatePair(requestParameters: ReferenceDataApiGetCurrencyExchangeRatePairRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExchangeRatePairs>>;
129
+ /**
130
+ *
131
+ * @summary Get metadata related to Snaptrade partner
132
+ * @param {*} [options] Override http request option.
133
+ * @throws {RequiredError}
134
+ */
135
+ getPartnerInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PartnerData>>;
136
+ /**
137
+ *
138
+ * @summary List of all security types.
139
+ * @param {*} [options] Override http request option.
140
+ * @throws {RequiredError}
141
+ */
142
+ getSecurityTypes(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SecurityType>>>;
143
+ /**
144
+ *
145
+ * @summary Return list of stock exchanges on Passiv and their suffixes
146
+ * @param {*} [options] Override http request option.
147
+ * @throws {RequiredError}
148
+ */
149
+ getStockExchanges(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Exchange>>>;
150
+ /**
151
+ *
152
+ * @summary Search for symbols
153
+ * @param {ReferenceDataApiGetSymbolsRequest} requestParameters Request parameters.
154
+ * @param {*} [options] Override http request option.
155
+ * @throws {RequiredError}
156
+ */
157
+ getSymbols(requestParameters?: ReferenceDataApiGetSymbolsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UniversalSymbol>>>;
158
+ /**
159
+ *
160
+ * @summary Get details of a symbol by the ticker
161
+ * @param {ReferenceDataApiGetSymbolsByTickerRequest} requestParameters Request parameters.
162
+ * @param {*} [options] Override http request option.
163
+ * @throws {RequiredError}
164
+ */
165
+ getSymbolsByTicker(requestParameters: ReferenceDataApiGetSymbolsByTickerRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UniversalSymbol>>;
166
+ /**
167
+ *
168
+ * @summary List of all brokerage authorization types
169
+ * @param {ReferenceDataApiListAllBrokerageAuthorizationTypeRequest} requestParameters Request parameters.
170
+ * @param {*} [options] Override http request option.
171
+ * @throws {RequiredError}
172
+ */
173
+ listAllBrokerageAuthorizationType(requestParameters?: ReferenceDataApiListAllBrokerageAuthorizationTypeRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BrokerageAuthorizationTypeReadOnly>>>;
174
+ /**
175
+ *
176
+ * @summary List of all brokerages.
177
+ * @param {*} [options] Override http request option.
178
+ * @throws {RequiredError}
179
+ */
180
+ listAllBrokerages(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Brokerage>>>;
181
+ /**
182
+ *
183
+ * @summary List of all supported currencies
184
+ * @param {*} [options] Override http request option.
185
+ * @throws {RequiredError}
186
+ */
187
+ listAllCurrencies(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Currency>>>;
188
+ /**
189
+ *
190
+ * @summary Return the exchange rates of all supported currencies
191
+ * @param {*} [options] Override http request option.
192
+ * @throws {RequiredError}
193
+ */
194
+ listAllCurrenciesRates(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ExchangeRatePairs>>>;
195
+ /**
196
+ *
197
+ * @summary Search for symbols that are supported by a brokerage account using a substring
198
+ * @param {ReferenceDataApiSymbolSearchUserAccountRequest} requestParameters Request parameters.
199
+ * @param {*} [options] Override http request option.
200
+ * @throws {RequiredError}
201
+ */
202
+ symbolSearchUserAccount(requestParameters: ReferenceDataApiSymbolSearchUserAccountRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UniversalSymbol>>>;
203
+ };
204
+ /**
205
+ * ReferenceDataApi - factory interface
206
+ * @export
207
+ */
208
+ export declare const ReferenceDataApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
209
+ /**
210
+ *
211
+ * @summary Return the exchange rate of a currency pair
212
+ * @param {ReferenceDataApiGetCurrencyExchangeRatePairRequest} requestParameters Request parameters.
213
+ * @param {*} [options] Override http request option.
214
+ * @throws {RequiredError}
215
+ */
216
+ getCurrencyExchangeRatePair(requestParameters: ReferenceDataApiGetCurrencyExchangeRatePairRequest, options?: AxiosRequestConfig): AxiosPromise<ExchangeRatePairs>;
217
+ /**
218
+ *
219
+ * @summary Get metadata related to Snaptrade partner
220
+ * @param {*} [options] Override http request option.
221
+ * @throws {RequiredError}
222
+ */
223
+ getPartnerInfo(options?: AxiosRequestConfig): AxiosPromise<PartnerData>;
224
+ /**
225
+ *
226
+ * @summary List of all security types.
227
+ * @param {*} [options] Override http request option.
228
+ * @throws {RequiredError}
229
+ */
230
+ getSecurityTypes(options?: AxiosRequestConfig): AxiosPromise<Array<SecurityType>>;
231
+ /**
232
+ *
233
+ * @summary Return list of stock exchanges on Passiv and their suffixes
234
+ * @param {*} [options] Override http request option.
235
+ * @throws {RequiredError}
236
+ */
237
+ getStockExchanges(options?: AxiosRequestConfig): AxiosPromise<Array<Exchange>>;
238
+ /**
239
+ *
240
+ * @summary Search for symbols
241
+ * @param {ReferenceDataApiGetSymbolsRequest} requestParameters Request parameters.
242
+ * @param {*} [options] Override http request option.
243
+ * @throws {RequiredError}
244
+ */
245
+ getSymbols(requestParameters?: ReferenceDataApiGetSymbolsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UniversalSymbol>>;
246
+ /**
247
+ *
248
+ * @summary Get details of a symbol by the ticker
249
+ * @param {ReferenceDataApiGetSymbolsByTickerRequest} requestParameters Request parameters.
250
+ * @param {*} [options] Override http request option.
251
+ * @throws {RequiredError}
252
+ */
253
+ getSymbolsByTicker(requestParameters: ReferenceDataApiGetSymbolsByTickerRequest, options?: AxiosRequestConfig): AxiosPromise<UniversalSymbol>;
254
+ /**
255
+ *
256
+ * @summary List of all brokerage authorization types
257
+ * @param {ReferenceDataApiListAllBrokerageAuthorizationTypeRequest} requestParameters Request parameters.
258
+ * @param {*} [options] Override http request option.
259
+ * @throws {RequiredError}
260
+ */
261
+ listAllBrokerageAuthorizationType(requestParameters?: ReferenceDataApiListAllBrokerageAuthorizationTypeRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BrokerageAuthorizationTypeReadOnly>>;
262
+ /**
263
+ *
264
+ * @summary List of all brokerages.
265
+ * @param {*} [options] Override http request option.
266
+ * @throws {RequiredError}
267
+ */
268
+ listAllBrokerages(options?: AxiosRequestConfig): AxiosPromise<Array<Brokerage>>;
269
+ /**
270
+ *
271
+ * @summary List of all supported currencies
272
+ * @param {*} [options] Override http request option.
273
+ * @throws {RequiredError}
274
+ */
275
+ listAllCurrencies(options?: AxiosRequestConfig): AxiosPromise<Array<Currency>>;
276
+ /**
277
+ *
278
+ * @summary Return the exchange rates of all supported currencies
279
+ * @param {*} [options] Override http request option.
280
+ * @throws {RequiredError}
281
+ */
282
+ listAllCurrenciesRates(options?: AxiosRequestConfig): AxiosPromise<Array<ExchangeRatePairs>>;
283
+ /**
284
+ *
285
+ * @summary Search for symbols that are supported by a brokerage account using a substring
286
+ * @param {ReferenceDataApiSymbolSearchUserAccountRequest} requestParameters Request parameters.
287
+ * @param {*} [options] Override http request option.
288
+ * @throws {RequiredError}
289
+ */
290
+ symbolSearchUserAccount(requestParameters: ReferenceDataApiSymbolSearchUserAccountRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UniversalSymbol>>;
291
+ };
292
+ /**
293
+ * Request parameters for getCurrencyExchangeRatePair operation in ReferenceDataApi.
294
+ * @export
295
+ * @interface ReferenceDataApiGetCurrencyExchangeRatePairRequest
296
+ */
297
+ export type ReferenceDataApiGetCurrencyExchangeRatePairRequest = {
298
+ /**
299
+ * A currency pair based on currency code for example, {CAD-USD}
300
+ * @type {string}
301
+ * @memberof ReferenceDataApiGetCurrencyExchangeRatePair
302
+ */
303
+ readonly currencyPair: string;
304
+ };
305
+ /**
306
+ * Request parameters for getSymbols operation in ReferenceDataApi.
307
+ * @export
308
+ * @interface ReferenceDataApiGetSymbolsRequest
309
+ */
310
+ export type ReferenceDataApiGetSymbolsRequest = {} & SymbolQuery;
311
+ /**
312
+ * Request parameters for getSymbolsByTicker operation in ReferenceDataApi.
313
+ * @export
314
+ * @interface ReferenceDataApiGetSymbolsByTickerRequest
315
+ */
316
+ export type ReferenceDataApiGetSymbolsByTickerRequest = {
317
+ /**
318
+ * The ticker of the UniversalSymbol to get.
319
+ * @type {string}
320
+ * @memberof ReferenceDataApiGetSymbolsByTicker
321
+ */
322
+ readonly ticker: string;
323
+ /**
324
+ * OPTIONAL IN PATH Can be used instead of the ticker ; The ID of the UniversalSymbol to get.
325
+ * @type {string}
326
+ * @memberof ReferenceDataApiGetSymbolsByTicker
327
+ */
328
+ readonly symbolId?: string;
329
+ };
330
+ /**
331
+ * Request parameters for listAllBrokerageAuthorizationType operation in ReferenceDataApi.
332
+ * @export
333
+ * @interface ReferenceDataApiListAllBrokerageAuthorizationTypeRequest
334
+ */
335
+ export type ReferenceDataApiListAllBrokerageAuthorizationTypeRequest = {
336
+ /**
337
+ * Comma separated value of brokerage slugs
338
+ * @type {string}
339
+ * @memberof ReferenceDataApiListAllBrokerageAuthorizationType
340
+ */
341
+ readonly brokerage?: string;
342
+ };
343
+ /**
344
+ * Request parameters for symbolSearchUserAccount operation in ReferenceDataApi.
345
+ * @export
346
+ * @interface ReferenceDataApiSymbolSearchUserAccountRequest
347
+ */
348
+ export type ReferenceDataApiSymbolSearchUserAccountRequest = {
349
+ /**
350
+ *
351
+ * @type {string}
352
+ * @memberof ReferenceDataApiSymbolSearchUserAccount
353
+ */
354
+ readonly userId: string;
355
+ /**
356
+ *
357
+ * @type {string}
358
+ * @memberof ReferenceDataApiSymbolSearchUserAccount
359
+ */
360
+ readonly userSecret: string;
361
+ /**
362
+ * The ID of the account get positions.
363
+ * @type {string}
364
+ * @memberof ReferenceDataApiSymbolSearchUserAccount
365
+ */
366
+ readonly accountId: string;
367
+ } & SymbolQuery;
368
+ /**
369
+ * ReferenceDataApi - object-oriented interface
370
+ * @export
371
+ * @class ReferenceDataApi
372
+ * @extends {BaseAPI}
373
+ */
374
+ export declare class ReferenceDataApi extends ReferenceDataApiCustom {
375
+ /**
376
+ *
377
+ * @summary Return the exchange rate of a currency pair
378
+ * @param {ReferenceDataApiGetCurrencyExchangeRatePairRequest} requestParameters Request parameters.
379
+ * @param {*} [options] Override http request option.
380
+ * @throws {RequiredError}
381
+ * @memberof ReferenceDataApi
382
+ */
383
+ getCurrencyExchangeRatePair(requestParameters: ReferenceDataApiGetCurrencyExchangeRatePairRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExchangeRatePairs, any>>;
384
+ /**
385
+ *
386
+ * @summary Get metadata related to Snaptrade partner
387
+ * @param {*} [options] Override http request option.
388
+ * @throws {RequiredError}
389
+ * @memberof ReferenceDataApi
390
+ */
391
+ getPartnerInfo(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PartnerData, any>>;
392
+ /**
393
+ *
394
+ * @summary List of all security types.
395
+ * @param {*} [options] Override http request option.
396
+ * @throws {RequiredError}
397
+ * @memberof ReferenceDataApi
398
+ */
399
+ getSecurityTypes(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SecurityType[], any>>;
400
+ /**
401
+ *
402
+ * @summary Return list of stock exchanges on Passiv and their suffixes
403
+ * @param {*} [options] Override http request option.
404
+ * @throws {RequiredError}
405
+ * @memberof ReferenceDataApi
406
+ */
407
+ getStockExchanges(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Exchange[], any>>;
408
+ /**
409
+ *
410
+ * @summary Search for symbols
411
+ * @param {ReferenceDataApiGetSymbolsRequest} requestParameters Request parameters.
412
+ * @param {*} [options] Override http request option.
413
+ * @throws {RequiredError}
414
+ * @memberof ReferenceDataApi
415
+ */
416
+ getSymbols(requestParameters?: ReferenceDataApiGetSymbolsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UniversalSymbol[], any>>;
417
+ /**
418
+ *
419
+ * @summary Get details of a symbol by the ticker
420
+ * @param {ReferenceDataApiGetSymbolsByTickerRequest} requestParameters Request parameters.
421
+ * @param {*} [options] Override http request option.
422
+ * @throws {RequiredError}
423
+ * @memberof ReferenceDataApi
424
+ */
425
+ getSymbolsByTicker(requestParameters: ReferenceDataApiGetSymbolsByTickerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UniversalSymbol, any>>;
426
+ /**
427
+ *
428
+ * @summary List of all brokerage authorization types
429
+ * @param {ReferenceDataApiListAllBrokerageAuthorizationTypeRequest} requestParameters Request parameters.
430
+ * @param {*} [options] Override http request option.
431
+ * @throws {RequiredError}
432
+ * @memberof ReferenceDataApi
433
+ */
434
+ listAllBrokerageAuthorizationType(requestParameters?: ReferenceDataApiListAllBrokerageAuthorizationTypeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BrokerageAuthorizationTypeReadOnly[], any>>;
435
+ /**
436
+ *
437
+ * @summary List of all brokerages.
438
+ * @param {*} [options] Override http request option.
439
+ * @throws {RequiredError}
440
+ * @memberof ReferenceDataApi
441
+ */
442
+ listAllBrokerages(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Brokerage[], any>>;
443
+ /**
444
+ *
445
+ * @summary List of all supported currencies
446
+ * @param {*} [options] Override http request option.
447
+ * @throws {RequiredError}
448
+ * @memberof ReferenceDataApi
449
+ */
450
+ listAllCurrencies(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Currency[], any>>;
451
+ /**
452
+ *
453
+ * @summary Return the exchange rates of all supported currencies
454
+ * @param {*} [options] Override http request option.
455
+ * @throws {RequiredError}
456
+ * @memberof ReferenceDataApi
457
+ */
458
+ listAllCurrenciesRates(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExchangeRatePairs[], any>>;
459
+ /**
460
+ *
461
+ * @summary Search for symbols that are supported by a brokerage account using a substring
462
+ * @param {ReferenceDataApiSymbolSearchUserAccountRequest} requestParameters Request parameters.
463
+ * @param {*} [options] Override http request option.
464
+ * @throws {RequiredError}
465
+ * @memberof ReferenceDataApi
466
+ */
467
+ symbolSearchUserAccount(requestParameters: ReferenceDataApiSymbolSearchUserAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UniversalSymbol[], any>>;
468
+ }