kalshi-typescript 2.1.3 → 3.3.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 (787) hide show
  1. package/README.md +110 -50
  2. package/dist/api/api-keys-api.d.ts +20 -20
  3. package/dist/api/api-keys-api.js +44 -32
  4. package/dist/api/collection-api.d.ts +242 -0
  5. package/dist/api/collection-api.js +467 -0
  6. package/dist/api/communications-api.d.ts +124 -60
  7. package/dist/api/communications-api.js +246 -102
  8. package/dist/api/events-api.d.ts +210 -36
  9. package/dist/api/events-api.js +370 -50
  10. package/dist/api/exchange-api.d.ts +57 -20
  11. package/dist/api/exchange-api.js +92 -23
  12. package/dist/api/fcm-api.d.ts +164 -0
  13. package/dist/api/fcm-api.js +313 -0
  14. package/dist/api/incentive-programs-api.d.ts +93 -0
  15. package/dist/api/incentive-programs-api.js +164 -0
  16. package/dist/api/live-data-api.d.ts +104 -0
  17. package/dist/api/live-data-api.js +205 -0
  18. package/dist/api/market-api.d.ts +425 -0
  19. package/dist/api/market-api.js +811 -0
  20. package/dist/api/milestone-api.d.ts +128 -0
  21. package/dist/api/milestone-api.js +249 -0
  22. package/dist/api/multivariate-api.d.ts +242 -0
  23. package/dist/api/multivariate-api.js +467 -0
  24. package/dist/api/order-groups-api.d.ts +198 -0
  25. package/dist/api/order-groups-api.js +421 -0
  26. package/dist/api/orders-api.d.ts +405 -0
  27. package/dist/api/orders-api.js +844 -0
  28. package/dist/api/portfolio-api.d.ts +73 -601
  29. package/dist/api/portfolio-api.js +141 -1202
  30. package/dist/api/search-api.d.ts +92 -0
  31. package/dist/api/search-api.js +182 -0
  32. package/dist/api/structured-targets-api.d.ts +32 -24
  33. package/dist/api/structured-targets-api.js +43 -35
  34. package/dist/api.d.ts +13 -8
  35. package/dist/api.js +13 -8
  36. package/dist/base.d.ts +4 -4
  37. package/dist/base.js +4 -4
  38. package/dist/common.d.ts +4 -4
  39. package/dist/common.js +4 -4
  40. package/dist/configuration.d.ts +4 -4
  41. package/dist/configuration.js +4 -4
  42. package/dist/esm/api/api-keys-api.d.ts +20 -20
  43. package/dist/esm/api/api-keys-api.js +45 -33
  44. package/dist/esm/api/collection-api.d.ts +242 -0
  45. package/dist/esm/api/collection-api.js +460 -0
  46. package/dist/esm/api/communications-api.d.ts +124 -60
  47. package/dist/esm/api/communications-api.js +247 -103
  48. package/dist/esm/api/events-api.d.ts +210 -36
  49. package/dist/esm/api/events-api.js +370 -50
  50. package/dist/esm/api/exchange-api.d.ts +57 -20
  51. package/dist/esm/api/exchange-api.js +93 -24
  52. package/dist/esm/api/fcm-api.d.ts +164 -0
  53. package/dist/esm/api/fcm-api.js +306 -0
  54. package/dist/esm/api/incentive-programs-api.d.ts +93 -0
  55. package/dist/esm/api/incentive-programs-api.js +157 -0
  56. package/dist/esm/api/live-data-api.d.ts +104 -0
  57. package/dist/esm/api/live-data-api.js +198 -0
  58. package/dist/esm/api/market-api.d.ts +425 -0
  59. package/dist/esm/api/market-api.js +804 -0
  60. package/dist/esm/api/milestone-api.d.ts +128 -0
  61. package/dist/esm/api/milestone-api.js +242 -0
  62. package/dist/esm/api/multivariate-api.d.ts +242 -0
  63. package/dist/esm/api/multivariate-api.js +460 -0
  64. package/dist/esm/api/order-groups-api.d.ts +198 -0
  65. package/dist/esm/api/order-groups-api.js +414 -0
  66. package/dist/esm/api/orders-api.d.ts +405 -0
  67. package/dist/esm/api/orders-api.js +837 -0
  68. package/dist/esm/api/portfolio-api.d.ts +73 -601
  69. package/dist/esm/api/portfolio-api.js +141 -1202
  70. package/dist/esm/api/search-api.d.ts +92 -0
  71. package/dist/esm/api/search-api.js +175 -0
  72. package/dist/esm/api/structured-targets-api.d.ts +32 -24
  73. package/dist/esm/api/structured-targets-api.js +44 -36
  74. package/dist/esm/api.d.ts +13 -8
  75. package/dist/esm/api.js +13 -8
  76. package/dist/esm/base.d.ts +4 -4
  77. package/dist/esm/base.js +4 -4
  78. package/dist/esm/common.d.ts +4 -4
  79. package/dist/esm/common.js +4 -4
  80. package/dist/esm/configuration.d.ts +4 -4
  81. package/dist/esm/configuration.js +4 -4
  82. package/dist/esm/index.d.ts +4 -4
  83. package/dist/esm/index.js +4 -4
  84. package/dist/esm/models/accept-quote-request.d.ts +13 -5
  85. package/dist/esm/models/accept-quote-request.js +8 -5
  86. package/dist/esm/models/amend-order-request.d.ts +27 -10
  87. package/dist/esm/models/amend-order-request.js +4 -4
  88. package/dist/esm/models/amend-order-response.d.ts +6 -5
  89. package/dist/esm/models/amend-order-response.js +4 -4
  90. package/dist/esm/models/announcement.d.ts +25 -13
  91. package/dist/esm/models/announcement.js +8 -8
  92. package/dist/esm/models/api-key.d.ts +6 -6
  93. package/dist/esm/models/api-key.js +4 -4
  94. package/dist/esm/models/associated-event.d.ts +33 -0
  95. package/dist/esm/models/associated-event.js +14 -0
  96. package/dist/esm/models/batch-cancel-orders-individual-response.d.ts +25 -0
  97. package/dist/esm/models/batch-cancel-orders-individual-response.js +14 -0
  98. package/dist/esm/models/batch-cancel-orders-request.d.ts +8 -5
  99. package/dist/esm/models/batch-cancel-orders-request.js +4 -4
  100. package/dist/esm/models/batch-cancel-orders-response.d.ts +6 -6
  101. package/dist/esm/models/batch-cancel-orders-response.js +4 -4
  102. package/dist/esm/models/batch-create-orders-individual-response.d.ts +18 -0
  103. package/dist/esm/models/batch-create-orders-individual-response.js +14 -0
  104. package/dist/esm/models/batch-create-orders-request.d.ts +4 -4
  105. package/dist/esm/models/batch-create-orders-request.js +4 -4
  106. package/dist/esm/models/batch-create-orders-response.d.ts +6 -6
  107. package/dist/esm/models/batch-create-orders-response.js +4 -4
  108. package/dist/esm/models/batch-get-market-candlesticks-response.d.ts +18 -0
  109. package/dist/esm/models/batch-get-market-candlesticks-response.js +14 -0
  110. package/dist/esm/models/bid-ask-distribution.d.ts +45 -0
  111. package/dist/esm/models/bid-ask-distribution.js +14 -0
  112. package/dist/esm/models/cancel-order-response.d.ts +6 -6
  113. package/dist/esm/models/cancel-order-response.js +4 -4
  114. package/dist/esm/models/create-api-key-request.d.ts +8 -4
  115. package/dist/esm/models/create-api-key-request.js +4 -4
  116. package/dist/esm/models/create-api-key-response.d.ts +4 -4
  117. package/dist/esm/models/create-api-key-response.js +4 -4
  118. package/dist/esm/models/create-market-in-multivariate-event-collection-request.d.ts +18 -0
  119. package/dist/esm/models/create-market-in-multivariate-event-collection-request.js +14 -0
  120. package/dist/esm/models/create-market-in-multivariate-event-collection-response.d.ts +21 -0
  121. package/dist/esm/models/create-market-in-multivariate-event-collection-response.js +14 -0
  122. package/dist/esm/models/create-order-group-request.d.ts +5 -5
  123. package/dist/esm/models/create-order-group-request.js +4 -4
  124. package/dist/esm/models/create-order-group-response.d.ts +5 -5
  125. package/dist/esm/models/create-order-group-response.js +4 -4
  126. package/dist/esm/models/create-order-request.d.ts +34 -9
  127. package/dist/esm/models/create-order-request.js +9 -4
  128. package/dist/esm/models/create-order-response.d.ts +5 -5
  129. package/dist/esm/models/create-order-response.js +4 -4
  130. package/dist/esm/models/create-quote-request.d.ts +19 -6
  131. package/dist/esm/models/create-quote-request.js +4 -4
  132. package/dist/esm/models/create-quote-response.d.ts +8 -6
  133. package/dist/esm/models/create-quote-response.js +4 -4
  134. package/dist/esm/models/create-rfqrequest.d.ts +28 -13
  135. package/dist/esm/models/create-rfqrequest.js +5 -8
  136. package/dist/esm/models/create-rfqresponse.d.ts +8 -6
  137. package/dist/esm/models/create-rfqresponse.js +4 -4
  138. package/dist/esm/models/daily-schedule.d.ts +12 -6
  139. package/dist/esm/models/daily-schedule.js +4 -4
  140. package/dist/esm/models/decrease-order-request.d.ts +6 -5
  141. package/dist/esm/models/decrease-order-request.js +4 -4
  142. package/dist/esm/models/decrease-order-response.d.ts +5 -5
  143. package/dist/esm/models/decrease-order-response.js +4 -4
  144. package/dist/esm/models/error-response.d.ts +20 -6
  145. package/dist/esm/models/error-response.js +4 -4
  146. package/dist/esm/models/event-data.d.ts +62 -0
  147. package/dist/esm/models/event-data.js +14 -0
  148. package/dist/esm/models/event-position.d.ts +24 -24
  149. package/dist/esm/models/event-position.js +4 -4
  150. package/dist/esm/models/exchange-status.d.ts +16 -6
  151. package/dist/esm/models/exchange-status.js +4 -4
  152. package/dist/esm/models/fill.d.ts +71 -12
  153. package/dist/esm/models/fill.js +4 -4
  154. package/dist/esm/models/forecast-percentiles-point.d.ts +30 -0
  155. package/dist/esm/models/forecast-percentiles-point.js +14 -0
  156. package/dist/esm/models/generate-api-key-request.d.ts +8 -4
  157. package/dist/esm/models/generate-api-key-request.js +4 -4
  158. package/dist/esm/models/generate-api-key-response.d.ts +4 -4
  159. package/dist/esm/models/generate-api-key-response.js +4 -4
  160. package/dist/esm/models/get-api-keys-response.d.ts +4 -4
  161. package/dist/esm/models/get-api-keys-response.js +4 -4
  162. package/dist/esm/models/get-balance-response.d.ts +14 -6
  163. package/dist/esm/models/get-balance-response.js +4 -4
  164. package/dist/esm/models/get-communications-idresponse.d.ts +6 -6
  165. package/dist/esm/models/get-communications-idresponse.js +4 -4
  166. package/dist/esm/models/get-event-candlesticks-response.d.ts +26 -0
  167. package/dist/esm/models/get-event-candlesticks-response.js +14 -0
  168. package/dist/esm/models/get-event-forecast-percentiles-history-response.d.ts +18 -0
  169. package/dist/esm/models/get-event-forecast-percentiles-history-response.js +14 -0
  170. package/dist/esm/models/get-event-metadata-response.d.ts +30 -5
  171. package/dist/esm/models/get-event-metadata-response.js +4 -4
  172. package/dist/esm/models/get-event-response.d.ts +10 -7
  173. package/dist/esm/models/get-event-response.js +4 -4
  174. package/dist/esm/models/get-events-candlesticks-response-events-inner.d.ts +30 -0
  175. package/{models/accept-quote-request.ts → dist/esm/models/get-events-candlesticks-response-events-inner.js} +4 -10
  176. package/dist/esm/models/get-events-candlesticks-response.d.ts +18 -0
  177. package/{models/decrease-order-request.ts → dist/esm/models/get-events-candlesticks-response.js} +4 -10
  178. package/dist/esm/models/get-events-response.d.ts +18 -7
  179. package/dist/esm/models/get-events-response.js +4 -4
  180. package/dist/esm/models/get-exchange-announcements-response.d.ts +8 -5
  181. package/dist/esm/models/get-exchange-announcements-response.js +4 -4
  182. package/dist/esm/models/get-exchange-schedule-response.d.ts +6 -6
  183. package/dist/esm/models/get-exchange-schedule-response.js +4 -4
  184. package/dist/esm/models/get-fills-response.d.ts +6 -6
  185. package/dist/esm/models/get-fills-response.js +4 -4
  186. package/dist/esm/models/get-filters-by-sports-response.d.ts +24 -0
  187. package/dist/esm/models/get-filters-by-sports-response.js +14 -0
  188. package/dist/esm/models/get-incentive-programs-response.d.ts +19 -0
  189. package/dist/esm/models/get-incentive-programs-response.js +14 -0
  190. package/dist/esm/models/get-live-data-response.d.ts +15 -0
  191. package/dist/esm/models/get-live-data-response.js +14 -0
  192. package/dist/esm/models/get-live-datas-response.d.ts +15 -0
  193. package/dist/esm/models/get-live-datas-response.js +14 -0
  194. package/dist/esm/models/get-market-candlesticks-response.d.ts +13 -6
  195. package/dist/esm/models/get-market-candlesticks-response.js +4 -4
  196. package/dist/esm/models/get-market-orderbook-response.d.ts +6 -6
  197. package/dist/esm/models/get-market-orderbook-response.js +4 -4
  198. package/dist/esm/models/get-market-response.d.ts +5 -5
  199. package/dist/esm/models/get-market-response.js +4 -4
  200. package/dist/esm/models/get-markets-response.d.ts +6 -6
  201. package/dist/esm/models/get-markets-response.js +4 -4
  202. package/dist/esm/models/get-milestone-response.d.ts +5 -5
  203. package/dist/esm/models/get-milestone-response.js +4 -4
  204. package/dist/esm/models/get-milestones-response.d.ts +12 -5
  205. package/dist/esm/models/get-milestones-response.js +4 -4
  206. package/dist/esm/models/get-multivariate-event-collection-lookup-history-response.d.ts +18 -0
  207. package/dist/esm/models/get-multivariate-event-collection-lookup-history-response.js +14 -0
  208. package/dist/esm/models/get-multivariate-event-collection-response.d.ts +5 -5
  209. package/dist/esm/models/get-multivariate-event-collection-response.js +4 -4
  210. package/dist/esm/models/get-multivariate-event-collections-response.d.ts +12 -5
  211. package/dist/esm/models/get-multivariate-event-collections-response.js +4 -4
  212. package/dist/esm/models/get-multivariate-events-response.d.ts +22 -0
  213. package/dist/esm/models/get-multivariate-events-response.js +14 -0
  214. package/dist/esm/models/get-order-group-response.d.ts +6 -6
  215. package/dist/esm/models/get-order-group-response.js +4 -4
  216. package/dist/esm/models/get-order-groups-response.d.ts +4 -5
  217. package/dist/esm/models/get-order-groups-response.js +4 -4
  218. package/dist/esm/models/get-order-queue-position-response.d.ts +8 -5
  219. package/dist/esm/models/get-order-queue-position-response.js +4 -4
  220. package/dist/esm/models/get-order-queue-positions-response.d.ts +18 -0
  221. package/dist/esm/models/get-order-queue-positions-response.js +14 -0
  222. package/dist/esm/models/get-order-response.d.ts +4 -4
  223. package/dist/esm/models/get-order-response.js +4 -4
  224. package/dist/esm/models/get-orders-response.d.ts +6 -6
  225. package/dist/esm/models/get-orders-response.js +4 -4
  226. package/dist/esm/models/get-portfolio-resting-order-total-value-response.d.ts +17 -0
  227. package/dist/esm/models/get-portfolio-resting-order-total-value-response.js +14 -0
  228. package/dist/esm/models/get-positions-response.d.ts +16 -7
  229. package/dist/esm/models/get-positions-response.js +4 -4
  230. package/dist/esm/models/get-quote-response.d.ts +5 -5
  231. package/dist/esm/models/get-quote-response.js +4 -4
  232. package/dist/esm/models/get-quotes-response.d.ts +12 -5
  233. package/dist/esm/models/get-quotes-response.js +4 -4
  234. package/dist/esm/models/get-rfqresponse.d.ts +5 -5
  235. package/dist/esm/models/get-rfqresponse.js +4 -4
  236. package/dist/esm/models/get-rfqs-response.d.ts +12 -5
  237. package/dist/esm/models/get-rfqs-response.js +4 -4
  238. package/dist/esm/models/get-series-fee-changes-response.d.ts +15 -0
  239. package/dist/esm/models/get-series-fee-changes-response.js +14 -0
  240. package/dist/esm/models/get-series-list-response.d.ts +15 -0
  241. package/dist/esm/models/get-series-list-response.js +14 -0
  242. package/dist/esm/models/get-series-response.d.ts +5 -5
  243. package/dist/esm/models/get-series-response.js +4 -4
  244. package/dist/esm/models/get-settlements-response.d.ts +5 -5
  245. package/dist/esm/models/get-settlements-response.js +4 -4
  246. package/dist/esm/models/get-structured-target-response.d.ts +4 -4
  247. package/dist/esm/models/get-structured-target-response.js +4 -4
  248. package/dist/esm/models/get-structured-targets-response.d.ts +8 -4
  249. package/dist/esm/models/get-structured-targets-response.js +4 -4
  250. package/dist/esm/models/get-tags-for-series-categories-response.d.ts +19 -0
  251. package/dist/esm/models/get-tags-for-series-categories-response.js +14 -0
  252. package/dist/esm/models/get-trades-response.d.ts +6 -6
  253. package/dist/esm/models/get-trades-response.js +4 -4
  254. package/dist/esm/models/get-user-data-timestamp-response.d.ts +8 -5
  255. package/dist/esm/models/get-user-data-timestamp-response.js +4 -4
  256. package/dist/esm/models/incentive-program.d.ts +54 -0
  257. package/dist/esm/models/incentive-program.js +17 -0
  258. package/dist/esm/models/index.d.ts +47 -17
  259. package/dist/esm/models/index.js +47 -17
  260. package/dist/esm/models/live-data.d.ts +27 -0
  261. package/dist/esm/models/live-data.js +14 -0
  262. package/dist/esm/models/lookup-point.d.ts +30 -0
  263. package/dist/esm/models/lookup-point.js +14 -0
  264. package/dist/esm/models/lookup-tickers-for-market-in-multivariate-event-collection-request.d.ts +18 -0
  265. package/dist/esm/models/lookup-tickers-for-market-in-multivariate-event-collection-request.js +14 -0
  266. package/dist/esm/models/lookup-tickers-for-market-in-multivariate-event-collection-response.d.ts +21 -0
  267. package/dist/esm/models/lookup-tickers-for-market-in-multivariate-event-collection-response.js +14 -0
  268. package/dist/esm/models/maintenance-window.d.ts +21 -0
  269. package/dist/esm/models/maintenance-window.js +14 -0
  270. package/dist/esm/models/market-candlestick.d.ts +30 -0
  271. package/dist/esm/models/market-candlestick.js +14 -0
  272. package/dist/esm/models/market-candlesticks-response.d.ts +22 -0
  273. package/dist/esm/models/market-candlesticks-response.js +14 -0
  274. package/dist/esm/models/market-metadata.d.ts +25 -0
  275. package/dist/esm/models/market-metadata.js +14 -0
  276. package/dist/esm/models/market-position.d.ts +61 -0
  277. package/dist/esm/models/market-position.js +14 -0
  278. package/dist/esm/models/market.d.ts +226 -27
  279. package/dist/esm/models/market.js +26 -6
  280. package/dist/esm/models/milestone.d.ts +54 -7
  281. package/dist/esm/models/milestone.js +4 -4
  282. package/dist/esm/models/multivariate-event-collection.d.ts +61 -9
  283. package/dist/esm/models/multivariate-event-collection.js +4 -4
  284. package/dist/esm/models/mve-selected-leg.d.ts +25 -0
  285. package/dist/esm/models/mve-selected-leg.js +14 -0
  286. package/dist/esm/models/order-group.d.ts +5 -5
  287. package/dist/esm/models/order-group.js +4 -4
  288. package/dist/esm/models/order-queue-position.d.ts +25 -0
  289. package/dist/esm/models/order-queue-position.js +14 -0
  290. package/dist/esm/models/order-status.d.ts +20 -0
  291. package/dist/esm/models/order-status.js +21 -0
  292. package/dist/esm/models/order.d.ts +75 -29
  293. package/dist/esm/models/order.js +4 -10
  294. package/dist/esm/models/orderbook.d.ts +17 -0
  295. package/dist/esm/models/orderbook.js +14 -0
  296. package/dist/esm/models/percentile-point.d.ts +29 -0
  297. package/dist/esm/models/percentile-point.js +14 -0
  298. package/dist/esm/models/price-distribution.d.ts +77 -0
  299. package/dist/esm/models/price-distribution.js +14 -0
  300. package/dist/esm/models/price-range.d.ts +25 -0
  301. package/dist/esm/models/price-range.js +14 -0
  302. package/dist/esm/models/quote.d.ts +116 -17
  303. package/dist/esm/models/quote.js +14 -7
  304. package/dist/esm/models/rfq.d.ts +65 -16
  305. package/dist/esm/models/rfq.js +7 -7
  306. package/dist/esm/models/schedule.d.ts +23 -0
  307. package/dist/esm/models/schedule.js +14 -0
  308. package/dist/esm/models/scope-list.d.ts +17 -0
  309. package/dist/esm/models/scope-list.js +14 -0
  310. package/dist/esm/models/self-trade-prevention-type.d.ts +19 -0
  311. package/dist/esm/models/self-trade-prevention-type.js +20 -0
  312. package/dist/esm/models/series-fee-change.d.ts +39 -0
  313. package/dist/esm/models/series-fee-change.js +18 -0
  314. package/dist/esm/models/series.d.ts +57 -9
  315. package/dist/esm/models/series.js +9 -5
  316. package/dist/esm/models/settlement-source.d.ts +21 -0
  317. package/dist/esm/models/settlement-source.js +14 -0
  318. package/dist/esm/models/settlement.d.ts +52 -12
  319. package/dist/esm/models/settlement.js +8 -6
  320. package/dist/esm/models/sport-filter-details.d.ts +24 -0
  321. package/dist/esm/models/sport-filter-details.js +14 -0
  322. package/dist/esm/models/structured-target.d.ts +28 -7
  323. package/dist/esm/models/structured-target.js +4 -4
  324. package/dist/esm/models/ticker-pair.d.ts +30 -0
  325. package/dist/esm/models/ticker-pair.js +17 -0
  326. package/dist/esm/models/trade.d.ts +45 -11
  327. package/dist/esm/models/trade.js +6 -6
  328. package/dist/esm/models/weekly-schedule.d.ts +50 -0
  329. package/dist/esm/models/weekly-schedule.js +14 -0
  330. package/dist/index.d.ts +4 -4
  331. package/dist/index.js +4 -4
  332. package/dist/models/accept-quote-request.d.ts +13 -5
  333. package/dist/models/accept-quote-request.js +9 -4
  334. package/dist/models/amend-order-request.d.ts +27 -10
  335. package/dist/models/amend-order-request.js +4 -4
  336. package/dist/models/amend-order-response.d.ts +6 -5
  337. package/dist/models/amend-order-response.js +4 -4
  338. package/dist/models/announcement.d.ts +25 -13
  339. package/dist/models/announcement.js +9 -9
  340. package/dist/models/api-key.d.ts +6 -6
  341. package/dist/models/api-key.js +4 -4
  342. package/dist/models/associated-event.d.ts +33 -0
  343. package/dist/models/associated-event.js +15 -0
  344. package/dist/models/batch-cancel-orders-individual-response.d.ts +25 -0
  345. package/dist/models/batch-cancel-orders-individual-response.js +15 -0
  346. package/dist/models/batch-cancel-orders-request.d.ts +8 -5
  347. package/dist/models/batch-cancel-orders-request.js +4 -4
  348. package/dist/models/batch-cancel-orders-response.d.ts +6 -6
  349. package/dist/models/batch-cancel-orders-response.js +4 -4
  350. package/dist/models/batch-create-orders-individual-response.d.ts +18 -0
  351. package/dist/models/batch-create-orders-individual-response.js +15 -0
  352. package/dist/models/batch-create-orders-request.d.ts +4 -4
  353. package/dist/models/batch-create-orders-request.js +4 -4
  354. package/dist/models/batch-create-orders-response.d.ts +6 -6
  355. package/dist/models/batch-create-orders-response.js +4 -4
  356. package/dist/models/batch-get-market-candlesticks-response.d.ts +18 -0
  357. package/dist/models/batch-get-market-candlesticks-response.js +15 -0
  358. package/dist/models/bid-ask-distribution.d.ts +45 -0
  359. package/dist/models/bid-ask-distribution.js +15 -0
  360. package/dist/models/cancel-order-response.d.ts +6 -6
  361. package/dist/models/cancel-order-response.js +4 -4
  362. package/dist/models/create-api-key-request.d.ts +8 -4
  363. package/dist/models/create-api-key-request.js +4 -4
  364. package/dist/models/create-api-key-response.d.ts +4 -4
  365. package/dist/models/create-api-key-response.js +4 -4
  366. package/dist/models/create-market-in-multivariate-event-collection-request.d.ts +18 -0
  367. package/dist/models/create-market-in-multivariate-event-collection-request.js +15 -0
  368. package/dist/models/create-market-in-multivariate-event-collection-response.d.ts +21 -0
  369. package/dist/models/create-market-in-multivariate-event-collection-response.js +15 -0
  370. package/dist/models/create-order-group-request.d.ts +5 -5
  371. package/dist/models/create-order-group-request.js +4 -4
  372. package/dist/models/create-order-group-response.d.ts +5 -5
  373. package/dist/models/create-order-group-response.js +4 -4
  374. package/dist/models/create-order-request.d.ts +34 -9
  375. package/dist/models/create-order-request.js +10 -5
  376. package/dist/models/create-order-response.d.ts +5 -5
  377. package/dist/models/create-order-response.js +4 -4
  378. package/dist/models/create-quote-request.d.ts +19 -6
  379. package/dist/models/create-quote-request.js +4 -4
  380. package/dist/models/create-quote-response.d.ts +8 -6
  381. package/dist/models/create-quote-response.js +4 -4
  382. package/dist/models/create-rfqrequest.d.ts +28 -13
  383. package/dist/models/create-rfqrequest.js +4 -9
  384. package/dist/models/create-rfqresponse.d.ts +8 -6
  385. package/dist/models/create-rfqresponse.js +4 -4
  386. package/dist/models/daily-schedule.d.ts +12 -6
  387. package/dist/models/daily-schedule.js +4 -4
  388. package/dist/models/decrease-order-request.d.ts +6 -5
  389. package/dist/models/decrease-order-request.js +4 -4
  390. package/dist/models/decrease-order-response.d.ts +5 -5
  391. package/dist/models/decrease-order-response.js +4 -4
  392. package/dist/models/error-response.d.ts +20 -6
  393. package/dist/models/error-response.js +4 -4
  394. package/dist/models/event-data.d.ts +62 -0
  395. package/dist/models/event-data.js +15 -0
  396. package/dist/models/event-position.d.ts +24 -24
  397. package/dist/models/event-position.js +4 -4
  398. package/dist/models/exchange-status.d.ts +16 -6
  399. package/dist/models/exchange-status.js +4 -4
  400. package/dist/models/fill.d.ts +71 -12
  401. package/dist/models/fill.js +4 -4
  402. package/dist/models/forecast-percentiles-point.d.ts +30 -0
  403. package/dist/models/forecast-percentiles-point.js +15 -0
  404. package/dist/models/generate-api-key-request.d.ts +8 -4
  405. package/dist/models/generate-api-key-request.js +4 -4
  406. package/dist/models/generate-api-key-response.d.ts +4 -4
  407. package/dist/models/generate-api-key-response.js +4 -4
  408. package/dist/models/get-api-keys-response.d.ts +4 -4
  409. package/dist/models/get-api-keys-response.js +4 -4
  410. package/dist/models/get-balance-response.d.ts +14 -6
  411. package/dist/models/get-balance-response.js +4 -4
  412. package/dist/models/get-communications-idresponse.d.ts +6 -6
  413. package/dist/models/get-communications-idresponse.js +4 -4
  414. package/dist/models/get-event-candlesticks-response.d.ts +26 -0
  415. package/dist/models/get-event-candlesticks-response.js +15 -0
  416. package/dist/models/get-event-forecast-percentiles-history-response.d.ts +18 -0
  417. package/dist/models/get-event-forecast-percentiles-history-response.js +15 -0
  418. package/dist/models/get-event-metadata-response.d.ts +30 -5
  419. package/dist/models/get-event-metadata-response.js +4 -4
  420. package/dist/models/get-event-response.d.ts +10 -7
  421. package/dist/models/get-event-response.js +4 -4
  422. package/dist/models/get-events-candlesticks-response-events-inner.d.ts +30 -0
  423. package/{models/get-event-metadata-response.ts → dist/models/get-events-candlesticks-response-events-inner.js} +5 -10
  424. package/dist/models/get-events-candlesticks-response.d.ts +18 -0
  425. package/{models/get-user-data-timestamp-response.ts → dist/models/get-events-candlesticks-response.js} +5 -10
  426. package/dist/models/get-events-response.d.ts +18 -7
  427. package/dist/models/get-events-response.js +4 -4
  428. package/dist/models/get-exchange-announcements-response.d.ts +8 -5
  429. package/dist/models/get-exchange-announcements-response.js +4 -4
  430. package/dist/models/get-exchange-schedule-response.d.ts +6 -6
  431. package/dist/models/get-exchange-schedule-response.js +4 -4
  432. package/dist/models/get-fills-response.d.ts +6 -6
  433. package/dist/models/get-fills-response.js +4 -4
  434. package/dist/models/get-filters-by-sports-response.d.ts +24 -0
  435. package/dist/models/get-filters-by-sports-response.js +15 -0
  436. package/dist/models/get-incentive-programs-response.d.ts +19 -0
  437. package/dist/models/get-incentive-programs-response.js +15 -0
  438. package/dist/models/get-live-data-response.d.ts +15 -0
  439. package/dist/models/get-live-data-response.js +15 -0
  440. package/dist/models/get-live-datas-response.d.ts +15 -0
  441. package/dist/models/get-live-datas-response.js +15 -0
  442. package/dist/models/get-market-candlesticks-response.d.ts +13 -6
  443. package/dist/models/get-market-candlesticks-response.js +4 -4
  444. package/dist/models/get-market-orderbook-response.d.ts +6 -6
  445. package/dist/models/get-market-orderbook-response.js +4 -4
  446. package/dist/models/get-market-response.d.ts +5 -5
  447. package/dist/models/get-market-response.js +4 -4
  448. package/dist/models/get-markets-response.d.ts +6 -6
  449. package/dist/models/get-markets-response.js +4 -4
  450. package/dist/models/get-milestone-response.d.ts +5 -5
  451. package/dist/models/get-milestone-response.js +4 -4
  452. package/dist/models/get-milestones-response.d.ts +12 -5
  453. package/dist/models/get-milestones-response.js +4 -4
  454. package/dist/models/get-multivariate-event-collection-lookup-history-response.d.ts +18 -0
  455. package/dist/models/get-multivariate-event-collection-lookup-history-response.js +15 -0
  456. package/dist/models/get-multivariate-event-collection-response.d.ts +5 -5
  457. package/dist/models/get-multivariate-event-collection-response.js +4 -4
  458. package/dist/models/get-multivariate-event-collections-response.d.ts +12 -5
  459. package/dist/models/get-multivariate-event-collections-response.js +4 -4
  460. package/dist/models/get-multivariate-events-response.d.ts +22 -0
  461. package/dist/models/get-multivariate-events-response.js +15 -0
  462. package/dist/models/get-order-group-response.d.ts +6 -6
  463. package/dist/models/get-order-group-response.js +4 -4
  464. package/dist/models/get-order-groups-response.d.ts +4 -5
  465. package/dist/models/get-order-groups-response.js +4 -4
  466. package/dist/models/get-order-queue-position-response.d.ts +8 -5
  467. package/dist/models/get-order-queue-position-response.js +4 -4
  468. package/dist/models/get-order-queue-positions-response.d.ts +18 -0
  469. package/dist/models/get-order-queue-positions-response.js +15 -0
  470. package/dist/models/get-order-response.d.ts +4 -4
  471. package/dist/models/get-order-response.js +4 -4
  472. package/dist/models/get-orders-response.d.ts +6 -6
  473. package/dist/models/get-orders-response.js +4 -4
  474. package/dist/models/get-portfolio-resting-order-total-value-response.d.ts +17 -0
  475. package/dist/models/get-portfolio-resting-order-total-value-response.js +15 -0
  476. package/dist/models/get-positions-response.d.ts +16 -7
  477. package/dist/models/get-positions-response.js +4 -4
  478. package/dist/models/get-quote-response.d.ts +5 -5
  479. package/dist/models/get-quote-response.js +4 -4
  480. package/dist/models/get-quotes-response.d.ts +12 -5
  481. package/dist/models/get-quotes-response.js +4 -4
  482. package/dist/models/get-rfqresponse.d.ts +5 -5
  483. package/dist/models/get-rfqresponse.js +4 -4
  484. package/dist/models/get-rfqs-response.d.ts +12 -5
  485. package/dist/models/get-rfqs-response.js +4 -4
  486. package/dist/models/get-series-fee-changes-response.d.ts +15 -0
  487. package/dist/models/get-series-fee-changes-response.js +15 -0
  488. package/dist/models/get-series-list-response.d.ts +15 -0
  489. package/dist/models/get-series-list-response.js +15 -0
  490. package/dist/models/get-series-response.d.ts +5 -5
  491. package/dist/models/get-series-response.js +4 -4
  492. package/dist/models/get-settlements-response.d.ts +5 -5
  493. package/dist/models/get-settlements-response.js +4 -4
  494. package/dist/models/get-structured-target-response.d.ts +4 -4
  495. package/dist/models/get-structured-target-response.js +4 -4
  496. package/dist/models/get-structured-targets-response.d.ts +8 -4
  497. package/dist/models/get-structured-targets-response.js +4 -4
  498. package/dist/models/get-tags-for-series-categories-response.d.ts +19 -0
  499. package/dist/models/get-tags-for-series-categories-response.js +15 -0
  500. package/dist/models/get-trades-response.d.ts +6 -6
  501. package/dist/models/get-trades-response.js +4 -4
  502. package/dist/models/get-user-data-timestamp-response.d.ts +8 -5
  503. package/dist/models/get-user-data-timestamp-response.js +4 -4
  504. package/dist/models/incentive-program.d.ts +54 -0
  505. package/dist/models/incentive-program.js +20 -0
  506. package/dist/models/index.d.ts +47 -17
  507. package/dist/models/index.js +47 -17
  508. package/dist/models/live-data.d.ts +27 -0
  509. package/dist/models/live-data.js +15 -0
  510. package/dist/models/lookup-point.d.ts +30 -0
  511. package/dist/models/lookup-point.js +15 -0
  512. package/dist/models/lookup-tickers-for-market-in-multivariate-event-collection-request.d.ts +18 -0
  513. package/dist/models/lookup-tickers-for-market-in-multivariate-event-collection-request.js +15 -0
  514. package/dist/models/lookup-tickers-for-market-in-multivariate-event-collection-response.d.ts +21 -0
  515. package/dist/models/lookup-tickers-for-market-in-multivariate-event-collection-response.js +15 -0
  516. package/dist/models/maintenance-window.d.ts +21 -0
  517. package/dist/models/maintenance-window.js +15 -0
  518. package/dist/models/market-candlestick.d.ts +30 -0
  519. package/dist/models/market-candlestick.js +15 -0
  520. package/dist/models/market-candlesticks-response.d.ts +22 -0
  521. package/dist/models/market-candlesticks-response.js +15 -0
  522. package/dist/models/market-metadata.d.ts +25 -0
  523. package/dist/models/market-metadata.js +15 -0
  524. package/dist/models/market-position.d.ts +61 -0
  525. package/dist/models/market-position.js +15 -0
  526. package/dist/models/market.d.ts +226 -27
  527. package/dist/models/market.js +27 -7
  528. package/dist/models/milestone.d.ts +54 -7
  529. package/dist/models/milestone.js +4 -4
  530. package/dist/models/multivariate-event-collection.d.ts +61 -9
  531. package/dist/models/multivariate-event-collection.js +4 -4
  532. package/dist/models/mve-selected-leg.d.ts +25 -0
  533. package/dist/models/mve-selected-leg.js +15 -0
  534. package/dist/models/order-group.d.ts +5 -5
  535. package/dist/models/order-group.js +4 -4
  536. package/dist/models/order-queue-position.d.ts +25 -0
  537. package/dist/models/order-queue-position.js +15 -0
  538. package/dist/models/order-status.d.ts +20 -0
  539. package/dist/models/order-status.js +24 -0
  540. package/dist/models/order.d.ts +75 -29
  541. package/dist/models/order.js +5 -11
  542. package/dist/models/orderbook.d.ts +17 -0
  543. package/dist/models/orderbook.js +15 -0
  544. package/dist/models/percentile-point.d.ts +29 -0
  545. package/dist/models/percentile-point.js +15 -0
  546. package/dist/models/price-distribution.d.ts +77 -0
  547. package/dist/models/price-distribution.js +15 -0
  548. package/dist/models/price-range.d.ts +25 -0
  549. package/dist/models/price-range.js +15 -0
  550. package/dist/models/quote.d.ts +116 -17
  551. package/dist/models/quote.js +15 -8
  552. package/dist/models/rfq.d.ts +65 -16
  553. package/dist/models/rfq.js +8 -8
  554. package/dist/models/schedule.d.ts +23 -0
  555. package/dist/models/schedule.js +15 -0
  556. package/dist/models/scope-list.d.ts +17 -0
  557. package/dist/models/scope-list.js +15 -0
  558. package/dist/models/self-trade-prevention-type.d.ts +19 -0
  559. package/dist/models/self-trade-prevention-type.js +23 -0
  560. package/dist/models/series-fee-change.d.ts +39 -0
  561. package/dist/models/series-fee-change.js +21 -0
  562. package/dist/models/series.d.ts +57 -9
  563. package/dist/models/series.js +10 -4
  564. package/dist/models/settlement-source.d.ts +21 -0
  565. package/dist/models/settlement-source.js +15 -0
  566. package/dist/models/settlement.d.ts +52 -12
  567. package/dist/models/settlement.js +9 -7
  568. package/dist/models/sport-filter-details.d.ts +24 -0
  569. package/dist/models/sport-filter-details.js +15 -0
  570. package/dist/models/structured-target.d.ts +28 -7
  571. package/dist/models/structured-target.js +4 -4
  572. package/dist/models/ticker-pair.d.ts +30 -0
  573. package/dist/models/ticker-pair.js +20 -0
  574. package/dist/models/trade.d.ts +45 -11
  575. package/dist/models/trade.js +6 -6
  576. package/dist/models/weekly-schedule.d.ts +50 -0
  577. package/dist/models/weekly-schedule.js +15 -0
  578. package/package.json +13 -13
  579. package/.openapi-generator/FILES +0 -213
  580. package/.openapi-generator/VERSION +0 -1
  581. package/.openapi-generator-ignore +0 -33
  582. package/api/api-keys-api.ts +0 -354
  583. package/api/communications-api.ts +0 -863
  584. package/api/events-api.ts +0 -330
  585. package/api/exchange-api.ts +0 -315
  586. package/api/markets-api.ts +0 -554
  587. package/api/milestones-api.ts +0 -216
  588. package/api/multivariate-collections-api.ts +0 -293
  589. package/api/portfolio-api.ts +0 -1720
  590. package/api/series-api.ts +0 -208
  591. package/api/structured-targets-api.ts +0 -216
  592. package/api.ts +0 -27
  593. package/auth.ts +0 -38
  594. package/base.ts +0 -96
  595. package/common.ts +0 -98
  596. package/configuration.ts +0 -94
  597. package/docs/AcceptQuoteRequest.md +0 -20
  598. package/docs/AmendOrderRequest.md +0 -34
  599. package/docs/AmendOrderResponse.md +0 -20
  600. package/docs/Announcement.md +0 -26
  601. package/docs/ApiKey.md +0 -24
  602. package/docs/ApiKeysApi.md +0 -235
  603. package/docs/BatchCancelOrdersRequest.md +0 -20
  604. package/docs/BatchCancelOrdersResponse.md +0 -20
  605. package/docs/BatchCancelOrdersResponseResponsesInner.md +0 -24
  606. package/docs/BatchCreateOrdersRequest.md +0 -20
  607. package/docs/BatchCreateOrdersResponse.md +0 -20
  608. package/docs/BatchCreateOrdersResponseResponsesInner.md +0 -22
  609. package/docs/CancelOrderResponse.md +0 -22
  610. package/docs/Candlestick.md +0 -32
  611. package/docs/CommunicationsApi.md +0 -628
  612. package/docs/CreateApiKeyRequest.md +0 -22
  613. package/docs/CreateApiKeyResponse.md +0 -20
  614. package/docs/CreateOrderGroupRequest.md +0 -20
  615. package/docs/CreateOrderGroupResponse.md +0 -20
  616. package/docs/CreateOrderRequest.md +0 -44
  617. package/docs/CreateOrderResponse.md +0 -20
  618. package/docs/CreateQuoteRequest.md +0 -24
  619. package/docs/CreateQuoteResponse.md +0 -20
  620. package/docs/CreateRFQRequest.md +0 -26
  621. package/docs/CreateRFQResponse.md +0 -20
  622. package/docs/DailySchedule.md +0 -22
  623. package/docs/DecreaseOrderRequest.md +0 -20
  624. package/docs/DecreaseOrderResponse.md +0 -20
  625. package/docs/ErrorResponse.md +0 -20
  626. package/docs/ErrorResponseError.md +0 -24
  627. package/docs/Event.md +0 -30
  628. package/docs/EventPosition.md +0 -38
  629. package/docs/EventsApi.md +0 -199
  630. package/docs/ExchangeApi.md +0 -204
  631. package/docs/ExchangeStatus.md +0 -22
  632. package/docs/Fill.md +0 -36
  633. package/docs/GenerateApiKeyRequest.md +0 -20
  634. package/docs/GenerateApiKeyResponse.md +0 -22
  635. package/docs/GetApiKeysResponse.md +0 -20
  636. package/docs/GetBalanceResponse.md +0 -20
  637. package/docs/GetCommunicationsIDResponse.md +0 -20
  638. package/docs/GetEventMetadataResponse.md +0 -20
  639. package/docs/GetEventResponse.md +0 -22
  640. package/docs/GetEventsResponse.md +0 -22
  641. package/docs/GetExchangeAnnouncementsResponse.md +0 -20
  642. package/docs/GetExchangeScheduleResponse.md +0 -20
  643. package/docs/GetExchangeScheduleResponseSchedule.md +0 -32
  644. package/docs/GetFillsResponse.md +0 -22
  645. package/docs/GetMarketCandlesticksResponse.md +0 -20
  646. package/docs/GetMarketOrderbookResponse.md +0 -20
  647. package/docs/GetMarketOrderbookResponseOrderbook.md +0 -22
  648. package/docs/GetMarketResponse.md +0 -20
  649. package/docs/GetMarketsResponse.md +0 -22
  650. package/docs/GetMilestoneResponse.md +0 -20
  651. package/docs/GetMilestonesResponse.md +0 -20
  652. package/docs/GetMultivariateEventCollectionResponse.md +0 -20
  653. package/docs/GetMultivariateEventCollectionsResponse.md +0 -20
  654. package/docs/GetOrderGroupResponse.md +0 -22
  655. package/docs/GetOrderGroupsResponse.md +0 -22
  656. package/docs/GetOrderQueuePositionResponse.md +0 -20
  657. package/docs/GetOrderResponse.md +0 -20
  658. package/docs/GetOrdersResponse.md +0 -22
  659. package/docs/GetPositionsResponse.md +0 -24
  660. package/docs/GetQueuePositionsRequest.md +0 -20
  661. package/docs/GetQueuePositionsResponse.md +0 -20
  662. package/docs/GetQuoteResponse.md +0 -20
  663. package/docs/GetQuotesResponse.md +0 -20
  664. package/docs/GetRFQResponse.md +0 -20
  665. package/docs/GetRFQsResponse.md +0 -20
  666. package/docs/GetSeriesByTickerResponse.md +0 -20
  667. package/docs/GetSeriesResponse.md +0 -20
  668. package/docs/GetSettlementsResponse.md +0 -22
  669. package/docs/GetStructuredTargetResponse.md +0 -20
  670. package/docs/GetStructuredTargetsResponse.md +0 -20
  671. package/docs/GetTotalRestingOrderValueResponse.md +0 -20
  672. package/docs/GetTradesResponse.md +0 -22
  673. package/docs/GetUserDataTimestampResponse.md +0 -20
  674. package/docs/LookupBundleRequest.md +0 -20
  675. package/docs/LookupBundleRequestBundleInner.md +0 -22
  676. package/docs/LookupBundleResponse.md +0 -22
  677. package/docs/Market.md +0 -56
  678. package/docs/MarketsApi.md +0 -345
  679. package/docs/Milestone.md +0 -24
  680. package/docs/MilestonesApi.md +0 -125
  681. package/docs/MultivariateCollectionsApi.md +0 -185
  682. package/docs/MultivariateEventCollection.md +0 -26
  683. package/docs/MultivariateEventCollectionEventsInner.md +0 -26
  684. package/docs/Order.md +0 -54
  685. package/docs/OrderGroup.md +0 -22
  686. package/docs/OrderbookLevel.md +0 -22
  687. package/docs/PortfolioApi.md +0 -1224
  688. package/docs/Position.md +0 -34
  689. package/docs/Quote.md +0 -36
  690. package/docs/RFQ.md +0 -34
  691. package/docs/Series.md +0 -26
  692. package/docs/SeriesApi.md +0 -122
  693. package/docs/Settlement.md +0 -30
  694. package/docs/StructuredTarget.md +0 -24
  695. package/docs/StructuredTargetsApi.md +0 -125
  696. package/docs/Trade.md +0 -30
  697. package/git_push.sh +0 -57
  698. package/index.ts +0 -18
  699. package/models/amend-order-request.ts +0 -56
  700. package/models/amend-order-response.ts +0 -23
  701. package/models/announcement.ts +0 -38
  702. package/models/api-key.ts +0 -31
  703. package/models/batch-cancel-orders-request.ts +0 -20
  704. package/models/batch-cancel-orders-response-responses-inner.ts +0 -25
  705. package/models/batch-cancel-orders-response.ts +0 -23
  706. package/models/batch-create-orders-request.ts +0 -23
  707. package/models/batch-create-orders-response-responses-inner.ts +0 -27
  708. package/models/batch-create-orders-response.ts +0 -23
  709. package/models/cancel-order-response.ts +0 -24
  710. package/models/candlestick.ts +0 -26
  711. package/models/create-api-key-request.ts +0 -27
  712. package/models/create-api-key-response.ts +0 -23
  713. package/models/create-order-group-request.ts +0 -23
  714. package/models/create-order-group-response.ts +0 -23
  715. package/models/create-order-request.ts +0 -58
  716. package/models/create-order-response.ts +0 -23
  717. package/models/create-quote-request.ts +0 -22
  718. package/models/create-quote-response.ts +0 -23
  719. package/models/create-rfqrequest.ts +0 -31
  720. package/models/create-rfqresponse.ts +0 -23
  721. package/models/daily-schedule.ts +0 -21
  722. package/models/decrease-order-response.ts +0 -23
  723. package/models/error-response-error.ts +0 -31
  724. package/models/error-response.ts +0 -23
  725. package/models/event-position.ts +0 -59
  726. package/models/event.ts +0 -37
  727. package/models/exchange-status.ts +0 -21
  728. package/models/fill.ts +0 -42
  729. package/models/generate-api-key-request.ts +0 -23
  730. package/models/generate-api-key-response.ts +0 -27
  731. package/models/get-api-keys-response.ts +0 -26
  732. package/models/get-balance-response.ts +0 -23
  733. package/models/get-communications-idresponse.ts +0 -23
  734. package/models/get-event-response.ts +0 -27
  735. package/models/get-events-response.ts +0 -24
  736. package/models/get-exchange-announcements-response.ts +0 -23
  737. package/models/get-exchange-schedule-response-schedule.ts +0 -29
  738. package/models/get-exchange-schedule-response.ts +0 -23
  739. package/models/get-fills-response.ts +0 -24
  740. package/models/get-market-candlesticks-response.ts +0 -23
  741. package/models/get-market-orderbook-response-orderbook.ts +0 -24
  742. package/models/get-market-orderbook-response.ts +0 -23
  743. package/models/get-market-response.ts +0 -23
  744. package/models/get-markets-response.ts +0 -24
  745. package/models/get-milestone-response.ts +0 -23
  746. package/models/get-milestones-response.ts +0 -23
  747. package/models/get-multivariate-event-collection-response.ts +0 -23
  748. package/models/get-multivariate-event-collections-response.ts +0 -23
  749. package/models/get-order-group-response.ts +0 -27
  750. package/models/get-order-groups-response.ts +0 -24
  751. package/models/get-order-queue-position-response.ts +0 -20
  752. package/models/get-order-response.ts +0 -23
  753. package/models/get-orders-response.ts +0 -24
  754. package/models/get-positions-response.ts +0 -28
  755. package/models/get-queue-positions-request.ts +0 -20
  756. package/models/get-queue-positions-response.ts +0 -20
  757. package/models/get-quote-response.ts +0 -23
  758. package/models/get-quotes-response.ts +0 -23
  759. package/models/get-rfqresponse.ts +0 -23
  760. package/models/get-rfqs-response.ts +0 -23
  761. package/models/get-series-by-ticker-response.ts +0 -23
  762. package/models/get-series-response.ts +0 -23
  763. package/models/get-settlements-response.ts +0 -24
  764. package/models/get-structured-target-response.ts +0 -23
  765. package/models/get-structured-targets-response.ts +0 -23
  766. package/models/get-total-resting-order-value-response.ts +0 -20
  767. package/models/get-trades-response.ts +0 -24
  768. package/models/index.ts +0 -90
  769. package/models/lookup-bundle-request-bundle-inner.ts +0 -21
  770. package/models/lookup-bundle-request.ts +0 -23
  771. package/models/lookup-bundle-response.ts +0 -21
  772. package/models/market.ts +0 -59
  773. package/models/milestone.ts +0 -22
  774. package/models/multivariate-event-collection-events-inner.ts +0 -23
  775. package/models/multivariate-event-collection.ts +0 -26
  776. package/models/order-group.ts +0 -27
  777. package/models/order.ts +0 -77
  778. package/models/orderbook-level.ts +0 -21
  779. package/models/position.ts +0 -35
  780. package/models/quote.ts +0 -36
  781. package/models/rfq.ts +0 -35
  782. package/models/series.ts +0 -26
  783. package/models/settlement.ts +0 -33
  784. package/models/structured-target.ts +0 -22
  785. package/models/trade.ts +0 -33
  786. package/tsconfig.esm.json +0 -7
  787. package/tsconfig.json +0 -18
