kalshi-typescript 2.1.3 → 3.0.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 (880) hide show
  1. package/.openapi-generator/FILES +112 -42
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +110 -50
  4. package/api/api-keys-api.ts +52 -34
  5. package/api/collection-api.ts +506 -0
  6. package/api/communications-api.ts +284 -102
  7. package/api/events-api.ts +402 -53
  8. package/api/exchange-api.ts +99 -24
  9. package/api/fcm-api.ts +337 -0
  10. package/api/incentive-programs-api.ts +168 -0
  11. package/api/live-data-api.ts +207 -0
  12. package/api/market-api.ts +872 -0
  13. package/api/markets-api.ts +17 -18
  14. package/api/milestone-api.ts +258 -0
  15. package/api/milestones-api.ts +2 -3
  16. package/api/multivariate-api.ts +505 -0
  17. package/api/multivariate-collections-api.ts +7 -8
  18. package/api/order-groups-api.ts +454 -0
  19. package/api/orders-api.ts +941 -0
  20. package/api/portfolio-api.ts +206 -1357
  21. package/api/search-api.ts +183 -0
  22. package/api/series-api.ts +2 -3
  23. package/api/structured-targets-api.ts +44 -38
  24. package/api.ts +13 -8
  25. package/auth.ts +1 -1
  26. package/base.ts +8 -8
  27. package/common.ts +4 -4
  28. package/configuration.ts +4 -5
  29. package/dist/api/api-keys-api.d.ts +20 -20
  30. package/dist/api/api-keys-api.js +44 -32
  31. package/dist/api/collection-api.d.ts +242 -0
  32. package/dist/api/collection-api.js +467 -0
  33. package/dist/api/communications-api.d.ts +124 -60
  34. package/dist/api/communications-api.js +246 -102
  35. package/dist/api/events-api.d.ts +210 -36
  36. package/dist/api/events-api.js +370 -50
  37. package/dist/api/exchange-api.d.ts +57 -20
  38. package/dist/api/exchange-api.js +92 -23
  39. package/dist/api/fcm-api.d.ts +164 -0
  40. package/dist/api/fcm-api.js +313 -0
  41. package/dist/api/incentive-programs-api.d.ts +93 -0
  42. package/dist/api/incentive-programs-api.js +164 -0
  43. package/dist/api/live-data-api.d.ts +104 -0
  44. package/dist/api/live-data-api.js +205 -0
  45. package/dist/api/market-api.d.ts +417 -0
  46. package/dist/api/market-api.js +804 -0
  47. package/dist/api/milestone-api.d.ts +128 -0
  48. package/dist/api/milestone-api.js +249 -0
  49. package/dist/api/multivariate-api.d.ts +242 -0
  50. package/dist/api/multivariate-api.js +467 -0
  51. package/dist/api/order-groups-api.d.ts +198 -0
  52. package/dist/api/order-groups-api.js +421 -0
  53. package/dist/api/orders-api.d.ts +405 -0
  54. package/dist/api/orders-api.js +844 -0
  55. package/dist/api/portfolio-api.d.ts +83 -601
  56. package/dist/api/portfolio-api.js +154 -1203
  57. package/dist/api/search-api.d.ts +92 -0
  58. package/dist/api/search-api.js +182 -0
  59. package/dist/api/structured-targets-api.d.ts +32 -24
  60. package/dist/api/structured-targets-api.js +43 -35
  61. package/dist/api.d.ts +13 -8
  62. package/dist/api.js +13 -8
  63. package/dist/base.d.ts +4 -4
  64. package/dist/base.js +4 -4
  65. package/dist/common.d.ts +4 -4
  66. package/dist/common.js +4 -4
  67. package/dist/configuration.d.ts +4 -4
  68. package/dist/configuration.js +4 -4
  69. package/dist/esm/api/api-keys-api.d.ts +20 -20
  70. package/dist/esm/api/api-keys-api.js +45 -33
  71. package/dist/esm/api/collection-api.d.ts +242 -0
  72. package/dist/esm/api/collection-api.js +460 -0
  73. package/dist/esm/api/communications-api.d.ts +124 -60
  74. package/dist/esm/api/communications-api.js +247 -103
  75. package/dist/esm/api/events-api.d.ts +210 -36
  76. package/dist/esm/api/events-api.js +370 -50
  77. package/dist/esm/api/exchange-api.d.ts +57 -20
  78. package/dist/esm/api/exchange-api.js +93 -24
  79. package/dist/esm/api/fcm-api.d.ts +164 -0
  80. package/dist/esm/api/fcm-api.js +306 -0
  81. package/dist/esm/api/incentive-programs-api.d.ts +93 -0
  82. package/dist/esm/api/incentive-programs-api.js +157 -0
  83. package/dist/esm/api/live-data-api.d.ts +104 -0
  84. package/dist/esm/api/live-data-api.js +198 -0
  85. package/dist/esm/api/market-api.d.ts +417 -0
  86. package/dist/esm/api/market-api.js +797 -0
  87. package/dist/esm/api/milestone-api.d.ts +128 -0
  88. package/dist/esm/api/milestone-api.js +242 -0
  89. package/dist/esm/api/multivariate-api.d.ts +242 -0
  90. package/dist/esm/api/multivariate-api.js +460 -0
  91. package/dist/esm/api/order-groups-api.d.ts +198 -0
  92. package/dist/esm/api/order-groups-api.js +414 -0
  93. package/dist/esm/api/orders-api.d.ts +405 -0
  94. package/dist/esm/api/orders-api.js +837 -0
  95. package/dist/esm/api/portfolio-api.d.ts +83 -601
  96. package/dist/esm/api/portfolio-api.js +153 -1202
  97. package/dist/esm/api/search-api.d.ts +92 -0
  98. package/dist/esm/api/search-api.js +175 -0
  99. package/dist/esm/api/structured-targets-api.d.ts +32 -24
  100. package/dist/esm/api/structured-targets-api.js +44 -36
  101. package/dist/esm/api.d.ts +13 -8
  102. package/dist/esm/api.js +13 -8
  103. package/dist/esm/base.d.ts +4 -4
  104. package/dist/esm/base.js +4 -4
  105. package/dist/esm/common.d.ts +4 -4
  106. package/dist/esm/common.js +4 -4
  107. package/dist/esm/configuration.d.ts +4 -4
  108. package/dist/esm/configuration.js +4 -4
  109. package/dist/esm/index.d.ts +4 -4
  110. package/dist/esm/index.js +4 -4
  111. package/dist/esm/models/accept-quote-request.d.ts +13 -5
  112. package/dist/esm/models/accept-quote-request.js +8 -5
  113. package/dist/esm/models/amend-order-request.d.ts +27 -10
  114. package/dist/esm/models/amend-order-request.js +4 -4
  115. package/dist/esm/models/amend-order-response.d.ts +6 -5
  116. package/dist/esm/models/amend-order-response.js +4 -4
  117. package/dist/esm/models/announcement.d.ts +25 -13
  118. package/dist/esm/models/announcement.js +8 -8
  119. package/dist/esm/models/api-key.d.ts +4 -8
  120. package/dist/esm/models/api-key.js +4 -4
  121. package/dist/esm/models/associated-event.d.ts +33 -0
  122. package/dist/esm/models/associated-event.js +14 -0
  123. package/dist/esm/models/batch-cancel-orders-individual-response.d.ts +25 -0
  124. package/dist/esm/models/batch-cancel-orders-individual-response.js +14 -0
  125. package/dist/esm/models/batch-cancel-orders-request.d.ts +8 -5
  126. package/dist/esm/models/batch-cancel-orders-request.js +4 -4
  127. package/dist/esm/models/batch-cancel-orders-response.d.ts +6 -6
  128. package/dist/esm/models/batch-cancel-orders-response.js +4 -4
  129. package/dist/esm/models/batch-create-orders-individual-response.d.ts +18 -0
  130. package/dist/esm/models/batch-create-orders-individual-response.js +14 -0
  131. package/dist/esm/models/batch-create-orders-request.d.ts +4 -4
  132. package/dist/esm/models/batch-create-orders-request.js +4 -4
  133. package/dist/esm/models/batch-create-orders-response.d.ts +6 -6
  134. package/dist/esm/models/batch-create-orders-response.js +4 -4
  135. package/dist/esm/models/batch-get-market-candlesticks-response.d.ts +18 -0
  136. package/dist/esm/models/batch-get-market-candlesticks-response.js +14 -0
  137. package/dist/esm/models/bid-ask-distribution.d.ts +45 -0
  138. package/dist/esm/models/bid-ask-distribution.js +14 -0
  139. package/dist/esm/models/cancel-order-response.d.ts +6 -6
  140. package/dist/esm/models/cancel-order-response.js +4 -4
  141. package/dist/esm/models/create-api-key-request.d.ts +4 -4
  142. package/dist/esm/models/create-api-key-request.js +4 -4
  143. package/dist/esm/models/create-api-key-response.d.ts +4 -4
  144. package/dist/esm/models/create-api-key-response.js +4 -4
  145. package/dist/esm/models/create-market-in-multivariate-event-collection-request.d.ts +18 -0
  146. package/dist/esm/models/create-market-in-multivariate-event-collection-request.js +14 -0
  147. package/dist/esm/models/create-market-in-multivariate-event-collection-response.d.ts +21 -0
  148. package/dist/esm/models/create-market-in-multivariate-event-collection-response.js +14 -0
  149. package/dist/esm/models/create-order-group-request.d.ts +5 -5
  150. package/dist/esm/models/create-order-group-request.js +4 -4
  151. package/dist/esm/models/create-order-group-response.d.ts +5 -5
  152. package/dist/esm/models/create-order-group-response.js +4 -4
  153. package/dist/esm/models/create-order-request.d.ts +34 -9
  154. package/dist/esm/models/create-order-request.js +9 -4
  155. package/dist/esm/models/create-order-response.d.ts +5 -5
  156. package/dist/esm/models/create-order-response.js +4 -4
  157. package/dist/esm/models/create-quote-request.d.ts +19 -6
  158. package/dist/esm/models/create-quote-request.js +4 -4
  159. package/dist/esm/models/create-quote-response.d.ts +8 -6
  160. package/dist/esm/models/create-quote-response.js +4 -4
  161. package/dist/esm/models/create-rfqrequest.d.ts +28 -13
  162. package/dist/esm/models/create-rfqrequest.js +5 -8
  163. package/dist/esm/models/create-rfqresponse.d.ts +8 -6
  164. package/dist/esm/models/create-rfqresponse.js +4 -4
  165. package/dist/esm/models/daily-schedule.d.ts +12 -6
  166. package/dist/esm/models/daily-schedule.js +4 -4
  167. package/dist/esm/models/decrease-order-request.d.ts +6 -5
  168. package/dist/esm/models/decrease-order-request.js +4 -4
  169. package/dist/esm/models/decrease-order-response.d.ts +5 -5
  170. package/dist/esm/models/decrease-order-response.js +4 -4
  171. package/dist/esm/models/error-response.d.ts +20 -6
  172. package/dist/esm/models/error-response.js +4 -4
  173. package/dist/esm/models/event-data.d.ts +62 -0
  174. package/dist/esm/models/event-data.js +14 -0
  175. package/dist/esm/models/event-position.d.ts +24 -24
  176. package/dist/esm/models/event-position.js +4 -4
  177. package/dist/esm/models/exchange-status.d.ts +16 -6
  178. package/dist/esm/models/exchange-status.js +4 -4
  179. package/dist/esm/models/fill.d.ts +71 -12
  180. package/dist/esm/models/fill.js +4 -4
  181. package/dist/esm/models/forecast-percentiles-point.d.ts +30 -0
  182. package/dist/esm/models/forecast-percentiles-point.js +14 -0
  183. package/dist/esm/models/generate-api-key-request.d.ts +4 -4
  184. package/dist/esm/models/generate-api-key-request.js +4 -4
  185. package/dist/esm/models/generate-api-key-response.d.ts +4 -4
  186. package/dist/esm/models/generate-api-key-response.js +4 -4
  187. package/dist/esm/models/get-api-keys-response.d.ts +4 -4
  188. package/dist/esm/models/get-api-keys-response.js +4 -4
  189. package/dist/esm/models/get-balance-response.d.ts +14 -6
  190. package/dist/esm/models/get-balance-response.js +4 -4
  191. package/dist/esm/models/get-communications-idresponse.d.ts +6 -6
  192. package/dist/esm/models/get-communications-idresponse.js +4 -4
  193. package/dist/esm/models/get-event-candlesticks-response.d.ts +26 -0
  194. package/dist/esm/models/get-event-candlesticks-response.js +14 -0
  195. package/dist/esm/models/get-event-forecast-percentiles-history-response.d.ts +18 -0
  196. package/dist/esm/models/get-event-forecast-percentiles-history-response.js +14 -0
  197. package/dist/esm/models/get-event-metadata-response.d.ts +30 -5
  198. package/dist/esm/models/get-event-metadata-response.js +4 -4
  199. package/dist/esm/models/get-event-response.d.ts +10 -7
  200. package/dist/esm/models/get-event-response.js +4 -4
  201. package/dist/esm/models/get-events-candlesticks-response-events-inner.d.ts +30 -0
  202. package/dist/esm/models/get-events-candlesticks-response-events-inner.js +14 -0
  203. package/dist/esm/models/get-events-candlesticks-response.d.ts +18 -0
  204. package/dist/esm/models/get-events-candlesticks-response.js +14 -0
  205. package/dist/esm/models/get-events-response.d.ts +18 -7
  206. package/dist/esm/models/get-events-response.js +4 -4
  207. package/dist/esm/models/get-exchange-announcements-response.d.ts +8 -5
  208. package/dist/esm/models/get-exchange-announcements-response.js +4 -4
  209. package/dist/esm/models/get-exchange-schedule-response.d.ts +6 -6
  210. package/dist/esm/models/get-exchange-schedule-response.js +4 -4
  211. package/dist/esm/models/get-fills-response.d.ts +6 -6
  212. package/dist/esm/models/get-fills-response.js +4 -4
  213. package/dist/esm/models/get-filters-by-sports-response.d.ts +24 -0
  214. package/dist/esm/models/get-filters-by-sports-response.js +14 -0
  215. package/dist/esm/models/get-incentive-programs-response.d.ts +19 -0
  216. package/dist/esm/models/get-incentive-programs-response.js +14 -0
  217. package/dist/esm/models/get-live-data-response.d.ts +15 -0
  218. package/dist/esm/models/get-live-data-response.js +14 -0
  219. package/dist/esm/models/get-live-datas-response.d.ts +15 -0
  220. package/dist/esm/models/get-live-datas-response.js +14 -0
  221. package/dist/esm/models/get-market-candlesticks-response.d.ts +13 -6
  222. package/dist/esm/models/get-market-candlesticks-response.js +4 -4
  223. package/dist/esm/models/get-market-orderbook-response.d.ts +6 -6
  224. package/dist/esm/models/get-market-orderbook-response.js +4 -4
  225. package/dist/esm/models/get-market-response.d.ts +5 -5
  226. package/dist/esm/models/get-market-response.js +4 -4
  227. package/dist/esm/models/get-markets-response.d.ts +6 -6
  228. package/dist/esm/models/get-markets-response.js +4 -4
  229. package/dist/esm/models/get-milestone-response.d.ts +5 -5
  230. package/dist/esm/models/get-milestone-response.js +4 -4
  231. package/dist/esm/models/get-milestones-response.d.ts +12 -5
  232. package/dist/esm/models/get-milestones-response.js +4 -4
  233. package/dist/esm/models/get-multivariate-event-collection-lookup-history-response.d.ts +18 -0
  234. package/dist/esm/models/get-multivariate-event-collection-lookup-history-response.js +14 -0
  235. package/dist/esm/models/get-multivariate-event-collection-response.d.ts +5 -5
  236. package/dist/esm/models/get-multivariate-event-collection-response.js +4 -4
  237. package/dist/esm/models/get-multivariate-event-collections-response.d.ts +12 -5
  238. package/dist/esm/models/get-multivariate-event-collections-response.js +4 -4
  239. package/dist/esm/models/get-multivariate-events-response.d.ts +22 -0
  240. package/dist/esm/models/get-multivariate-events-response.js +14 -0
  241. package/dist/esm/models/get-order-group-response.d.ts +6 -6
  242. package/dist/esm/models/get-order-group-response.js +4 -4
  243. package/dist/esm/models/get-order-groups-response.d.ts +4 -5
  244. package/dist/esm/models/get-order-groups-response.js +4 -4
  245. package/dist/esm/models/get-order-queue-position-response.d.ts +8 -5
  246. package/dist/esm/models/get-order-queue-position-response.js +4 -4
  247. package/dist/esm/models/get-order-queue-positions-response.d.ts +18 -0
  248. package/dist/esm/models/get-order-queue-positions-response.js +14 -0
  249. package/dist/esm/models/get-order-response.d.ts +4 -4
  250. package/dist/esm/models/get-order-response.js +4 -4
  251. package/dist/esm/models/get-orders-response.d.ts +6 -6
  252. package/dist/esm/models/get-orders-response.js +4 -4
  253. package/dist/esm/models/get-portfolio-resting-order-total-value-response.d.ts +17 -0
  254. package/dist/esm/models/get-portfolio-resting-order-total-value-response.js +14 -0
  255. package/dist/esm/models/get-positions-response.d.ts +16 -7
  256. package/dist/esm/models/get-positions-response.js +4 -4
  257. package/dist/esm/models/get-quote-response.d.ts +5 -5
  258. package/dist/esm/models/get-quote-response.js +4 -4
  259. package/dist/esm/models/get-quotes-response.d.ts +12 -5
  260. package/dist/esm/models/get-quotes-response.js +4 -4
  261. package/dist/esm/models/get-rfqresponse.d.ts +5 -5
  262. package/dist/esm/models/get-rfqresponse.js +4 -4
  263. package/dist/esm/models/get-rfqs-response.d.ts +12 -5
  264. package/dist/esm/models/get-rfqs-response.js +4 -4
  265. package/dist/esm/models/get-series-fee-changes-response.d.ts +15 -0
  266. package/dist/esm/models/get-series-fee-changes-response.js +14 -0
  267. package/dist/esm/models/get-series-list-response.d.ts +15 -0
  268. package/dist/esm/models/get-series-list-response.js +14 -0
  269. package/dist/esm/models/get-series-response.d.ts +5 -5
  270. package/dist/esm/models/get-series-response.js +4 -4
  271. package/dist/esm/models/get-settlements-response.d.ts +5 -5
  272. package/dist/esm/models/get-settlements-response.js +4 -4
  273. package/dist/esm/models/get-structured-target-response.d.ts +4 -4
  274. package/dist/esm/models/get-structured-target-response.js +4 -4
  275. package/dist/esm/models/get-structured-targets-response.d.ts +8 -4
  276. package/dist/esm/models/get-structured-targets-response.js +4 -4
  277. package/dist/esm/models/get-tags-for-series-categories-response.d.ts +19 -0
  278. package/dist/esm/models/get-tags-for-series-categories-response.js +14 -0
  279. package/dist/esm/models/get-trades-response.d.ts +6 -6
  280. package/dist/esm/models/get-trades-response.js +4 -4
  281. package/dist/esm/models/get-user-data-timestamp-response.d.ts +8 -5
  282. package/dist/esm/models/get-user-data-timestamp-response.js +4 -4
  283. package/dist/esm/models/incentive-program.d.ts +54 -0
  284. package/dist/esm/models/incentive-program.js +17 -0
  285. package/dist/esm/models/index.d.ts +47 -17
  286. package/dist/esm/models/index.js +47 -17
  287. package/dist/esm/models/live-data.d.ts +27 -0
  288. package/dist/esm/models/live-data.js +14 -0
  289. package/dist/esm/models/lookup-point.d.ts +30 -0
  290. package/dist/esm/models/lookup-point.js +14 -0
  291. package/dist/esm/models/lookup-tickers-for-market-in-multivariate-event-collection-request.d.ts +18 -0
  292. package/dist/esm/models/lookup-tickers-for-market-in-multivariate-event-collection-request.js +14 -0
  293. package/dist/esm/models/lookup-tickers-for-market-in-multivariate-event-collection-response.d.ts +21 -0
  294. package/dist/esm/models/lookup-tickers-for-market-in-multivariate-event-collection-response.js +14 -0
  295. package/dist/esm/models/maintenance-window.d.ts +21 -0
  296. package/dist/esm/models/maintenance-window.js +14 -0
  297. package/dist/esm/models/market-candlestick.d.ts +30 -0
  298. package/dist/esm/models/market-candlestick.js +14 -0
  299. package/dist/esm/models/market-candlesticks-response.d.ts +22 -0
  300. package/dist/esm/models/market-candlesticks-response.js +14 -0
  301. package/dist/esm/models/market-metadata.d.ts +25 -0
  302. package/dist/esm/models/market-metadata.js +14 -0
  303. package/dist/esm/models/market-position.d.ts +61 -0
  304. package/dist/esm/models/market-position.js +14 -0
  305. package/dist/esm/models/market.d.ts +219 -26
  306. package/dist/esm/models/market.js +21 -4
  307. package/dist/esm/models/milestone.d.ts +54 -7
  308. package/dist/esm/models/milestone.js +4 -4
  309. package/dist/esm/models/multivariate-event-collection.d.ts +61 -9
  310. package/dist/esm/models/multivariate-event-collection.js +4 -4
  311. package/dist/esm/models/mve-selected-leg.d.ts +25 -0
  312. package/dist/esm/models/mve-selected-leg.js +14 -0
  313. package/dist/esm/models/order-group.d.ts +5 -5
  314. package/dist/esm/models/order-group.js +4 -4
  315. package/dist/esm/models/order-queue-position.d.ts +25 -0
  316. package/dist/esm/models/order-queue-position.js +14 -0
  317. package/dist/esm/models/order-status.d.ts +20 -0
  318. package/dist/esm/models/order-status.js +21 -0
  319. package/dist/esm/models/order.d.ts +75 -29
  320. package/dist/esm/models/order.js +4 -10
  321. package/dist/esm/models/orderbook.d.ts +17 -0
  322. package/dist/esm/models/orderbook.js +14 -0
  323. package/dist/esm/models/percentile-point.d.ts +29 -0
  324. package/dist/esm/models/percentile-point.js +14 -0
  325. package/dist/esm/models/price-distribution.d.ts +77 -0
  326. package/dist/esm/models/price-distribution.js +14 -0
  327. package/dist/esm/models/price-range.d.ts +25 -0
  328. package/dist/esm/models/price-range.js +14 -0
  329. package/dist/esm/models/quote.d.ts +116 -17
  330. package/dist/esm/models/quote.js +14 -7
  331. package/dist/esm/models/rfq.d.ts +65 -16
  332. package/dist/esm/models/rfq.js +7 -7
  333. package/dist/esm/models/schedule.d.ts +23 -0
  334. package/dist/esm/models/schedule.js +14 -0
  335. package/dist/esm/models/scope-list.d.ts +17 -0
  336. package/dist/esm/models/scope-list.js +14 -0
  337. package/dist/esm/models/self-trade-prevention-type.d.ts +19 -0
  338. package/dist/esm/models/self-trade-prevention-type.js +20 -0
  339. package/dist/esm/models/series-fee-change.d.ts +39 -0
  340. package/dist/esm/models/series-fee-change.js +18 -0
  341. package/dist/esm/models/series.d.ts +57 -9
  342. package/dist/esm/models/series.js +9 -5
  343. package/dist/esm/models/settlement-source.d.ts +21 -0
  344. package/dist/esm/models/settlement-source.js +14 -0
  345. package/dist/esm/models/settlement.d.ts +48 -12
  346. package/dist/esm/models/settlement.js +8 -6
  347. package/dist/esm/models/sport-filter-details.d.ts +24 -0
  348. package/dist/esm/models/sport-filter-details.js +14 -0
  349. package/dist/esm/models/structured-target.d.ts +28 -7
  350. package/dist/esm/models/structured-target.js +4 -4
  351. package/dist/esm/models/ticker-pair.d.ts +30 -0
  352. package/dist/esm/models/ticker-pair.js +17 -0
  353. package/dist/esm/models/trade.d.ts +45 -11
  354. package/dist/esm/models/trade.js +6 -6
  355. package/dist/esm/models/weekly-schedule.d.ts +50 -0
  356. package/dist/esm/models/weekly-schedule.js +14 -0
  357. package/dist/index.d.ts +4 -4
  358. package/dist/index.js +4 -4
  359. package/dist/models/accept-quote-request.d.ts +13 -5
  360. package/dist/models/accept-quote-request.js +9 -4
  361. package/dist/models/amend-order-request.d.ts +27 -10
  362. package/dist/models/amend-order-request.js +4 -4
  363. package/dist/models/amend-order-response.d.ts +6 -5
  364. package/dist/models/amend-order-response.js +4 -4
  365. package/dist/models/announcement.d.ts +25 -13
  366. package/dist/models/announcement.js +9 -9
  367. package/dist/models/api-key.d.ts +4 -8
  368. package/dist/models/api-key.js +4 -4
  369. package/dist/models/associated-event.d.ts +33 -0
  370. package/dist/models/associated-event.js +15 -0
  371. package/dist/models/batch-cancel-orders-individual-response.d.ts +25 -0
  372. package/dist/models/batch-cancel-orders-individual-response.js +15 -0
  373. package/dist/models/batch-cancel-orders-request.d.ts +8 -5
  374. package/dist/models/batch-cancel-orders-request.js +4 -4
  375. package/dist/models/batch-cancel-orders-response.d.ts +6 -6
  376. package/dist/models/batch-cancel-orders-response.js +4 -4
  377. package/dist/models/batch-create-orders-individual-response.d.ts +18 -0
  378. package/dist/models/batch-create-orders-individual-response.js +15 -0
  379. package/dist/models/batch-create-orders-request.d.ts +4 -4
  380. package/dist/models/batch-create-orders-request.js +4 -4
  381. package/dist/models/batch-create-orders-response.d.ts +6 -6
  382. package/dist/models/batch-create-orders-response.js +4 -4
  383. package/dist/models/batch-get-market-candlesticks-response.d.ts +18 -0
  384. package/dist/models/batch-get-market-candlesticks-response.js +15 -0
  385. package/dist/models/bid-ask-distribution.d.ts +45 -0
  386. package/dist/models/bid-ask-distribution.js +15 -0
  387. package/dist/models/cancel-order-response.d.ts +6 -6
  388. package/dist/models/cancel-order-response.js +4 -4
  389. package/dist/models/create-api-key-request.d.ts +4 -4
  390. package/dist/models/create-api-key-request.js +4 -4
  391. package/dist/models/create-api-key-response.d.ts +4 -4
  392. package/dist/models/create-api-key-response.js +4 -4
  393. package/dist/models/create-market-in-multivariate-event-collection-request.d.ts +18 -0
  394. package/dist/models/create-market-in-multivariate-event-collection-request.js +15 -0
  395. package/dist/models/create-market-in-multivariate-event-collection-response.d.ts +21 -0
  396. package/dist/models/create-market-in-multivariate-event-collection-response.js +15 -0
  397. package/dist/models/create-order-group-request.d.ts +5 -5
  398. package/dist/models/create-order-group-request.js +4 -4
  399. package/dist/models/create-order-group-response.d.ts +5 -5
  400. package/dist/models/create-order-group-response.js +4 -4
  401. package/dist/models/create-order-request.d.ts +34 -9
  402. package/dist/models/create-order-request.js +10 -5
  403. package/dist/models/create-order-response.d.ts +5 -5
  404. package/dist/models/create-order-response.js +4 -4
  405. package/dist/models/create-quote-request.d.ts +19 -6
  406. package/dist/models/create-quote-request.js +4 -4
  407. package/dist/models/create-quote-response.d.ts +8 -6
  408. package/dist/models/create-quote-response.js +4 -4
  409. package/dist/models/create-rfqrequest.d.ts +28 -13
  410. package/dist/models/create-rfqrequest.js +4 -9
  411. package/dist/models/create-rfqresponse.d.ts +8 -6
  412. package/dist/models/create-rfqresponse.js +4 -4
  413. package/dist/models/daily-schedule.d.ts +12 -6
  414. package/dist/models/daily-schedule.js +4 -4
  415. package/dist/models/decrease-order-request.d.ts +6 -5
  416. package/dist/models/decrease-order-request.js +4 -4
  417. package/dist/models/decrease-order-response.d.ts +5 -5
  418. package/dist/models/decrease-order-response.js +4 -4
  419. package/dist/models/error-response.d.ts +20 -6
  420. package/dist/models/error-response.js +4 -4
  421. package/dist/models/event-data.d.ts +62 -0
  422. package/dist/models/event-data.js +15 -0
  423. package/dist/models/event-position.d.ts +24 -24
  424. package/dist/models/event-position.js +4 -4
  425. package/dist/models/exchange-status.d.ts +16 -6
  426. package/dist/models/exchange-status.js +4 -4
  427. package/dist/models/fill.d.ts +71 -12
  428. package/dist/models/fill.js +4 -4
  429. package/dist/models/forecast-percentiles-point.d.ts +30 -0
  430. package/dist/models/forecast-percentiles-point.js +15 -0
  431. package/dist/models/generate-api-key-request.d.ts +4 -4
  432. package/dist/models/generate-api-key-request.js +4 -4
  433. package/dist/models/generate-api-key-response.d.ts +4 -4
  434. package/dist/models/generate-api-key-response.js +4 -4
  435. package/dist/models/get-api-keys-response.d.ts +4 -4
  436. package/dist/models/get-api-keys-response.js +4 -4
  437. package/dist/models/get-balance-response.d.ts +14 -6
  438. package/dist/models/get-balance-response.js +4 -4
  439. package/dist/models/get-communications-idresponse.d.ts +6 -6
  440. package/dist/models/get-communications-idresponse.js +4 -4
  441. package/dist/models/get-event-candlesticks-response.d.ts +26 -0
  442. package/dist/models/get-event-candlesticks-response.js +15 -0
  443. package/dist/models/get-event-forecast-percentiles-history-response.d.ts +18 -0
  444. package/dist/models/get-event-forecast-percentiles-history-response.js +15 -0
  445. package/dist/models/get-event-metadata-response.d.ts +30 -5
  446. package/dist/models/get-event-metadata-response.js +4 -4
  447. package/dist/models/get-event-response.d.ts +10 -7
  448. package/dist/models/get-event-response.js +4 -4
  449. package/dist/models/get-events-candlesticks-response-events-inner.d.ts +30 -0
  450. package/dist/models/get-events-candlesticks-response-events-inner.js +15 -0
  451. package/dist/models/get-events-candlesticks-response.d.ts +18 -0
  452. package/dist/models/get-events-candlesticks-response.js +15 -0
  453. package/dist/models/get-events-response.d.ts +18 -7
  454. package/dist/models/get-events-response.js +4 -4
  455. package/dist/models/get-exchange-announcements-response.d.ts +8 -5
  456. package/dist/models/get-exchange-announcements-response.js +4 -4
  457. package/dist/models/get-exchange-schedule-response.d.ts +6 -6
  458. package/dist/models/get-exchange-schedule-response.js +4 -4
  459. package/dist/models/get-fills-response.d.ts +6 -6
  460. package/dist/models/get-fills-response.js +4 -4
  461. package/dist/models/get-filters-by-sports-response.d.ts +24 -0
  462. package/dist/models/get-filters-by-sports-response.js +15 -0
  463. package/dist/models/get-incentive-programs-response.d.ts +19 -0
  464. package/dist/models/get-incentive-programs-response.js +15 -0
  465. package/dist/models/get-live-data-response.d.ts +15 -0
  466. package/dist/models/get-live-data-response.js +15 -0
  467. package/dist/models/get-live-datas-response.d.ts +15 -0
  468. package/dist/models/get-live-datas-response.js +15 -0
  469. package/dist/models/get-market-candlesticks-response.d.ts +13 -6
  470. package/dist/models/get-market-candlesticks-response.js +4 -4
  471. package/dist/models/get-market-orderbook-response.d.ts +6 -6
  472. package/dist/models/get-market-orderbook-response.js +4 -4
  473. package/dist/models/get-market-response.d.ts +5 -5
  474. package/dist/models/get-market-response.js +4 -4
  475. package/dist/models/get-markets-response.d.ts +6 -6
  476. package/dist/models/get-markets-response.js +4 -4
  477. package/dist/models/get-milestone-response.d.ts +5 -5
  478. package/dist/models/get-milestone-response.js +4 -4
  479. package/dist/models/get-milestones-response.d.ts +12 -5
  480. package/dist/models/get-milestones-response.js +4 -4
  481. package/dist/models/get-multivariate-event-collection-lookup-history-response.d.ts +18 -0
  482. package/dist/models/get-multivariate-event-collection-lookup-history-response.js +15 -0
  483. package/dist/models/get-multivariate-event-collection-response.d.ts +5 -5
  484. package/dist/models/get-multivariate-event-collection-response.js +4 -4
  485. package/dist/models/get-multivariate-event-collections-response.d.ts +12 -5
  486. package/dist/models/get-multivariate-event-collections-response.js +4 -4
  487. package/dist/models/get-multivariate-events-response.d.ts +22 -0
  488. package/dist/models/get-multivariate-events-response.js +15 -0
  489. package/dist/models/get-order-group-response.d.ts +6 -6
  490. package/dist/models/get-order-group-response.js +4 -4
  491. package/dist/models/get-order-groups-response.d.ts +4 -5
  492. package/dist/models/get-order-groups-response.js +4 -4
  493. package/dist/models/get-order-queue-position-response.d.ts +8 -5
  494. package/dist/models/get-order-queue-position-response.js +4 -4
  495. package/dist/models/get-order-queue-positions-response.d.ts +18 -0
  496. package/dist/models/get-order-queue-positions-response.js +15 -0
  497. package/dist/models/get-order-response.d.ts +4 -4
  498. package/dist/models/get-order-response.js +4 -4
  499. package/dist/models/get-orders-response.d.ts +6 -6
  500. package/dist/models/get-orders-response.js +4 -4
  501. package/dist/models/get-portfolio-resting-order-total-value-response.d.ts +17 -0
  502. package/dist/models/get-portfolio-resting-order-total-value-response.js +15 -0
  503. package/dist/models/get-positions-response.d.ts +16 -7
  504. package/dist/models/get-positions-response.js +4 -4
  505. package/dist/models/get-quote-response.d.ts +5 -5
  506. package/dist/models/get-quote-response.js +4 -4
  507. package/dist/models/get-quotes-response.d.ts +12 -5
  508. package/dist/models/get-quotes-response.js +4 -4
  509. package/dist/models/get-rfqresponse.d.ts +5 -5
  510. package/dist/models/get-rfqresponse.js +4 -4
  511. package/dist/models/get-rfqs-response.d.ts +12 -5
  512. package/dist/models/get-rfqs-response.js +4 -4
  513. package/dist/models/get-series-fee-changes-response.d.ts +15 -0
  514. package/dist/models/get-series-fee-changes-response.js +15 -0
  515. package/dist/models/get-series-list-response.d.ts +15 -0
  516. package/dist/models/get-series-list-response.js +15 -0
  517. package/dist/models/get-series-response.d.ts +5 -5
  518. package/dist/models/get-series-response.js +4 -4
  519. package/dist/models/get-settlements-response.d.ts +5 -5
  520. package/dist/models/get-settlements-response.js +4 -4
  521. package/dist/models/get-structured-target-response.d.ts +4 -4
  522. package/dist/models/get-structured-target-response.js +4 -4
  523. package/dist/models/get-structured-targets-response.d.ts +8 -4
  524. package/dist/models/get-structured-targets-response.js +4 -4
  525. package/dist/models/get-tags-for-series-categories-response.d.ts +19 -0
  526. package/dist/models/get-tags-for-series-categories-response.js +15 -0
  527. package/dist/models/get-trades-response.d.ts +6 -6
  528. package/dist/models/get-trades-response.js +4 -4
  529. package/dist/models/get-user-data-timestamp-response.d.ts +8 -5
  530. package/dist/models/get-user-data-timestamp-response.js +4 -4
  531. package/dist/models/incentive-program.d.ts +54 -0
  532. package/dist/models/incentive-program.js +20 -0
  533. package/dist/models/index.d.ts +47 -17
  534. package/dist/models/index.js +47 -17
  535. package/dist/models/live-data.d.ts +27 -0
  536. package/dist/models/live-data.js +15 -0
  537. package/dist/models/lookup-point.d.ts +30 -0
  538. package/dist/models/lookup-point.js +15 -0
  539. package/dist/models/lookup-tickers-for-market-in-multivariate-event-collection-request.d.ts +18 -0
  540. package/dist/models/lookup-tickers-for-market-in-multivariate-event-collection-request.js +15 -0
  541. package/dist/models/lookup-tickers-for-market-in-multivariate-event-collection-response.d.ts +21 -0
  542. package/dist/models/lookup-tickers-for-market-in-multivariate-event-collection-response.js +15 -0
  543. package/dist/models/maintenance-window.d.ts +21 -0
  544. package/dist/models/maintenance-window.js +15 -0
  545. package/dist/models/market-candlestick.d.ts +30 -0
  546. package/dist/models/market-candlestick.js +15 -0
  547. package/dist/models/market-candlesticks-response.d.ts +22 -0
  548. package/dist/models/market-candlesticks-response.js +15 -0
  549. package/dist/models/market-metadata.d.ts +25 -0
  550. package/dist/models/market-metadata.js +15 -0
  551. package/dist/models/market-position.d.ts +61 -0
  552. package/dist/models/market-position.js +15 -0
  553. package/dist/models/market.d.ts +219 -26
  554. package/dist/models/market.js +22 -5
  555. package/dist/models/milestone.d.ts +54 -7
  556. package/dist/models/milestone.js +4 -4
  557. package/dist/models/multivariate-event-collection.d.ts +61 -9
  558. package/dist/models/multivariate-event-collection.js +4 -4
  559. package/dist/models/mve-selected-leg.d.ts +25 -0
  560. package/dist/models/mve-selected-leg.js +15 -0
  561. package/dist/models/order-group.d.ts +5 -5
  562. package/dist/models/order-group.js +4 -4
  563. package/dist/models/order-queue-position.d.ts +25 -0
  564. package/dist/models/order-queue-position.js +15 -0
  565. package/dist/models/order-status.d.ts +20 -0
  566. package/dist/models/order-status.js +24 -0
  567. package/dist/models/order.d.ts +75 -29
  568. package/dist/models/order.js +5 -11
  569. package/dist/models/orderbook.d.ts +17 -0
  570. package/dist/models/orderbook.js +15 -0
  571. package/dist/models/percentile-point.d.ts +29 -0
  572. package/dist/models/percentile-point.js +15 -0
  573. package/dist/models/price-distribution.d.ts +77 -0
  574. package/dist/models/price-distribution.js +15 -0
  575. package/dist/models/price-range.d.ts +25 -0
  576. package/dist/models/price-range.js +15 -0
  577. package/dist/models/quote.d.ts +116 -17
  578. package/dist/models/quote.js +15 -8
  579. package/dist/models/rfq.d.ts +65 -16
  580. package/dist/models/rfq.js +8 -8
  581. package/dist/models/schedule.d.ts +23 -0
  582. package/dist/models/schedule.js +15 -0
  583. package/dist/models/scope-list.d.ts +17 -0
  584. package/dist/models/scope-list.js +15 -0
  585. package/dist/models/self-trade-prevention-type.d.ts +19 -0
  586. package/dist/models/self-trade-prevention-type.js +23 -0
  587. package/dist/models/series-fee-change.d.ts +39 -0
  588. package/dist/models/series-fee-change.js +21 -0
  589. package/dist/models/series.d.ts +57 -9
  590. package/dist/models/series.js +10 -4
  591. package/dist/models/settlement-source.d.ts +21 -0
  592. package/dist/models/settlement-source.js +15 -0
  593. package/dist/models/settlement.d.ts +48 -12
  594. package/dist/models/settlement.js +9 -7
  595. package/dist/models/sport-filter-details.d.ts +24 -0
  596. package/dist/models/sport-filter-details.js +15 -0
  597. package/dist/models/structured-target.d.ts +28 -7
  598. package/dist/models/structured-target.js +4 -4
  599. package/dist/models/ticker-pair.d.ts +30 -0
  600. package/dist/models/ticker-pair.js +20 -0
  601. package/dist/models/trade.d.ts +45 -11
  602. package/dist/models/trade.js +6 -6
  603. package/dist/models/weekly-schedule.d.ts +50 -0
  604. package/dist/models/weekly-schedule.js +15 -0
  605. package/docs/AcceptQuoteRequest.md +2 -2
  606. package/docs/AmendOrderRequest.md +12 -8
  607. package/docs/AmendOrderResponse.md +3 -1
  608. package/docs/Announcement.md +6 -6
  609. package/docs/ApiKey.md +0 -2
  610. package/docs/ApiKeysApi.md +16 -106
  611. package/docs/AssociatedEvent.md +28 -0
  612. package/docs/BatchCancelOrdersIndividualResponse.md +26 -0
  613. package/docs/BatchCancelOrdersRequest.md +2 -2
  614. package/docs/BatchCancelOrdersResponse.md +2 -2
  615. package/docs/BatchCreateOrdersIndividualResponse.md +24 -0
  616. package/docs/BatchCreateOrdersResponse.md +2 -2
  617. package/docs/BatchGetMarketCandlesticksResponse.md +20 -0
  618. package/docs/BidAskDistribution.md +34 -0
  619. package/docs/CancelOrderResponse.md +2 -2
  620. package/docs/CollectionApi.md +318 -0
  621. package/docs/CommunicationsApi.md +46 -271
  622. package/docs/CreateMarketInMultivariateEventCollectionRequest.md +20 -0
  623. package/docs/CreateMarketInMultivariateEventCollectionResponse.md +22 -0
  624. package/docs/CreateOrderGroupRequest.md +1 -1
  625. package/docs/CreateOrderGroupResponse.md +1 -1
  626. package/docs/CreateOrderRequest.md +18 -6
  627. package/docs/CreateOrderResponse.md +1 -1
  628. package/docs/CreateQuoteRequest.md +7 -5
  629. package/docs/CreateQuoteResponse.md +2 -2
  630. package/docs/CreateRFQRequest.md +12 -8
  631. package/docs/CreateRFQResponse.md +2 -2
  632. package/docs/DailySchedule.md +2 -2
  633. package/docs/DecreaseOrderRequest.md +3 -1
  634. package/docs/DecreaseOrderResponse.md +1 -1
  635. package/docs/ErrorResponse.md +8 -2
  636. package/docs/EventData.md +42 -0
  637. package/docs/EventPosition.md +11 -11
  638. package/docs/EventsApi.md +133 -93
  639. package/docs/ExchangeApi.md +42 -83
  640. package/docs/ExchangeStatus.md +4 -2
  641. package/docs/FcmApi.md +92 -0
  642. package/docs/Fill.md +25 -9
  643. package/docs/ForecastPercentilesPoint.md +26 -0
  644. package/docs/GetBalanceResponse.md +5 -1
  645. package/docs/GetCommunicationsIDResponse.md +1 -1
  646. package/docs/GetEventCandlesticksResponse.md +24 -0
  647. package/docs/GetEventForecastPercentilesHistoryResponse.md +20 -0
  648. package/docs/GetEventMetadataResponse.md +12 -2
  649. package/docs/GetEventResponse.md +2 -2
  650. package/docs/GetEventsCandlesticksResponse.md +20 -0
  651. package/docs/GetEventsCandlesticksResponseEventsInner.md +26 -0
  652. package/docs/GetEventsResponse.md +4 -2
  653. package/docs/GetExchangeAnnouncementsResponse.md +1 -1
  654. package/docs/GetExchangeScheduleResponse.md +1 -1
  655. package/docs/GetFillsResponse.md +2 -2
  656. package/docs/GetFiltersBySportsResponse.md +22 -0
  657. package/docs/GetIncentiveProgramsResponse.md +22 -0
  658. package/docs/GetLiveDataResponse.md +20 -0
  659. package/docs/GetLiveDatasResponse.md +20 -0
  660. package/docs/GetMarketCandlesticksResponse.md +3 -1
  661. package/docs/GetMarketOrderbookResponse.md +1 -1
  662. package/docs/GetMarketResponse.md +1 -1
  663. package/docs/GetMarketsResponse.md +2 -2
  664. package/docs/GetMilestoneResponse.md +1 -1
  665. package/docs/GetMilestonesResponse.md +3 -1
  666. package/docs/GetMultivariateEventCollectionLookupHistoryResponse.md +20 -0
  667. package/docs/GetMultivariateEventCollectionResponse.md +2 -2
  668. package/docs/GetMultivariateEventCollectionsResponse.md +4 -2
  669. package/docs/GetMultivariateEventsResponse.md +22 -0
  670. package/docs/GetOrderGroupResponse.md +2 -2
  671. package/docs/GetOrderGroupsResponse.md +0 -2
  672. package/docs/GetOrderQueuePositionResponse.md +1 -1
  673. package/docs/GetOrderQueuePositionsResponse.md +20 -0
  674. package/docs/GetOrdersResponse.md +2 -2
  675. package/docs/GetPortfolioRestingOrderTotalValueResponse.md +20 -0
  676. package/docs/GetPositionsResponse.md +4 -4
  677. package/docs/GetQuoteResponse.md +1 -1
  678. package/docs/GetQuotesResponse.md +3 -1
  679. package/docs/GetRFQResponse.md +1 -1
  680. package/docs/GetRFQsResponse.md +3 -1
  681. package/docs/GetSeriesFeeChangesResponse.md +20 -0
  682. package/docs/GetSeriesListResponse.md +20 -0
  683. package/docs/GetSeriesResponse.md +1 -1
  684. package/docs/GetSettlementsResponse.md +1 -1
  685. package/docs/GetStructuredTargetsResponse.md +2 -0
  686. package/docs/GetTagsForSeriesCategoriesResponse.md +20 -0
  687. package/docs/GetTradesResponse.md +2 -2
  688. package/docs/GetUserDataTimestampResponse.md +2 -2
  689. package/docs/IncentiveProgram.md +36 -0
  690. package/docs/IncentiveProgramsApi.md +44 -0
  691. package/docs/LiveData.md +24 -0
  692. package/docs/LiveDataApi.md +75 -0
  693. package/docs/LookupPoint.md +26 -0
  694. package/docs/LookupTickersForMarketInMultivariateEventCollectionRequest.md +20 -0
  695. package/docs/LookupTickersForMarketInMultivariateEventCollectionResponse.md +22 -0
  696. package/docs/MaintenanceWindow.md +22 -0
  697. package/docs/Market.md +105 -21
  698. package/docs/MarketApi.md +311 -0
  699. package/docs/MarketCandlestick.md +30 -0
  700. package/docs/MarketCandlesticksResponse.md +22 -0
  701. package/docs/MarketMetadata.md +24 -0
  702. package/docs/MarketPosition.md +42 -0
  703. package/docs/MarketsApi.md +3 -4
  704. package/docs/Milestone.md +23 -5
  705. package/docs/MilestoneApi.md +85 -0
  706. package/docs/MilestonesApi.md +0 -1
  707. package/docs/MultivariateApi.md +188 -0
  708. package/docs/MultivariateCollectionsApi.md +0 -1
  709. package/docs/MultivariateEventCollection.md +26 -6
  710. package/docs/MveSelectedLeg.md +24 -0
  711. package/docs/Order.md +42 -18
  712. package/docs/OrderGroup.md +1 -1
  713. package/docs/OrderGroupsApi.md +180 -0
  714. package/docs/OrderQueuePosition.md +24 -0
  715. package/docs/OrderStatus.md +13 -0
  716. package/docs/Orderbook.md +26 -0
  717. package/docs/OrdersApi.md +372 -0
  718. package/docs/PercentilePoint.md +26 -0
  719. package/docs/PortfolioApi.md +27 -1062
  720. package/docs/PriceDistribution.md +50 -0
  721. package/docs/PriceRange.md +24 -0
  722. package/docs/Quote.md +48 -16
  723. package/docs/RFQ.md +26 -14
  724. package/docs/Schedule.md +22 -0
  725. package/docs/ScopeList.md +20 -0
  726. package/docs/SearchApi.md +69 -0
  727. package/docs/SelfTradePreventionType.md +11 -0
  728. package/docs/Series.md +21 -5
  729. package/docs/SeriesApi.md +0 -1
  730. package/docs/SeriesFeeChange.md +28 -0
  731. package/docs/Settlement.md +15 -7
  732. package/docs/SettlementSource.md +22 -0
  733. package/docs/SportFilterDetails.md +22 -0
  734. package/docs/StructuredTarget.md +12 -6
  735. package/docs/StructuredTargetsApi.md +11 -57
  736. package/docs/TickerPair.md +24 -0
  737. package/docs/Trade.md +14 -6
  738. package/docs/WeeklySchedule.md +36 -0
  739. package/index.ts +4 -4
  740. package/models/accept-quote-request.ts +16 -5
  741. package/models/amend-order-request.ts +27 -10
  742. package/models/amend-order-response.ts +6 -5
  743. package/models/announcement.ts +26 -14
  744. package/models/api-key.ts +4 -8
  745. package/models/associated-event.ts +39 -0
  746. package/models/batch-cancel-orders-individual-response.ts +35 -0
  747. package/models/batch-cancel-orders-request.ts +8 -5
  748. package/models/batch-cancel-orders-response-responses-inner.ts +0 -1
  749. package/models/batch-cancel-orders-response.ts +6 -6
  750. package/models/batch-create-orders-individual-response.ts +28 -0
  751. package/models/batch-create-orders-request.ts +4 -4
  752. package/models/batch-create-orders-response-responses-inner.ts +0 -1
  753. package/models/batch-create-orders-response.ts +6 -6
  754. package/models/batch-get-market-candlesticks-response.ts +26 -0
  755. package/models/bid-ask-distribution.ts +51 -0
  756. package/models/cancel-order-response.ts +6 -6
  757. package/models/candlestick.ts +0 -1
  758. package/models/create-api-key-request.ts +4 -4
  759. package/models/create-api-key-response.ts +4 -4
  760. package/models/create-market-in-multivariate-event-collection-request.ts +26 -0
  761. package/models/create-market-in-multivariate-event-collection-response.ts +27 -0
  762. package/models/create-order-group-request.ts +5 -5
  763. package/models/create-order-group-response.ts +5 -5
  764. package/models/create-order-request.ts +37 -9
  765. package/models/create-order-response.ts +5 -5
  766. package/models/create-quote-request.ts +19 -6
  767. package/models/create-quote-response.ts +8 -8
  768. package/models/create-rfqrequest.ts +28 -16
  769. package/models/create-rfqresponse.ts +8 -8
  770. package/models/daily-schedule.ts +12 -6
  771. package/models/decrease-order-request.ts +6 -5
  772. package/models/decrease-order-response.ts +5 -5
  773. package/models/error-response-error.ts +0 -1
  774. package/models/error-response.ts +20 -8
  775. package/models/event-data.ts +70 -0
  776. package/models/event-position.ts +24 -24
  777. package/models/event.ts +0 -2
  778. package/models/exchange-status.ts +16 -6
  779. package/models/fill.ts +71 -12
  780. package/models/forecast-percentiles-point.ts +38 -0
  781. package/models/generate-api-key-request.ts +4 -4
  782. package/models/generate-api-key-response.ts +4 -4
  783. package/models/get-api-keys-response.ts +4 -4
  784. package/models/get-balance-response.ts +14 -6
  785. package/models/get-communications-idresponse.ts +6 -6
  786. package/models/get-event-candlesticks-response.ts +34 -0
  787. package/models/get-event-forecast-percentiles-history-response.ts +26 -0
  788. package/models/get-event-metadata-response.ts +34 -5
  789. package/models/get-event-response.ts +10 -7
  790. package/models/get-events-candlesticks-response-events-inner.ts +38 -0
  791. package/models/get-events-candlesticks-response.ts +26 -0
  792. package/models/get-events-response.ts +20 -7
  793. package/models/get-exchange-announcements-response.ts +8 -5
  794. package/models/get-exchange-schedule-response-schedule.ts +0 -1
  795. package/models/get-exchange-schedule-response.ts +6 -6
  796. package/models/get-fills-response.ts +6 -6
  797. package/models/get-filters-by-sports-response.ts +30 -0
  798. package/models/get-incentive-programs-response.ts +27 -0
  799. package/models/get-live-data-response.ts +23 -0
  800. package/models/get-live-datas-response.ts +23 -0
  801. package/models/get-market-candlesticks-response.ts +13 -6
  802. package/models/get-market-orderbook-response-orderbook.ts +0 -1
  803. package/models/get-market-orderbook-response.ts +6 -6
  804. package/models/get-market-response.ts +5 -5
  805. package/models/get-markets-response.ts +6 -6
  806. package/models/get-milestone-response.ts +5 -5
  807. package/models/get-milestones-response.ts +12 -5
  808. package/models/get-multivariate-event-collection-lookup-history-response.ts +26 -0
  809. package/models/get-multivariate-event-collection-response.ts +5 -5
  810. package/models/get-multivariate-event-collections-response.ts +12 -5
  811. package/models/get-multivariate-events-response.ts +30 -0
  812. package/models/get-order-group-response.ts +6 -6
  813. package/models/get-order-groups-response.ts +4 -5
  814. package/models/get-order-queue-position-response.ts +8 -5
  815. package/models/get-order-queue-positions-response.ts +26 -0
  816. package/models/get-order-response.ts +4 -4
  817. package/models/get-orders-response.ts +6 -6
  818. package/models/get-portfolio-resting-order-total-value-response.ts +23 -0
  819. package/models/get-positions-response.ts +16 -7
  820. package/models/get-queue-positions-request.ts +0 -1
  821. package/models/get-queue-positions-response.ts +0 -1
  822. package/models/get-quote-response.ts +5 -5
  823. package/models/get-quotes-response.ts +12 -5
  824. package/models/get-rfqresponse.ts +5 -5
  825. package/models/get-rfqs-response.ts +12 -5
  826. package/models/get-series-by-ticker-response.ts +0 -1
  827. package/models/get-series-fee-changes-response.ts +23 -0
  828. package/models/get-series-list-response.ts +23 -0
  829. package/models/get-series-response.ts +5 -5
  830. package/models/get-settlements-response.ts +5 -5
  831. package/models/get-structured-target-response.ts +4 -4
  832. package/models/get-structured-targets-response.ts +8 -4
  833. package/models/get-tags-for-series-categories-response.ts +23 -0
  834. package/models/get-total-resting-order-value-response.ts +0 -1
  835. package/models/get-trades-response.ts +6 -6
  836. package/models/get-user-data-timestamp-response.ts +8 -5
  837. package/models/incentive-program.ts +63 -0
  838. package/models/index.ts +47 -17
  839. package/models/live-data.ts +31 -0
  840. package/models/lookup-bundle-request-bundle-inner.ts +0 -1
  841. package/models/lookup-bundle-request.ts +0 -1
  842. package/models/lookup-bundle-response.ts +0 -1
  843. package/models/lookup-point.ts +38 -0
  844. package/models/lookup-tickers-for-market-in-multivariate-event-collection-request.ts +26 -0
  845. package/models/lookup-tickers-for-market-in-multivariate-event-collection-response.ts +27 -0
  846. package/models/maintenance-window.ts +27 -0
  847. package/models/market-candlestick.ts +40 -0
  848. package/models/market-candlesticks-response.ts +30 -0
  849. package/models/market-metadata.ts +31 -0
  850. package/models/market-position.ts +67 -0
  851. package/models/market.ts +226 -26
  852. package/models/milestone.ts +52 -7
  853. package/models/multivariate-event-collection-events-inner.ts +0 -1
  854. package/models/multivariate-event-collection.ts +61 -9
  855. package/models/mve-selected-leg.ts +31 -0
  856. package/models/order-group.ts +5 -5
  857. package/models/order-queue-position.ts +31 -0
  858. package/models/order-status.ts +30 -0
  859. package/models/order.ts +79 -30
  860. package/models/orderbook-level.ts +0 -1
  861. package/models/orderbook.ts +23 -0
  862. package/models/percentile-point.ts +35 -0
  863. package/models/position.ts +0 -2
  864. package/models/price-distribution.ts +83 -0
  865. package/models/price-range.ts +31 -0
  866. package/models/quote.ts +117 -17
  867. package/models/rfq.ts +67 -16
  868. package/models/schedule.ts +33 -0
  869. package/models/scope-list.ts +23 -0
  870. package/models/self-trade-prevention-type.ts +29 -0
  871. package/models/series-fee-change.ts +48 -0
  872. package/models/series.ts +62 -9
  873. package/models/settlement-source.ts +27 -0
  874. package/models/settlement.ts +49 -13
  875. package/models/sport-filter-details.ts +30 -0
  876. package/models/structured-target.ts +28 -7
  877. package/models/ticker-pair.ts +39 -0
  878. package/models/trade.ts +45 -11
  879. package/models/weekly-schedule.ts +58 -0
  880. package/package.json +1 -1
