@clear-street/clearstreet 0.0.0 → 0.73.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 (579) hide show
  1. package/CHANGELOG.md +994 -0
  2. package/LICENSE +201 -0
  3. package/README.md +358 -0
  4. package/api-promise.d.mts +3 -0
  5. package/api-promise.d.mts.map +1 -0
  6. package/api-promise.d.ts +3 -0
  7. package/api-promise.d.ts.map +1 -0
  8. package/api-promise.js +6 -0
  9. package/api-promise.js.map +1 -0
  10. package/api-promise.mjs +3 -0
  11. package/api-promise.mjs.map +1 -0
  12. package/client.d.mts +195 -0
  13. package/client.d.mts.map +1 -0
  14. package/client.d.ts +195 -0
  15. package/client.d.ts.map +1 -0
  16. package/client.js +489 -0
  17. package/client.js.map +1 -0
  18. package/client.mjs +485 -0
  19. package/client.mjs.map +1 -0
  20. package/core/api-promise.d.mts +46 -0
  21. package/core/api-promise.d.mts.map +1 -0
  22. package/core/api-promise.d.ts +46 -0
  23. package/core/api-promise.d.ts.map +1 -0
  24. package/core/api-promise.js +74 -0
  25. package/core/api-promise.js.map +1 -0
  26. package/core/api-promise.mjs +70 -0
  27. package/core/api-promise.mjs.map +1 -0
  28. package/core/error.d.mts +46 -0
  29. package/core/error.d.mts.map +1 -0
  30. package/core/error.d.ts +46 -0
  31. package/core/error.d.ts.map +1 -0
  32. package/core/error.js +113 -0
  33. package/core/error.js.map +1 -0
  34. package/core/error.mjs +97 -0
  35. package/core/error.mjs.map +1 -0
  36. package/core/resource.d.mts +6 -0
  37. package/core/resource.d.mts.map +1 -0
  38. package/core/resource.d.ts +6 -0
  39. package/core/resource.d.ts.map +1 -0
  40. package/core/resource.js +11 -0
  41. package/core/resource.js.map +1 -0
  42. package/core/resource.mjs +7 -0
  43. package/core/resource.mjs.map +1 -0
  44. package/core/uploads.d.mts +3 -0
  45. package/core/uploads.d.mts.map +1 -0
  46. package/core/uploads.d.ts +3 -0
  47. package/core/uploads.d.ts.map +1 -0
  48. package/core/uploads.js +6 -0
  49. package/core/uploads.js.map +1 -0
  50. package/core/uploads.mjs +2 -0
  51. package/core/uploads.mjs.map +1 -0
  52. package/error.d.mts +3 -0
  53. package/error.d.mts.map +1 -0
  54. package/error.d.ts +3 -0
  55. package/error.d.ts.map +1 -0
  56. package/error.js +6 -0
  57. package/error.js.map +1 -0
  58. package/error.mjs +3 -0
  59. package/error.mjs.map +1 -0
  60. package/index.d.mts +6 -0
  61. package/index.d.mts.map +1 -0
  62. package/index.d.ts +6 -0
  63. package/index.d.ts.map +1 -0
  64. package/index.js +30 -0
  65. package/index.js.map +1 -0
  66. package/index.mjs +7 -0
  67. package/index.mjs.map +1 -0
  68. package/internal/builtin-types.d.mts +73 -0
  69. package/internal/builtin-types.d.mts.map +1 -0
  70. package/internal/builtin-types.d.ts +73 -0
  71. package/internal/builtin-types.d.ts.map +1 -0
  72. package/internal/builtin-types.js +4 -0
  73. package/internal/builtin-types.js.map +1 -0
  74. package/internal/builtin-types.mjs +3 -0
  75. package/internal/builtin-types.mjs.map +1 -0
  76. package/internal/detect-platform.d.mts +15 -0
  77. package/internal/detect-platform.d.mts.map +1 -0
  78. package/internal/detect-platform.d.ts +15 -0
  79. package/internal/detect-platform.d.ts.map +1 -0
  80. package/internal/detect-platform.js +162 -0
  81. package/internal/detect-platform.js.map +1 -0
  82. package/internal/detect-platform.mjs +157 -0
  83. package/internal/detect-platform.mjs.map +1 -0
  84. package/internal/errors.d.mts +3 -0
  85. package/internal/errors.d.mts.map +1 -0
  86. package/internal/errors.d.ts +3 -0
  87. package/internal/errors.d.ts.map +1 -0
  88. package/internal/errors.js +41 -0
  89. package/internal/errors.js.map +1 -0
  90. package/internal/errors.mjs +36 -0
  91. package/internal/errors.mjs.map +1 -0
  92. package/internal/headers.d.mts +20 -0
  93. package/internal/headers.d.mts.map +1 -0
  94. package/internal/headers.d.ts +20 -0
  95. package/internal/headers.d.ts.map +1 -0
  96. package/internal/headers.js +79 -0
  97. package/internal/headers.js.map +1 -0
  98. package/internal/headers.mjs +74 -0
  99. package/internal/headers.mjs.map +1 -0
  100. package/internal/parse.d.mts +12 -0
  101. package/internal/parse.d.mts.map +1 -0
  102. package/internal/parse.d.ts +12 -0
  103. package/internal/parse.d.ts.map +1 -0
  104. package/internal/parse.js +40 -0
  105. package/internal/parse.js.map +1 -0
  106. package/internal/parse.mjs +37 -0
  107. package/internal/parse.mjs.map +1 -0
  108. package/internal/qs/formats.d.mts +7 -0
  109. package/internal/qs/formats.d.mts.map +1 -0
  110. package/internal/qs/formats.d.ts +7 -0
  111. package/internal/qs/formats.d.ts.map +1 -0
  112. package/internal/qs/formats.js +13 -0
  113. package/internal/qs/formats.js.map +1 -0
  114. package/internal/qs/formats.mjs +9 -0
  115. package/internal/qs/formats.mjs.map +1 -0
  116. package/internal/qs/index.d.mts +10 -0
  117. package/internal/qs/index.d.mts.map +1 -0
  118. package/internal/qs/index.d.ts +10 -0
  119. package/internal/qs/index.d.ts.map +1 -0
  120. package/internal/qs/index.js +14 -0
  121. package/internal/qs/index.js.map +1 -0
  122. package/internal/qs/index.mjs +10 -0
  123. package/internal/qs/index.mjs.map +1 -0
  124. package/internal/qs/stringify.d.mts +3 -0
  125. package/internal/qs/stringify.d.mts.map +1 -0
  126. package/internal/qs/stringify.d.ts +3 -0
  127. package/internal/qs/stringify.d.ts.map +1 -0
  128. package/internal/qs/stringify.js +277 -0
  129. package/internal/qs/stringify.js.map +1 -0
  130. package/internal/qs/stringify.mjs +274 -0
  131. package/internal/qs/stringify.mjs.map +1 -0
  132. package/internal/qs/types.d.mts +57 -0
  133. package/internal/qs/types.d.mts.map +1 -0
  134. package/internal/qs/types.d.ts +57 -0
  135. package/internal/qs/types.d.ts.map +1 -0
  136. package/internal/qs/types.js +3 -0
  137. package/internal/qs/types.js.map +1 -0
  138. package/internal/qs/types.mjs +2 -0
  139. package/internal/qs/types.mjs.map +1 -0
  140. package/internal/qs/utils.d.mts +15 -0
  141. package/internal/qs/utils.d.mts.map +1 -0
  142. package/internal/qs/utils.d.ts +15 -0
  143. package/internal/qs/utils.d.ts.map +1 -0
  144. package/internal/qs/utils.js +230 -0
  145. package/internal/qs/utils.js.map +1 -0
  146. package/internal/qs/utils.mjs +217 -0
  147. package/internal/qs/utils.mjs.map +1 -0
  148. package/internal/request-options.d.mts +75 -0
  149. package/internal/request-options.d.mts.map +1 -0
  150. package/internal/request-options.d.ts +75 -0
  151. package/internal/request-options.d.ts.map +1 -0
  152. package/internal/request-options.js +14 -0
  153. package/internal/request-options.js.map +1 -0
  154. package/internal/request-options.mjs +10 -0
  155. package/internal/request-options.mjs.map +1 -0
  156. package/internal/shim-types.d.mts +17 -0
  157. package/internal/shim-types.d.mts.map +1 -0
  158. package/internal/shim-types.d.ts +17 -0
  159. package/internal/shim-types.d.ts.map +1 -0
  160. package/internal/shim-types.js +4 -0
  161. package/internal/shim-types.js.map +1 -0
  162. package/internal/shim-types.mjs +3 -0
  163. package/internal/shim-types.mjs.map +1 -0
  164. package/internal/shims.d.mts +26 -0
  165. package/internal/shims.d.mts.map +1 -0
  166. package/internal/shims.d.ts +26 -0
  167. package/internal/shims.d.ts.map +1 -0
  168. package/internal/shims.js +92 -0
  169. package/internal/shims.js.map +1 -0
  170. package/internal/shims.mjs +85 -0
  171. package/internal/shims.mjs.map +1 -0
  172. package/internal/to-file.d.mts +45 -0
  173. package/internal/to-file.d.mts.map +1 -0
  174. package/internal/to-file.d.ts +45 -0
  175. package/internal/to-file.d.ts.map +1 -0
  176. package/internal/to-file.js +91 -0
  177. package/internal/to-file.js.map +1 -0
  178. package/internal/to-file.mjs +88 -0
  179. package/internal/to-file.mjs.map +1 -0
  180. package/internal/tslib.js +81 -0
  181. package/internal/tslib.mjs +17 -0
  182. package/internal/types.d.mts +69 -0
  183. package/internal/types.d.mts.map +1 -0
  184. package/internal/types.d.ts +69 -0
  185. package/internal/types.d.ts.map +1 -0
  186. package/internal/types.js +4 -0
  187. package/internal/types.js.map +1 -0
  188. package/internal/types.mjs +3 -0
  189. package/internal/types.mjs.map +1 -0
  190. package/internal/uploads.d.mts +42 -0
  191. package/internal/uploads.d.mts.map +1 -0
  192. package/internal/uploads.d.ts +42 -0
  193. package/internal/uploads.d.ts.map +1 -0
  194. package/internal/uploads.js +141 -0
  195. package/internal/uploads.js.map +1 -0
  196. package/internal/uploads.mjs +131 -0
  197. package/internal/uploads.mjs.map +1 -0
  198. package/internal/utils/base64.d.mts +3 -0
  199. package/internal/utils/base64.d.mts.map +1 -0
  200. package/internal/utils/base64.d.ts +3 -0
  201. package/internal/utils/base64.d.ts.map +1 -0
  202. package/internal/utils/base64.js +38 -0
  203. package/internal/utils/base64.js.map +1 -0
  204. package/internal/utils/base64.mjs +33 -0
  205. package/internal/utils/base64.mjs.map +1 -0
  206. package/internal/utils/bytes.d.mts +4 -0
  207. package/internal/utils/bytes.d.mts.map +1 -0
  208. package/internal/utils/bytes.d.ts +4 -0
  209. package/internal/utils/bytes.d.ts.map +1 -0
  210. package/internal/utils/bytes.js +31 -0
  211. package/internal/utils/bytes.js.map +1 -0
  212. package/internal/utils/bytes.mjs +26 -0
  213. package/internal/utils/bytes.mjs.map +1 -0
  214. package/internal/utils/env.d.mts +9 -0
  215. package/internal/utils/env.d.mts.map +1 -0
  216. package/internal/utils/env.d.ts +9 -0
  217. package/internal/utils/env.d.ts.map +1 -0
  218. package/internal/utils/env.js +22 -0
  219. package/internal/utils/env.js.map +1 -0
  220. package/internal/utils/env.mjs +18 -0
  221. package/internal/utils/env.mjs.map +1 -0
  222. package/internal/utils/log.d.mts +37 -0
  223. package/internal/utils/log.d.mts.map +1 -0
  224. package/internal/utils/log.d.ts +37 -0
  225. package/internal/utils/log.d.ts.map +1 -0
  226. package/internal/utils/log.js +87 -0
  227. package/internal/utils/log.js.map +1 -0
  228. package/internal/utils/log.mjs +81 -0
  229. package/internal/utils/log.mjs.map +1 -0
  230. package/internal/utils/path.d.mts +15 -0
  231. package/internal/utils/path.d.mts.map +1 -0
  232. package/internal/utils/path.d.ts +15 -0
  233. package/internal/utils/path.d.ts.map +1 -0
  234. package/internal/utils/path.js +79 -0
  235. package/internal/utils/path.js.map +1 -0
  236. package/internal/utils/path.mjs +74 -0
  237. package/internal/utils/path.mjs.map +1 -0
  238. package/internal/utils/query.d.mts +2 -0
  239. package/internal/utils/query.d.mts.map +1 -0
  240. package/internal/utils/query.d.ts +2 -0
  241. package/internal/utils/query.d.ts.map +1 -0
  242. package/internal/utils/query.js +10 -0
  243. package/internal/utils/query.js.map +1 -0
  244. package/internal/utils/query.mjs +6 -0
  245. package/internal/utils/query.mjs.map +1 -0
  246. package/internal/utils/sleep.d.mts +2 -0
  247. package/internal/utils/sleep.d.mts.map +1 -0
  248. package/internal/utils/sleep.d.ts +2 -0
  249. package/internal/utils/sleep.d.ts.map +1 -0
  250. package/internal/utils/sleep.js +7 -0
  251. package/internal/utils/sleep.js.map +1 -0
  252. package/internal/utils/sleep.mjs +3 -0
  253. package/internal/utils/sleep.mjs.map +1 -0
  254. package/internal/utils/uuid.d.mts +5 -0
  255. package/internal/utils/uuid.d.mts.map +1 -0
  256. package/internal/utils/uuid.d.ts +5 -0
  257. package/internal/utils/uuid.d.ts.map +1 -0
  258. package/internal/utils/uuid.js +19 -0
  259. package/internal/utils/uuid.js.map +1 -0
  260. package/internal/utils/uuid.mjs +15 -0
  261. package/internal/utils/uuid.mjs.map +1 -0
  262. package/internal/utils/values.d.mts +18 -0
  263. package/internal/utils/values.d.mts.map +1 -0
  264. package/internal/utils/values.d.ts +18 -0
  265. package/internal/utils/values.d.ts.map +1 -0
  266. package/internal/utils/values.js +112 -0
  267. package/internal/utils/values.js.map +1 -0
  268. package/internal/utils/values.mjs +94 -0
  269. package/internal/utils/values.mjs.map +1 -0
  270. package/internal/utils.d.mts +8 -0
  271. package/internal/utils.d.mts.map +1 -0
  272. package/internal/utils.d.ts +8 -0
  273. package/internal/utils.d.ts.map +1 -0
  274. package/internal/utils.js +12 -0
  275. package/internal/utils.js.map +1 -0
  276. package/internal/utils.mjs +9 -0
  277. package/internal/utils.mjs.map +1 -0
  278. package/package.json +147 -3
  279. package/resource.d.mts +3 -0
  280. package/resource.d.mts.map +1 -0
  281. package/resource.d.ts +3 -0
  282. package/resource.d.ts.map +1 -0
  283. package/resource.js +6 -0
  284. package/resource.js.map +1 -0
  285. package/resource.mjs +3 -0
  286. package/resource.mjs.map +1 -0
  287. package/resources/index.d.mts +3 -0
  288. package/resources/index.d.mts.map +1 -0
  289. package/resources/index.d.ts +3 -0
  290. package/resources/index.d.ts.map +1 -0
  291. package/resources/index.js +9 -0
  292. package/resources/index.js.map +1 -0
  293. package/resources/index.mjs +4 -0
  294. package/resources/index.mjs.map +1 -0
  295. package/resources/shared.d.mts +63 -0
  296. package/resources/shared.d.mts.map +1 -0
  297. package/resources/shared.d.ts +63 -0
  298. package/resources/shared.d.ts.map +1 -0
  299. package/resources/shared.js +4 -0
  300. package/resources/shared.js.map +1 -0
  301. package/resources/shared.mjs +3 -0
  302. package/resources/shared.mjs.map +1 -0
  303. package/resources/v1/accounts.d.mts +436 -0
  304. package/resources/v1/accounts.d.mts.map +1 -0
  305. package/resources/v1/accounts.d.ts +436 -0
  306. package/resources/v1/accounts.d.ts.map +1 -0
  307. package/resources/v1/accounts.js +74 -0
  308. package/resources/v1/accounts.js.map +1 -0
  309. package/resources/v1/accounts.mjs +70 -0
  310. package/resources/v1/accounts.mjs.map +1 -0
  311. package/resources/v1/api-version.d.mts +37 -0
  312. package/resources/v1/api-version.d.mts.map +1 -0
  313. package/resources/v1/api-version.d.ts +37 -0
  314. package/resources/v1/api-version.d.ts.map +1 -0
  315. package/resources/v1/api-version.js +23 -0
  316. package/resources/v1/api-version.js.map +1 -0
  317. package/resources/v1/api-version.mjs +19 -0
  318. package/resources/v1/api-version.mjs.map +1 -0
  319. package/resources/v1/calendar.d.mts +170 -0
  320. package/resources/v1/calendar.d.mts.map +1 -0
  321. package/resources/v1/calendar.d.ts +170 -0
  322. package/resources/v1/calendar.d.ts.map +1 -0
  323. package/resources/v1/calendar.js +39 -0
  324. package/resources/v1/calendar.js.map +1 -0
  325. package/resources/v1/calendar.mjs +35 -0
  326. package/resources/v1/calendar.mjs.map +1 -0
  327. package/resources/v1/index.d.mts +12 -0
  328. package/resources/v1/index.d.mts.map +1 -0
  329. package/resources/v1/index.d.ts +12 -0
  330. package/resources/v1/index.d.ts.map +1 -0
  331. package/resources/v1/index.js +27 -0
  332. package/resources/v1/index.js.map +1 -0
  333. package/resources/v1/index.mjs +13 -0
  334. package/resources/v1/index.mjs.map +1 -0
  335. package/resources/v1/instrument-data/index.d.mts +4 -0
  336. package/resources/v1/instrument-data/index.d.mts.map +1 -0
  337. package/resources/v1/instrument-data/index.d.ts +4 -0
  338. package/resources/v1/instrument-data/index.d.ts.map +1 -0
  339. package/resources/v1/instrument-data/index.js +11 -0
  340. package/resources/v1/instrument-data/index.js.map +1 -0
  341. package/resources/v1/instrument-data/index.mjs +5 -0
  342. package/resources/v1/instrument-data/index.mjs.map +1 -0
  343. package/resources/v1/instrument-data/instrument-data.d.mts +1202 -0
  344. package/resources/v1/instrument-data/instrument-data.d.mts.map +1 -0
  345. package/resources/v1/instrument-data/instrument-data.d.ts +1202 -0
  346. package/resources/v1/instrument-data/instrument-data.d.ts.map +1 -0
  347. package/resources/v1/instrument-data/instrument-data.js +150 -0
  348. package/resources/v1/instrument-data/instrument-data.js.map +1 -0
  349. package/resources/v1/instrument-data/instrument-data.mjs +145 -0
  350. package/resources/v1/instrument-data/instrument-data.mjs.map +1 -0
  351. package/resources/v1/instrument-data/market-data.d.mts +240 -0
  352. package/resources/v1/instrument-data/market-data.d.mts.map +1 -0
  353. package/resources/v1/instrument-data/market-data.d.ts +240 -0
  354. package/resources/v1/instrument-data/market-data.d.ts.map +1 -0
  355. package/resources/v1/instrument-data/market-data.js +49 -0
  356. package/resources/v1/instrument-data/market-data.js.map +1 -0
  357. package/resources/v1/instrument-data/market-data.mjs +45 -0
  358. package/resources/v1/instrument-data/market-data.mjs.map +1 -0
  359. package/resources/v1/instrument-data/news.d.mts +136 -0
  360. package/resources/v1/instrument-data/news.d.mts.map +1 -0
  361. package/resources/v1/instrument-data/news.d.ts +136 -0
  362. package/resources/v1/instrument-data/news.d.ts.map +1 -0
  363. package/resources/v1/instrument-data/news.js +25 -0
  364. package/resources/v1/instrument-data/news.js.map +1 -0
  365. package/resources/v1/instrument-data/news.mjs +21 -0
  366. package/resources/v1/instrument-data/news.mjs.map +1 -0
  367. package/resources/v1/instrument-data.d.mts +2 -0
  368. package/resources/v1/instrument-data.d.mts.map +1 -0
  369. package/resources/v1/instrument-data.d.ts +2 -0
  370. package/resources/v1/instrument-data.d.ts.map +1 -0
  371. package/resources/v1/instrument-data.js +6 -0
  372. package/resources/v1/instrument-data.js.map +1 -0
  373. package/resources/v1/instrument-data.mjs +3 -0
  374. package/resources/v1/instrument-data.mjs.map +1 -0
  375. package/resources/v1/instruments.d.mts +473 -0
  376. package/resources/v1/instruments.d.mts.map +1 -0
  377. package/resources/v1/instruments.d.ts +473 -0
  378. package/resources/v1/instruments.d.ts.map +1 -0
  379. package/resources/v1/instruments.js +77 -0
  380. package/resources/v1/instruments.js.map +1 -0
  381. package/resources/v1/instruments.mjs +73 -0
  382. package/resources/v1/instruments.mjs.map +1 -0
  383. package/resources/v1/omni-ai/entitlements.d.mts +108 -0
  384. package/resources/v1/omni-ai/entitlements.d.mts.map +1 -0
  385. package/resources/v1/omni-ai/entitlements.d.ts +108 -0
  386. package/resources/v1/omni-ai/entitlements.d.ts.map +1 -0
  387. package/resources/v1/omni-ai/entitlements.js +67 -0
  388. package/resources/v1/omni-ai/entitlements.js.map +1 -0
  389. package/resources/v1/omni-ai/entitlements.mjs +63 -0
  390. package/resources/v1/omni-ai/entitlements.mjs.map +1 -0
  391. package/resources/v1/omni-ai/index.d.mts +6 -0
  392. package/resources/v1/omni-ai/index.d.mts.map +1 -0
  393. package/resources/v1/omni-ai/index.d.ts +6 -0
  394. package/resources/v1/omni-ai/index.d.ts.map +1 -0
  395. package/resources/v1/omni-ai/index.js +15 -0
  396. package/resources/v1/omni-ai/index.js.map +1 -0
  397. package/resources/v1/omni-ai/index.mjs +7 -0
  398. package/resources/v1/omni-ai/index.mjs.map +1 -0
  399. package/resources/v1/omni-ai/messages.d.mts +85 -0
  400. package/resources/v1/omni-ai/messages.d.mts.map +1 -0
  401. package/resources/v1/omni-ai/messages.d.ts +85 -0
  402. package/resources/v1/omni-ai/messages.d.ts.map +1 -0
  403. package/resources/v1/omni-ai/messages.js +51 -0
  404. package/resources/v1/omni-ai/messages.js.map +1 -0
  405. package/resources/v1/omni-ai/messages.mjs +47 -0
  406. package/resources/v1/omni-ai/messages.mjs.map +1 -0
  407. package/resources/v1/omni-ai/omni-ai.d.mts +323 -0
  408. package/resources/v1/omni-ai/omni-ai.d.mts.map +1 -0
  409. package/resources/v1/omni-ai/omni-ai.d.ts +323 -0
  410. package/resources/v1/omni-ai/omni-ai.d.ts.map +1 -0
  411. package/resources/v1/omni-ai/omni-ai.js +29 -0
  412. package/resources/v1/omni-ai/omni-ai.js.map +1 -0
  413. package/resources/v1/omni-ai/omni-ai.mjs +24 -0
  414. package/resources/v1/omni-ai/omni-ai.mjs.map +1 -0
  415. package/resources/v1/omni-ai/responses.d.mts +158 -0
  416. package/resources/v1/omni-ai/responses.d.mts.map +1 -0
  417. package/resources/v1/omni-ai/responses.d.ts +158 -0
  418. package/resources/v1/omni-ai/responses.d.ts.map +1 -0
  419. package/resources/v1/omni-ai/responses.js +60 -0
  420. package/resources/v1/omni-ai/responses.js.map +1 -0
  421. package/resources/v1/omni-ai/responses.mjs +56 -0
  422. package/resources/v1/omni-ai/responses.mjs.map +1 -0
  423. package/resources/v1/omni-ai/threads.d.mts +338 -0
  424. package/resources/v1/omni-ai/threads.d.mts.map +1 -0
  425. package/resources/v1/omni-ai/threads.d.ts +338 -0
  426. package/resources/v1/omni-ai/threads.d.ts.map +1 -0
  427. package/resources/v1/omni-ai/threads.js +141 -0
  428. package/resources/v1/omni-ai/threads.js.map +1 -0
  429. package/resources/v1/omni-ai/threads.mjs +137 -0
  430. package/resources/v1/omni-ai/threads.mjs.map +1 -0
  431. package/resources/v1/omni-ai.d.mts +2 -0
  432. package/resources/v1/omni-ai.d.mts.map +1 -0
  433. package/resources/v1/omni-ai.d.ts +2 -0
  434. package/resources/v1/omni-ai.d.ts.map +1 -0
  435. package/resources/v1/omni-ai.js +6 -0
  436. package/resources/v1/omni-ai.js.map +1 -0
  437. package/resources/v1/omni-ai.mjs +3 -0
  438. package/resources/v1/omni-ai.mjs.map +1 -0
  439. package/resources/v1/orders.d.mts +643 -0
  440. package/resources/v1/orders.d.mts.map +1 -0
  441. package/resources/v1/orders.d.ts +643 -0
  442. package/resources/v1/orders.d.ts.map +1 -0
  443. package/resources/v1/orders.js +134 -0
  444. package/resources/v1/orders.js.map +1 -0
  445. package/resources/v1/orders.mjs +130 -0
  446. package/resources/v1/orders.mjs.map +1 -0
  447. package/resources/v1/positions.d.mts +385 -0
  448. package/resources/v1/positions.d.mts.map +1 -0
  449. package/resources/v1/positions.d.ts +385 -0
  450. package/resources/v1/positions.d.ts.map +1 -0
  451. package/resources/v1/positions.js +130 -0
  452. package/resources/v1/positions.js.map +1 -0
  453. package/resources/v1/positions.mjs +126 -0
  454. package/resources/v1/positions.mjs.map +1 -0
  455. package/resources/v1/v1.d.mts +51 -0
  456. package/resources/v1/v1.d.mts.map +1 -0
  457. package/resources/v1/v1.d.ts +51 -0
  458. package/resources/v1/v1.d.ts.map +1 -0
  459. package/resources/v1/v1.js +53 -0
  460. package/resources/v1/v1.js.map +1 -0
  461. package/resources/v1/v1.mjs +48 -0
  462. package/resources/v1/v1.mjs.map +1 -0
  463. package/resources/v1/watchlist.d.mts +210 -0
  464. package/resources/v1/watchlist.d.mts.map +1 -0
  465. package/resources/v1/watchlist.d.ts +210 -0
  466. package/resources/v1/watchlist.d.ts.map +1 -0
  467. package/resources/v1/watchlist.js +95 -0
  468. package/resources/v1/watchlist.js.map +1 -0
  469. package/resources/v1/watchlist.mjs +91 -0
  470. package/resources/v1/watchlist.mjs.map +1 -0
  471. package/resources/v1/websocket.d.mts +18 -0
  472. package/resources/v1/websocket.d.mts.map +1 -0
  473. package/resources/v1/websocket.d.ts +18 -0
  474. package/resources/v1/websocket.d.ts.map +1 -0
  475. package/resources/v1/websocket.js +27 -0
  476. package/resources/v1/websocket.js.map +1 -0
  477. package/resources/v1/websocket.mjs +23 -0
  478. package/resources/v1/websocket.mjs.map +1 -0
  479. package/resources/v1.d.mts +2 -0
  480. package/resources/v1.d.mts.map +1 -0
  481. package/resources/v1.d.ts +2 -0
  482. package/resources/v1.d.ts.map +1 -0
  483. package/resources/v1.js +6 -0
  484. package/resources/v1.js.map +1 -0
  485. package/resources/v1.mjs +3 -0
  486. package/resources/v1.mjs.map +1 -0
  487. package/resources.d.mts +2 -0
  488. package/resources.d.mts.map +1 -0
  489. package/resources.d.ts +2 -0
  490. package/resources.d.ts.map +1 -0
  491. package/resources.js +5 -0
  492. package/resources.js.map +1 -0
  493. package/resources.mjs +2 -0
  494. package/resources.mjs.map +1 -0
  495. package/src/api-promise.ts +2 -0
  496. package/src/client.ts +769 -0
  497. package/src/core/README.md +3 -0
  498. package/src/core/api-promise.ts +92 -0
  499. package/src/core/error.ts +130 -0
  500. package/src/core/resource.ts +11 -0
  501. package/src/core/uploads.ts +2 -0
  502. package/src/error.ts +2 -0
  503. package/src/index.ts +22 -0
  504. package/src/internal/README.md +3 -0
  505. package/src/internal/builtin-types.ts +93 -0
  506. package/src/internal/detect-platform.ts +196 -0
  507. package/src/internal/errors.ts +33 -0
  508. package/src/internal/headers.ts +97 -0
  509. package/src/internal/parse.ts +56 -0
  510. package/src/internal/qs/LICENSE.md +13 -0
  511. package/src/internal/qs/README.md +3 -0
  512. package/src/internal/qs/formats.ts +10 -0
  513. package/src/internal/qs/index.ts +13 -0
  514. package/src/internal/qs/stringify.ts +385 -0
  515. package/src/internal/qs/types.ts +71 -0
  516. package/src/internal/qs/utils.ts +265 -0
  517. package/src/internal/request-options.ts +91 -0
  518. package/src/internal/shim-types.ts +26 -0
  519. package/src/internal/shims.ts +107 -0
  520. package/src/internal/to-file.ts +154 -0
  521. package/src/internal/types.ts +93 -0
  522. package/src/internal/uploads.ts +187 -0
  523. package/src/internal/utils/base64.ts +40 -0
  524. package/src/internal/utils/bytes.ts +32 -0
  525. package/src/internal/utils/env.ts +18 -0
  526. package/src/internal/utils/log.ts +128 -0
  527. package/src/internal/utils/path.ts +88 -0
  528. package/src/internal/utils/query.ts +7 -0
  529. package/src/internal/utils/sleep.ts +3 -0
  530. package/src/internal/utils/uuid.ts +17 -0
  531. package/src/internal/utils/values.ts +105 -0
  532. package/src/internal/utils.ts +9 -0
  533. package/src/lib/.keep +4 -0
  534. package/src/resource.ts +2 -0
  535. package/src/resources/index.ts +4 -0
  536. package/src/resources/shared.ts +72 -0
  537. package/src/resources/v1/accounts.ts +586 -0
  538. package/src/resources/v1/api-version.ts +44 -0
  539. package/src/resources/v1/calendar.ts +221 -0
  540. package/src/resources/v1/index.ts +203 -0
  541. package/src/resources/v1/instrument-data/index.ts +63 -0
  542. package/src/resources/v1/instrument-data/instrument-data.ts +1584 -0
  543. package/src/resources/v1/instrument-data/market-data.ts +306 -0
  544. package/src/resources/v1/instrument-data/news.ts +188 -0
  545. package/src/resources/v1/instrument-data.ts +3 -0
  546. package/src/resources/v1/instruments.ts +611 -0
  547. package/src/resources/v1/omni-ai/entitlements.ts +170 -0
  548. package/src/resources/v1/omni-ai/index.ts +89 -0
  549. package/src/resources/v1/omni-ai/messages.ts +117 -0
  550. package/src/resources/v1/omni-ai/omni-ai.ts +527 -0
  551. package/src/resources/v1/omni-ai/responses.ts +220 -0
  552. package/src/resources/v1/omni-ai/threads.ts +460 -0
  553. package/src/resources/v1/omni-ai.ts +3 -0
  554. package/src/resources/v1/orders.ts +912 -0
  555. package/src/resources/v1/positions.ts +533 -0
  556. package/src/resources/v1/v1.ts +460 -0
  557. package/src/resources/v1/watchlist.ts +292 -0
  558. package/src/resources/v1/websocket.ts +26 -0
  559. package/src/resources/v1.ts +3 -0
  560. package/src/resources.ts +1 -0
  561. package/src/tsconfig.json +11 -0
  562. package/src/uploads.ts +2 -0
  563. package/src/version.ts +1 -0
  564. package/uploads.d.mts +3 -0
  565. package/uploads.d.mts.map +1 -0
  566. package/uploads.d.ts +3 -0
  567. package/uploads.d.ts.map +1 -0
  568. package/uploads.js +6 -0
  569. package/uploads.js.map +1 -0
  570. package/uploads.mjs +3 -0
  571. package/uploads.mjs.map +1 -0
  572. package/version.d.mts +2 -0
  573. package/version.d.mts.map +1 -0
  574. package/version.d.ts +2 -0
  575. package/version.d.ts.map +1 -0
  576. package/version.js +5 -0
  577. package/version.js.map +1 -0
  578. package/version.mjs +2 -0
  579. package/version.mjs.map +1 -0