@@ -2,11 +2,11 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * Kalshi Trading API
6
- * Complete API for the Kalshi trading platform including all handlers for SDK generation
5
+ * Kalshi Trade API Manual Endpoints
6
+ * Manually defined OpenAPI spec for endpoints being migrated to spec-first approach
7
+ *
8
+ * The version of the OpenAPI document: 3.3.0
7
9
  *
8
- * The version of the OpenAPI document: 2.0.0
9
- * Contact: support@kalshi.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
@@ -38,277 +38,7 @@ const base_1 = require("../base");
38
38
  const PortfolioApiAxiosParamCreator = function (configuration) {
39
39
  return {
40
40
  /**
41
- * Amend an existing order
42
- * @summary Amend Order
43
- * @param {string} orderId Order ID
44
- * @param {AmendOrderRequest} amendOrderRequest
45
- * @param {*} [options] Override http request option.
46
- * @throws {RequiredError}
47
- */
48
- amendOrder: (orderId_1, amendOrderRequest_1, ...args_1) => __awaiter(this, [orderId_1, amendOrderRequest_1, ...args_1], void 0, function* (orderId, amendOrderRequest, options = {}) {
49
- // verify required parameter 'orderId' is not null or undefined
50
- (0, common_1.assertParamExists)('amendOrder', 'orderId', orderId);
51
- // verify required parameter 'amendOrderRequest' is not null or undefined
52
- (0, common_1.assertParamExists)('amendOrder', 'amendOrderRequest', amendOrderRequest);
53
- const localVarPath = `/portfolio/orders/{order_id}/amend`
54
- .replace(`{${"order_id"}}`, encodeURIComponent(String(orderId)));
55
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
56
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
57
- let baseOptions;
58
- if (configuration) {
59
- baseOptions = configuration.baseOptions;
60
- }
61
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
62
- const localVarHeaderParameter = {};
63
- const localVarQueryParameter = {};
64
- // authentication bearerAuth required
65
- // http bearer authentication required
66
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
67
- localVarHeaderParameter['Content-Type'] = 'application/json';
68
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
69
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
70
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
71
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(amendOrderRequest, localVarRequestOptions, configuration);
72
- return {
73
- url: (0, common_1.toPathString)(localVarUrlObj),
74
- options: localVarRequestOptions,
75
- };
76
- }),
77
- /**
78
- * Cancel multiple orders in a single request
79
- * @summary Batch Cancel Orders
80
- * @param {BatchCancelOrdersRequest} batchCancelOrdersRequest
81
- * @param {*} [options] Override http request option.
82
- * @throws {RequiredError}
83
- */
84
- batchCancelOrders: (batchCancelOrdersRequest_1, ...args_1) => __awaiter(this, [batchCancelOrdersRequest_1, ...args_1], void 0, function* (batchCancelOrdersRequest, options = {}) {
85
- // verify required parameter 'batchCancelOrdersRequest' is not null or undefined
86
- (0, common_1.assertParamExists)('batchCancelOrders', 'batchCancelOrdersRequest', batchCancelOrdersRequest);
87
- const localVarPath = `/portfolio/orders/batched`;
88
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
89
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
90
- let baseOptions;
91
- if (configuration) {
92
- baseOptions = configuration.baseOptions;
93
- }
94
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
95
- const localVarHeaderParameter = {};
96
- const localVarQueryParameter = {};
97
- // authentication bearerAuth required
98
- // http bearer authentication required
99
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
100
- localVarHeaderParameter['Content-Type'] = 'application/json';
101
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
102
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
103
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
104
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(batchCancelOrdersRequest, localVarRequestOptions, configuration);
105
- return {
106
- url: (0, common_1.toPathString)(localVarUrlObj),
107
- options: localVarRequestOptions,
108
- };
109
- }),
110
- /**
111
- * Create multiple orders in a single request
112
- * @summary Batch Create Orders
113
- * @param {BatchCreateOrdersRequest} batchCreateOrdersRequest
114
- * @param {*} [options] Override http request option.
115
- * @throws {RequiredError}
116
- */
117
- batchCreateOrders: (batchCreateOrdersRequest_1, ...args_1) => __awaiter(this, [batchCreateOrdersRequest_1, ...args_1], void 0, function* (batchCreateOrdersRequest, options = {}) {
118
- // verify required parameter 'batchCreateOrdersRequest' is not null or undefined
119
- (0, common_1.assertParamExists)('batchCreateOrders', 'batchCreateOrdersRequest', batchCreateOrdersRequest);
120
- const localVarPath = `/portfolio/orders/batched`;
121
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
122
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
123
- let baseOptions;
124
- if (configuration) {
125
- baseOptions = configuration.baseOptions;
126
- }
127
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
128
- const localVarHeaderParameter = {};
129
- const localVarQueryParameter = {};
130
- // authentication bearerAuth required
131
- // http bearer authentication required
132
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
133
- localVarHeaderParameter['Content-Type'] = 'application/json';
134
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
135
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
136
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
137
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(batchCreateOrdersRequest, localVarRequestOptions, configuration);
138
- return {
139
- url: (0, common_1.toPathString)(localVarUrlObj),
140
- options: localVarRequestOptions,
141
- };
142
- }),
143
- /**
144
- * Cancel an order
145
- * @summary Cancel Order
146
- * @param {string} orderId Order ID
147
- * @param {*} [options] Override http request option.
148
- * @throws {RequiredError}
149
- */
150
- cancelOrder: (orderId_1, ...args_1) => __awaiter(this, [orderId_1, ...args_1], void 0, function* (orderId, options = {}) {
151
- // verify required parameter 'orderId' is not null or undefined
152
- (0, common_1.assertParamExists)('cancelOrder', 'orderId', orderId);
153
- const localVarPath = `/portfolio/orders/{order_id}`
154
- .replace(`{${"order_id"}}`, encodeURIComponent(String(orderId)));
155
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
156
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
157
- let baseOptions;
158
- if (configuration) {
159
- baseOptions = configuration.baseOptions;
160
- }
161
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
162
- const localVarHeaderParameter = {};
163
- const localVarQueryParameter = {};
164
- // authentication bearerAuth required
165
- // http bearer authentication required
166
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
167
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
168
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
169
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
170
- return {
171
- url: (0, common_1.toPathString)(localVarUrlObj),
172
- options: localVarRequestOptions,
173
- };
174
- }),
175
- /**
176
- * Create a new order
177
- * @summary Create Order
178
- * @param {CreateOrderRequest} createOrderRequest
179
- * @param {*} [options] Override http request option.
180
- * @throws {RequiredError}
181
- */
182
- createOrder: (createOrderRequest_1, ...args_1) => __awaiter(this, [createOrderRequest_1, ...args_1], void 0, function* (createOrderRequest, options = {}) {
183
- // verify required parameter 'createOrderRequest' is not null or undefined
184
- (0, common_1.assertParamExists)('createOrder', 'createOrderRequest', createOrderRequest);
185
- const localVarPath = `/portfolio/orders`;
186
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
187
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
188
- let baseOptions;
189
- if (configuration) {
190
- baseOptions = configuration.baseOptions;
191
- }
192
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
193
- const localVarHeaderParameter = {};
194
- const localVarQueryParameter = {};
195
- // authentication bearerAuth required
196
- // http bearer authentication required
197
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
198
- localVarHeaderParameter['Content-Type'] = 'application/json';
199
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
200
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
201
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
202
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createOrderRequest, localVarRequestOptions, configuration);
203
- return {
204
- url: (0, common_1.toPathString)(localVarUrlObj),
205
- options: localVarRequestOptions,
206
- };
207
- }),
208
- /**
209
- * Create a new order group
210
- * @summary Create Order Group
211
- * @param {CreateOrderGroupRequest} createOrderGroupRequest
212
- * @param {*} [options] Override http request option.
213
- * @throws {RequiredError}
214
- */
215
- createOrderGroup: (createOrderGroupRequest_1, ...args_1) => __awaiter(this, [createOrderGroupRequest_1, ...args_1], void 0, function* (createOrderGroupRequest, options = {}) {
216
- // verify required parameter 'createOrderGroupRequest' is not null or undefined
217
- (0, common_1.assertParamExists)('createOrderGroup', 'createOrderGroupRequest', createOrderGroupRequest);
218
- const localVarPath = `/portfolio/order_groups/create`;
219
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
220
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
221
- let baseOptions;
222
- if (configuration) {
223
- baseOptions = configuration.baseOptions;
224
- }
225
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
226
- const localVarHeaderParameter = {};
227
- const localVarQueryParameter = {};
228
- // authentication bearerAuth required
229
- // http bearer authentication required
230
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
231
- localVarHeaderParameter['Content-Type'] = 'application/json';
232
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
233
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
234
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
235
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createOrderGroupRequest, localVarRequestOptions, configuration);
236
- return {
237
- url: (0, common_1.toPathString)(localVarUrlObj),
238
- options: localVarRequestOptions,
239
- };
240
- }),
241
- /**
242
- * Decrease the size of an existing order
243
- * @summary Decrease Order
244
- * @param {string} orderId Order ID
245
- * @param {DecreaseOrderRequest} decreaseOrderRequest
246
- * @param {*} [options] Override http request option.
247
- * @throws {RequiredError}
248
- */
249
- decreaseOrder: (orderId_1, decreaseOrderRequest_1, ...args_1) => __awaiter(this, [orderId_1, decreaseOrderRequest_1, ...args_1], void 0, function* (orderId, decreaseOrderRequest, options = {}) {
250
- // verify required parameter 'orderId' is not null or undefined
251
- (0, common_1.assertParamExists)('decreaseOrder', 'orderId', orderId);
252
- // verify required parameter 'decreaseOrderRequest' is not null or undefined
253
- (0, common_1.assertParamExists)('decreaseOrder', 'decreaseOrderRequest', decreaseOrderRequest);
254
- const localVarPath = `/portfolio/orders/{order_id}/decrease`
255
- .replace(`{${"order_id"}}`, encodeURIComponent(String(orderId)));
256
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
257
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
258
- let baseOptions;
259
- if (configuration) {
260
- baseOptions = configuration.baseOptions;
261
- }
262
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
263
- const localVarHeaderParameter = {};
264
- const localVarQueryParameter = {};
265
- // authentication bearerAuth required
266
- // http bearer authentication required
267
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
268
- localVarHeaderParameter['Content-Type'] = 'application/json';
269
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
270
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
271
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
272
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(decreaseOrderRequest, localVarRequestOptions, configuration);
273
- return {
274
- url: (0, common_1.toPathString)(localVarUrlObj),
275
- options: localVarRequestOptions,
276
- };
277
- }),
278
- /**
279
- * Delete an order group
280
- * @summary Delete Order Group
281
- * @param {string} orderGroupId Order group ID
282
- * @param {*} [options] Override http request option.
283
- * @throws {RequiredError}
284
- */
285
- deleteOrderGroup: (orderGroupId_1, ...args_1) => __awaiter(this, [orderGroupId_1, ...args_1], void 0, function* (orderGroupId, options = {}) {
286
- // verify required parameter 'orderGroupId' is not null or undefined
287
- (0, common_1.assertParamExists)('deleteOrderGroup', 'orderGroupId', orderGroupId);
288
- const localVarPath = `/portfolio/order_groups/{order_group_id}`
289
- .replace(`{${"order_group_id"}}`, encodeURIComponent(String(orderGroupId)));
290
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
291
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
292
- let baseOptions;
293
- if (configuration) {
294
- baseOptions = configuration.baseOptions;
295
- }
296
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
297
- const localVarHeaderParameter = {};
298
- const localVarQueryParameter = {};
299
- // authentication bearerAuth required
300
- // http bearer authentication required
301
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
302
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
303
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
304
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
305
- return {
306
- url: (0, common_1.toPathString)(localVarUrlObj),
307
- options: localVarRequestOptions,
308
- };
309
- }),
310
- /**
311
- * Get the user\'s current balance
41
+ * Endpoint for getting the balance and portfolio value of a member. Both values are returned in cents.
312
42
  * @summary Get Balance
313
43
  * @param {*} [options] Override http request option.
314
44
  * @throws {RequiredError}
@@ -324,9 +54,12 @@ const PortfolioApiAxiosParamCreator = function (configuration) {
324
54
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
325
55
  const localVarHeaderParameter = {};
326
56
  const localVarQueryParameter = {};
327
- // authentication bearerAuth required
328
- // http bearer authentication required
329
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
57
+ // authentication kalshiAccessSignature required
58
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "KALSHI-ACCESS-SIGNATURE", configuration);
59
+ // authentication kalshiAccessKey required
60
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "KALSHI-ACCESS-KEY", configuration);
61
+ // authentication kalshiAccessTimestamp required
62
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "KALSHI-ACCESS-TIMESTAMP", configuration);
330
63
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
331
64
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
332
65
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -336,7 +69,7 @@ const PortfolioApiAxiosParamCreator = function (configuration) {
336
69
  };
337
70
  }),
338
71
  /**
339
- * Get fills for the logged-in user. A fill represents a partial or complete execution of an order. When an order matches with another order in the orderbook, a fill is created for each side of the trade.
72
+ * Endpoint for getting all fills for the member. A fill is when a trade you have is matched.
340
73
  * @summary Get Fills
341
74
  * @param {string} [ticker] Filter by market ticker
342
75
  * @param {string} [orderId] Filter by order ID
@@ -358,9 +91,12 @@ const PortfolioApiAxiosParamCreator = function (configuration) {
358
91
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
359
92
  const localVarHeaderParameter = {};
360
93
  const localVarQueryParameter = {};
361
- // authentication bearerAuth required
362
- // http bearer authentication required
363
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
94
+ // authentication kalshiAccessSignature required
95
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "KALSHI-ACCESS-SIGNATURE", configuration);
96
+ // authentication kalshiAccessKey required
97
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "KALSHI-ACCESS-KEY", configuration);
98
+ // authentication kalshiAccessTimestamp required
99
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "KALSHI-ACCESS-TIMESTAMP", configuration);
364
100
  if (ticker !== undefined) {
365
101
  localVarQueryParameter['ticker'] = ticker;
366
102
  }
@@ -388,49 +124,13 @@ const PortfolioApiAxiosParamCreator = function (configuration) {
388
124
  };
389
125
  }),
390
126
  /**
391
- * Get a single order by ID
392
- * @summary Get Order
393
- * @param {string} orderId Order ID
394
- * @param {*} [options] Override http request option.
395
- * @throws {RequiredError}
396
- */
397
- getOrder: (orderId_1, ...args_1) => __awaiter(this, [orderId_1, ...args_1], void 0, function* (orderId, options = {}) {
398
- // verify required parameter 'orderId' is not null or undefined
399
- (0, common_1.assertParamExists)('getOrder', 'orderId', orderId);
400
- const localVarPath = `/portfolio/orders/{order_id}`
401
- .replace(`{${"order_id"}}`, encodeURIComponent(String(orderId)));
402
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
403
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
404
- let baseOptions;
405
- if (configuration) {
406
- baseOptions = configuration.baseOptions;
407
- }
408
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
409
- const localVarHeaderParameter = {};
410
- const localVarQueryParameter = {};
411
- // authentication bearerAuth required
412
- // http bearer authentication required
413
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
414
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
415
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
416
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
417
- return {
418
- url: (0, common_1.toPathString)(localVarUrlObj),
419
- options: localVarRequestOptions,
420
- };
421
- }),
422
- /**
423
- * Get details of a specific order group
424
- * @summary Get Order Group
425
- * @param {string} orderGroupId Order group ID
127
+ * Endpoint for getting the total value, in cents, of resting orders. This endpoint is only intended for use by FCM members (rare). Note: If you\'re uncertain about this endpoint, it likely does not apply to you.
128
+ * @summary Get Total Resting Order Value
426
129
  * @param {*} [options] Override http request option.
427
130
  * @throws {RequiredError}
428
131
  */