@@ -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.0.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
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.PortfolioApi = exports.PortfolioApiFactory = exports.PortfolioApiFp = exports.PortfolioApiAxiosParamCreator = void 0;
25
+ exports.GetPositionsSettlementStatusEnum = exports.PortfolioApi = exports.PortfolioApiFactory = exports.PortfolioApiFp = exports.PortfolioApiAxiosParamCreator = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // URLSearchParams not necessarily used
28
28
  // @ts-ignore
@@ -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,19 @@ 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 {GetPositionsSettlementStatusEnum} [settlementStatus] Settlement status of the markets to return. Defaults to unsettled.
164
+ * @param {string} [ticker] Filter by market ticker
165
+ * @param {string} [eventTicker] Event ticker of desired positions. Multiple event tickers can be provided as a comma-separated list (maximum 10).
460
166
  * @param {*} [options] Override http request option.
461
167
  * @throws {RequiredError}
462
168
  */
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`;
169
+ getPositions: (cursor_1, limit_1, countFilter_1, settlementStatus_1, ticker_1, eventTicker_1, ...args_1) => __awaiter(this, [cursor_1, limit_1, countFilter_1, settlementStatus_1, ticker_1, eventTicker_1, ...args_1], void 0, function* (cursor, limit, countFilter, settlementStatus, ticker, eventTicker, options = {}) {
170
+ const localVarPath = `/portfolio/positions`;
465
171
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
466
172
  const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
467
173
  let baseOptions;
@@ -471,50 +177,30 @@ const PortfolioApiAxiosParamCreator = function (configuration) {
471
177
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
472
178
  const localVarHeaderParameter = {};
473
179
  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;
180
+ // authentication kalshiAccessSignature required
181
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "KALSHI-ACCESS-SIGNATURE", configuration);
182
+ // authentication kalshiAccessKey required
183
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "KALSHI-ACCESS-KEY", configuration);
184
+ // authentication kalshiAccessTimestamp required
185
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "KALSHI-ACCESS-TIMESTAMP", configuration);
186
+ if (cursor !== undefined) {
187
+ localVarQueryParameter['cursor'] = cursor;
479
188
  }
480
189
  if (limit !== undefined) {
481
190
  localVarQueryParameter['limit'] = limit;
482
191
  }
483
- if (cursor !== undefined) {
484
- localVarQueryParameter['cursor'] = cursor;
192
+ if (countFilter !== undefined) {
193
+ localVarQueryParameter['count_filter'] = countFilter;
485
194
  }
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;
195
+ if (settlementStatus !== undefined) {
196
+ localVarQueryParameter['settlement_status'] = settlementStatus;
197
+ }
198
+ if (ticker !== undefined) {
199
+ localVarQueryParameter['ticker'] = ticker;
200
+ }
201
+ if (eventTicker !== undefined) {
202
+ localVarQueryParameter['event_ticker'] = eventTicker;
511
203
  }
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
204
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
519
205
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
520
206
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -524,20 +210,19 @@ const PortfolioApiAxiosParamCreator = function (configuration) {
524
210
  };
525
211
  }),
526
212
  /**
527
- * Get orders for the logged-in user
528
- * @summary Get Orders
213
+ * Endpoint for getting the member\'s settlements historical track.
214
+ * @summary Get Settlements
215
+ * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
216
+ * @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
217
  * @param {string} [ticker] Filter by market ticker
530
- * @param {string} [eventTicker] Filter by event ticker
218
+ * @param {string} [eventTicker] Event ticker of desired positions. Multiple event tickers can be provided as a comma-separated list (maximum 10).
531
219
  * @param {number} [minTs] Filter items after this Unix timestamp
532
220
  * @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
221
  * @param {*} [options] Override http request option.
537
222
  * @throws {RequiredError}
538
223
  */
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`;
224
+ 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 = {}) {
225
+ const localVarPath = `/portfolio/settlements`;
541
226
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
542
227
  const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
543
228
  let baseOptions;
@@ -547,9 +232,18 @@ const PortfolioApiAxiosParamCreator = function (configuration) {
547
232
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
548
233
  const localVarHeaderParameter = {};
549
234
  const localVarQueryParameter = {};
550
- // authentication bearerAuth required
551
- // http bearer authentication required
552
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
235
+ // authentication kalshiAccessSignature required
236
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "KALSHI-ACCESS-SIGNATURE", configuration);
237
+ // authentication kalshiAccessKey required
238
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "KALSHI-ACCESS-KEY", configuration);
239
+ // authentication kalshiAccessTimestamp required
240
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "KALSHI-ACCESS-TIMESTAMP", configuration);
241
+ if (limit !== undefined) {
242
+ localVarQueryParameter['limit'] = limit;
243
+ }
244
+ if (cursor !== undefined) {
245
+ localVarQueryParameter['cursor'] = cursor;
246
+ }
553
247
  if (ticker !== undefined) {
554
248
  localVarQueryParameter['ticker'] = ticker;
555
249
  }