@@ -0,0 +1,134 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Orders = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const path_1 = require("../../internal/utils/path.js");
7
+ /**
8
+ * Place, monitor, and manage trading orders.
9
+ */
10
+ class Orders extends resource_1.APIResource {
11
+ /**
12
+ * Cancel all orders for an account
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const response = await client.v1.orders.cancelAllOpenOrders(
17
+ * 0,
18
+ * );
19
+ * ```
20
+ */
21
+ cancelAllOpenOrders(accountID, params = {}, options) {
22
+ const { instrument_ids, instrument_type, side, type } = params ?? {};
23
+ return this._client.delete((0, path_1.path) `/v1/accounts/${accountID}/orders`, {
24
+ query: { instrument_ids, instrument_type, side, type },
25
+ ...options,
26
+ });
27
+ }
28
+ /**
29
+ * Cancel a specific order
30
+ *
31
+ * @example
32
+ * ```ts
33
+ * const response = await client.v1.orders.cancelOpenOrder(
34
+ * 'order_id',
35
+ * { account_id: 0 },
36
+ * );
37
+ * ```
38
+ */
39
+ cancelOpenOrder(orderID, params, options) {
40
+ const { account_id } = params;
41
+ return this._client.delete((0, path_1.path) `/v1/accounts/${account_id}/orders/${orderID}`, options);
42
+ }
43
+ /**
44
+ * Retrieves filled and partially-filled execution reports for the specified
45
+ * trading account, ordered by transaction time (nanosecond precision) descending.
46
+ *
47
+ * @example
48
+ * ```ts
49
+ * const response = await client.v1.orders.getExecutions(0);
50
+ * ```
51
+ */
52
+ getExecutions(accountID, query = {}, options) {
53
+ return this._client.get((0, path_1.path) `/v1/accounts/${accountID}/executions`, { query, ...options });
54
+ }
55
+ /**
56
+ * Get Order By ID
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * const response = await client.v1.orders.getOrderByID(
61
+ * 'order_id',
62
+ * { account_id: 0 },
63
+ * );
64
+ * ```
65
+ */
66
+ getOrderByID(orderID, params, options) {
67
+ const { account_id } = params;
68
+ return this._client.get((0, path_1.path) `/v1/accounts/${account_id}/orders/${orderID}`, options);
69
+ }
70
+ /**
71
+ * List orders for an account with optional filtering
72
+ *
73
+ * @example
74
+ * ```ts
75
+ * const response = await client.v1.orders.getOrders(0);
76
+ * ```
77
+ */
78
+ getOrders(accountID, query = {}, options) {
79
+ return this._client.get((0, path_1.path) `/v1/accounts/${accountID}/orders`, { query, ...options });
80
+ }
81
+ /**
82
+ * Replace an order with new parameters
83
+ *
84
+ * @example
85
+ * ```ts
86
+ * const response = await client.v1.orders.replaceOrder(
87
+ * 'order_id',
88
+ * { account_id: 0 },
89
+ * );
90
+ * ```
91
+ */
92
+ replaceOrder(orderID, params, options) {
93
+ const { account_id, ...body } = params;
94
+ return this._client.patch((0, path_1.path) `/v1/accounts/${account_id}/orders/${orderID}`, { body, ...options });
95
+ }
96
+ /**
97
+ * Submit new orders
98
+ *
99
+ * @example
100
+ * ```ts
101
+ * const response = await client.v1.orders.submitOrders(0, {
102
+ * orders: [
103
+ * {
104
+ * legs: [
105
+ * {
106
+ * ratio: 'ratio',
107
+ * security: '0193bb84-447a-706f-996f-097254663f02',
108
+ * side: 'BUY',
109
+ * },
110
+ * {
111
+ * ratio: 'ratio',
112
+ * security: '0193bb84-4db4-78ec-b4fd-cba8be61cf8a',
113
+ * side: 'SELL',
114
+ * },
115
+ * {
116
+ * ratio: 'ratio',
117
+ * security: '0193bb84-5264-7f20-8fd3-35df82cd6ef0',
118
+ * side: 'BUY',
119
+ * },
120
+ * ],
121
+ * order_type: 'LIMIT',
122
+ * time_in_force: 'DAY',
123
+ * },
124
+ * ],
125
+ * });
126
+ * ```
127
+ */
128
+ submitOrders(accountID, params, options) {
129
+ const { orders } = params;
130
+ return this._client.post((0, path_1.path) `/v1/accounts/${accountID}/orders`, { body: orders, ...options });
131
+ }
132
+ }
133
+ exports.Orders = Orders;
134
+ //# sourceMappingURL=orders.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orders.js","sourceRoot":"","sources":["../../src/resources/v1/orders.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAMlD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;OASG;IACH,mBAAmB,CACjB,SAAiB,EACjB,SAA4D,EAAE,EAC9D,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,eAAe,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,gBAAgB,SAAS,SAAS,EAAE;YACjE,KAAK,EAAE,EAAE,cAAc,EAAE,eAAe,EAAE,IAAI,EAAE,IAAI,EAAE;YACtD,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,eAAe,CACb,OAAe,EACf,MAAkC,EAClC,OAAwB;QAExB,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,gBAAgB,UAAU,WA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C,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,gBAAgB,SAAS,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;CACF;AA5JD,wBA4JC"}
@@ -0,0 +1,130 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { path } from "../../internal/utils/path.mjs";
4
+ /**
5
+ * Place, monitor, and manage trading orders.
6
+ */
7
+ export class Orders extends APIResource {
8
+ /**
9
+ * Cancel all orders for an account
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const response = await client.v1.orders.cancelAllOpenOrders(
14
+ * 0,
15
+ * );
16
+ * ```
17
+ */
18
+ cancelAllOpenOrders(accountID, params = {}, options) {
19
+ const { instrument_ids, instrument_type, side, type } = params ?? {};
20
+ return this._client.delete(path `/v1/accounts/${accountID}/orders`, {
21
+ query: { instrument_ids, instrument_type, side, type },
22
+ ...options,
23
+ });
24
+ }
25
+ /**
26
+ * Cancel a specific order
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * const response = await client.v1.orders.cancelOpenOrder(
31
+ * 'order_id',
32
+ * { account_id: 0 },
33
+ * );
34
+ * ```
35
+ */
36
+ cancelOpenOrder(orderID, params, options) {
37
+ const { account_id } = params;
38
+ return this._client.delete(path `/v1/accounts/${account_id}/orders/${orderID}`, options);
39
+ }
40
+ /**
41
+ * Retrieves filled and partially-filled execution reports for the specified
42
+ * trading account, ordered by transaction time (nanosecond precision) descending.
43
+ *
44
+ * @example
45
+ * ```ts
46
+ * const response = await client.v1.orders.getExecutions(0);
47
+ * ```
48
+ */
49
+ getExecutions(accountID, query = {}, options) {
50
+ return this._client.get(path `/v1/accounts/${accountID}/executions`, { query, ...options });
51
+ }
52
+ /**
53
+ * Get Order By ID
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * const response = await client.v1.orders.getOrderByID(
58
+ * 'order_id',
59
+ * { account_id: 0 },
60
+ * );
61
+ * ```
62
+ */
63
+ getOrderByID(orderID, params, options) {
64
+ const { account_id } = params;
65
+ return this._client.get(path `/v1/accounts/${account_id}/orders/${orderID}`, options);
66
+ }
67
+ /**
68
+ * List orders for an account with optional filtering
69
+ *
70
+ * @example
71
+ * ```ts
72
+ * const response = await client.v1.orders.getOrders(0);
73
+ * ```
74
+ */
75
+ getOrders(accountID, query = {}, options) {
76
+ return this._client.get(path `/v1/accounts/${accountID}/orders`, { query, ...options });
77
+ }
78
+ /**
79
+ * Replace an order with new parameters
80
+ *
81
+ * @example
82
+ * ```ts
83
+ * const response = await client.v1.orders.replaceOrder(
84
+ * 'order_id',
85
+ * { account_id: 0 },
86
+ * );
87
+ * ```
88
+ */
89
+ replaceOrder(orderID, params, options) {
90
+ const { account_id, ...body } = params;
91
+ return this._client.patch(path `/v1/accounts/${account_id}/orders/${orderID}`, { body, ...options });
92
+ }
93
+ /**
94
+ * Submit new orders
95
+ *
96
+ * @example
97
+ * ```ts
98
+ * const response = await client.v1.orders.submitOrders(0, {
99
+ * orders: [
100
+ * {
101
+ * legs: [
102
+ * {
103
+ * ratio: 'ratio',
104
+ * security: '0193bb84-447a-706f-996f-097254663f02',
105
+ * side: 'BUY',
106
+ * },
107
+ * {
108
+ * ratio: 'ratio',
109
+ * security: '0193bb84-4db4-78ec-b4fd-cba8be61cf8a',
110
+ * side: 'SELL',
111
+ * },
112
+ * {
113
+ * ratio: 'ratio',
114
+ * security: '0193bb84-5264-7f20-8fd3-35df82cd6ef0',
115
+ * side: 'BUY',
116
+ * },
117
+ * ],
118
+ * order_type: 'LIMIT',
119
+ * time_in_force: 'DAY',
120
+ * },
121
+ * ],
122
+ * });
123
+ * ```
124
+ */
125
+ submitOrders(accountID, params, options) {
126
+ const { orders } = params;
127
+ return this._client.post(path `/v1/accounts/${accountID}/orders`, { body: orders, ...options });
128
+ }
129
+ }
130
+ //# sourceMappingURL=orders.mjs.map
@@ -0,0 +1 @@
1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AAC,IAAI,CAAA,gBAAgB,UAAU,WAAW,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;OAOG;IACH,SAAS,CACP,SAAiB,EACjB,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,SAAS,SAAS,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;;;OAUG;IACH,YAAY,CACV,OAAe,EACf,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,gBAAgB,UAAU,WAAW,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,YAAY,CACV,SAAiB,EACjB,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,gBAAgB,SAAS,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;CACF"}
@@ -0,0 +1,385 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import * as PositionsAPI from "./positions.mjs";
3
+ import * as Shared from "../shared.mjs";
4
+ import * as OrdersAPI from "./orders.mjs";
5
+ import * as V1API from "./v1.mjs";
6
+ import { APIPromise } from "../../core/api-promise.mjs";
7
+ import { RequestOptions } from "../../internal/request-options.mjs";
8
+ /**
9
+ * View positions and manage position instructions.
10
+ */
11
+ export declare class Positions extends APIResource {
12
+ /**
13
+ * Cancel an outstanding position instruction by its server-assigned `id`. Returns
14
+ * the updated instruction with status `CANCEL_REQUESTED`. The terminal `CANCELLED`
15
+ * or `CANCEL_FAILED` state arrives asynchronously and is observable via subsequent
16
+ * GETs.
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * const response =
21
+ * await client.v1.positions.cancelPositionInstruction(
22
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
23
+ * { account_id: 0 },
24
+ * );
25
+ * ```
26
+ */
27
+ cancelPositionInstruction(instructionID: string, params: PositionCancelPositionInstructionParams, options?: RequestOptions): APIPromise<PositionCancelPositionInstructionResponse>;
28
+ /**
29
+ * Delete a position within an account for an instrument.
30
+ *
31
+ * Retrieves orders generated to close the position.
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * const response = await client.v1.positions.closePosition(
36
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
37
+ * { account_id: 0 },
38
+ * );
39
+ * ```
40
+ */
41
+ closePosition(instrumentID: OrdersAPI.InstrumentIDOrSymbol, params: PositionClosePositionParams, options?: RequestOptions): APIPromise<PositionClosePositionResponse>;
42
+ /**
43
+ * Delete all positions within an account.
44
+ *
45
+ * Closes all positions for the specified trading account.
46
+ *
47
+ * @example
48
+ * ```ts
49
+ * const response = await client.v1.positions.closePositions(
50
+ * 0,
51
+ * );
52
+ * ```
53
+ */
54
+ closePositions(accountID: number, body?: PositionClosePositionsParams | null | undefined, options?: RequestOptions): APIPromise<PositionClosePositionsResponse>;
55
+ /**
56
+ * Returns the current lifecycle state of the account's position instructions.
57
+ * Optionally filter by a specific contract.
58
+ *
59
+ * @example
60
+ * ```ts
61
+ * const response =
62
+ * await client.v1.positions.getPositionInstructions(0);
63
+ * ```
64
+ */
65
+ getPositionInstructions(accountID: number, query?: PositionGetPositionInstructionsParams | null | undefined, options?: RequestOptions): APIPromise<PositionGetPositionInstructionsResponse>;
66
+ /**
67
+ * Retrieves all positions for the specified trading account.
68
+ *
69
+ * @example
70
+ * ```ts
71
+ * const response = await client.v1.positions.getPositions(0);
72
+ * ```
73
+ */
74
+ getPositions(accountID: number, query?: PositionGetPositionsParams | null | undefined, options?: RequestOptions): APIPromise<PositionGetPositionsResponse>;
75
+ /**
76
+ * Submit one or more position instructions (Exercise, Do-Not-Exercise, Contrary
77
+ * Exercise Advice) against the account.
78
+ *
79
+ * Batch semantics:
80
+ *
81
+ * - **All rows accepted** → `200 OK`. Every row is in `data` with `status = SENT`.
82
+ * - **Partial success** → `207 Multi-Status`. `data` contains every row; rejected
83
+ * rows carry `status = ENGINE_REJECTED` (or `REJECTED`) and `rejection_reason`.
84
+ * The top-level `error` summarizes the batch failure.
85
+ * - **All rows rejected** → `4xx`/`5xx`. The HTTP status reflects the aggregate
86
+ * cause: `409` when every row was a duplicate, `400` for validation failures
87
+ * like DNE/CEA on a non-expiry day, `503` if the clearing service is
88
+ * unavailable. `data` still contains every row carrying
89
+ * `status = ENGINE_REJECTED` and `rejection_reason` so callers can attribute
90
+ * failures by `instruction_id`; the top-level `error` summarizes the batch.
91
+ *
92
+ * @example
93
+ * ```ts
94
+ * const response =
95
+ * await client.v1.positions.submitPositionInstructions(0, {
96
+ * instructions: [
97
+ * {
98
+ * instruction_type: 'EXERCISE',
99
+ * instrument_id:
100
+ * '0195f6d0-a1b2-7c3d-8e4f-5a6b7c8d9e02',
101
+ * quantity: '1',
102
+ * },
103
+ * ],
104
+ * });
105
+ * ```
106
+ */
107
+ submitPositionInstructions(accountID: number, params: PositionSubmitPositionInstructionsParams, options?: RequestOptions): APIPromise<PositionSubmitPositionInstructionsResponse>;
108
+ }
109
+ /**
110
+ * Represents a holding of a particular instrument in an account
111
+ */
112
+ export interface Position {
113
+ /**
114
+ * The account this position belongs to
115
+ */
116
+ account_id: number;
117
+ /**
118
+ * The quantity of a position that is free to be operated on.
119
+ */
120
+ available_quantity: string;
121
+ /**
122
+ * OEMS instrument UUID
123
+ */
124
+ instrument_id: string;
125
+ /**
126
+ * Type of security
127
+ */
128
+ instrument_type: V1API.SecurityType;
129
+ /**
130
+ * The current market value of the position
131
+ */
132
+ market_value: string;
133
+ /**
134
+ * The type of position
135
+ */
136
+ position_type: PositionType;
137
+ /**
138
+ * The number of shares or contracts. Can be positive (long) or negative (short)
139
+ */
140
+ quantity: string;
141
+ /**
142
+ * The trading symbol for the instrument
143
+ */
144
+ symbol: string;
145
+ /**
146
+ * The average price paid per share or contract for this position
147
+ */
148
+ avg_price?: string | null;
149
+ /**
150
+ * The closing price used to value the position for the last trading day
151
+ */
152
+ closing_price?: string | null;
153
+ /**
154
+ * The market date associated with `closing_price`
155
+ */
156
+ closing_price_date?: string | null;
157
+ /**
158
+ * The total cost basis for this position
159
+ */
160
+ cost_basis?: string | null;
161
+ /**
162
+ * The unrealized profit or loss for this position relative to the previous close
163
+ */
164
+ daily_unrealized_pnl?: string | null;
165
+ /**
166
+ * The unrealized profit/loss for the position for the current day, expressed as a
167
+ * percentage of the baseline value (range: 0-100).
168
+ */
169
+ daily_unrealized_pnl_pct?: string | null;
170
+ /**
171
+ * The current market price of the instrument
172
+ */
173
+ instrument_price?: string | null;
174
+ /**
175
+ * OEMS instrument identifier of the underlying instrument, if resolvable
176
+ */
177
+ underlying_instrument_id?: string | null;
178
+ /**
179
+ * The total unrealized profit or loss for this position based on current market
180
+ * value
181
+ */
182
+ unrealized_pnl?: string | null;
183
+ /**
184
+ * The unrealized profit/loss for the position, expressed as a percentage of the
185
+ * position's cost basis (range: 0-100).
186
+ */
187
+ unrealized_pnl_pct?: string | null;
188
+ }
189
+ /**
190
+ * A position instruction and its current lifecycle state.
191
+ */
192
+ export interface PositionInstruction {
193
+ /**
194
+ * Server-assigned id. Used as the path parameter on cancel.
195
+ */
196
+ id: string;
197
+ /**
198
+ * Account the instruction belongs to.
199
+ */
200
+ account_id: number;
201
+ /**
202
+ * Caller-supplied idempotency key echoed from the submit request; the
203
+ * server-assigned fallback when none was supplied.
204
+ */
205
+ instruction_id: string;
206
+ /**
207
+ * The action this instruction requests.
208
+ */
209
+ instruction_type: PositionInstructionType;
210
+ /**
211
+ * Identifier of the options contract this instruction acts on.
212
+ */
213
+ instrument_id: string;
214
+ /**
215
+ * Number of contracts included in the instruction.
216
+ */
217
+ quantity: string;
218
+ /**
219
+ * Current lifecycle status.
220
+ */
221
+ status: PositionInstructionStatus;
222
+ /**
223
+ * Options symbol (OSI) for display.
224
+ */
225
+ symbol: string;
226
+ /**
227
+ * Number of contracts accepted by the clearing venue. Populated once the
228
+ * instruction reaches `ACCEPTED`.
229
+ */
230
+ accepted_quantity?: string | null;
231
+ /**
232
+ * When the instruction was first accepted by the service.
233
+ */
234
+ created_at?: string | null;
235
+ /**
236
+ * Human-readable explanation populated on any non-success terminal status —
237
+ * `REJECTED`, `ENGINE_REJECTED`, or `CANCEL_FAILED`. On a `207 Multi-Status` batch
238
+ * submit the top-level `error` field summarizes the batch; per-row detail
239
+ * continues to live here.
240
+ */
241
+ rejection_reason?: string | null;
242
+ /**
243
+ * When the instruction's lifecycle state last changed.
244
+ */
245
+ updated_at?: string | null;
246
+ }
247
+ export type PositionInstructionList = Array<PositionInstruction>;
248
+ /**
249
+ * Lifecycle status of a position instruction.
250
+ *
251
+ * - `SENT`: accepted and forwarded to the clearing venue.
252
+ * - `ACCEPTED`: terminal — accepted by the clearing venue.
253
+ * - `REJECTED`: terminal rejection from the clearing venue; `rejection_reason`
254
+ * carries the venue-reported detail.
255
+ * - `ENGINE_REJECTED`: terminal rejection raised before the instruction reached
256
+ * the clearing venue; `rejection_reason` carries the detail. Typical causes:
257
+ * duplicate `instruction_id`, `DO_NOT_EXERCISE` / `CONTRARY_EXERCISE` submitted
258
+ * on a non-expiry day, insufficient position, or an instrument that does not
259
+ * resolve.
260
+ * - `CANCEL_REQUESTED`: cancel accepted; final cancel state pending.
261
+ * - `CANCELLED`: terminal — cancel completed.
262
+ * - `CANCEL_FAILED`: cancel could not be completed; operator attention required.
263
+ * `rejection_reason` carries the detail.
264
+ * - `UNKNOWN`: status could not be mapped from the upstream service. Not expected
265
+ * in practice; surfaces a service version skew.
266
+ */
267
+ export type PositionInstructionStatus = 'SENT' | 'ACCEPTED' | 'REJECTED' | 'ENGINE_REJECTED' | 'CANCEL_REQUESTED' | 'CANCELLED' | 'CANCEL_FAILED' | 'UNKNOWN';
268
+ /**
269
+ * The action to take against an options position.
270
+ */
271
+ export type PositionInstructionType = 'EXERCISE' | 'DO_NOT_EXERCISE' | 'CONTRARY_EXERCISE';
272
+ export type PositionList = Array<Position>;
273
+ /**
274
+ * Position type classification
275
+ */
276
+ export type PositionType = 'LONG' | 'SHORT' | 'LONG_CALL' | 'SHORT_CALL' | 'LONG_PUT' | 'SHORT_PUT';
277
+ export interface PositionCancelPositionInstructionResponse extends Shared.BaseResponse {
278
+ /**
279
+ * A position instruction and its current lifecycle state.
280
+ */
281
+ data: PositionInstruction;
282
+ }
283
+ export interface PositionClosePositionResponse extends Shared.BaseResponse {
284
+ data: OrdersAPI.OrderList;
285
+ }
286
+ export interface PositionClosePositionsResponse extends Shared.BaseResponse {
287
+ data: OrdersAPI.OrderList;
288
+ }
289
+ export interface PositionGetPositionInstructionsResponse extends Shared.BaseResponse {
290
+ data: PositionInstructionList;
291
+ }
292
+ export interface PositionGetPositionsResponse extends Shared.BaseResponse {
293
+ data: PositionList;
294
+ }
295
+ export interface PositionSubmitPositionInstructionsResponse extends Shared.BaseResponse {
296
+ data: PositionInstructionList;
297
+ }
298
+ export interface PositionCancelPositionInstructionParams {
299
+ /**
300
+ * Account identifier
301
+ */
302
+ account_id: number;
303
+ }
304
+ export interface PositionClosePositionParams {
305
+ /**
306
+ * Path param: Account identifier
307
+ */
308
+ account_id: number;
309
+ /**
310
+ * Body param: Whether to cancel existing open orders for the position before
311
+ * submitting closing orders.
312
+ */
313
+ cancel_orders?: boolean | null;
314
+ }
315
+ export interface PositionClosePositionsParams {
316
+ /**
317
+ * Whether to cancel existing open orders for the position before submitting
318
+ * closing orders.
319
+ */
320
+ cancel_orders?: boolean | null;
321
+ }
322
+ export interface PositionGetPositionInstructionsParams {
323
+ /**
324
+ * Limit results to a single contract. Accepts the instrument id or the OSI symbol.
325
+ */
326
+ instrument_id?: OrdersAPI.InstrumentIDOrSymbol;
327
+ }
328
+ export interface PositionGetPositionsParams {
329
+ /**
330
+ * Comma-separated OEMS instrument UUIDs
331
+ */
332
+ instrument_ids?: Array<string>;
333
+ /**
334
+ * The number of items to return per page. Only used when page_token is not
335
+ * provided.
336
+ */
337
+ page_size?: number;
338
+ /**
339
+ * Token for retrieving the next or previous page of results. Contains encoded
340
+ * pagination state; when provided, page_size is ignored.
341
+ */
342
+ page_token?: string;
343
+ /**
344
+ * Field to sort by
345
+ */
346
+ sort_by?: 'SYMBOL' | 'INSTRUMENT_TYPE' | 'QUANTITY' | 'MARKET_VALUE' | 'POSITION_TYPE' | 'UNREALIZED_PNL' | 'DAILY_UNREALIZED_PNL';
347
+ /**
348
+ * Sort direction
349
+ */
350
+ sort_direction?: 'ASC' | 'DESC';
351
+ }
352
+ export interface PositionSubmitPositionInstructionsParams {
353
+ instructions: Array<PositionSubmitPositionInstructionsParams.Instruction>;
354
+ }
355
+ export declare namespace PositionSubmitPositionInstructionsParams {
356
+ /**
357
+ * A position instruction to submit.
358
+ *
359
+ * Use `DELETE /accounts/{account_id}/positions/instructions/{instruction_id}` to
360
+ * cancel an outstanding instruction.
361
+ */
362
+ interface Instruction {
363
+ /**
364
+ * The action to take.
365
+ */
366
+ instruction_type: PositionsAPI.PositionInstructionType;
367
+ /**
368
+ * Identifier of the options contract to act on. Unknown ids return 404.
369
+ */
370
+ instrument_id: string;
371
+ /**
372
+ * Number of contracts to include in the instruction.
373
+ */
374
+ quantity: string;
375
+ /**
376
+ * Caller-supplied idempotency key. Echoed on the response. The server generates a
377
+ * unique id when omitted.
378
+ */
379
+ instruction_id?: string | null;
380
+ }
381
+ }
382
+ export declare namespace Positions {
383
+ export { type Position as Position, type PositionInstruction as PositionInstruction, type PositionInstructionList as PositionInstructionList, type PositionInstructionStatus as PositionInstructionStatus, type PositionInstructionType as PositionInstructionType, type PositionList as PositionList, type PositionType as PositionType, type PositionCancelPositionInstructionResponse as PositionCancelPositionInstructionResponse, type PositionClosePositionResponse as PositionClosePositionResponse, type PositionClosePositionsResponse as PositionClosePositionsResponse, type PositionGetPositionInstructionsResponse as PositionGetPositionInstructionsResponse, type PositionGetPositionsResponse as PositionGetPositionsResponse, type PositionSubmitPositionInstructionsResponse as PositionSubmitPositionInstructionsResponse, type PositionCancelPositionInstructionParams as PositionCancelPositionInstructionParams, type PositionClosePositionParams as PositionClosePositionParams, type PositionClosePositionsParams as PositionClosePositionsParams, type PositionGetPositionInstructionsParams as PositionGetPositionInstructionsParams, type PositionGetPositionsParams as PositionGetPositionsParams, type PositionSubmitPositionInstructionsParams as PositionSubmitPositionInstructionsParams, };
384
+ }
385
+ //# sourceMappingURL=positions.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"positions.d.mts","sourceRoot":"","sources":["../../src/resources/v1/positions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,KAAK,KAAK,iBAAa;AAC9B,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;OAcG;IACH,yBAAyB,CACvB,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,uCAAuC,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yCAAyC,CAAC;IAQxD;;;;;;;;;;;;OAYG;IACH,aAAa,CACX,YAAY,EAAE,SAAS,CAAC,oBAAoB,EAC5C,MAAM,EAAE,2BAA2B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAQ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