429
- getOrderGroup: (orderGroupId_1, ...args_1) => __awaiter(this, [orderGroupId_1, ...args_1], void 0, function* (orderGroupId, options = {}) {
430
- // verify required parameter 'orderGroupId' is not null or undefined
431
- (0, common_1.assertParamExists)('getOrderGroup', 'orderGroupId', orderGroupId);
432
- const localVarPath = `/portfolio/order_groups/{order_group_id}`
433
- .replace(`{${"order_group_id"}}`, encodeURIComponent(String(orderGroupId)));
132
+ getPortfolioRestingOrderTotalValue: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
133
+ const localVarPath = `/portfolio/summary/total_resting_order_value`;
434
134
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
435
135
  const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
436
136
  let baseOptions;
@@ -440,9 +140,12 @@ const PortfolioApiAxiosParamCreator = function (configuration) {
440
140
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
441
141
  const localVarHeaderParameter = {};
442
142
  const localVarQueryParameter = {};
443
- // authentication bearerAuth required
444
- // http bearer authentication required
445
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
143
+ // authentication kalshiAccessSignature required
144
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "KALSHI-ACCESS-SIGNATURE", configuration);
145
+ // authentication kalshiAccessKey required
146
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "KALSHI-ACCESS-KEY", configuration);
147
+ // authentication kalshiAccessTimestamp required
148
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "KALSHI-ACCESS-TIMESTAMP", configuration);
446
149
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
447
150
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
448
151
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -452,16 +155,18 @@ const PortfolioApiAxiosParamCreator = function (configuration) {
452
155
  };