@@ -562,15 +256,6 @@ const PortfolioApiAxiosParamCreator = function (configuration) {
562
256
  if (maxTs !== undefined) {
563
257
  localVarQueryParameter['max_ts'] = maxTs;
564
258
  }
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
259
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
575
260
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
576
261
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -579,329 +264,18 @@ const PortfolioApiAxiosParamCreator = function (configuration) {
579
264
  options: localVarRequestOptions,
580
265
  };
581
266
  }),
267
+ };
268
+ };
269
+ exports.PortfolioApiAxiosParamCreator = PortfolioApiAxiosParamCreator;
270
+ /**
271
+ * PortfolioApi - functional programming interface
272
+ */
273
+ const PortfolioApiFp = function (configuration) {
274
+ const localVarAxiosParamCreator = (0, exports.PortfolioApiAxiosParamCreator)(configuration);
275
+ return {
582
276
  /**
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
277
+ * Endpoint for getting the balance and portfolio value of a member. Both values are returned in cents.
278
+ * @summary Get Balance
905
279
  * @param {*} [options] Override http request option.
906
280
  * @throws {RequiredError}
907
281
  */
@@ -915,7 +289,7 @@ const PortfolioApiFp = function (configuration) {
915
289
  });
916
290
  },
917
291
  /**
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.
292
+ * Endpoint for getting all fills for the member. A fill is when a trade you have is matched.
919
293
  * @summary Get Fills
920
294
  * @param {string} [ticker] Filter by market ticker
921
295
  * @param {string} [orderId] Filter by order ID
@@ -936,173 +310,57 @@ const PortfolioApiFp = function (configuration) {
936
310
  });
937
311
  },
938
312
  /**
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.
313
+ * 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.
314
+ * @summary Get Total Resting Order Value
1014
315
  * @param {*} [options] Override http request option.
1015
316
  * @throws {RequiredError}
1016
317
  */
