snaptrade-typescript-sdk 8.23.0 → 8.24.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 (292) hide show
  1. package/README.md +147 -147
  2. package/dist/api/account-information-api-generated.d.ts +525 -525
  3. package/dist/api/account-information-api-generated.js +765 -765
  4. package/dist/api/account-information-api.d.ts +4 -4
  5. package/dist/api/account-information-api.js +22 -22
  6. package/dist/api/api-status-api-generated.d.ts +69 -69
  7. package/dist/api/api-status-api-generated.js +131 -131
  8. package/dist/api/api-status-api.d.ts +4 -4
  9. package/dist/api/api-status-api.js +22 -22
  10. package/dist/api/authentication-api-generated.d.ts +266 -266
  11. package/dist/api/authentication-api-generated.js +461 -461
  12. package/dist/api/authentication-api.d.ts +4 -4
  13. package/dist/api/authentication-api.js +22 -22
  14. package/dist/api/connections-api-generated.d.ts +274 -274
  15. package/dist/api/connections-api-generated.js +411 -411
  16. package/dist/api/connections-api.d.ts +4 -4
  17. package/dist/api/connections-api.js +22 -22
  18. package/dist/api/error-logs-api-generated.d.ts +93 -93
  19. package/dist/api/error-logs-api-generated.js +152 -152
  20. package/dist/api/error-logs-api.d.ts +4 -4
  21. package/dist/api/error-logs-api.js +22 -22
  22. package/dist/api/options-api-generated.d.ts +368 -368
  23. package/dist/api/options-api-generated.js +530 -530
  24. package/dist/api/options-api.d.ts +4 -4
  25. package/dist/api/options-api.js +22 -22
  26. package/dist/api/reference-data-api-generated.d.ts +467 -467
  27. package/dist/api/reference-data-api-generated.js +872 -872
  28. package/dist/api/reference-data-api.d.ts +4 -4
  29. package/dist/api/reference-data-api.js +22 -22
  30. package/dist/api/trading-api-generated.d.ts +402 -402
  31. package/dist/api/trading-api-generated.js +613 -613
  32. package/dist/api/trading-api.d.ts +4 -4
  33. package/dist/api/trading-api.js +22 -22
  34. package/dist/api/transactions-and-reporting-api-generated.d.ts +217 -217
  35. package/dist/api/transactions-and-reporting-api-generated.js +287 -287
  36. package/dist/api/transactions-and-reporting-api.d.ts +4 -4
  37. package/dist/api/transactions-and-reporting-api.js +22 -22
  38. package/dist/api.d.ts +19 -19
  39. package/dist/api.js +37 -37
  40. package/dist/base.d.ts +54 -54
  41. package/dist/base.js +60 -60
  42. package/dist/client-custom.d.ts +4 -4
  43. package/dist/client-custom.js +7 -7
  44. package/dist/client.d.ts +25 -25
  45. package/dist/client.js +32 -32
  46. package/dist/common.d.ts +67 -67
  47. package/dist/common.js +177 -177
  48. package/dist/configuration.d.ts +99 -99
  49. package/dist/configuration.js +53 -53
  50. package/dist/error.d.ts +56 -56
  51. package/dist/error.js +104 -104
  52. package/dist/index.d.ts +15 -15
  53. package/dist/index.js +33 -33
  54. package/dist/jest.config.d.ts +3 -3
  55. package/dist/jest.config.js +13 -13
  56. package/dist/models/account-holdings-account.d.ts +53 -53
  57. package/dist/models/account-holdings-account.js +14 -14
  58. package/dist/models/account-holdings.d.ts +46 -46
  59. package/dist/models/account-holdings.js +14 -14
  60. package/dist/models/account-order-record-status.d.ts +16 -16
  61. package/dist/models/account-order-record-status.js +14 -14
  62. package/dist/models/account-order-record.d.ts +132 -132
  63. package/dist/models/account-order-record.js +14 -14
  64. package/dist/models/account-simple.d.ts +43 -43
  65. package/dist/models/account-simple.js +14 -14
  66. package/dist/models/account-sync-status.d.ts +24 -24
  67. package/dist/models/account-sync-status.js +14 -14
  68. package/dist/models/account.d.ts +82 -82
  69. package/dist/models/account.js +14 -14
  70. package/dist/models/action.d.ts +16 -16
  71. package/dist/models/action.js +14 -14
  72. package/dist/models/authentication-login-snap-trade-user200-response.d.ts +17 -17
  73. package/dist/models/authentication-login-snap-trade-user200-response.js +14 -14
  74. package/dist/models/balance.d.ts +31 -31
  75. package/dist/models/balance.js +14 -14
  76. package/dist/models/brokerage-authorization-type-read-only-brokerage.d.ts +36 -36
  77. package/dist/models/brokerage-authorization-type-read-only-brokerage.js +14 -14
  78. package/dist/models/brokerage-authorization-type-read-only.d.ts +46 -46
  79. package/dist/models/brokerage-authorization-type-read-only.js +14 -14
  80. package/dist/models/brokerage-authorization-type.d.ts +26 -26
  81. package/dist/models/brokerage-authorization-type.js +14 -14
  82. package/dist/models/brokerage-authorization.d.ts +75 -75
  83. package/dist/models/brokerage-authorization.js +14 -14
  84. package/dist/models/brokerage-symbol-option-symbol.d.ts +84 -0
  85. package/dist/models/brokerage-symbol-option-symbol.js +14 -0
  86. package/dist/models/brokerage-symbol-symbol.d.ts +68 -0
  87. package/dist/models/brokerage-symbol-symbol.js +14 -0
  88. package/dist/models/brokerage-symbol.d.ts +57 -50
  89. package/dist/models/brokerage-symbol.js +14 -14
  90. package/dist/models/brokerage-type.d.ts +30 -30
  91. package/dist/models/brokerage-type.js +14 -14
  92. package/dist/models/brokerage.d.ts +127 -127
  93. package/dist/models/brokerage.js +14 -14
  94. package/dist/models/calculated-trade.d.ts +31 -31
  95. package/dist/models/calculated-trade.js +14 -14
  96. package/dist/models/cash-restriction.d.ts +50 -50
  97. package/dist/models/cash-restriction.js +14 -14
  98. package/dist/models/connections-session-events200-response-inner.d.ts +16 -16
  99. package/dist/models/connections-session-events200-response-inner.js +14 -14
  100. package/dist/models/currency.d.ts +36 -36
  101. package/dist/models/currency.js +14 -14
  102. package/dist/models/delete-user-response.d.ts +30 -30
  103. package/dist/models/delete-user-response.js +14 -14
  104. package/dist/models/dividend-at-date.d.ts +36 -36
  105. package/dist/models/dividend-at-date.js +14 -14
  106. package/dist/models/encrypted-response-encrypted-message-data.d.ts +36 -36
  107. package/dist/models/encrypted-response-encrypted-message-data.js +14 -14
  108. package/dist/models/encrypted-response.d.ts +30 -30
  109. package/dist/models/encrypted-response.js +14 -14
  110. package/dist/models/exchange-rate-pairs.d.ts +37 -37
  111. package/dist/models/exchange-rate-pairs.js +14 -14
  112. package/dist/models/exchange.d.ts +66 -66
  113. package/dist/models/exchange.js +14 -14
  114. package/dist/models/excluded-asset.d.ts +25 -25
  115. package/dist/models/excluded-asset.js +14 -14
  116. package/dist/models/index.d.ts +110 -108
  117. package/dist/models/index.js +126 -124
  118. package/dist/models/jwt.d.ts +24 -24
  119. package/dist/models/jwt.js +14 -14
  120. package/dist/models/login-redirect-uri.d.ts +29 -29
  121. package/dist/models/login-redirect-uri.js +14 -14
  122. package/dist/models/manual-trade-and-impact.d.ts +38 -38
  123. package/dist/models/manual-trade-and-impact.js +14 -14
  124. package/dist/models/manual-trade-balance.d.ts +38 -38
  125. package/dist/models/manual-trade-balance.js +14 -14
  126. package/dist/models/manual-trade-form.d.ts +68 -68
  127. package/dist/models/manual-trade-form.js +14 -14
  128. package/dist/models/manual-trade-symbol.d.ts +55 -55
  129. package/dist/models/manual-trade-symbol.js +14 -14
  130. package/dist/models/manual-trade.d.ts +70 -70
  131. package/dist/models/manual-trade.js +14 -14
  132. package/dist/models/model-asset-class-details.d.ts +32 -32
  133. package/dist/models/model-asset-class-details.js +14 -14
  134. package/dist/models/model-asset-class-target.d.ts +25 -25
  135. package/dist/models/model-asset-class-target.js +14 -14
  136. package/dist/models/model-asset-class.d.ts +30 -30
  137. package/dist/models/model-asset-class.js +14 -14
  138. package/dist/models/model-portfolio-asset-class.d.ts +31 -31
  139. package/dist/models/model-portfolio-asset-class.js +14 -14
  140. package/dist/models/model-portfolio-details.d.ts +39 -39
  141. package/dist/models/model-portfolio-details.js +14 -14
  142. package/dist/models/model-portfolio-security.d.ts +31 -31
  143. package/dist/models/model-portfolio-security.js +14 -14
  144. package/dist/models/model-portfolio.d.ts +38 -38
  145. package/dist/models/model-portfolio.js +14 -14
  146. package/dist/models/model400-failed-request-response.d.ts +30 -30
  147. package/dist/models/model400-failed-request-response.js +14 -14
  148. package/dist/models/model401-failed-request-response.d.ts +30 -30
  149. package/dist/models/model401-failed-request-response.js +14 -14
  150. package/dist/models/model403-failed-request-response.d.ts +30 -30
  151. package/dist/models/model403-failed-request-response.js +14 -14
  152. package/dist/models/model404-failed-request-response.d.ts +30 -30
  153. package/dist/models/model404-failed-request-response.js +14 -14
  154. package/dist/models/monthly-dividends.d.ts +31 -31
  155. package/dist/models/monthly-dividends.js +14 -14
  156. package/dist/models/net-contributions.d.ts +36 -36
  157. package/dist/models/net-contributions.js +14 -14
  158. package/dist/models/net-dividend.d.ts +37 -37
  159. package/dist/models/net-dividend.js +14 -14
  160. package/dist/models/option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner.d.ts +36 -36
  161. package/dist/models/option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner.js +14 -14
  162. package/dist/models/option-chain-inner-chain-per-root-inner.d.ts +37 -37
  163. package/dist/models/option-chain-inner-chain-per-root-inner.js +14 -14
  164. package/dist/models/option-chain-inner.d.ts +49 -49
  165. package/dist/models/option-chain-inner.js +14 -14
  166. package/dist/models/option-leg.d.ts +38 -38
  167. package/dist/models/option-leg.js +14 -14
  168. package/dist/models/option-strategy-legs-inner.d.ts +41 -41
  169. package/dist/models/option-strategy-legs-inner.js +14 -14
  170. package/dist/models/option-strategy.d.ts +50 -50
  171. package/dist/models/option-strategy.js +14 -14
  172. package/dist/models/options-get-option-strategy-request.d.ts +38 -38
  173. package/dist/models/options-get-option-strategy-request.js +14 -14
  174. package/dist/models/options-holdings.d.ts +56 -56
  175. package/dist/models/options-holdings.js +14 -14
  176. package/dist/models/options-place-option-strategy-request.d.ts +38 -38
  177. package/dist/models/options-place-option-strategy-request.js +14 -14
  178. package/dist/models/options-position.d.ts +62 -62
  179. package/dist/models/options-position.js +14 -14
  180. package/dist/models/options-symbol.d.ts +85 -85
  181. package/dist/models/options-symbol.js +14 -14
  182. package/dist/models/order-type.d.ts +16 -16
  183. package/dist/models/order-type.js +14 -14
  184. package/dist/models/partner-data.d.ts +91 -91
  185. package/dist/models/partner-data.js +14 -14
  186. package/dist/models/past-value.d.ts +36 -36
  187. package/dist/models/past-value.js +14 -14
  188. package/dist/models/performance-custom.d.ts +137 -137
  189. package/dist/models/performance-custom.js +14 -14
  190. package/dist/models/portfolio-group-info.d.ts +92 -92
  191. package/dist/models/portfolio-group-info.js +14 -14
  192. package/dist/models/portfolio-group-position.d.ts +37 -37
  193. package/dist/models/portfolio-group-position.js +14 -14
  194. package/dist/models/portfolio-group-settings.d.ts +49 -49
  195. package/dist/models/portfolio-group-settings.js +14 -14
  196. package/dist/models/portfolio-group.d.ts +30 -30
  197. package/dist/models/portfolio-group.js +14 -14
  198. package/dist/models/position-symbol.d.ts +55 -55
  199. package/dist/models/position-symbol.js +14 -14
  200. package/dist/models/position.d.ts +55 -55
  201. package/dist/models/position.js +14 -14
  202. package/dist/models/redirect-tokenand-pin.d.ts +30 -30
  203. package/dist/models/redirect-tokenand-pin.js +14 -14
  204. package/dist/models/security-type.d.ts +42 -42
  205. package/dist/models/security-type.js +14 -14
  206. package/dist/models/session-event.d.ts +62 -62
  207. package/dist/models/session-event.js +14 -14
  208. package/dist/models/snap-trade-apidisclaimer-accept-status.d.ts +30 -30
  209. package/dist/models/snap-trade-apidisclaimer-accept-status.js +14 -14
  210. package/dist/models/snap-trade-holdings-account-account-id.d.ts +75 -75
  211. package/dist/models/snap-trade-holdings-account-account-id.js +14 -14
  212. package/dist/models/snap-trade-holdings-account.d.ts +70 -70
  213. package/dist/models/snap-trade-holdings-account.js +14 -14
  214. package/dist/models/snap-trade-holdings-total-value.d.ts +30 -30
  215. package/dist/models/snap-trade-holdings-total-value.js +14 -14
  216. package/dist/models/snap-trade-login-user-request-body.d.ts +49 -49
  217. package/dist/models/snap-trade-login-user-request-body.js +14 -14
  218. package/dist/models/snap-trade-register-user-request-body.d.ts +29 -29
  219. package/dist/models/snap-trade-register-user-request-body.js +14 -14
  220. package/dist/models/status.d.ts +36 -36
  221. package/dist/models/status.js +14 -14
  222. package/dist/models/strategy-impact-legs-inner.d.ts +60 -60
  223. package/dist/models/strategy-impact-legs-inner.js +14 -14
  224. package/dist/models/strategy-impact.d.ts +85 -85
  225. package/dist/models/strategy-impact.js +14 -14
  226. package/dist/models/strategy-order-place-orders-inner-legs-inner.d.ts +60 -60
  227. package/dist/models/strategy-order-place-orders-inner-legs-inner.js +14 -14
  228. package/dist/models/strategy-order-place-orders-inner.d.ts +277 -277
  229. package/dist/models/strategy-order-place-orders-inner.js +14 -14
  230. package/dist/models/strategy-order-place.d.ts +31 -31
  231. package/dist/models/strategy-order-place.js +14 -14
  232. package/dist/models/strategy-order-record.d.ts +89 -89
  233. package/dist/models/strategy-order-record.js +14 -14
  234. package/dist/models/strategy-quotes-greek.d.ts +48 -48
  235. package/dist/models/strategy-quotes-greek.js +14 -14
  236. package/dist/models/strategy-quotes.d.ts +56 -56
  237. package/dist/models/strategy-quotes.js +14 -14
  238. package/dist/models/sub-period-return-rate.d.ts +36 -36
  239. package/dist/models/sub-period-return-rate.js +14 -14
  240. package/dist/models/symbol-query.d.ts +23 -23
  241. package/dist/models/symbol-query.js +14 -14
  242. package/dist/models/symbol.d.ts +63 -63
  243. package/dist/models/symbol.js +14 -14
  244. package/dist/models/symbols-quotes-inner.d.ts +54 -54
  245. package/dist/models/symbols-quotes-inner.js +14 -14
  246. package/dist/models/target-asset.d.ts +57 -57
  247. package/dist/models/target-asset.js +14 -14
  248. package/dist/models/time-in-force.d.ts +16 -16
  249. package/dist/models/time-in-force.js +14 -14
  250. package/dist/models/trade-execution-status.d.ts +80 -80
  251. package/dist/models/trade-execution-status.js +14 -14
  252. package/dist/models/trade-impact.d.ts +50 -50
  253. package/dist/models/trade-impact.js +14 -14
  254. package/dist/models/trade.d.ts +71 -71
  255. package/dist/models/trade.js +14 -14
  256. package/dist/models/trading-cancel-user-account-order-request.d.ts +23 -23
  257. package/dist/models/trading-cancel-user-account-order-request.js +14 -14
  258. package/dist/models/trading-place-ocoorder-request.d.ts +29 -29
  259. package/dist/models/trading-place-ocoorder-request.js +14 -14
  260. package/dist/models/transactions-status.d.ts +29 -29
  261. package/dist/models/transactions-status.js +14 -14
  262. package/dist/models/underlying-symbol.d.ts +63 -63
  263. package/dist/models/underlying-symbol.js +14 -14
  264. package/dist/models/universal-activity.d.ts +118 -118
  265. package/dist/models/universal-activity.js +14 -14
  266. package/dist/models/universal-symbol-ticker.d.ts +69 -69
  267. package/dist/models/universal-symbol-ticker.js +14 -14
  268. package/dist/models/universal-symbol.d.ts +69 -69
  269. package/dist/models/universal-symbol.js +14 -14
  270. package/dist/models/user-error-log.d.ts +54 -54
  271. package/dist/models/user-error-log.js +14 -14
  272. package/dist/models/user-idand-secret.d.ts +30 -30
  273. package/dist/models/user-idand-secret.js +14 -14
  274. package/dist/models/user-settings.d.ts +79 -79
  275. package/dist/models/user-settings.js +14 -14
  276. package/dist/models/usexchange.d.ts +72 -72
  277. package/dist/models/usexchange.js +14 -14
  278. package/dist/pagination/page-types.d.ts +26 -26
  279. package/dist/pagination/page-types.js +12 -12
  280. package/dist/pagination/page.d.ts +35 -35
  281. package/dist/pagination/page.js +32 -32
  282. package/dist/pagination/pageable.d.ts +57 -57
  283. package/dist/pagination/pageable.js +70 -70
  284. package/dist/pagination/paginate.d.ts +16 -16
  285. package/dist/pagination/paginate.js +39 -39
  286. package/dist/requestAfterHook.d.ts +8 -8
  287. package/dist/requestAfterHook.js +45 -45
  288. package/dist/requestBeforeHook.d.ts +9 -9
  289. package/dist/requestBeforeHook.js +8 -8
  290. package/dist/requestBeforeUrlHook.d.ts +7 -7
  291. package/dist/requestBeforeUrlHook.js +5 -5
  292. package/package.json +42 -42