453
156
  }),
454
157
  /**
455
- * Get order groups for the logged-in user
456
- * @summary Get Order Groups
457
- * @param {string} [status] Filter by status. Possible values depend on the endpoint.
458
- * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
459
- * @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
158
+ * Restricts the positions to those with any of following fields with non-zero values, as a comma separated list. The following values are accepted: position, total_traded
159
+ * @summary Get Positions
160
+ * @param {string} [cursor] The Cursor represents a pointer to the next page of records in the pagination. Use the value returned from the previous response to get the next page.
161
+ * @param {number} [limit] Parameter to specify the number of results per page. Defaults to 100.
162
+ * @param {string} [countFilter] Restricts the positions to those with any of following fields with non-zero values, as a comma separated list. The following values are accepted - position, total_traded
163
+ * @param {string} [ticker] Filter by market ticker
164
+ * @param {string} [eventTicker] Event ticker of desired positions. Multiple event tickers can be provided as a comma-separated list (maximum 10).
460
165
  * @param {*} [options] Override http request option.
461
166
  * @throws {RequiredError}
462
167
  */
463
- getOrderGroups: (status_1, limit_1, cursor_1, ...args_1) => __awaiter(this, [status_1, limit_1, cursor_1, ...args_1], void 0, function* (status, limit, cursor, options = {}) {
464
- const localVarPath = `/portfolio/order_groups`;
168
+ getPositions: (cursor_1, limit_1, countFilter_1, ticker_1, eventTicker_1, ...args_1) => __awaiter(this, [cursor_1, limit_1, countFilter_1, ticker_1, eventTicker_1, ...args_1], void 0, function* (cursor, limit, countFilter, ticker, eventTicker, options = {}) {
169
+ const localVarPath = `/portfolio/positions`;
465
170
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
466
171
  const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
467
172
  let baseOptions;
@@ -471,50 +176,27 @@ const PortfolioApiAxiosParamCreator = function (configuration) {
471
176
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
472
177
  const localVarHeaderParameter = {};
473
178
  const localVarQueryParameter = {};
474
- // authentication bearerAuth required
475
- // http bearer authentication required
476
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
477
- if (status !== undefined) {
478
- localVarQueryParameter['status'] = status;
179
+ // authentication kalshiAccessSignature required
180
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "KALSHI-ACCESS-SIGNATURE", configuration);
181
+ // authentication kalshiAccessKey required
182
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "KALSHI-ACCESS-KEY", configuration);
183
+ // authentication kalshiAccessTimestamp required
184
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "KALSHI-ACCESS-TIMESTAMP", configuration);
185
+ if (cursor !== undefined) {
186
+ localVarQueryParameter['cursor'] = cursor;
479
187
  }
480
188
  if (limit !== undefined) {
481
189
  localVarQueryParameter['limit'] = limit;
482
190
  }
483
- if (cursor !== undefined) {
484
- localVarQueryParameter['cursor'] = cursor;
191
+ if (countFilter !== undefined) {
192
+ localVarQueryParameter['count_filter'] = countFilter;
485
193
  }
486
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
487
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
488
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
489
- return {
490
- url: (0, common_1.toPathString)(localVarUrlObj),
491
- options: localVarRequestOptions,
492
- };
493
- }),
494
- /**
495
- * Get the queue position for an order
496
- * @summary Get Order Queue Position
497
- * @param {string} orderId Order ID
498
- * @param {*} [options] Override http request option.
499
- * @throws {RequiredError}
500
- */
501
- getOrderQueuePosition: (orderId_1, ...args_1) => __awaiter(this, [orderId_1, ...args_1], void 0, function* (orderId, options = {}) {
502
- // verify required parameter 'orderId' is not null or undefined
503
- (0, common_1.assertParamExists)('getOrderQueuePosition', 'orderId', orderId);
504
- const localVarPath = `/portfolio/orders/{order_id}/queue_position`
505
- .replace(`{${"order_id"}}`, encodeURIComponent(String(orderId)));
506
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
507
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
508
- let baseOptions;
509
- if (configuration) {
510
- baseOptions = configuration.baseOptions;
194
+ if (ticker !== undefined) {
195
+ localVarQueryParameter['ticker'] = ticker;
196
+ }
197
+ if (eventTicker !== undefined) {
198
+ localVarQueryParameter['event_ticker'] = eventTicker;
511
199
  }
512
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
513
- const localVarHeaderParameter = {};
514
- const localVarQueryParameter = {};
515
- // authentication bearerAuth required
516
- // http bearer authentication required
517
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
518
200
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
519
201
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
520
202
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -524,20 +206,19 @@ const PortfolioApiAxiosParamCreator = function (configuration) {
524
206
  };
525
207
  }),
526
208
  /**
527
- * Get orders for the logged-in user
528
- * @summary Get Orders
209
+ * Endpoint for getting the member\'s settlements historical track.
210
+ * @summary Get Settlements
211
+ * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
212
+ * @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
529
213
  * @param {string} [ticker] Filter by market ticker
530
- * @param {string} [eventTicker] Filter by event ticker
214
+ * @param {string} [eventTicker] Event ticker of desired positions. Multiple event tickers can be provided as a comma-separated list (maximum 10).
531
215
  * @param {number} [minTs] Filter items after this Unix timestamp
532
216
  * @param {number} [maxTs] Filter items before this Unix timestamp
533
- * @param {string} [status] Filter by status. Possible values depend on the endpoint.
534
- * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
535
- * @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
536
217
  * @param {*} [options] Override http request option.
537
218
  * @throws {RequiredError}
538
219
  */
539
- getOrders: (ticker_1, eventTicker_1, minTs_1, maxTs_1, status_1, limit_1, cursor_1, ...args_1) => __awaiter(this, [ticker_1, eventTicker_1, minTs_1, maxTs_1, status_1, limit_1, cursor_1, ...args_1], void 0, function* (ticker, eventTicker, minTs, maxTs, status, limit, cursor, options = {}) {
540
- const localVarPath = `/portfolio/orders`;
220
+ getSettlements: (limit_1, cursor_1, ticker_1, eventTicker_1, minTs_1, maxTs_1, ...args_1) => __awaiter(this, [limit_1, cursor_1, ticker_1, eventTicker_1, minTs_1, maxTs_1, ...args_1], void 0, function* (limit, cursor, ticker, eventTicker, minTs, maxTs, options = {}) {
221
+ const localVarPath = `/portfolio/settlements`;
541
222
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
542
223
  const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
543
224
  let baseOptions;
@@ -547,9 +228,18 @@ const PortfolioApiAxiosParamCreator = function (configuration) {
547
228
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
548
229
  const localVarHeaderParameter = {};
549
230
  const localVarQueryParameter = {};
550
- // authentication bearerAuth required
551
- // http bearer authentication required
552
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
231
+ // authentication kalshiAccessSignature required
232
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "KALSHI-ACCESS-SIGNATURE", configuration);
233
+ // authentication kalshiAccessKey required
234
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "KALSHI-ACCESS-KEY", configuration);
235
+ // authentication kalshiAccessTimestamp required
236
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "KALSHI-ACCESS-TIMESTAMP", configuration);
237
+ if (limit !== undefined) {
238
+ localVarQueryParameter['limit'] = limit;
239
+ }
240
+ if (cursor !== undefined) {
241
+ localVarQueryParameter['cursor'] = cursor;
242
+ }
553
243
  if (ticker !== undefined) {
554
244
  localVarQueryParameter['ticker'] = ticker;
555
245
  }
@@ -562,15 +252,6 @@ const PortfolioApiAxiosParamCreator = function (configuration) {
562
252
  if (maxTs !== undefined) {
563
253
  localVarQueryParameter['max_ts'] = maxTs;
564
254
  }
565
- if (status !== undefined) {
566
- localVarQueryParameter['status'] = status;
567
- }
568
- if (limit !== undefined) {
569
- localVarQueryParameter['limit'] = limit;
570
- }
571
- if (cursor !== undefined) {
572
- localVarQueryParameter['cursor'] = cursor;
573
- }
574
255
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
575
256
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
576
257
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -579,329 +260,18 @@ const PortfolioApiAxiosParamCreator = function (configuration) {
579
260
  options: localVarRequestOptions,
580
261
  };
581
262
  }),
263
+ };
264
+ };
265
+ exports.PortfolioApiAxiosParamCreator = PortfolioApiAxiosParamCreator;
266
+ /**
267
+ * PortfolioApi - functional programming interface
268
+ */
269
+ const PortfolioApiFp = function (configuration) {
270
+ const localVarAxiosParamCreator = (0, exports.PortfolioApiAxiosParamCreator)(configuration);
271
+ return {
582
272
  /**
583
- * Get positions for the logged-in user
584
- * @summary Get Positions
585
- * @param {string} [ticker] Filter by market ticker
586
- * @param {string} [eventTicker] Filter by event ticker
587
- * @param {number} [countDown] Filter positions by minimum count down value
588
- * @param {number} [countUp] Filter positions by minimum count up value
589
- * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
590
- * @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
591
- * @param {*} [options] Override http request option.
592
- * @throws {RequiredError}
593
- */
594
- getPositions: (ticker_1, eventTicker_1, countDown_1, countUp_1, limit_1, cursor_1, ...args_1) => __awaiter(this, [ticker_1, eventTicker_1, countDown_1, countUp_1, limit_1, cursor_1, ...args_1], void 0, function* (ticker, eventTicker, countDown, countUp, limit, cursor, options = {}) {
595
- const localVarPath = `/portfolio/positions`;
596
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
597
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
598
- let baseOptions;
599
- if (configuration) {
600
- baseOptions = configuration.baseOptions;
601
- }
602
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
603
- const localVarHeaderParameter = {};
604
- const localVarQueryParameter = {};
605
- // authentication bearerAuth required
606
- // http bearer authentication required
607
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
608
- if (ticker !== undefined) {
609
- localVarQueryParameter['ticker'] = ticker;
610
- }
611
- if (eventTicker !== undefined) {
612
- localVarQueryParameter['event_ticker'] = eventTicker;
613
- }
614
- if (countDown !== undefined) {
615
- localVarQueryParameter['count_down'] = countDown;
616
- }
617
- if (countUp !== undefined) {
618
- localVarQueryParameter['count_up'] = countUp;
619
- }
620
- if (limit !== undefined) {
621
- localVarQueryParameter['limit'] = limit;
622
- }
623
- if (cursor !== undefined) {
624
- localVarQueryParameter['cursor'] = cursor;
625
- }
626
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
627
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
628
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
629
- return {
630
- url: (0, common_1.toPathString)(localVarUrlObj),
631
- options: localVarRequestOptions,
632
- };
633
- }),
634
- /**
635
- * Get queue positions for multiple orders
636
- * @summary Get Queue Positions
637
- * @param {GetQueuePositionsRequest} getQueuePositionsRequest
638
- * @param {*} [options] Override http request option.
639
- * @throws {RequiredError}
640
- */
641
- getQueuePositions: (getQueuePositionsRequest_1, ...args_1) => __awaiter(this, [getQueuePositionsRequest_1, ...args_1], void 0, function* (getQueuePositionsRequest, options = {}) {
642
- // verify required parameter 'getQueuePositionsRequest' is not null or undefined
643
- (0, common_1.assertParamExists)('getQueuePositions', 'getQueuePositionsRequest', getQueuePositionsRequest);
644
- const localVarPath = `/portfolio/orders/queue_positions`;
645
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
646
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
647
- let baseOptions;
648
- if (configuration) {
649
- baseOptions = configuration.baseOptions;
650
- }
651
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
652
- const localVarHeaderParameter = {};
653
- const localVarQueryParameter = {};
654
- // authentication bearerAuth required
655
- // http bearer authentication required
656
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
657
- localVarHeaderParameter['Content-Type'] = 'application/json';
658
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
659
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
660
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
661
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getQueuePositionsRequest, localVarRequestOptions, configuration);
662
- return {
663
- url: (0, common_1.toPathString)(localVarUrlObj),
664
- options: localVarRequestOptions,
665
- };
666
- }),
667
- /**
668
- * Get settlements for the logged-in user
669
- * @summary Get Settlements
670
- * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
671
- * @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
672
- * @param {*} [options] Override http request option.
673
- * @throws {RequiredError}
674
- */
675
- getSettlements: (limit_1, cursor_1, ...args_1) => __awaiter(this, [limit_1, cursor_1, ...args_1], void 0, function* (limit, cursor, options = {}) {
676
- const localVarPath = `/portfolio/settlements`;
677
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
678
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
679
- let baseOptions;
680
- if (configuration) {
681
- baseOptions = configuration.baseOptions;
682
- }
683
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
684
- const localVarHeaderParameter = {};
685
- const localVarQueryParameter = {};
686
- // authentication bearerAuth required
687
- // http bearer authentication required
688
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
689
- if (limit !== undefined) {
690
- localVarQueryParameter['limit'] = limit;
691
- }
692
- if (cursor !== undefined) {
693
- localVarQueryParameter['cursor'] = cursor;
694
- }
695
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
696
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
697
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
698
- return {
699
- url: (0, common_1.toPathString)(localVarUrlObj),
700
- options: localVarRequestOptions,
701
- };
702
- }),
703
- /**
704
- * Get the total value of all resting orders
705
- * @summary Get Total Resting Order Value
706
- * @param {*} [options] Override http request option.
707
- * @throws {RequiredError}
708
- */
709
- getTotalRestingOrderValue: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
710
- const localVarPath = `/portfolio/summary/total_resting_order_value`;
711
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
712
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
713
- let baseOptions;
714
- if (configuration) {
715
- baseOptions = configuration.baseOptions;
716
- }
717
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
718
- const localVarHeaderParameter = {};
719
- const localVarQueryParameter = {};
720
- // authentication bearerAuth required
721
- // http bearer authentication required
722
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
723
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
724
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
725
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
726
- return {
727
- url: (0, common_1.toPathString)(localVarUrlObj),
728
- options: localVarRequestOptions,
729
- };
730
- }),
731
- /**
732
- * Reset an order group
733
- * @summary Reset Order Group
734
- * @param {string} orderGroupId Order group ID
735
- * @param {*} [options] Override http request option.
736
- * @throws {RequiredError}
737
- */
738
- resetOrderGroup: (orderGroupId_1, ...args_1) => __awaiter(this, [orderGroupId_1, ...args_1], void 0, function* (orderGroupId, options = {}) {
739
- // verify required parameter 'orderGroupId' is not null or undefined
740
- (0, common_1.assertParamExists)('resetOrderGroup', 'orderGroupId', orderGroupId);
741
- const localVarPath = `/portfolio/order_groups/{order_group_id}/reset`
742
- .replace(`{${"order_group_id"}}`, encodeURIComponent(String(orderGroupId)));
743
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
744
- const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
745
- let baseOptions;
746
- if (configuration) {
747
- baseOptions = configuration.baseOptions;
748
- }
749
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
750
- const localVarHeaderParameter = {};
751
- const localVarQueryParameter = {};
752
- // authentication bearerAuth required
753
- // http bearer authentication required
754
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
755
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
756
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
757
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
758
- return {
759
- url: (0, common_1.toPathString)(localVarUrlObj),
760
- options: localVarRequestOptions,
761
- };
762
- }),
763
- };
764
- };
765
- exports.PortfolioApiAxiosParamCreator = PortfolioApiAxiosParamCreator;
766
- /**
767
- * PortfolioApi - functional programming interface
768
- */
769
- const PortfolioApiFp = function (configuration) {
770
- const localVarAxiosParamCreator = (0, exports.PortfolioApiAxiosParamCreator)(configuration);
771
- return {
772
- /**
773
- * Amend an existing order
774
- * @summary Amend Order
775
- * @param {string} orderId Order ID
776
- * @param {AmendOrderRequest} amendOrderRequest
777
- * @param {*} [options] Override http request option.
778
- * @throws {RequiredError}
779
- */
780
- amendOrder(orderId, amendOrderRequest, options) {
781
- return __awaiter(this, void 0, void 0, function* () {
782
- var _a;
783
- const localVarAxiosArgs = yield localVarAxiosParamCreator.amendOrder(orderId, amendOrderRequest, options);
784
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
785
- const localVarOperationServerBasePath = undefined;
786
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
787
- });
788
- },
789
- /**
790
- * Cancel multiple orders in a single request
791
- * @summary Batch Cancel Orders
792
- * @param {BatchCancelOrdersRequest} batchCancelOrdersRequest
793
- * @param {*} [options] Override http request option.
794
- * @throws {RequiredError}
795
- */
796
- batchCancelOrders(batchCancelOrdersRequest, options) {
797
- return __awaiter(this, void 0, void 0, function* () {
798
- var _a;
799
- const localVarAxiosArgs = yield localVarAxiosParamCreator.batchCancelOrders(batchCancelOrdersRequest, options);
800
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
801
- const localVarOperationServerBasePath = undefined;
802
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
803
- });
804
- },
805
- /**
806
- * Create multiple orders in a single request
807
- * @summary Batch Create Orders
808
- * @param {BatchCreateOrdersRequest} batchCreateOrdersRequest
809
- * @param {*} [options] Override http request option.
810
- * @throws {RequiredError}
811
- */
812
- batchCreateOrders(batchCreateOrdersRequest, options) {
813
- return __awaiter(this, void 0, void 0, function* () {
814
- var _a;
815
- const localVarAxiosArgs = yield localVarAxiosParamCreator.batchCreateOrders(batchCreateOrdersRequest, options);
816
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
817
- const localVarOperationServerBasePath = undefined;
818
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
819
- });
820
- },
821
- /**
822
- * Cancel an order
823
- * @summary Cancel Order
824
- * @param {string} orderId Order ID
825
- * @param {*} [options] Override http request option.
826
- * @throws {RequiredError}
827
- */
828
- cancelOrder(orderId, options) {
829
- return __awaiter(this, void 0, void 0, function* () {
830
- var _a;
831
- const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelOrder(orderId, options);
832
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
833
- const localVarOperationServerBasePath = undefined;
834
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
835
- });
836
- },
837
- /**
838
- * Create a new order
839
- * @summary Create Order
840
- * @param {CreateOrderRequest} createOrderRequest
841
- * @param {*} [options] Override http request option.
842
- * @throws {RequiredError}
843
- */
844
- createOrder(createOrderRequest, options) {
845
- return __awaiter(this, void 0, void 0, function* () {
846
- var _a;
847
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createOrder(createOrderRequest, options);
848
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
849
- const localVarOperationServerBasePath = undefined;
850
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
851
- });
852
- },
853
- /**
854
- * Create a new order group
855
- * @summary Create Order Group
856
- * @param {CreateOrderGroupRequest} createOrderGroupRequest
857
- * @param {*} [options] Override http request option.
858
- * @throws {RequiredError}
859
- */
860
- createOrderGroup(createOrderGroupRequest, options) {
861
- return __awaiter(this, void 0, void 0, function* () {
862
- var _a;
863
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createOrderGroup(createOrderGroupRequest, options);
864
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
865
- const localVarOperationServerBasePath = undefined;
866
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
867
- });
868
- },
869
- /**
870
- * Decrease the size of an existing order
871
- * @summary Decrease Order
872
- * @param {string} orderId Order ID
873
- * @param {DecreaseOrderRequest} decreaseOrderRequest
874
- * @param {*} [options] Override http request option.
875
- * @throws {RequiredError}
876
- */
877
- decreaseOrder(orderId, decreaseOrderRequest, options) {
878
- return __awaiter(this, void 0, void 0, function* () {
879
- var _a;
880
- const localVarAxiosArgs = yield localVarAxiosParamCreator.decreaseOrder(orderId, decreaseOrderRequest, options);
881
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
882
- const localVarOperationServerBasePath = undefined;
883
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
884
- });
885
- },
886
- /**
887
- * Delete an order group
888
- * @summary Delete Order Group
889
- * @param {string} orderGroupId Order group ID
890
- * @param {*} [options] Override http request option.
891
- * @throws {RequiredError}
892
- */
893
- deleteOrderGroup(orderGroupId, options) {
894
- return __awaiter(this, void 0, void 0, function* () {
895
- var _a;
896
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteOrderGroup(orderGroupId, options);
897
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
898
- const localVarOperationServerBasePath = undefined;
899
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
900
- });
901
- },
902
- /**
903
- * Get the user\'s current balance
904
- * @summary Get Balance
273
+ * Endpoint for getting the balance and portfolio value of a member. Both values are returned in cents.
274
+ * @summary Get Balance
905
275
  * @param {*} [options] Override http request option.
906
276
  * @throws {RequiredError}
907
277
  */
@@ -915,7 +285,7 @@ const PortfolioApiFp = function (configuration) {
915
285
  });
916
286
  },