1017
- getOrders(ticker, eventTicker, minTs, maxTs, status, limit, cursor, options) {
318
+ getPortfolioRestingOrderTotalValue(options) {
1018
319
  return __awaiter(this, void 0, void 0, function* () {
1019
320
  var _a;
1020
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrders(ticker, eventTicker, minTs, maxTs, status, limit, cursor, options);
321
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPortfolioRestingOrderTotalValue(options);
1021
322
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1022
323
  const localVarOperationServerBasePath = undefined;
1023
324
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1024
325
  });
1025
326
  },
1026
327
  /**
1027
- * Get positions for the logged-in user
328
+ * 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
329
  * @summary Get Positions
330
+ * @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.
331
+ * @param {number} [limit] Parameter to specify the number of results per page. Defaults to 100.
332
+ * @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
333
+ * @param {GetPositionsSettlementStatusEnum} [settlementStatus] Settlement status of the markets to return. Defaults to unsettled.
1029
334
  * @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.
335
+ * @param {string} [eventTicker] Event ticker of desired positions. Multiple event tickers can be provided as a comma-separated list (maximum 10).
1035
336
  * @param {*} [options] Override http request option.
1036
337
  * @throws {RequiredError}
1037
338
  */
1038
- getPositions(ticker, eventTicker, countDown, countUp, limit, cursor, options) {
339
+ getPositions(cursor, limit, countFilter, settlementStatus, ticker, eventTicker, options) {
1039
340
  return __awaiter(this, void 0, void 0, function* () {
1040
341
  var _a;
1041
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPositions(ticker, eventTicker, countDown, countUp, limit, cursor, options);
342
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPositions(cursor, limit, countFilter, settlementStatus, ticker, eventTicker, options);
1042
343
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1043
344
  const localVarOperationServerBasePath = undefined;
1044
345
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1045
346
  });
1046
347
  },
1047
348
  /**
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
349
+ * Endpoint for getting the member\'s settlements historical track.
1065
350
  * @summary Get Settlements
1066
351
  * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
1067
352
  * @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.
353
+ * @param {string} [ticker] Filter by market ticker
354
+ * @param {string} [eventTicker] Event ticker of desired positions. Multiple event tickers can be provided as a comma-separated list (maximum 10).
355
+ * @param {number} [minTs] Filter items after this Unix timestamp
356
+ * @param {number} [maxTs] Filter items before this Unix timestamp
1068
357
  * @param {*} [options] Override http request option.
1069
358
  * @throws {RequiredError}
1070
359
  */
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) {
360
+ getSettlements(limit, cursor, ticker, eventTicker, minTs, maxTs, options) {
1103
361
  return __awaiter(this, void 0, void 0, function* () {
1104
362
  var _a;
1105
- const localVarAxiosArgs = yield localVarAxiosParamCreator.resetOrderGroup(orderGroupId, options);
363
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSettlements(limit, cursor, ticker, eventTicker, minTs, maxTs, options);
1106
364
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1107
365
  const localVarOperationServerBasePath = undefined;
1108
366
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1118,89 +376,7 @@ const PortfolioApiFactory = function (configuration, basePath, axios) {
1118
376
  const localVarFp = (0, exports.PortfolioApiFp)(configuration);
1119
377
  return {
1120
378
  /**
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
379
+ * Endpoint for getting the balance and portfolio value of a member. Both values are returned in cents.
1204
380
  * @summary Get Balance
1205
381
  * @param {*} [options] Override http request option.
1206
382
  * @throws {RequiredError}
@@ -1209,7 +385,7 @@ const PortfolioApiFactory = function (configuration, basePath, axios) {
1209
385
  return localVarFp.getBalance(options).then((request) => request(axios, basePath));
1210
386
  },
1211
387
  /**
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.
388
+ * Endpoint for getting all fills for the member. A fill is when a trade you have is matched.
1213
389
  * @summary Get Fills
1214
390
  * @param {string} [ticker] Filter by market ticker
1215
391
  * @param {string} [orderId] Filter by order ID
@@ -1224,117 +400,43 @@ const PortfolioApiFactory = function (configuration, basePath, axios) {
1224
400
  return localVarFp.getFills(ticker, orderId, minTs, maxTs, limit, cursor, options).then((request) => request(axios, basePath));
1225
401
  },
1226
402
  /**
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.
403
+ * 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.
404
+ * @summary Get Total Resting Order Value
1278
405
  * @param {*} [options] Override http request option.
1279
406
  * @throws {RequiredError}
1280
407
  */
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));
408
+ getPortfolioRestingOrderTotalValue(options) {
409
+ return localVarFp.getPortfolioRestingOrderTotalValue(options).then((request) => request(axios, basePath));
1283
410
  },
1284
411
  /**
1285
- * Get positions for the logged-in user
412
+ * 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
413
  * @summary Get Positions
414
+ * @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.
415
+ * @param {number} [limit] Parameter to specify the number of results per page. Defaults to 100.
416
+ * @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
417
+ * @param {GetPositionsSettlementStatusEnum} [settlementStatus] Settlement status of the markets to return. Defaults to unsettled.
1287
418
  * @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.
419
+ * @param {string} [eventTicker] Event ticker of desired positions. Multiple event tickers can be provided as a comma-separated list (maximum 10).
1293
420
  * @param {*} [options] Override http request option.
1294
421
  * @throws {RequiredError}
1295
422
  */
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));
423
+ getPositions(cursor, limit, countFilter, settlementStatus, ticker, eventTicker, options) {
424
+ return localVarFp.getPositions(cursor, limit, countFilter, settlementStatus, ticker, eventTicker, options).then((request) => request(axios, basePath));
1298
425
  },
1299
426
  /**
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
427
+ * Endpoint for getting the member\'s settlements historical track.
1311
428
  * @summary Get Settlements
1312
429
  * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
1313
430
  * @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.
431
+ * @param {string} [ticker] Filter by market ticker
432
+ * @param {string} [eventTicker] Event ticker of desired positions. Multiple event tickers can be provided as a comma-separated list (maximum 10).
433
+ * @param {number} [minTs] Filter items after this Unix timestamp
434
+ * @param {number} [maxTs] Filter items before this Unix timestamp
1314
435
  * @param {*} [options] Override http request option.
1315
436
  * @throws {RequiredError}
1316
437
  */
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));
438
+ getSettlements(limit, cursor, ticker, eventTicker, minTs, maxTs, options) {
439
+ return localVarFp.getSettlements(limit, cursor, ticker, eventTicker, minTs, maxTs, options).then((request) => request(axios, basePath));
1338
440
  },
1339
441
  };