@@ -1,525 +1,525 @@
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, BaseAPI } from '../base';
14
- import { Account } from '../models';
15
- import { AccountHoldings } from '../models';
16
- import { AccountHoldingsAccount } from '../models';
17
- import { AccountOrderRecord } from '../models';
18
- import { Balance } from '../models';
19
- import { Position } from '../models';
20
- /**
21
- * AccountInformationApi - axios parameter creator
22
- * @export
23
- */
24
- export declare const AccountInformationApiAxiosParamCreator: (configuration?: Configuration) => {
25
- /**
26
- *
27
- * @summary List all accounts for the user, plus balances, positions, and orders for each account.
28
- * @param {string} userId
29
- * @param {string} userSecret
30
- * @param {string} [brokerageAuthorizations] Optional. Comma seperated list of authorization IDs (only use if filtering is needed on one or more authorizations).
31
- * @param {*} [options] Override http request option.
32
- * @throws {RequiredError}
33
- */
34
- getAllUserHoldings: (userId: string, userSecret: string, brokerageAuthorizations?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
35
- /**
36
- *
37
- * @summary List account balances
38
- * @param {string} userId
39
- * @param {string} userSecret
40
- * @param {string} accountId The ID of the account get positions.
41
- * @param {*} [options] Override http request option.
42
- * @throws {RequiredError}
43
- */
44
- getUserAccountBalance: (userId: string, userSecret: string, accountId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
45
- /**
46
- *
47
- * @summary Return details of a specific investment account
48
- * @param {string} userId
49
- * @param {string} userSecret
50
- * @param {string} accountId The ID of the account to get detail of.
51
- * @param {*} [options] Override http request option.
52
- * @throws {RequiredError}
53
- */
54
- getUserAccountDetails: (userId: string, userSecret: string, accountId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
55
- /**
56
- *
57
- * @summary Get all history of orders placed in account
58
- * @param {string} userId
59
- * @param {string} userSecret
60
- * @param {string} accountId The ID of the account get positions.
61
- * @param {'all' | 'open' | 'executed'} [state] defaults value is set to \&quot;all\&quot;
62
- * @param {*} [options] Override http request option.
63
- * @throws {RequiredError}
64
- */
65
- getUserAccountOrders: (userId: string, userSecret: string, accountId: string, state?: 'all' | 'open' | 'executed', options?: AxiosRequestConfig) => Promise<RequestArgs>;
66
- /**
67
- *
68
- * @summary List account positions
69
- * @param {string} userId
70
- * @param {string} userSecret
71
- * @param {string} accountId The ID of the account get positions.
72
- * @param {*} [options] Override http request option.
73
- * @throws {RequiredError}
74
- */
75
- getUserAccountPositions: (userId: string, userSecret: string, accountId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
76
- /**
77
- *
78
- * @summary List balances, positions and orders for the specified account.
79
- * @param {string} accountId The ID of the account to fetch holdings for.
80
- * @param {string} userId
81
- * @param {string} userSecret
82
- * @param {*} [options] Override http request option.
83
- * @throws {RequiredError}
84
- */
85
- getUserHoldings: (accountId: string, userId: string, userSecret: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
86
- /**
87
- *
88
- * @summary List accounts
89
- * @param {string} userId
90
- * @param {string} userSecret
91
- * @param {*} [options] Override http request option.
92
- * @throws {RequiredError}
93
- */
94
- listUserAccounts: (userId: string, userSecret: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
95
- /**
96
- *
97
- * @summary Update details of an investment account
98
- * @param {string} userId
99
- * @param {string} userSecret
100
- * @param {string} accountId The ID of the account to update.
101
- * @param {*} [options] Override http request option.
102
- * @throws {RequiredError}
103
- */
104
- updateUserAccount: (userId: string, userSecret: string, accountId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
105
- };
106
- /**
107
- * AccountInformationApi - functional programming interface
108
- * @export
109
- */
110
- export declare const AccountInformationApiFp: (configuration?: Configuration) => {
111
- /**
112
- *
113
- * @summary List all accounts for the user, plus balances, positions, and orders for each account.
114
- * @param {AccountInformationApiGetAllUserHoldingsRequest} requestParameters Request parameters.
115
- * @param {*} [options] Override http request option.
116
- * @throws {RequiredError}
117
- */
118
- getAllUserHoldings(requestParameters: AccountInformationApiGetAllUserHoldingsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AccountHoldings>>>;
119
- /**
120
- *
121
- * @summary List account balances
122
- * @param {AccountInformationApiGetUserAccountBalanceRequest} requestParameters Request parameters.
123
- * @param {*} [options] Override http request option.
124
- * @throws {RequiredError}
125
- */
126
- getUserAccountBalance(requestParameters: AccountInformationApiGetUserAccountBalanceRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Balance>>>;
127
- /**
128
- *
129
- * @summary Return details of a specific investment account
130
- * @param {AccountInformationApiGetUserAccountDetailsRequest} requestParameters Request parameters.
131
- * @param {*} [options] Override http request option.
132
- * @throws {RequiredError}
133
- */
134
- getUserAccountDetails(requestParameters: AccountInformationApiGetUserAccountDetailsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Account>>;
135
- /**
136
- *
137
- * @summary Get all history of orders placed in account
138
- * @param {AccountInformationApiGetUserAccountOrdersRequest} requestParameters Request parameters.
139
- * @param {*} [options] Override http request option.
140
- * @throws {RequiredError}
141
- */
142
- getUserAccountOrders(requestParameters: AccountInformationApiGetUserAccountOrdersRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AccountOrderRecord>>>;
143
- /**
144
- *
145
- * @summary List account positions
146
- * @param {AccountInformationApiGetUserAccountPositionsRequest} requestParameters Request parameters.
147
- * @param {*} [options] Override http request option.
148
- * @throws {RequiredError}
149
- */
150
- getUserAccountPositions(requestParameters: AccountInformationApiGetUserAccountPositionsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Position>>>;
151
- /**
152
- *
153
- * @summary List balances, positions and orders for the specified account.
154
- * @param {AccountInformationApiGetUserHoldingsRequest} requestParameters Request parameters.
155
- * @param {*} [options] Override http request option.
156
- * @throws {RequiredError}
157
- */
158
- getUserHoldings(requestParameters: AccountInformationApiGetUserHoldingsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountHoldingsAccount>>;
159
- /**
160
- *
161
- * @summary List accounts
162
- * @param {AccountInformationApiListUserAccountsRequest} requestParameters Request parameters.
163
- * @param {*} [options] Override http request option.
164
- * @throws {RequiredError}
165
- */
166
- listUserAccounts(requestParameters: AccountInformationApiListUserAccountsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Account>>>;
167
- /**
168
- *
169
- * @summary Update details of an investment account
170
- * @param {AccountInformationApiUpdateUserAccountRequest} requestParameters Request parameters.
171
- * @param {*} [options] Override http request option.
172
- * @throws {RequiredError}
173
- */
174
- updateUserAccount(requestParameters: AccountInformationApiUpdateUserAccountRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Account>>>;
175
- };
176
- /**
177
- * AccountInformationApi - factory interface
178
- * @export
179
- */
180
- export declare const AccountInformationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
181
- /**
182
- *
183
- * @summary List all accounts for the user, plus balances, positions, and orders for each account.
184
- * @param {AccountInformationApiGetAllUserHoldingsRequest} requestParameters Request parameters.
185
- * @param {*} [options] Override http request option.
186
- * @throws {RequiredError}
187
- */
188
- getAllUserHoldings(requestParameters: AccountInformationApiGetAllUserHoldingsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AccountHoldings>>;
189
- /**
190
- *
191
- * @summary List account balances
192
- * @param {AccountInformationApiGetUserAccountBalanceRequest} requestParameters Request parameters.
193
- * @param {*} [options] Override http request option.
194
- * @throws {RequiredError}
195
- */
196
- getUserAccountBalance(requestParameters: AccountInformationApiGetUserAccountBalanceRequest, options?: AxiosRequestConfig): AxiosPromise<Array<Balance>>;
197
- /**
198
- *
199
- * @summary Return details of a specific investment account
200
- * @param {AccountInformationApiGetUserAccountDetailsRequest} requestParameters Request parameters.
201
- * @param {*} [options] Override http request option.
202
- * @throws {RequiredError}
203
- */
204
- getUserAccountDetails(requestParameters: AccountInformationApiGetUserAccountDetailsRequest, options?: AxiosRequestConfig): AxiosPromise<Account>;
205
- /**
206
- *
207
- * @summary Get all history of orders placed in account
208
- * @param {AccountInformationApiGetUserAccountOrdersRequest} requestParameters Request parameters.
209
- * @param {*} [options] Override http request option.
210
- * @throws {RequiredError}
211
- */
212
- getUserAccountOrders(requestParameters: AccountInformationApiGetUserAccountOrdersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AccountOrderRecord>>;
213
- /**
214
- *
215
- * @summary List account positions
216
- * @param {AccountInformationApiGetUserAccountPositionsRequest} requestParameters Request parameters.
217
- * @param {*} [options] Override http request option.
218
- * @throws {RequiredError}
219
- */
220
- getUserAccountPositions(requestParameters: AccountInformationApiGetUserAccountPositionsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<Position>>;
221
- /**
222
- *
223
- * @summary List balances, positions and orders for the specified account.
224
- * @param {AccountInformationApiGetUserHoldingsRequest} requestParameters Request parameters.
225
- * @param {*} [options] Override http request option.
226
- * @throws {RequiredError}
227
- */
228
- getUserHoldings(requestParameters: AccountInformationApiGetUserHoldingsRequest, options?: AxiosRequestConfig): AxiosPromise<AccountHoldingsAccount>;
229
- /**
230
- *
231
- * @summary List accounts
232
- * @param {AccountInformationApiListUserAccountsRequest} requestParameters Request parameters.
233
- * @param {*} [options] Override http request option.
234
- * @throws {RequiredError}
235
- */
236
- listUserAccounts(requestParameters: AccountInformationApiListUserAccountsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<Account>>;
237
- /**
238
- *
239
- * @summary Update details of an investment account
240
- * @param {AccountInformationApiUpdateUserAccountRequest} requestParameters Request parameters.
241
- * @param {*} [options] Override http request option.
242
- * @throws {RequiredError}
243
- */
244
- updateUserAccount(requestParameters: AccountInformationApiUpdateUserAccountRequest, options?: AxiosRequestConfig): AxiosPromise<Array<Account>>;
245
- };
246
- /**
247
- * Request parameters for getAllUserHoldings operation in AccountInformationApi.
248
- * @export
249
- * @interface AccountInformationApiGetAllUserHoldingsRequest
250
- */
251
- export type AccountInformationApiGetAllUserHoldingsRequest = {
252
- /**
253
- *
254
- * @type {string}
255
- * @memberof AccountInformationApiGetAllUserHoldings
256
- */
257
- readonly userId: string;
258
- /**
259
- *
260
- * @type {string}
261
- * @memberof AccountInformationApiGetAllUserHoldings
262
- */
263
- readonly userSecret: string;
264
- /**
265
- * Optional. Comma seperated list of authorization IDs (only use if filtering is needed on one or more authorizations).
266
- * @type {string}
267
- * @memberof AccountInformationApiGetAllUserHoldings
268
- */
269
- readonly brokerageAuthorizations?: string;
270
- };
271
- /**
272
- * Request parameters for getUserAccountBalance operation in AccountInformationApi.
273
- * @export
274
- * @interface AccountInformationApiGetUserAccountBalanceRequest
275
- */
276
- export type AccountInformationApiGetUserAccountBalanceRequest = {
277
- /**
278
- *
279
- * @type {string}
280
- * @memberof AccountInformationApiGetUserAccountBalance
281
- */
282
- readonly userId: string;
283
- /**
284
- *
285
- * @type {string}
286
- * @memberof AccountInformationApiGetUserAccountBalance
287
- */
288
- readonly userSecret: string;
289
- /**
290
- * The ID of the account get positions.
291
- * @type {string}
292
- * @memberof AccountInformationApiGetUserAccountBalance
293
- */
294
- readonly accountId: string;
295
- };
296
- /**
297
- * Request parameters for getUserAccountDetails operation in AccountInformationApi.
298
- * @export
299
- * @interface AccountInformationApiGetUserAccountDetailsRequest
300
- */
301
- export type AccountInformationApiGetUserAccountDetailsRequest = {
302
- /**
303
- *
304
- * @type {string}
305
- * @memberof AccountInformationApiGetUserAccountDetails
306
- */
307
- readonly userId: string;
308
- /**
309
- *
310
- * @type {string}
311
- * @memberof AccountInformationApiGetUserAccountDetails
312
- */
313
- readonly userSecret: string;
314
- /**
315
- * The ID of the account to get detail of.
316
- * @type {string}
317
- * @memberof AccountInformationApiGetUserAccountDetails
318
- */
319
- readonly accountId: string;
320
- };
321
- /**
322
- * Request parameters for getUserAccountOrders operation in AccountInformationApi.
323
- * @export
324
- * @interface AccountInformationApiGetUserAccountOrdersRequest
325
- */
326
- export type AccountInformationApiGetUserAccountOrdersRequest = {
327
- /**
328
- *
329
- * @type {string}
330
- * @memberof AccountInformationApiGetUserAccountOrders
331
- */
332
- readonly userId: string;
333
- /**
334
- *
335
- * @type {string}
336
- * @memberof AccountInformationApiGetUserAccountOrders
337
- */
338
- readonly userSecret: string;
339
- /**
340
- * The ID of the account get positions.
341
- * @type {string}
342
- * @memberof AccountInformationApiGetUserAccountOrders
343
- */
344
- readonly accountId: string;
345
- /**
346
- * defaults value is set to \"all\"
347
- * @type {'all' | 'open' | 'executed'}
348
- * @memberof AccountInformationApiGetUserAccountOrders
349
- */
350
- readonly state?: 'all' | 'open' | 'executed';
351
- };
352
- /**
353
- * Request parameters for getUserAccountPositions operation in AccountInformationApi.
354
- * @export
355
- * @interface AccountInformationApiGetUserAccountPositionsRequest
356
- */
357
- export type AccountInformationApiGetUserAccountPositionsRequest = {
358
- /**
359
- *
360
- * @type {string}
361
- * @memberof AccountInformationApiGetUserAccountPositions
362
- */
363
- readonly userId: string;
364
- /**
365
- *
366
- * @type {string}
367
- * @memberof AccountInformationApiGetUserAccountPositions
368
- */
369
- readonly userSecret: string;
370
- /**
371
- * The ID of the account get positions.
372
- * @type {string}
373
- * @memberof AccountInformationApiGetUserAccountPositions
374
- */
375
- readonly accountId: string;
376
- };
377
- /**
378
- * Request parameters for getUserHoldings operation in AccountInformationApi.
379
- * @export
380
- * @interface AccountInformationApiGetUserHoldingsRequest
381
- */
382
- export type AccountInformationApiGetUserHoldingsRequest = {
383
- /**
384
- * The ID of the account to fetch holdings for.
385
- * @type {string}
386
- * @memberof AccountInformationApiGetUserHoldings
387
- */
388
- readonly accountId: string;
389
- /**
390
- *
391
- * @type {string}
392
- * @memberof AccountInformationApiGetUserHoldings
393
- */
394
- readonly userId: string;
395
- /**
396
- *
397
- * @type {string}
398
- * @memberof AccountInformationApiGetUserHoldings
399
- */
400
- readonly userSecret: string;
401
- };
402
- /**
403
- * Request parameters for listUserAccounts operation in AccountInformationApi.
404
- * @export
405
- * @interface AccountInformationApiListUserAccountsRequest
406
- */
407
- export type AccountInformationApiListUserAccountsRequest = {
408
- /**
409
- *
410
- * @type {string}
411
- * @memberof AccountInformationApiListUserAccounts
412
- */
413
- readonly userId: string;
414
- /**
415
- *
416
- * @type {string}
417
- * @memberof AccountInformationApiListUserAccounts
418
- */
419
- readonly userSecret: string;
420
- };
421
- /**
422
- * Request parameters for updateUserAccount operation in AccountInformationApi.
423
- * @export
424
- * @interface AccountInformationApiUpdateUserAccountRequest
425
- */
426
- export type AccountInformationApiUpdateUserAccountRequest = {
427
- /**
428
- *
429
- * @type {string}
430
- * @memberof AccountInformationApiUpdateUserAccount
431
- */
432
- readonly userId: string;
433
- /**
434
- *
435
- * @type {string}
436
- * @memberof AccountInformationApiUpdateUserAccount
437
- */
438
- readonly userSecret: string;
439
- /**
440
- * The ID of the account to update.
441
- * @type {string}
442
- * @memberof AccountInformationApiUpdateUserAccount
443
- */
444
- readonly accountId: string;
445
- };
446
- /**
447
- * AccountInformationApiGenerated - object-oriented interface
448
- * @export
449
- * @class AccountInformationApiGenerated
450
- * @extends {BaseAPI}
451
- */
452
- export declare class AccountInformationApiGenerated extends BaseAPI {
453
- /**
454
- *
455
- * @summary List all accounts for the user, plus balances, positions, and orders for each account.
456
- * @param {AccountInformationApiGetAllUserHoldingsRequest} requestParameters Request parameters.
457
- * @param {*} [options] Override http request option.
458
- * @throws {RequiredError}
459
- * @memberof AccountInformationApiGenerated
460
- */
461
- getAllUserHoldings(requestParameters: AccountInformationApiGetAllUserHoldingsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountHoldings[], any>>;
462
- /**
463
- *
464
- * @summary List account balances
465
- * @param {AccountInformationApiGetUserAccountBalanceRequest} requestParameters Request parameters.
466
- * @param {*} [options] Override http request option.
467
- * @throws {RequiredError}
468
- * @memberof AccountInformationApiGenerated
469
- */
470
- getUserAccountBalance(requestParameters: AccountInformationApiGetUserAccountBalanceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Balance[], any>>;
471
- /**
472
- *
473
- * @summary Return details of a specific investment account
474
- * @param {AccountInformationApiGetUserAccountDetailsRequest} requestParameters Request parameters.
475
- * @param {*} [options] Override http request option.
476
- * @throws {RequiredError}
477
- * @memberof AccountInformationApiGenerated
478
- */
479
- getUserAccountDetails(requestParameters: AccountInformationApiGetUserAccountDetailsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Account, any>>;
480
- /**
481
- *
482
- * @summary Get all history of orders placed in account
483
- * @param {AccountInformationApiGetUserAccountOrdersRequest} requestParameters Request parameters.
484
- * @param {*} [options] Override http request option.
485
- * @throws {RequiredError}
486
- * @memberof AccountInformationApiGenerated
487
- */
488
- getUserAccountOrders(requestParameters: AccountInformationApiGetUserAccountOrdersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountOrderRecord[], any>>;
489
- /**
490
- *
491
- * @summary List account positions
492
- * @param {AccountInformationApiGetUserAccountPositionsRequest} requestParameters Request parameters.
493
- * @param {*} [options] Override http request option.
494
- * @throws {RequiredError}
495
- * @memberof AccountInformationApiGenerated
496
- */
497
- getUserAccountPositions(requestParameters: AccountInformationApiGetUserAccountPositionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Position[], any>>;
498
- /**
499
- *
500
- * @summary List balances, positions and orders for the specified account.
501
- * @param {AccountInformationApiGetUserHoldingsRequest} requestParameters Request parameters.
502
- * @param {*} [options] Override http request option.
503
- * @throws {RequiredError}
504
- * @memberof AccountInformationApiGenerated
505
- */
506
- getUserHoldings(requestParameters: AccountInformationApiGetUserHoldingsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountHoldingsAccount, any>>;
507
- /**
508
- *
509
- * @summary List accounts
510
- * @param {AccountInformationApiListUserAccountsRequest} requestParameters Request parameters.
511
- * @param {*} [options] Override http request option.
512
- * @throws {RequiredError}
513
- * @memberof AccountInformationApiGenerated
514
- */
515
- listUserAccounts(requestParameters: AccountInformationApiListUserAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Account[], any>>;
516
- /**
517
- *
518
- * @summary Update details of an investment account
519
- * @param {AccountInformationApiUpdateUserAccountRequest} requestParameters Request parameters.
520
- * @param {*} [options] Override http request option.
521
- * @throws {RequiredError}
522
- * @memberof AccountInformationApiGenerated
523
- */
524
- updateUserAccount(requestParameters: AccountInformationApiUpdateUserAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Account[], any>>;
525
- }
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, BaseAPI } from '../base';
14
+ import { Account } from '../models';
15
+ import { AccountHoldings } from '../models';
16
+ import { AccountHoldingsAccount } from '../models';
17
+ import { AccountOrderRecord } from '../models';
18
+ import { Balance } from '../models';
19
+ import { Position } from '../models';
20
+ /**
21
+ * AccountInformationApi - axios parameter creator
22
+ * @export
23
+ */
24
+ export declare const AccountInformationApiAxiosParamCreator: (configuration?: Configuration) => {
25
+ /**
26
+ *
27
+ * @summary List all accounts for the user, plus balances, positions, and orders for each account.
28
+ * @param {string} userId
29
+ * @param {string} userSecret
30
+ * @param {string} [brokerageAuthorizations] Optional. Comma seperated list of authorization IDs (only use if filtering is needed on one or more authorizations).
31
+ * @param {*} [options] Override http request option.
32
+ * @throws {RequiredError}
33
+ */
34
+ getAllUserHoldings: (userId: string, userSecret: string, brokerageAuthorizations?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
35
+ /**
36
+ *
37
+ * @summary List account balances
38
+ * @param {string} userId
39
+ * @param {string} userSecret
40
+ * @param {string} accountId The ID of the account get positions.
41
+ * @param {*} [options] Override http request option.
42
+ * @throws {RequiredError}
43
+ */
44
+ getUserAccountBalance: (userId: string, userSecret: string, accountId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
45
+ /**
46
+ *
47
+ * @summary Return details of a specific investment account
48
+ * @param {string} userId
49
+ * @param {string} userSecret
50
+ * @param {string} accountId The ID of the account to get detail of.
51
+ * @param {*} [options] Override http request option.
52
+ * @throws {RequiredError}
53
+ */
54
+ getUserAccountDetails: (userId: string, userSecret: string, accountId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
55
+ /**
56
+ *
57
+ * @summary Get all history of orders placed in account
58
+ * @param {string} userId
59
+ * @param {string} userSecret
60
+ * @param {string} accountId The ID of the account get positions.
61
+ * @param {'all' | 'open' | 'executed'} [state] defaults value is set to \&quot;all\&quot;
62
+ * @param {*} [options] Override http request option.
63
+ * @throws {RequiredError}
64
+ */
65
+ getUserAccountOrders: (userId: string, userSecret: string, accountId: string, state?: 'all' | 'open' | 'executed', options?: AxiosRequestConfig) => Promise<RequestArgs>;
66
+ /**
67
+ *
68
+ * @summary List account positions
69
+ * @param {string} userId
70
+ * @param {string} userSecret
71
+ * @param {string} accountId The ID of the account get positions.
72
+ * @param {*} [options] Override http request option.
73
+ * @throws {RequiredError}
74
+ */
75
+ getUserAccountPositions: (userId: string, userSecret: string, accountId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
76
+ /**
77
+ *
78
+ * @summary List balances, positions and orders for the specified account.
79
+ * @param {string} accountId The ID of the account to fetch holdings for.
80
+ * @param {string} userId
81
+ * @param {string} userSecret
82
+ * @param {*} [options] Override http request option.
83
+ * @throws {RequiredError}
84
+ */
85
+ getUserHoldings: (accountId: string, userId: string, userSecret: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
86
+ /**
87
+ *
88
+ * @summary List accounts
89
+ * @param {string} userId
90
+ * @param {string} userSecret
91
+ * @param {*} [options] Override http request option.
92
+ * @throws {RequiredError}
93
+ */
94
+ listUserAccounts: (userId: string, userSecret: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
95
+ /**
96
+ *
97
+ * @summary Update details of an investment account
98
+ * @param {string} userId
99
+ * @param {string} userSecret
100
+ * @param {string} accountId The ID of the account to update.
101
+ * @param {*} [options] Override http request option.
102
+ * @throws {RequiredError}
103
+ */
104
+ updateUserAccount: (userId: string, userSecret: string, accountId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
105
+ };
106
+ /**
107
+ * AccountInformationApi - functional programming interface
108
+ * @export
109
+ */
110
+ export declare const AccountInformationApiFp: (configuration?: Configuration) => {
111
+ /**
112
+ *
113
+ * @summary List all accounts for the user, plus balances, positions, and orders for each account.
114
+ * @param {AccountInformationApiGetAllUserHoldingsRequest} requestParameters Request parameters.
115
+ * @param {*} [options] Override http request option.
116
+ * @throws {RequiredError}
117
+ */
118
+ getAllUserHoldings(requestParameters: AccountInformationApiGetAllUserHoldingsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AccountHoldings>>>;
119
+ /**
120
+ *
121
+ * @summary List account balances
122
+ * @param {AccountInformationApiGetUserAccountBalanceRequest} requestParameters Request parameters.
123
+ * @param {*} [options] Override http request option.
124
+ * @throws {RequiredError}
125
+ */
126
+ getUserAccountBalance(requestParameters: AccountInformationApiGetUserAccountBalanceRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Balance>>>;
127
+ /**
128
+ *
129
+ * @summary Return details of a specific investment account
130
+ * @param {AccountInformationApiGetUserAccountDetailsRequest} requestParameters Request parameters.
131
+ * @param {*} [options] Override http request option.
132
+ * @throws {RequiredError}
133
+ */
134
+ getUserAccountDetails(requestParameters: AccountInformationApiGetUserAccountDetailsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Account>>;
135
+ /**
136
+ *
137
+ * @summary Get all history of orders placed in account
138
+ * @param {AccountInformationApiGetUserAccountOrdersRequest} requestParameters Request parameters.
139
+ * @param {*} [options] Override http request option.
140
+ * @throws {RequiredError}
141
+ */
142
+ getUserAccountOrders(requestParameters: AccountInformationApiGetUserAccountOrdersRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AccountOrderRecord>>>;
143
+ /**
144
+ *
145
+ * @summary List account positions
146
+ * @param {AccountInformationApiGetUserAccountPositionsRequest} requestParameters Request parameters.
147
+ * @param {*} [options] Override http request option.
148
+ * @throws {RequiredError}
149
+ */
150
+ getUserAccountPositions(requestParameters: AccountInformationApiGetUserAccountPositionsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Position>>>;
151
+ /**
152
+ *
153
+ * @summary List balances, positions and orders for the specified account.
154
+ * @param {AccountInformationApiGetUserHoldingsRequest} requestParameters Request parameters.
155
+ * @param {*} [options] Override http request option.
156
+ * @throws {RequiredError}
157
+ */
158
+ getUserHoldings(requestParameters: AccountInformationApiGetUserHoldingsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountHoldingsAccount>>;
159
+ /**
160
+ *
161
+ * @summary List accounts
162
+ * @param {AccountInformationApiListUserAccountsRequest} requestParameters Request parameters.
163
+ * @param {*} [options] Override http request option.
164
+ * @throws {RequiredError}
165
+ */
166
+ listUserAccounts(requestParameters: AccountInformationApiListUserAccountsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Account>>>;
167
+ /**
168
+ *
169
+ * @summary Update details of an investment account
170
+ * @param {AccountInformationApiUpdateUserAccountRequest} requestParameters Request parameters.
171
+ * @param {*} [options] Override http request option.
172
+ * @throws {RequiredError}
173
+ */
174
+ updateUserAccount(requestParameters: AccountInformationApiUpdateUserAccountRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Account>>>;
175
+ };
176
+ /**
177
+ * AccountInformationApi - factory interface
178
+ * @export
179
+ */
180
+ export declare const AccountInformationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
181
+ /**
182
+ *
183
+ * @summary List all accounts for the user, plus balances, positions, and orders for each account.
184
+ * @param {AccountInformationApiGetAllUserHoldingsRequest} requestParameters Request parameters.
185
+ * @param {*} [options] Override http request option.
186
+ * @throws {RequiredError}
187
+ */
188
+ getAllUserHoldings(requestParameters: AccountInformationApiGetAllUserHoldingsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AccountHoldings>>;
189
+ /**
190
+ *
191
+ * @summary List account balances
192
+ * @param {AccountInformationApiGetUserAccountBalanceRequest} requestParameters Request parameters.
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ */
196
+ getUserAccountBalance(requestParameters: AccountInformationApiGetUserAccountBalanceRequest, options?: AxiosRequestConfig): AxiosPromise<Array<Balance>>;
197
+ /**
198
+ *
199
+ * @summary Return details of a specific investment account
200
+ * @param {AccountInformationApiGetUserAccountDetailsRequest} requestParameters Request parameters.
201
+ * @param {*} [options] Override http request option.
202
+ * @throws {RequiredError}
203
+ */
204
+ getUserAccountDetails(requestParameters: AccountInformationApiGetUserAccountDetailsRequest, options?: AxiosRequestConfig): AxiosPromise<Account>;
205
+ /**
206
+ *
207
+ * @summary Get all history of orders placed in account
208
+ * @param {AccountInformationApiGetUserAccountOrdersRequest} requestParameters Request parameters.
209
+ * @param {*} [options] Override http request option.
210
+ * @throws {RequiredError}
211
+ */
212
+ getUserAccountOrders(requestParameters: AccountInformationApiGetUserAccountOrdersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AccountOrderRecord>>;
213
+ /**
214
+ *
215
+ * @summary List account positions
216
+ * @param {AccountInformationApiGetUserAccountPositionsRequest} requestParameters Request parameters.
217
+ * @param {*} [options] Override http request option.
218
+ * @throws {RequiredError}
219
+ */
220
+ getUserAccountPositions(requestParameters: AccountInformationApiGetUserAccountPositionsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<Position>>;
221
+ /**
222
+ *
223
+ * @summary List balances, positions and orders for the specified account.
224
+ * @param {AccountInformationApiGetUserHoldingsRequest} requestParameters Request parameters.
225
+ * @param {*} [options] Override http request option.
226
+ * @throws {RequiredError}
227
+ */
228
+ getUserHoldings(requestParameters: AccountInformationApiGetUserHoldingsRequest, options?: AxiosRequestConfig): AxiosPromise<AccountHoldingsAccount>;
229
+ /**
230
+ *
231
+ * @summary List accounts
232
+ * @param {AccountInformationApiListUserAccountsRequest} requestParameters Request parameters.
233
+ * @param {*} [options] Override http request option.
234
+ * @throws {RequiredError}
235
+ */
236
+ listUserAccounts(requestParameters: AccountInformationApiListUserAccountsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<Account>>;
237
+ /**
238
+ *
239
+ * @summary Update details of an investment account
240
+ * @param {AccountInformationApiUpdateUserAccountRequest} requestParameters Request parameters.
241
+ * @param {*} [options] Override http request option.
242
+ * @throws {RequiredError}
243
+ */
244
+ updateUserAccount(requestParameters: AccountInformationApiUpdateUserAccountRequest, options?: AxiosRequestConfig): AxiosPromise<Array<Account>>;
245
+ };
246
+ /**
247
+ * Request parameters for getAllUserHoldings operation in AccountInformationApi.
248
+ * @export
249
+ * @interface AccountInformationApiGetAllUserHoldingsRequest
250
+ */
251
+ export type AccountInformationApiGetAllUserHoldingsRequest = {
252
+ /**
253
+ *
254
+ * @type {string}
255
+ * @memberof AccountInformationApiGetAllUserHoldings
256
+ */
257
+ readonly userId: string;
258
+ /**
259
+ *
260
+ * @type {string}
261
+ * @memberof AccountInformationApiGetAllUserHoldings
262
+ */
263
+ readonly userSecret: string;
264
+ /**
265
+ * Optional. Comma seperated list of authorization IDs (only use if filtering is needed on one or more authorizations).
266
+ * @type {string}
267
+ * @memberof AccountInformationApiGetAllUserHoldings
268
+ */
269
+ readonly brokerageAuthorizations?: string;
270
+ };
271
+ /**
272
+ * Request parameters for getUserAccountBalance operation in AccountInformationApi.
273
+ * @export
274
+ * @interface AccountInformationApiGetUserAccountBalanceRequest
275
+ */
276
+ export type AccountInformationApiGetUserAccountBalanceRequest = {
277
+ /**
278
+ *
279
+ * @type {string}
280
+ * @memberof AccountInformationApiGetUserAccountBalance
281
+ */
282
+ readonly userId: string;
283
+ /**
284
+ *
285
+ * @type {string}
286
+ * @memberof AccountInformationApiGetUserAccountBalance
287
+ */
288
+ readonly userSecret: string;
289
+ /**
290
+ * The ID of the account get positions.
291
+ * @type {string}
292
+ * @memberof AccountInformationApiGetUserAccountBalance
293
+ */
294
+ readonly accountId: string;
295
+ };
296
+ /**
297
+ * Request parameters for getUserAccountDetails operation in AccountInformationApi.
298
+ * @export
299
+ * @interface AccountInformationApiGetUserAccountDetailsRequest
300
+ */
301
+ export type AccountInformationApiGetUserAccountDetailsRequest = {
302
+ /**
303
+ *
304
+ * @type {string}
305
+ * @memberof AccountInformationApiGetUserAccountDetails
306
+ */
307
+ readonly userId: string;
308
+ /**
309
+ *
310
+ * @type {string}
311
+ * @memberof AccountInformationApiGetUserAccountDetails
312
+ */
313
+ readonly userSecret: string;
314
+ /**
315
+ * The ID of the account to get detail of.
316
+ * @type {string}
317
+ * @memberof AccountInformationApiGetUserAccountDetails
318
+ */
319
+ readonly accountId: string;
320
+ };
321
+ /**
322
+ * Request parameters for getUserAccountOrders operation in AccountInformationApi.
323
+ * @export
324
+ * @interface AccountInformationApiGetUserAccountOrdersRequest
325
+ */
326
+ export type AccountInformationApiGetUserAccountOrdersRequest = {
327
+ /**
328
+ *
329
+ * @type {string}
330
+ * @memberof AccountInformationApiGetUserAccountOrders
331
+ */
332
+ readonly userId: string;
333
+ /**
334
+ *
335
+ * @type {string}
336
+ * @memberof AccountInformationApiGetUserAccountOrders
337
+ */
338
+ readonly userSecret: string;
339
+ /**
340
+ * The ID of the account get positions.
341
+ * @type {string}
342
+ * @memberof AccountInformationApiGetUserAccountOrders
343
+ */
344
+ readonly accountId: string;
345
+ /**
346
+ * defaults value is set to \"all\"
347
+ * @type {'all' | 'open' | 'executed'}
348
+ * @memberof AccountInformationApiGetUserAccountOrders
349
+ */
350
+ readonly state?: 'all' | 'open' | 'executed';
351
+ };
352
+ /**
353
+ * Request parameters for getUserAccountPositions operation in AccountInformationApi.
354
+ * @export
355
+ * @interface AccountInformationApiGetUserAccountPositionsRequest
356
+ */
357
+ export type AccountInformationApiGetUserAccountPositionsRequest = {
358
+ /**
359
+ *
360
+ * @type {string}
361
+ * @memberof AccountInformationApiGetUserAccountPositions
362
+ */
363
+ readonly userId: string;
364
+ /**
365
+ *
366
+ * @type {string}
367
+ * @memberof AccountInformationApiGetUserAccountPositions
368
+ */
369
+ readonly userSecret: string;
370
+ /**
371
+ * The ID of the account get positions.
372
+ * @type {string}
373
+ * @memberof AccountInformationApiGetUserAccountPositions
374
+ */
375
+ readonly accountId: string;
376
+ };
377
+ /**
378
+ * Request parameters for getUserHoldings operation in AccountInformationApi.
379
+ * @export
380
+ * @interface AccountInformationApiGetUserHoldingsRequest
381
+ */
382
+ export type AccountInformationApiGetUserHoldingsRequest = {
383
+ /**
384
+ * The ID of the account to fetch holdings for.
385
+ * @type {string}
386
+ * @memberof AccountInformationApiGetUserHoldings
387
+ */
388
+ readonly accountId: string;
389
+ /**
390
+ *
391
+ * @type {string}
392
+ * @memberof AccountInformationApiGetUserHoldings
393
+ */
394
+ readonly userId: string;
395
+ /**
396
+ *
397
+ * @type {string}
398
+ * @memberof AccountInformationApiGetUserHoldings
399
+ */
400
+ readonly userSecret: string;
401
+ };
402
+ /**
403
+ * Request parameters for listUserAccounts operation in AccountInformationApi.
404
+ * @export
405
+ * @interface AccountInformationApiListUserAccountsRequest
406
+ */
407
+ export type AccountInformationApiListUserAccountsRequest = {
408
+ /**
409
+ *
410
+ * @type {string}
411
+ * @memberof AccountInformationApiListUserAccounts
412
+ */
413
+ readonly userId: string;
414
+ /**
415
+ *
416
+ * @type {string}
417
+ * @memberof AccountInformationApiListUserAccounts
418
+ */
419
+ readonly userSecret: string;
420
+ };
421
+ /**
422
+ * Request parameters for updateUserAccount operation in AccountInformationApi.
423
+ * @export
424
+ * @interface AccountInformationApiUpdateUserAccountRequest
425
+ */
426
+ export type AccountInformationApiUpdateUserAccountRequest = {
427
+ /**
428
+ *
429
+ * @type {string}
430
+ * @memberof AccountInformationApiUpdateUserAccount
431
+ */
432
+ readonly userId: string;
433
+ /**
434
+ *
435
+ * @type {string}
436
+ * @memberof AccountInformationApiUpdateUserAccount
437
+ */
438
+ readonly userSecret: string;
439
+ /**
440
+ * The ID of the account to update.
441
+ * @type {string}
442
+ * @memberof AccountInformationApiUpdateUserAccount
443
+ */
444
+ readonly accountId: string;
445
+ };
446
+ /**
447
+ * AccountInformationApiGenerated - object-oriented interface
448
+ * @export
449
+ * @class AccountInformationApiGenerated
450
+ * @extends {BaseAPI}
451
+ */
452
+ export declare class AccountInformationApiGenerated extends BaseAPI {
453
+ /**
454
+ *
455
+ * @summary List all accounts for the user, plus balances, positions, and orders for each account.
456
+ * @param {AccountInformationApiGetAllUserHoldingsRequest} requestParameters Request parameters.
457
+ * @param {*} [options] Override http request option.
458
+ * @throws {RequiredError}
459
+ * @memberof AccountInformationApiGenerated
460
+ */
461
+ getAllUserHoldings(requestParameters: AccountInformationApiGetAllUserHoldingsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountHoldings[], any>>;
462
+ /**
463
+ *
464
+ * @summary List account balances
465
+ * @param {AccountInformationApiGetUserAccountBalanceRequest} requestParameters Request parameters.
466
+ * @param {*} [options] Override http request option.
467
+ * @throws {RequiredError}
468
+ * @memberof AccountInformationApiGenerated
469
+ */
470
+ getUserAccountBalance(requestParameters: AccountInformationApiGetUserAccountBalanceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Balance[], any>>;
471
+ /**
472
+ *
473
+ * @summary Return details of a specific investment account
474
+ * @param {AccountInformationApiGetUserAccountDetailsRequest} requestParameters Request parameters.
475
+ * @param {*} [options] Override http request option.
476
+ * @throws {RequiredError}
477
+ * @memberof AccountInformationApiGenerated
478
+ */
479
+ getUserAccountDetails(requestParameters: AccountInformationApiGetUserAccountDetailsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Account, any>>;
480
+ /**
481
+ *
482
+ * @summary Get all history of orders placed in account
483
+ * @param {AccountInformationApiGetUserAccountOrdersRequest} requestParameters Request parameters.
484
+ * @param {*} [options] Override http request option.
485
+ * @throws {RequiredError}
486
+ * @memberof AccountInformationApiGenerated
487
+ */
488
+ getUserAccountOrders(requestParameters: AccountInformationApiGetUserAccountOrdersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountOrderRecord[], any>>;
489
+ /**
490
+ *
491
+ * @summary List account positions
492
+ * @param {AccountInformationApiGetUserAccountPositionsRequest} requestParameters Request parameters.
493
+ * @param {*} [options] Override http request option.
494
+ * @throws {RequiredError}
495
+ * @memberof AccountInformationApiGenerated
496
+ */
497
+ getUserAccountPositions(requestParameters: AccountInformationApiGetUserAccountPositionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Position[], any>>;
498
+ /**
499
+ *
500
+ * @summary List balances, positions and orders for the specified account.
501
+ * @param {AccountInformationApiGetUserHoldingsRequest} requestParameters Request parameters.
502
+ * @param {*} [options] Override http request option.
503
+ * @throws {RequiredError}
504
+ * @memberof AccountInformationApiGenerated
505
+ */
506
+ getUserHoldings(requestParameters: AccountInformationApiGetUserHoldingsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountHoldingsAccount, any>>;
507
+ /**
508
+ *
509
+ * @summary List accounts
510
+ * @param {AccountInformationApiListUserAccountsRequest} requestParameters Request parameters.
511
+ * @param {*} [options] Override http request option.
512
+ * @throws {RequiredError}
513
+ * @memberof AccountInformationApiGenerated
514
+ */
515
+ listUserAccounts(requestParameters: AccountInformationApiListUserAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Account[], any>>;
516
+ /**
517
+ *
518
+ * @summary Update details of an investment account
519
+ * @param {AccountInformationApiUpdateUserAccountRequest} requestParameters Request parameters.
520
+ * @param {*} [options] Override http request option.
521
+ * @throws {RequiredError}
522
+ * @memberof AccountInformationApiGenerated
523
+ */
524
+ updateUserAccount(requestParameters: AccountInformationApiUpdateUserAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Account[], any>>;
525
+ }