917
287
  /**
918
- * Get fills for the logged-in user. A fill represents a partial or complete execution of an order. When an order matches with another order in the orderbook, a fill is created for each side of the trade.
288
+ * Endpoint for getting all fills for the member. A fill is when a trade you have is matched.
919
289
  * @summary Get Fills
920
290
  * @param {string} [ticker] Filter by market ticker
921
291
  * @param {string} [orderId] Filter by order ID
@@ -936,173 +306,56 @@ const PortfolioApiFp = function (configuration) {
936
306
  });
937
307
  },
938
308
  /**
939
- * Get a single order by ID
940
- * @summary Get Order
941
- * @param {string} orderId Order ID
942
- * @param {*} [options] Override http request option.
943
- * @throws {RequiredError}
944
- */
945
- getOrder(orderId, options) {
946
- return __awaiter(this, void 0, void 0, function* () {
947
- var _a;
948
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrder(orderId, options);
949
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
950
- const localVarOperationServerBasePath = undefined;
951
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
952
- });
953
- },
954
- /**
955
- * Get details of a specific order group
956
- * @summary Get Order Group
957
- * @param {string} orderGroupId Order group ID
958
- * @param {*} [options] Override http request option.
959
- * @throws {RequiredError}
960
- */
961
- getOrderGroup(orderGroupId, options) {
962
- return __awaiter(this, void 0, void 0, function* () {
963
- var _a;
964
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrderGroup(orderGroupId, options);
965
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
966
- const localVarOperationServerBasePath = undefined;
967
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
968
- });
969
- },
970
- /**
971
- * Get order groups for the logged-in user
972
- * @summary Get Order Groups
973
- * @param {string} [status] Filter by status. Possible values depend on the endpoint.
974
- * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
975
- * @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
976
- * @param {*} [options] Override http request option.
977
- * @throws {RequiredError}
978
- */
979
- getOrderGroups(status, limit, cursor, options) {
980
- return __awaiter(this, void 0, void 0, function* () {
981
- var _a;
982
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrderGroups(status, limit, cursor, options);
983
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
984
- const localVarOperationServerBasePath = undefined;
985
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
986
- });
987
- },
988
- /**
989
- * Get the queue position for an order
990
- * @summary Get Order Queue Position
991
- * @param {string} orderId Order ID
992
- * @param {*} [options] Override http request option.
993
- * @throws {RequiredError}
994
- */
995
- getOrderQueuePosition(orderId, options) {
996
- return __awaiter(this, void 0, void 0, function* () {
997
- var _a;
998
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrderQueuePosition(orderId, options);
999
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1000
- const localVarOperationServerBasePath = undefined;
1001
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1002
- });
1003
- },
1004
- /**
1005
- * Get orders for the logged-in user
1006
- * @summary Get Orders
1007
- * @param {string} [ticker] Filter by market ticker
1008
- * @param {string} [eventTicker] Filter by event ticker
1009
- * @param {number} [minTs] Filter items after this Unix timestamp
1010
- * @param {number} [maxTs] Filter items before this Unix timestamp
1011
- * @param {string} [status] Filter by status. Possible values depend on the endpoint.
1012
- * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
1013
- * @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
309
+ * Endpoint for getting the total value, in cents, of resting orders. This endpoint is only intended for use by FCM members (rare). Note: If you\'re uncertain about this endpoint, it likely does not apply to you.
310
+ * @summary Get Total Resting Order Value
1014
311
  * @param {*} [options] Override http request option.
1015
312
  * @throws {RequiredError}
1016
313
  */