1340
442
  };
@@ -1344,89 +446,7 @@ exports.PortfolioApiFactory = PortfolioApiFactory;
1344
446
  */
1345
447
  class PortfolioApi extends base_1.BaseAPI {
1346
448
  /**
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
449
+ * Endpoint for getting the balance and portfolio value of a member. Both values are returned in cents.
1430
450
  * @summary Get Balance
1431
451
  * @param {*} [options] Override http request option.
1432
452
  * @throws {RequiredError}
@@ -1435,7 +455,7 @@ class PortfolioApi extends base_1.BaseAPI {
1435
455
  return (0, exports.PortfolioApiFp)(this.configuration).getBalance(options).then((request) => request(this.axios, this.basePath));
1436
456
  }
1437
457
  /**
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.
458
+ * Endpoint for getting all fills for the member. A fill is when a trade you have is matched.
1439
459
  * @summary Get Fills
1440
460
  * @param {string} [ticker] Filter by market ticker
1441
461
  * @param {string} [orderId] Filter by order ID
@@ -1450,117 +470,48 @@ class PortfolioApi extends base_1.BaseAPI {
1450
470
  return (0, exports.PortfolioApiFp)(this.configuration).getFills(ticker, orderId, minTs, maxTs, limit, cursor, options).then((request) => request(this.axios, this.basePath));
1451
471
  }
1452
472
  /**
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.
473
+ * 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.
474
+ * @summary Get Total Resting Order Value
1504
475
  * @param {*} [options] Override http request option.
1505
476
  * @throws {RequiredError}
1506
477
  */
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));
478
+ getPortfolioRestingOrderTotalValue(options) {
479
+ return (0, exports.PortfolioApiFp)(this.configuration).getPortfolioRestingOrderTotalValue(options).then((request) => request(this.axios, this.basePath));
1509
480
  }
