@clear-street/clearstreet 0.0.0 → 0.72.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 +986 -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 +433 -0
  304. package/resources/v1/accounts.d.mts.map +1 -0
  305. package/resources/v1/accounts.d.ts +433 -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 +471 -0
  376. package/resources/v1/instruments.d.mts.map +1 -0
  377. package/resources/v1/instruments.d.ts +471 -0
  378. package/resources/v1/instruments.d.ts.map +1 -0
  379. package/resources/v1/instruments.js +75 -0
  380. package/resources/v1/instruments.js.map +1 -0
  381. package/resources/v1/instruments.mjs +71 -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 +583 -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 +609 -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,609 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import * as Shared from '../shared';
5
+ import * as OrdersAPI from './orders';
6
+ import * as V1API from './v1';
7
+ import { APIPromise } from '../../core/api-promise';
8
+ import { RequestOptions } from '../../internal/request-options';
9
+ import { path } from '../../internal/utils/path';
10
+
11
+ /**
12
+ * Retrieve core details and discovery endpoints for tradable instruments.
13
+ */
14
+ export class Instruments extends APIResource {
15
+ /**
16
+ * Retrieves detailed information for a specific instrument.
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * const response =
21
+ * await client.v1.instruments.getInstrumentByID(
22
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
23
+ * );
24
+ * ```
25
+ */
26
+ getInstrumentByID(
27
+ instrumentID: OrdersAPI.InstrumentIDOrSymbol,
28
+ query: InstrumentGetInstrumentByIDParams | null | undefined = {},
29
+ options?: RequestOptions,
30
+ ): APIPromise<InstrumentGetInstrumentByIDResponse> {
31
+ return this._client.get(path`/v1/instruments/${instrumentID}`, { query, ...options });
32
+ }
33
+
34
+ /**
35
+ * Retrieves a list of tradeable instruments.
36
+ *
37
+ * @example
38
+ * ```ts
39
+ * const response =
40
+ * await client.v1.instruments.getInstruments();
41
+ * ```
42
+ */
43
+ getInstruments(
44
+ query: InstrumentGetInstrumentsParams | null | undefined = {},
45
+ options?: RequestOptions,
46
+ ): APIPromise<InstrumentGetInstrumentsResponse> {
47
+ return this._client.get('/v1/instruments', { query, ...options });
48
+ }
49
+
50
+ /**
51
+ * List options contracts.
52
+ *
53
+ * Returns options contracts for a given underlier with options-specific metadata.
54
+ * Exactly one underlier identifier must be provided.
55
+ *
56
+ * @example
57
+ * ```ts
58
+ * const response =
59
+ * await client.v1.instruments.getOptionContracts();
60
+ * ```
61
+ */
62
+ getOptionContracts(
63
+ query: InstrumentGetOptionContractsParams | null | undefined = {},
64
+ options?: RequestOptions,
65
+ ): APIPromise<InstrumentGetOptionContractsResponse> {
66
+ return this._client.get('/v1/instruments/options/contracts', { query, ...options });
67
+ }
68
+
69
+ /**
70
+ * Search instruments by symbol, alternate identifier, or company name.
71
+ *
72
+ * The `q` parameter is case-insensitive and supports ticker symbols, alternate
73
+ * identifiers such as CUSIP, ISIN, OPRA root, and CMS identifiers, and company
74
+ * names for non-option instruments. Results are ranked by match quality plus
75
+ * instrument quality signals including log-scaled ADV, listing status,
76
+ * marginability, easy-to-borrow status, and OTC, restricted, and liquidation-only
77
+ * penalties. Defaults to the `EQUITY` asset class (common stocks, preferred
78
+ * shares, ADRs, ETFs, and exchange-traded mutual funds). Pass `asset_class=OPTION`
79
+ * to search option contracts by symbol or alternate identifier.
80
+ *
81
+ * @example
82
+ * ```ts
83
+ * const response =
84
+ * await client.v1.instruments.searchInstruments({ q: 'q' });
85
+ * ```
86
+ */
87
+ searchInstruments(
88
+ query: InstrumentSearchInstrumentsParams,
89
+ options?: RequestOptions,
90
+ ): APIPromise<InstrumentSearchInstrumentsResponse> {
91
+ return this._client.get('/v1/instruments/search', { query, ...options });
92
+ }
93
+ }
94
+
95
+ /**
96
+ * The type of options contract
97
+ */
98
+ export type ContractType = 'CALL' | 'PUT';
99
+
100
+ /**
101
+ * The exercise style of an options contract
102
+ */
103
+ export type ExerciseStyle = 'AMERICAN' | 'EUROPEAN';
104
+
105
+ /**
106
+ * Represents a tradable financial instrument.
107
+ */
108
+ export interface Instrument {
109
+ /**
110
+ * Unique OEMS instrument identifier (UUID)
111
+ */
112
+ id: string;
113
+
114
+ /**
115
+ * The ISO country code of the instrument's issue
116
+ */
117
+ country_of_issue: string;
118
+
119
+ /**
120
+ * The ISO currency code in which the instrument is traded
121
+ */
122
+ currency: string;
123
+
124
+ /**
125
+ * Indicates if the instrument is classified as Easy-To-Borrow
126
+ */
127
+ easy_to_borrow: boolean;
128
+
129
+ /**
130
+ * Indicates if the instrument supports fractional-quantity orders
131
+ */
132
+ is_fractionable: boolean;
133
+
134
+ /**
135
+ * Indicates if the instrument is liquidation only and cannot be bought
136
+ */
137
+ is_liquidation_only: boolean;
138
+
139
+ /**
140
+ * Indicates if the instrument is marginable
141
+ */
142
+ is_marginable: boolean;
143
+
144
+ /**
145
+ * Indicates if the instrument is a publicly traded partnership (PTP). PTP sales
146
+ * are subject to a 10% withholding tax for non-US tax residents.
147
+ */
148
+ is_ptp: boolean;
149
+
150
+ /**
151
+ * Indicates if short selling is prohibited for the instrument
152
+ */
153
+ is_short_prohibited: boolean;
154
+
155
+ /**
156
+ * Indicates if the instrument is on the Regulation SHO Threshold Security List
157
+ */
158
+ is_threshold_security: boolean;
159
+
160
+ /**
161
+ * Indicates if the instrument is tradable
162
+ */
163
+ is_tradable: boolean;
164
+
165
+ /**
166
+ * The trading symbol for the instrument
167
+ */
168
+ symbol: string;
169
+
170
+ /**
171
+ * The MIC code of the primary listing venue
172
+ */
173
+ venue: string;
174
+
175
+ /**
176
+ * Average daily share volume from the security definition.
177
+ */
178
+ adv?: string | null;
179
+
180
+ /**
181
+ * The expiration date for options instruments
182
+ */
183
+ expiry?: string | null;
184
+
185
+ /**
186
+ * The type of security (e.g., Common Stock, ETF)
187
+ */
188
+ instrument_type?: V1API.SecurityType | null;
189
+
190
+ /**
191
+ * The percent of a long position's value you must post as margin
192
+ */
193
+ long_margin_rate?: string | null;
194
+
195
+ /**
196
+ * The full name of the instrument or its issuer
197
+ */
198
+ name?: string | null;
199
+
200
+ /**
201
+ * Notional ADV (`adv × previous_close`). The primary liquidity signal used by
202
+ * `/instruments/search` ranking. Computed at response time so it stays consistent
203
+ * with whatever `adv` and `previous_close` show.
204
+ */
205
+ notional_adv?: string | null;
206
+
207
+ /**
208
+ * Available options expiration dates for this instrument. Present only when
209
+ * `include_options_expiry_dates=true` in the request.
210
+ */
211
+ options_expiry_dates?: Array<string> | null;
212
+
213
+ /**
214
+ * Last close price from the security definition.
215
+ */
216
+ previous_close?: string | null;
217
+
218
+ /**
219
+ * The percent of a short position's value you must post as margin
220
+ */
221
+ short_margin_rate?: string | null;
222
+
223
+ /**
224
+ * The strike price for options instruments
225
+ */
226
+ strike_price?: string | null;
227
+ }
228
+
229
+ export interface InstrumentCore {
230
+ /**
231
+ * Unique OEMS instrument identifier (UUID)
232
+ */
233
+ id: string;
234
+
235
+ /**
236
+ * The ISO country code of the instrument's issue
237
+ */
238
+ country_of_issue: string;
239
+
240
+ /**
241
+ * The ISO currency code in which the instrument is traded
242
+ */
243
+ currency: string;
244
+
245
+ /**
246
+ * Indicates if the instrument is classified as Easy-To-Borrow
247
+ */
248
+ easy_to_borrow: boolean;
249
+
250
+ /**
251
+ * Indicates if the instrument supports fractional-quantity orders
252
+ */
253
+ is_fractionable: boolean;
254
+
255
+ /**
256
+ * Indicates if the instrument is liquidation only and cannot be bought
257
+ */
258
+ is_liquidation_only: boolean;
259
+
260
+ /**
261
+ * Indicates if the instrument is marginable
262
+ */
263
+ is_marginable: boolean;
264
+
265
+ /**
266
+ * Indicates if the instrument is a publicly traded partnership (PTP). PTP sales
267
+ * are subject to a 10% withholding tax for non-US tax residents.
268
+ */
269
+ is_ptp: boolean;
270
+
271
+ /**
272
+ * Indicates if short selling is prohibited for the instrument
273
+ */
274
+ is_short_prohibited: boolean;
275
+
276
+ /**
277
+ * Indicates if the instrument is on the Regulation SHO Threshold Security List
278
+ */
279
+ is_threshold_security: boolean;
280
+
281
+ /**
282
+ * Indicates if the instrument is tradable
283
+ */
284
+ is_tradable: boolean;
285
+
286
+ /**
287
+ * The trading symbol for the instrument
288
+ */
289
+ symbol: string;
290
+
291
+ /**
292
+ * The MIC code of the primary listing venue
293
+ */
294
+ venue: string;
295
+
296
+ /**
297
+ * Average daily share volume from the security definition.
298
+ */
299
+ adv?: string | null;
300
+
301
+ /**
302
+ * The expiration date for options instruments
303
+ */
304
+ expiry?: string | null;
305
+
306
+ /**
307
+ * The type of security (e.g., Common Stock, ETF)
308
+ */
309
+ instrument_type?: V1API.SecurityType | null;
310
+
311
+ /**
312
+ * The percent of a long position's value you must post as margin
313
+ */
314
+ long_margin_rate?: string | null;
315
+
316
+ /**
317
+ * The full name of the instrument or its issuer
318
+ */
319
+ name?: string | null;
320
+
321
+ /**
322
+ * Notional ADV (`adv × previous_close`). The primary liquidity signal used by
323
+ * `/instruments/search` ranking. Computed at response time so it stays consistent
324
+ * with whatever `adv` and `previous_close` show.
325
+ */
326
+ notional_adv?: string | null;
327
+
328
+ /**
329
+ * Last close price from the security definition.
330
+ */
331
+ previous_close?: string | null;
332
+
333
+ /**
334
+ * The percent of a short position's value you must post as margin
335
+ */
336
+ short_margin_rate?: string | null;
337
+
338
+ /**
339
+ * The strike price for options instruments
340
+ */
341
+ strike_price?: string | null;
342
+ }
343
+
344
+ export type InstrumentCoreList = Array<InstrumentCore>;
345
+
346
+ /**
347
+ * The listing type of an options contract
348
+ */
349
+ export type ListingType = 'STANDARD' | 'FLEX' | 'OTC';
350
+
351
+ /**
352
+ * An options contract with options-specific metadata
353
+ */
354
+ export interface OptionsContract {
355
+ /**
356
+ * OEMS instrument identifier
357
+ */
358
+ id: string;
359
+
360
+ /**
361
+ * Whether this is a CALL or PUT
362
+ */
363
+ contract_type: ContractType;
364
+
365
+ /**
366
+ * ISO currency code
367
+ */
368
+ currency: string;
369
+
370
+ /**
371
+ * MIC code of the primary listing venue
372
+ */
373
+ exchange: string;
374
+
375
+ /**
376
+ * Exercise style
377
+ */
378
+ exercise_style: ExerciseStyle;
379
+
380
+ /**
381
+ * Expiration date
382
+ */
383
+ expiry: string;
384
+
385
+ /**
386
+ * Whether the contract is liquidation-only
387
+ */
388
+ is_liquidation_only: boolean;
389
+
390
+ /**
391
+ * Whether the contract is marginable
392
+ */
393
+ is_marginable: boolean;
394
+
395
+ /**
396
+ * Listing type
397
+ */
398
+ listing_type: ListingType;
399
+
400
+ /**
401
+ * Contract multiplier (100 for standard options)
402
+ */
403
+ multiplier: string;
404
+
405
+ /**
406
+ * Strike price
407
+ */
408
+ strike_price: string;
409
+
410
+ /**
411
+ * OSI symbol (e.g. "AAPL 251219C00150000")
412
+ */
413
+ symbol: string;
414
+
415
+ /**
416
+ * Open interest (number of outstanding contracts), if available
417
+ */
418
+ open_interest?: number | null;
419
+
420
+ /**
421
+ * OEMS instrument ID of the underlying instrument, if resolvable
422
+ */
423
+ underlying_instrument_id?: string | null;
424
+ }
425
+
426
+ export type OptionsContractList = Array<OptionsContract>;
427
+
428
+ export interface InstrumentGetInstrumentByIDResponse extends Shared.BaseResponse {
429
+ /**
430
+ * Represents a tradable financial instrument.
431
+ */
432
+ data: Instrument;
433
+ }
434
+
435
+ export interface InstrumentGetInstrumentsResponse extends Shared.BaseResponse {
436
+ data: InstrumentCoreList;
437
+ }
438
+
439
+ export interface InstrumentGetOptionContractsResponse extends Shared.BaseResponse {
440
+ data: OptionsContractList;
441
+ }
442
+
443
+ export interface InstrumentSearchInstrumentsResponse extends Shared.BaseResponse {
444
+ data: InstrumentCoreList;
445
+ }
446
+
447
+ export interface InstrumentGetInstrumentByIDParams {
448
+ /**
449
+ * When true, include unique options expiry dates for this instrument
450
+ */
451
+ include_options_expiry_dates?: boolean | null;
452
+ }
453
+
454
+ export interface InstrumentGetInstrumentsParams {
455
+ /**
456
+ * Filter by easy to borrow status
457
+ */
458
+ easy_to_borrow?: boolean;
459
+
460
+ /**
461
+ * Comma-separated OEMS instrument UUIDs
462
+ */
463
+ instrument_ids?: Array<string>;
464
+
465
+ /**
466
+ * Filter by instrument type (e.g. COMMON_STOCK, OPTION)
467
+ */
468
+ instrument_type?: 'COMMON_STOCK' | 'OPTION' | 'CASH';
469
+
470
+ /**
471
+ * Filter by liquidation only status
472
+ */
473
+ is_liquidation_only?: boolean;
474
+
475
+ /**
476
+ * Filter by marginable status
477
+ */
478
+ is_marginable?: boolean;
479
+
480
+ /**
481
+ * Filter by publicly traded partnership (PTP) status
482
+ */
483
+ is_ptp?: boolean;
484
+
485
+ /**
486
+ * Filter by short prohibited status
487
+ */
488
+ is_short_prohibited?: boolean;
489
+
490
+ /**
491
+ * Filter by threshold security status
492
+ */
493
+ is_threshold_security?: boolean;
494
+
495
+ /**
496
+ * The number of items to return per page. Only used when page_token is not
497
+ * provided.
498
+ */
499
+ page_size?: number;
500
+
501
+ /**
502
+ * Token for retrieving the next or previous page of results. Contains encoded
503
+ * pagination state; when provided, page_size is ignored.
504
+ */
505
+ page_token?: string;
506
+ }
507
+
508
+ export interface InstrumentGetOptionContractsParams {
509
+ /**
510
+ * Filter by contract type: CALL or PUT
511
+ */
512
+ contract_type?: ContractType;
513
+
514
+ /**
515
+ * Filter to contracts expiring on this date (YYYY-MM-DD)
516
+ */
517
+ expiry?: string;
518
+
519
+ /**
520
+ * The number of items to return per page. Only used when page_token is not
521
+ * provided.
522
+ */
523
+ page_size?: number;
524
+
525
+ /**
526
+ * Token for retrieving the next or previous page of results. Contains encoded
527
+ * pagination state; when provided, page_size is ignored.
528
+ */
529
+ page_token?: string;
530
+
531
+ /**
532
+ * Underlier symbol (e.g., AAPL, SPX)
533
+ */
534
+ underlier?: string;
535
+
536
+ /**
537
+ * OEMS instrument UUID or symbol of the underlying equity/index
538
+ */
539
+ underlying_instrument_id?: OrdersAPI.InstrumentIDOrSymbol;
540
+ }
541
+
542
+ export interface InstrumentSearchInstrumentsParams {
543
+ /**
544
+ * Search term applied case-insensitively to ticker symbols, alternate identifiers
545
+ * (CUSIP, ISIN, OPRA root, CMS), and company names for non-option instruments.
546
+ * Option searches match symbols and alternate identifiers.
547
+ */
548
+ q: string;
549
+
550
+ /**
551
+ * Comma-separated asset classes (EQUITY|OPTION|WARRANT|BOND|FX|OTHER). Defaults to
552
+ * EQUITY.
553
+ */
554
+ asset_class?: string;
555
+
556
+ /**
557
+ * Optional listing-country filter (e.g., US).
558
+ */
559
+ country?: string;
560
+
561
+ /**
562
+ * Optional ISO currency filter (e.g., USD).
563
+ */
564
+ currency?: string;
565
+
566
+ /**
567
+ * Include inactive instruments. Default false.
568
+ */
569
+ include_inactive?: boolean;
570
+
571
+ /**
572
+ * Include publicly traded partnership (PTP) instruments. Default true (penalized
573
+ * in ranking).
574
+ */
575
+ include_ptp?: boolean;
576
+
577
+ /**
578
+ * The number of items to return per page. Only used when page_token is not
579
+ * provided.
580
+ */
581
+ page_size?: number;
582
+
583
+ /**
584
+ * Token for retrieving the next or previous page of results. Contains encoded
585
+ * pagination state; when provided, page_size is ignored.
586
+ */
587
+ page_token?: string;
588
+ }
589
+
590
+ export declare namespace Instruments {
591
+ export {
592
+ type ContractType as ContractType,
593
+ type ExerciseStyle as ExerciseStyle,
594
+ type Instrument as Instrument,
595
+ type InstrumentCore as InstrumentCore,
596
+ type InstrumentCoreList as InstrumentCoreList,
597
+ type ListingType as ListingType,
598
+ type OptionsContract as OptionsContract,
599
+ type OptionsContractList as OptionsContractList,
600
+ type InstrumentGetInstrumentByIDResponse as InstrumentGetInstrumentByIDResponse,
601
+ type InstrumentGetInstrumentsResponse as InstrumentGetInstrumentsResponse,
602
+ type InstrumentGetOptionContractsResponse as InstrumentGetOptionContractsResponse,
603
+ type InstrumentSearchInstrumentsResponse as InstrumentSearchInstrumentsResponse,
604
+ type InstrumentGetInstrumentByIDParams as InstrumentGetInstrumentByIDParams,
605
+ type InstrumentGetInstrumentsParams as InstrumentGetInstrumentsParams,
606
+ type InstrumentGetOptionContractsParams as InstrumentGetOptionContractsParams,
607
+ type InstrumentSearchInstrumentsParams as InstrumentSearchInstrumentsParams,
608
+ };
609
+ }