1017
- getOrders(ticker, eventTicker, minTs, maxTs, status, limit, cursor, options) {
314
+ getPortfolioRestingOrderTotalValue(options) {
1018
315
  return __awaiter(this, void 0, void 0, function* () {
1019
316
  var _a;
1020
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrders(ticker, eventTicker, minTs, maxTs, status, limit, cursor, options);
317
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPortfolioRestingOrderTotalValue(options);
1021
318
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1022
319
  const localVarOperationServerBasePath = undefined;
1023
320
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1024
321
  });
1025
322
  },
1026
323
  /**
1027
- * Get positions for the logged-in user
324
+ * Restricts the positions to those with any of following fields with non-zero values, as a comma separated list. The following values are accepted: position, total_traded
1028
325
  * @summary Get Positions
326
+ * @param {string} [cursor] The Cursor represents a pointer to the next page of records in the pagination. Use the value returned from the previous response to get the next page.
327
+ * @param {number} [limit] Parameter to specify the number of results per page. Defaults to 100.
328
+ * @param {string} [countFilter] Restricts the positions to those with any of following fields with non-zero values, as a comma separated list. The following values are accepted - position, total_traded
1029
329
  * @param {string} [ticker] Filter by market ticker
1030
- * @param {string} [eventTicker] Filter by event ticker
1031
- * @param {number} [countDown] Filter positions by minimum count down value
1032
- * @param {number} [countUp] Filter positions by minimum count up value
1033
- * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
1034
- * @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
330
+ * @param {string} [eventTicker] Event ticker of desired positions. Multiple event tickers can be provided as a comma-separated list (maximum 10).
1035
331
  * @param {*} [options] Override http request option.
1036
332
  * @throws {RequiredError}
1037
333
  */
1038
- getPositions(ticker, eventTicker, countDown, countUp, limit, cursor, options) {
334
+ getPositions(cursor, limit, countFilter, ticker, eventTicker, options) {
1039
335
  return __awaiter(this, void 0, void 0, function* () {
1040
336
  var _a;
1041
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPositions(ticker, eventTicker, countDown, countUp, limit, cursor, options);
337
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPositions(cursor, limit, countFilter, ticker, eventTicker, options);
1042
338
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1043
339
  const localVarOperationServerBasePath = undefined;
1044
340
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1045
341
  });
1046
342
  },
1047
343
  /**
1048
- * Get queue positions for multiple orders
1049
- * @summary Get Queue Positions
1050
- * @param {GetQueuePositionsRequest} getQueuePositionsRequest
1051
- * @param {*} [options] Override http request option.
1052
- * @throws {RequiredError}
1053
- */
1054
- getQueuePositions(getQueuePositionsRequest, options) {
1055
- return __awaiter(this, void 0, void 0, function* () {
1056
- var _a;
1057
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getQueuePositions(getQueuePositionsRequest, options);
1058
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1059
- const localVarOperationServerBasePath = undefined;
1060
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1061
- });
1062
- },
1063
- /**
1064
- * Get settlements for the logged-in user
344
+ * Endpoint for getting the member\'s settlements historical track.
1065
345
  * @summary Get Settlements
1066
346
  * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
1067
347
  * @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
348
+ * @param {string} [ticker] Filter by market ticker
349
+ * @param {string} [eventTicker] Event ticker of desired positions. Multiple event tickers can be provided as a comma-separated list (maximum 10).
350
+ * @param {number} [minTs] Filter items after this Unix timestamp
351
+ * @param {number} [maxTs] Filter items before this Unix timestamp
1068
352
  * @param {*} [options] Override http request option.
1069
353
  * @throws {RequiredError}
1070
354
  */
1071
- getSettlements(limit, cursor, options) {
1072
- return __awaiter(this, void 0, void 0, function* () {
1073
- var _a;
1074
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getSettlements(limit, cursor, options);
1075
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1076
- const localVarOperationServerBasePath = undefined;
1077
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1078
- });
1079
- },
1080
- /**
1081
- * Get the total value of all resting orders
1082
- * @summary Get Total Resting Order Value
1083
- * @param {*} [options] Override http request option.
1084
- * @throws {RequiredError}
1085
- */
1086
- getTotalRestingOrderValue(options) {
1087
- return __awaiter(this, void 0, void 0, function* () {
1088
- var _a;
1089
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getTotalRestingOrderValue(options);
1090
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1091
- const localVarOperationServerBasePath = undefined;
1092
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1093
- });
1094
- },
1095
- /**
1096
- * Reset an order group
1097
- * @summary Reset Order Group
1098
- * @param {string} orderGroupId Order group ID
1099
- * @param {*} [options] Override http request option.
1100
- * @throws {RequiredError}
1101
- */
1102
- resetOrderGroup(orderGroupId, options) {
355
+ getSettlements(limit, cursor, ticker, eventTicker, minTs, maxTs, options) {
1103
356
  return __awaiter(this, void 0, void 0, function* () {
1104
357
  var _a;
1105
- const localVarAxiosArgs = yield localVarAxiosParamCreator.resetOrderGroup(orderGroupId, options);
358
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSettlements(limit, cursor, ticker, eventTicker, minTs, maxTs, options);
1106
359
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1107
360
  const localVarOperationServerBasePath = undefined;
1108
361
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1118,89 +371,7 @@ const PortfolioApiFactory = function (configuration, basePath, axios) {
1118
371
  const localVarFp = (0, exports.PortfolioApiFp)(configuration);
1119
372
  return {
1120
373
  /**
1121
- * Amend an existing order
1122
- * @summary Amend Order
1123
- * @param {string} orderId Order ID
1124
- * @param {AmendOrderRequest} amendOrderRequest
1125
- * @param {*} [options] Override http request option.
1126
- * @throws {RequiredError}
1127
- */
1128
- amendOrder(orderId, amendOrderRequest, options) {
1129
- return localVarFp.amendOrder(orderId, amendOrderRequest, options).then((request) => request(axios, basePath));
1130
- },
1131
- /**
1132
- * Cancel multiple orders in a single request
1133
- * @summary Batch Cancel Orders
1134
- * @param {BatchCancelOrdersRequest} batchCancelOrdersRequest
1135
- * @param {*} [options] Override http request option.
1136
- * @throws {RequiredError}
1137
- */
1138
- batchCancelOrders(batchCancelOrdersRequest, options) {
1139
- return localVarFp.batchCancelOrders(batchCancelOrdersRequest, options).then((request) => request(axios, basePath));
1140
- },
1141
- /**
1142
- * Create multiple orders in a single request
1143
- * @summary Batch Create Orders
1144
- * @param {BatchCreateOrdersRequest} batchCreateOrdersRequest
1145
- * @param {*} [options] Override http request option.
1146
- * @throws {RequiredError}
1147
- */
1148
- batchCreateOrders(batchCreateOrdersRequest, options) {
1149
- return localVarFp.batchCreateOrders(batchCreateOrdersRequest, options).then((request) => request(axios, basePath));
1150
- },
1151
- /**
1152
- * Cancel an order
1153
- * @summary Cancel Order
1154
- * @param {string} orderId Order ID
1155
- * @param {*} [options] Override http request option.
1156
- * @throws {RequiredError}
1157
- */
1158
- cancelOrder(orderId, options) {
1159
- return localVarFp.cancelOrder(orderId, options).then((request) => request(axios, basePath));
1160
- },
1161
- /**
1162
- * Create a new order
1163
- * @summary Create Order
1164
- * @param {CreateOrderRequest} createOrderRequest
1165
- * @param {*} [options] Override http request option.
1166
- * @throws {RequiredError}
1167
- */
1168
- createOrder(createOrderRequest, options) {
1169
- return localVarFp.createOrder(createOrderRequest, options).then((request) => request(axios, basePath));
1170
- },
1171
- /**
1172
- * Create a new order group
1173
- * @summary Create Order Group
1174
- * @param {CreateOrderGroupRequest} createOrderGroupRequest
1175
- * @param {*} [options] Override http request option.
1176
- * @throws {RequiredError}
1177
- */
1178
- createOrderGroup(createOrderGroupRequest, options) {
1179
- return localVarFp.createOrderGroup(createOrderGroupRequest, options).then((request) => request(axios, basePath));
1180
- },
1181
- /**
1182
- * Decrease the size of an existing order
1183
- * @summary Decrease Order
1184
- * @param {string} orderId Order ID
1185
- * @param {DecreaseOrderRequest} decreaseOrderRequest
1186
- * @param {*} [options] Override http request option.
1187
- * @throws {RequiredError}
1188
- */
1189
- decreaseOrder(orderId, decreaseOrderRequest, options) {
1190
- return localVarFp.decreaseOrder(orderId, decreaseOrderRequest, options).then((request) => request(axios, basePath));
1191
- },
1192
- /**
1193
- * Delete an order group
1194
- * @summary Delete Order Group
1195
- * @param {string} orderGroupId Order group ID
1196
- * @param {*} [options] Override http request option.
1197
- * @throws {RequiredError}
1198
- */
1199
- deleteOrderGroup(orderGroupId, options) {
1200
- return localVarFp.deleteOrderGroup(orderGroupId, options).then((request) => request(axios, basePath));
1201
- },
1202
- /**
1203
- * Get the user\'s current balance
374
+ * Endpoint for getting the balance and portfolio value of a member. Both values are returned in cents.
1204
375
  * @summary Get Balance
1205
376
  * @param {*} [options] Override http request option.
1206
377
  * @throws {RequiredError}
@@ -1209,7 +380,7 @@ const PortfolioApiFactory = function (configuration, basePath, axios) {
1209
380
  return localVarFp.getBalance(options).then((request) => request(axios, basePath));
1210
381
  },
1211
382
  /**
1212
- * Get fills for the logged-in user. A fill represents a partial or complete execution of an order. When an order matches with another order in the orderbook, a fill is created for each side of the trade.
383
+ * Endpoint for getting all fills for the member. A fill is when a trade you have is matched.
1213
384
  * @summary Get Fills
1214
385
  * @param {string} [ticker] Filter by market ticker
1215
386
  * @param {string} [orderId] Filter by order ID
@@ -1224,117 +395,42 @@ const PortfolioApiFactory = function (configuration, basePath, axios) {
1224
395
  return localVarFp.getFills(ticker, orderId, minTs, maxTs, limit, cursor, options).then((request) => request(axios, basePath));
1225
396
  },
1226
397
  /**
1227
- * Get a single order by ID
1228
- * @summary Get Order
1229
- * @param {string} orderId Order ID
1230
- * @param {*} [options] Override http request option.
1231
- * @throws {RequiredError}
1232
- */
1233
- getOrder(orderId, options) {
1234
- return localVarFp.getOrder(orderId, options).then((request) => request(axios, basePath));
1235
- },
1236
- /**
1237
- * Get details of a specific order group
1238
- * @summary Get Order Group
1239
- * @param {string} orderGroupId Order group ID
1240
- * @param {*} [options] Override http request option.
1241
- * @throws {RequiredError}
1242
- */
1243
- getOrderGroup(orderGroupId, options) {
1244
- return localVarFp.getOrderGroup(orderGroupId, options).then((request) => request(axios, basePath));
1245
- },
1246
- /**
1247
- * Get order groups for the logged-in user
1248
- * @summary Get Order Groups
1249
- * @param {string} [status] Filter by status. Possible values depend on the endpoint.
1250
- * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
1251
- * @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
1252
- * @param {*} [options] Override http request option.
1253
- * @throws {RequiredError}
1254
- */
1255
- getOrderGroups(status, limit, cursor, options) {
1256
- return localVarFp.getOrderGroups(status, limit, cursor, options).then((request) => request(axios, basePath));
1257
- },
1258
- /**
1259
- * Get the queue position for an order
1260
- * @summary Get Order Queue Position
1261
- * @param {string} orderId Order ID
1262
- * @param {*} [options] Override http request option.
1263
- * @throws {RequiredError}
1264
- */
1265
- getOrderQueuePosition(orderId, options) {
1266
- return localVarFp.getOrderQueuePosition(orderId, options).then((request) => request(axios, basePath));
1267
- },
1268
- /**
1269
- * Get orders for the logged-in user
1270
- * @summary Get Orders
1271
- * @param {string} [ticker] Filter by market ticker
1272
- * @param {string} [eventTicker] Filter by event ticker
1273
- * @param {number} [minTs] Filter items after this Unix timestamp
1274
- * @param {number} [maxTs] Filter items before this Unix timestamp
1275
- * @param {string} [status] Filter by status. Possible values depend on the endpoint.
1276
- * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
1277
- * @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
398
+ * Endpoint for getting the total value, in cents, of resting orders. This endpoint is only intended for use by FCM members (rare). Note: If you\'re uncertain about this endpoint, it likely does not apply to you.
399
+ * @summary Get Total Resting Order Value
1278
400
  * @param {*} [options] Override http request option.
1279
401
  * @throws {RequiredError}
1280
402
  */
1281
- getOrders(ticker, eventTicker, minTs, maxTs, status, limit, cursor, options) {
1282
- return localVarFp.getOrders(ticker, eventTicker, minTs, maxTs, status, limit, cursor, options).then((request) => request(axios, basePath));
403
+ getPortfolioRestingOrderTotalValue(options) {
404
+ return localVarFp.getPortfolioRestingOrderTotalValue(options).then((request) => request(axios, basePath));
1283
405
  },
1284
406
  /**
1285
- * Get positions for the logged-in user
407
+ * Restricts the positions to those with any of following fields with non-zero values, as a comma separated list. The following values are accepted: position, total_traded
1286
408
  * @summary Get Positions
409
+ * @param {string} [cursor] The Cursor represents a pointer to the next page of records in the pagination. Use the value returned from the previous response to get the next page.
410
+ * @param {number} [limit] Parameter to specify the number of results per page. Defaults to 100.
411
+ * @param {string} [countFilter] Restricts the positions to those with any of following fields with non-zero values, as a comma separated list. The following values are accepted - position, total_traded
1287
412
  * @param {string} [ticker] Filter by market ticker
1288
- * @param {string} [eventTicker] Filter by event ticker
1289
- * @param {number} [countDown] Filter positions by minimum count down value
1290
- * @param {number} [countUp] Filter positions by minimum count up value
1291
- * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
1292
- * @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
413
+ * @param {string} [eventTicker] Event ticker of desired positions. Multiple event tickers can be provided as a comma-separated list (maximum 10).
1293
414
  * @param {*} [options] Override http request option.
1294
415
  * @throws {RequiredError}
1295
416
  */
1296
- getPositions(ticker, eventTicker, countDown, countUp, limit, cursor, options) {
1297
- return localVarFp.getPositions(ticker, eventTicker, countDown, countUp, limit, cursor, options).then((request) => request(axios, basePath));
417
+ getPositions(cursor, limit, countFilter, ticker, eventTicker, options) {
418
+ return localVarFp.getPositions(cursor, limit, countFilter, ticker, eventTicker, options).then((request) => request(axios, basePath));
1298
419
  },
1299
420
  /**
1300
- * Get queue positions for multiple orders
1301
- * @summary Get Queue Positions
1302
- * @param {GetQueuePositionsRequest} getQueuePositionsRequest
1303
- * @param {*} [options] Override http request option.
1304
- * @throws {RequiredError}
1305
- */
1306
- getQueuePositions(getQueuePositionsRequest, options) {
1307
- return localVarFp.getQueuePositions(getQueuePositionsRequest, options).then((request) => request(axios, basePath));
1308
- },
1309
- /**
1310
- * Get settlements for the logged-in user
421
+ * Endpoint for getting the member\'s settlements historical track.
1311
422
  * @summary Get Settlements
1312
423
  * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
1313
424
  * @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
425
+ * @param {string} [ticker] Filter by market ticker
426
+ * @param {string} [eventTicker] Event ticker of desired positions. Multiple event tickers can be provided as a comma-separated list (maximum 10).
427
+ * @param {number} [minTs] Filter items after this Unix timestamp
428
+ * @param {number} [maxTs] Filter items before this Unix timestamp
1314
429
  * @param {*} [options] Override http request option.
1315
430
  * @throws {RequiredError}
1316
431
  */
1317
- getSettlements(limit, cursor, options) {
1318
- return localVarFp.getSettlements(limit, cursor, options).then((request) => request(axios, basePath));
1319
- },
1320
- /**
1321
- * Get the total value of all resting orders
1322
- * @summary Get Total Resting Order Value
1323
- * @param {*} [options] Override http request option.
1324
- * @throws {RequiredError}
1325
- */
1326
- getTotalRestingOrderValue(options) {
1327
- return localVarFp.getTotalRestingOrderValue(options).then((request) => request(axios, basePath));
1328
- },
1329
- /**
1330
- * Reset an order group
1331
- * @summary Reset Order Group
1332
- * @param {string} orderGroupId Order group ID
1333
- * @param {*} [options] Override http request option.
1334
- * @throws {RequiredError}
1335
- */
1336
- resetOrderGroup(orderGroupId, options) {
1337
- return localVarFp.resetOrderGroup(orderGroupId, options).then((request) => request(axios, basePath));
432
+ getSettlements(limit, cursor, ticker, eventTicker, minTs, maxTs, options) {
433
+ return localVarFp.getSettlements(limit, cursor, ticker, eventTicker, minTs, maxTs, options).then((request) => request(axios, basePath));
1338
434
  },
1339
435
  };
1340
436
  };
@@ -1344,89 +440,7 @@ exports.PortfolioApiFactory = PortfolioApiFactory;
1344
440
  */
1345
441
  class PortfolioApi extends base_1.BaseAPI {
1346
442
  /**
1347
- * Amend an existing order
1348
- * @summary Amend Order
1349
- * @param {string} orderId Order ID
1350
- * @param {AmendOrderRequest} amendOrderRequest
1351
- * @param {*} [options] Override http request option.
1352
- * @throws {RequiredError}
1353
- */
1354
- amendOrder(orderId, amendOrderRequest, options) {
1355
- return (0, exports.PortfolioApiFp)(this.configuration).amendOrder(orderId, amendOrderRequest, options).then((request) => request(this.axios, this.basePath));
1356
- }
1357
- /**
1358
- * Cancel multiple orders in a single request
1359
- * @summary Batch Cancel Orders
1360
- * @param {BatchCancelOrdersRequest} batchCancelOrdersRequest
1361
- * @param {*} [options] Override http request option.
1362
- * @throws {RequiredError}
1363
- */
1364
- batchCancelOrders(batchCancelOrdersRequest, options) {
1365
- return (0, exports.PortfolioApiFp)(this.configuration).batchCancelOrders(batchCancelOrdersRequest, options).then((request) => request(this.axios, this.basePath));
1366
- }
1367
- /**
1368
- * Create multiple orders in a single request
1369
- * @summary Batch Create Orders
1370
- * @param {BatchCreateOrdersRequest} batchCreateOrdersRequest
1371
- * @param {*} [options] Override http request option.
1372
- * @throws {RequiredError}
1373
- */
1374
- batchCreateOrders(batchCreateOrdersRequest, options) {
1375
- return (0, exports.PortfolioApiFp)(this.configuration).batchCreateOrders(batchCreateOrdersRequest, options).then((request) => request(this.axios, this.basePath));
1376
- }
1377
- /**
1378
- * Cancel an order
1379
- * @summary Cancel Order
1380
- * @param {string} orderId Order ID
1381
- * @param {*} [options] Override http request option.
1382
- * @throws {RequiredError}
1383
- */
1384
- cancelOrder(orderId, options) {
1385
- return (0, exports.PortfolioApiFp)(this.configuration).cancelOrder(orderId, options).then((request) => request(this.axios, this.basePath));
1386
- }
1387
- /**
1388
- * Create a new order
1389
- * @summary Create Order
1390
- * @param {CreateOrderRequest} createOrderRequest
1391
- * @param {*} [options] Override http request option.
1392
- * @throws {RequiredError}
1393
- */
1394
- createOrder(createOrderRequest, options) {
1395
- return (0, exports.PortfolioApiFp)(this.configuration).createOrder(createOrderRequest, options).then((request) => request(this.axios, this.basePath));
1396
- }
1397
- /**
1398
- * Create a new order group
1399
- * @summary Create Order Group
1400
- * @param {CreateOrderGroupRequest} createOrderGroupRequest
1401
- * @param {*} [options] Override http request option.
1402
- * @throws {RequiredError}
1403
- */
1404
- createOrderGroup(createOrderGroupRequest, options) {
1405
- return (0, exports.PortfolioApiFp)(this.configuration).createOrderGroup(createOrderGroupRequest, options).then((request) => request(this.axios, this.basePath));
1406
- }
1407
- /**
1408
- * Decrease the size of an existing order
1409
- * @summary Decrease Order
1410
- * @param {string} orderId Order ID
1411
- * @param {DecreaseOrderRequest} decreaseOrderRequest
1412
- * @param {*} [options] Override http request option.
1413
- * @throws {RequiredError}
1414
- */
1415
- decreaseOrder(orderId, decreaseOrderRequest, options) {
1416
- return (0, exports.PortfolioApiFp)(this.configuration).decreaseOrder(orderId, decreaseOrderRequest, options).then((request) => request(this.axios, this.basePath));
1417
- }
1418
- /**
1419
- * Delete an order group
1420
- * @summary Delete Order Group
1421
- * @param {string} orderGroupId Order group ID
1422
- * @param {*} [options] Override http request option.
1423
- * @throws {RequiredError}
1424
- */
1425
- deleteOrderGroup(orderGroupId, options) {
1426
- return (0, exports.PortfolioApiFp)(this.configuration).deleteOrderGroup(orderGroupId, options).then((request) => request(this.axios, this.basePath));
1427
- }
1428
- /**
1429
- * Get the user\'s current balance
443
+ * Endpoint for getting the balance and portfolio value of a member. Both values are returned in cents.
1430
444
  * @summary Get Balance
1431
445
  * @param {*} [options] Override http request option.
1432
446
  * @throws {RequiredError}
@@ -1435,7 +449,7 @@ class PortfolioApi extends base_1.BaseAPI {
1435
449
  return (0, exports.PortfolioApiFp)(this.configuration).getBalance(options).then((request) => request(this.axios, this.basePath));
1436
450
  }
1437
451
  /**
1438
- * Get fills for the logged-in user. A fill represents a partial or complete execution of an order. When an order matches with another order in the orderbook, a fill is created for each side of the trade.
452
+ * Endpoint for getting all fills for the member. A fill is when a trade you have is matched.
1439
453
  * @summary Get Fills
1440
454
  * @param {string} [ticker] Filter by market ticker
1441
455
  * @param {string} [orderId] Filter by order ID
@@ -1450,117 +464,42 @@ class PortfolioApi extends base_1.BaseAPI {
1450
464
  return (0, exports.PortfolioApiFp)(this.configuration).getFills(ticker, orderId, minTs, maxTs, limit, cursor, options).then((request) => request(this.axios, this.basePath));
1451
465
  }
1452
466
  /**
1453
- * Get a single order by ID
1454
- * @summary Get Order
1455
- * @param {string} orderId Order ID
1456
- * @param {*} [options] Override http request option.
1457
- * @throws {RequiredError}
1458
- */
1459
- getOrder(orderId, options) {
1460
- return (0, exports.PortfolioApiFp)(this.configuration).getOrder(orderId, options).then((request) => request(this.axios, this.basePath));
1461
- }
1462
- /**
1463
- * Get details of a specific order group
1464
- * @summary Get Order Group
1465
- * @param {string} orderGroupId Order group ID
1466
- * @param {*} [options] Override http request option.
1467
- * @throws {RequiredError}
1468
- */
1469
- getOrderGroup(orderGroupId, options) {
1470
- return (0, exports.PortfolioApiFp)(this.configuration).getOrderGroup(orderGroupId, options).then((request) => request(this.axios, this.basePath));
1471
- }
1472
- /**
1473
- * Get order groups for the logged-in user
1474
- * @summary Get Order Groups
1475
- * @param {string} [status] Filter by status. Possible values depend on the endpoint.
1476
- * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
1477
- * @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
1478
- * @param {*} [options] Override http request option.
1479
- * @throws {RequiredError}
1480
- */
1481
- getOrderGroups(status, limit, cursor, options) {
1482
- return (0, exports.PortfolioApiFp)(this.configuration).getOrderGroups(status, limit, cursor, options).then((request) => request(this.axios, this.basePath));
1483
- }
1484
- /**
1485
- * Get the queue position for an order
1486
- * @summary Get Order Queue Position
1487
- * @param {string} orderId Order ID
1488
- * @param {*} [options] Override http request option.
1489
- * @throws {RequiredError}
1490
- */
1491
- getOrderQueuePosition(orderId, options) {
1492
- return (0, exports.PortfolioApiFp)(this.configuration).getOrderQueuePosition(orderId, options).then((request) => request(this.axios, this.basePath));
1493
- }
1494
- /**
1495
- * Get orders for the logged-in user
1496
- * @summary Get Orders
1497
- * @param {string} [ticker] Filter by market ticker
1498
- * @param {string} [eventTicker] Filter by event ticker
1499
- * @param {number} [minTs] Filter items after this Unix timestamp
1500
- * @param {number} [maxTs] Filter items before this Unix timestamp
1501
- * @param {string} [status] Filter by status. Possible values depend on the endpoint.
1502
- * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
1503
- * @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
467
+ * Endpoint for getting the total value, in cents, of resting orders. This endpoint is only intended for use by FCM members (rare). Note: If you\'re uncertain about this endpoint, it likely does not apply to you.
468
+ * @summary Get Total Resting Order Value
1504
469
  * @param {*} [options] Override http request option.
1505
470
  * @throws {RequiredError}
1506
471
  */
1507
- getOrders(ticker, eventTicker, minTs, maxTs, status, limit, cursor, options) {
1508
- return (0, exports.PortfolioApiFp)(this.configuration).getOrders(ticker, eventTicker, minTs, maxTs, status, limit, cursor, options).then((request) => request(this.axios, this.basePath));
472
+ getPortfolioRestingOrderTotalValue(options) {
473
+ return (0, exports.PortfolioApiFp)(this.configuration).getPortfolioRestingOrderTotalValue(options).then((request) => request(this.axios, this.basePath));
1509
474
  }
1510
475
  /**
1511
- * Get positions for the logged-in user
476
+ * Restricts the positions to those with any of following fields with non-zero values, as a comma separated list. The following values are accepted: position, total_traded
1512
477
  * @summary Get Positions
478
+ * @param {string} [cursor] The Cursor represents a pointer to the next page of records in the pagination. Use the value returned from the previous response to get the next page.
479
+ * @param {number} [limit] Parameter to specify the number of results per page. Defaults to 100.
480
+ * @param {string} [countFilter] Restricts the positions to those with any of following fields with non-zero values, as a comma separated list. The following values are accepted - position, total_traded
1513
481
  * @param {string} [ticker] Filter by market ticker
1514
- * @param {string} [eventTicker] Filter by event ticker
1515
- * @param {number} [countDown] Filter positions by minimum count down value
1516
- * @param {number} [countUp] Filter positions by minimum count up value
1517
- * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
1518
- * @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
1519
- * @param {*} [options] Override http request option.
1520
- * @throws {RequiredError}
1521
- */
1522
- getPositions(ticker, eventTicker, countDown, countUp, limit, cursor, options) {
1523
- return (0, exports.PortfolioApiFp)(this.configuration).getPositions(ticker, eventTicker, countDown, countUp, limit, cursor, options).then((request) => request(this.axios, this.basePath));
1524
- }
1525
- /**
1526
- * Get queue positions for multiple orders
1527
- * @summary Get Queue Positions
1528
- * @param {GetQueuePositionsRequest} getQueuePositionsRequest
482
+ * @param {string} [eventTicker] Event ticker of desired positions. Multiple event tickers can be provided as a comma-separated list (maximum 10).
1529
483
  * @param {*} [options] Override http request option.
1530
484
  * @throws {RequiredError}
1531
485
  */
1532
- getQueuePositions(getQueuePositionsRequest, options) {
1533
- return (0, exports.PortfolioApiFp)(this.configuration).getQueuePositions(getQueuePositionsRequest, options).then((request) => request(this.axios, this.basePath));
486
+ getPositions(cursor, limit, countFilter, ticker, eventTicker, options) {
487
+ return (0, exports.PortfolioApiFp)(this.configuration).getPositions(cursor, limit, countFilter, ticker, eventTicker, options).then((request) => request(this.axios, this.basePath));
1534
488
  }
1535
489
  /**
1536
- * Get settlements for the logged-in user
490
+ * Endpoint for getting the member\'s settlements historical track.
1537
491
  * @summary Get Settlements
1538
492
  * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
1539
493
  * @param {string} [cursor] Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
494
+ * @param {string} [ticker] Filter by market ticker
495
+ * @param {string} [eventTicker] Event ticker of desired positions. Multiple event tickers can be provided as a comma-separated list (maximum 10).
496
+ * @param {number} [minTs] Filter items after this Unix timestamp
497
+ * @param {number} [maxTs] Filter items before this Unix timestamp
1540
498
  * @param {*} [options] Override http request option.
1541
499
  * @throws {RequiredError}
1542
500
  */
1543
- getSettlements(limit, cursor, options) {
1544
- return (0, exports.PortfolioApiFp)(this.configuration).getSettlements(limit, cursor, options).then((request) => request(this.axios, this.basePath));
1545
- }
1546
- /**
1547
- * Get the total value of all resting orders
1548
- * @summary Get Total Resting Order Value
1549
- * @param {*} [options] Override http request option.
1550
- * @throws {RequiredError}
1551
- */
1552
- getTotalRestingOrderValue(options) {
1553
- return (0, exports.PortfolioApiFp)(this.configuration).getTotalRestingOrderValue(options).then((request) => request(this.axios, this.basePath));
1554
- }
1555
- /**
1556
- * Reset an order group
1557
- * @summary Reset Order Group
1558
- * @param {string} orderGroupId Order group ID
1559
- * @param {*} [options] Override http request option.
1560
- * @throws {RequiredError}
1561
- */
1562
- resetOrderGroup(orderGroupId, options) {
1563
- return (0, exports.PortfolioApiFp)(this.configuration).resetOrderGroup(orderGroupId, options).then((request) => request(this.axios, this.basePath));
501
+ getSettlements(limit, cursor, ticker, eventTicker, minTs, maxTs, options) {
502
+ return (0, exports.PortfolioApiFp)(this.configuration).getSettlements(limit, cursor, ticker, eventTicker, minTs, maxTs, options).then((request) => request(this.axios, this.basePath));
1564
503
  }
1565
504
  }
1566
505
  exports.PortfolioApi = PortfolioApi;