1510
481
  /**
1511
- * Get positions for the logged-in user
482
+ * 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
483
  * @summary Get Positions
484
+ * @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.
485
+ * @param {number} [limit] Parameter to specify the number of results per page. Defaults to 100.
486
+ * @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
487
+ * @param {GetPositionsSettlementStatusEnum} [settlementStatus] Settlement status of the markets to return. Defaults to unsettled.
1513
488
  * @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
489
+ * @param {string} [eventTicker] Event ticker of desired positions. Multiple event tickers can be provided as a comma-separated list (maximum 10).
1529
490
  * @param {*} [options] Override http request option.
1530
491
  * @throws {RequiredError}
1531
492
  */
1532
- getQueuePositions(getQueuePositionsRequest, options) {
1533
- return (0, exports.PortfolioApiFp)(this.configuration).getQueuePositions(getQueuePositionsRequest, options).then((request) => request(this.axios, this.basePath));
493
+ getPositions(cursor, limit, countFilter, settlementStatus, ticker, eventTicker, options) {
494
+ return (0, exports.PortfolioApiFp)(this.configuration).getPositions(cursor, limit, countFilter, settlementStatus, ticker, eventTicker, options).then((request) => request(this.axios, this.basePath));
1534
495
  }
1535
496
  /**
1536
- * Get settlements for the logged-in user
497
+ * Endpoint for getting the member\'s settlements historical track.
1537
498
  * @summary Get Settlements
1538
499
  * @param {number} [limit] Number of results per page. Defaults to 100. Maximum value is 200.
1539
500
  * @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.
501
+ * @param {string} [ticker] Filter by market ticker
502
+ * @param {string} [eventTicker] Event ticker of desired positions. Multiple event tickers can be provided as a comma-separated list (maximum 10).
503
+ * @param {number} [minTs] Filter items after this Unix timestamp
504
+ * @param {number} [maxTs] Filter items before this Unix timestamp
1540
505
  * @param {*} [options] Override http request option.
1541
506
  * @throws {RequiredError}
1542
507
  */
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));
508
+ getSettlements(limit, cursor, ticker, eventTicker, minTs, maxTs, options) {
509
+ return (0, exports.PortfolioApiFp)(this.configuration).getSettlements(limit, cursor, ticker, eventTicker, minTs, maxTs, options).then((request) => request(this.axios, this.basePath));
1564
510
  }
1565
511
  }
1566
512
  exports.PortfolioApi = PortfolioApi;
513
+ exports.GetPositionsSettlementStatusEnum = {
514
+ All: 'all',
515
+ Unsettled: 'unsettled',
516
+ Settled: 'settled'
517
+ };