@clear-street/studio-sdk 0.1.0-alpha.10

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 (305) hide show
  1. package/CHANGELOG.md +135 -0
  2. package/LICENSE +201 -0
  3. package/README.md +290 -0
  4. package/_shims/MultipartBody.d.ts +9 -0
  5. package/_shims/MultipartBody.d.ts.map +1 -0
  6. package/_shims/MultipartBody.js +16 -0
  7. package/_shims/MultipartBody.js.map +1 -0
  8. package/_shims/MultipartBody.mjs +12 -0
  9. package/_shims/MultipartBody.mjs.map +1 -0
  10. package/_shims/README.md +46 -0
  11. package/_shims/auto/runtime-bun.d.ts +5 -0
  12. package/_shims/auto/runtime-bun.d.ts.map +1 -0
  13. package/_shims/auto/runtime-bun.js +21 -0
  14. package/_shims/auto/runtime-bun.js.map +1 -0
  15. package/_shims/auto/runtime-bun.mjs +2 -0
  16. package/_shims/auto/runtime-bun.mjs.map +1 -0
  17. package/_shims/auto/runtime-node.d.ts +5 -0
  18. package/_shims/auto/runtime-node.d.ts.map +1 -0
  19. package/_shims/auto/runtime-node.js +21 -0
  20. package/_shims/auto/runtime-node.js.map +1 -0
  21. package/_shims/auto/runtime-node.mjs +2 -0
  22. package/_shims/auto/runtime-node.mjs.map +1 -0
  23. package/_shims/auto/runtime.d.ts +5 -0
  24. package/_shims/auto/runtime.d.ts.map +1 -0
  25. package/_shims/auto/runtime.js +21 -0
  26. package/_shims/auto/runtime.js.map +1 -0
  27. package/_shims/auto/runtime.mjs +2 -0
  28. package/_shims/auto/runtime.mjs.map +1 -0
  29. package/_shims/auto/types-node.d.ts +5 -0
  30. package/_shims/auto/types-node.d.ts.map +1 -0
  31. package/_shims/auto/types-node.js +21 -0
  32. package/_shims/auto/types-node.js.map +1 -0
  33. package/_shims/auto/types-node.mjs +2 -0
  34. package/_shims/auto/types-node.mjs.map +1 -0
  35. package/_shims/auto/types.d.ts +101 -0
  36. package/_shims/auto/types.js +3 -0
  37. package/_shims/auto/types.mjs +3 -0
  38. package/_shims/bun-runtime.d.ts +6 -0
  39. package/_shims/bun-runtime.d.ts.map +1 -0
  40. package/_shims/bun-runtime.js +14 -0
  41. package/_shims/bun-runtime.js.map +1 -0
  42. package/_shims/bun-runtime.mjs +10 -0
  43. package/_shims/bun-runtime.mjs.map +1 -0
  44. package/_shims/index.d.ts +81 -0
  45. package/_shims/index.js +13 -0
  46. package/_shims/index.mjs +7 -0
  47. package/_shims/manual-types.d.ts +12 -0
  48. package/_shims/manual-types.js +3 -0
  49. package/_shims/manual-types.mjs +3 -0
  50. package/_shims/node-runtime.d.ts +3 -0
  51. package/_shims/node-runtime.d.ts.map +1 -0
  52. package/_shims/node-runtime.js +89 -0
  53. package/_shims/node-runtime.js.map +1 -0
  54. package/_shims/node-runtime.mjs +56 -0
  55. package/_shims/node-runtime.mjs.map +1 -0
  56. package/_shims/node-types.d.ts +42 -0
  57. package/_shims/node-types.js +3 -0
  58. package/_shims/node-types.mjs +3 -0
  59. package/_shims/registry.d.ts +37 -0
  60. package/_shims/registry.d.ts.map +1 -0
  61. package/_shims/registry.js +41 -0
  62. package/_shims/registry.js.map +1 -0
  63. package/_shims/registry.mjs +37 -0
  64. package/_shims/registry.mjs.map +1 -0
  65. package/_shims/web-runtime.d.ts +5 -0
  66. package/_shims/web-runtime.d.ts.map +1 -0
  67. package/_shims/web-runtime.js +78 -0
  68. package/_shims/web-runtime.js.map +1 -0
  69. package/_shims/web-runtime.mjs +71 -0
  70. package/_shims/web-runtime.mjs.map +1 -0
  71. package/_shims/web-types.d.ts +83 -0
  72. package/_shims/web-types.js +3 -0
  73. package/_shims/web-types.mjs +3 -0
  74. package/core.d.ts +242 -0
  75. package/core.d.ts.map +1 -0
  76. package/core.js +901 -0
  77. package/core.js.map +1 -0
  78. package/core.mjs +869 -0
  79. package/core.mjs.map +1 -0
  80. package/error.d.ts +53 -0
  81. package/error.d.ts.map +1 -0
  82. package/error.js +143 -0
  83. package/error.js.map +1 -0
  84. package/error.mjs +127 -0
  85. package/error.mjs.map +1 -0
  86. package/index.d.mts +144 -0
  87. package/index.d.ts +144 -0
  88. package/index.d.ts.map +1 -0
  89. package/index.js +122 -0
  90. package/index.js.map +1 -0
  91. package/index.mjs +94 -0
  92. package/index.mjs.map +1 -0
  93. package/package.json +103 -0
  94. package/resource.d.ts +6 -0
  95. package/resource.d.ts.map +1 -0
  96. package/resource.js +11 -0
  97. package/resource.js.map +1 -0
  98. package/resource.mjs +7 -0
  99. package/resource.mjs.map +1 -0
  100. package/resources/accounts/accounts.d.ts +84 -0
  101. package/resources/accounts/accounts.d.ts.map +1 -0
  102. package/resources/accounts/accounts.js +79 -0
  103. package/resources/accounts/accounts.js.map +1 -0
  104. package/resources/accounts/accounts.mjs +52 -0
  105. package/resources/accounts/accounts.mjs.map +1 -0
  106. package/resources/accounts/bulk-orders.d.ts +134 -0
  107. package/resources/accounts/bulk-orders.d.ts.map +1 -0
  108. package/resources/accounts/bulk-orders.js +29 -0
  109. package/resources/accounts/bulk-orders.js.map +1 -0
  110. package/resources/accounts/bulk-orders.mjs +25 -0
  111. package/resources/accounts/bulk-orders.mjs.map +1 -0
  112. package/resources/accounts/easy-borrows.d.ts +17 -0
  113. package/resources/accounts/easy-borrows.d.ts.map +1 -0
  114. package/resources/accounts/easy-borrows.js +18 -0
  115. package/resources/accounts/easy-borrows.js.map +1 -0
  116. package/resources/accounts/easy-borrows.mjs +14 -0
  117. package/resources/accounts/easy-borrows.mjs.map +1 -0
  118. package/resources/accounts/holdings.d.ts +73 -0
  119. package/resources/accounts/holdings.d.ts.map +1 -0
  120. package/resources/accounts/holdings.js +18 -0
  121. package/resources/accounts/holdings.js.map +1 -0
  122. package/resources/accounts/holdings.mjs +14 -0
  123. package/resources/accounts/holdings.mjs.map +1 -0
  124. package/resources/accounts/index.d.ts +12 -0
  125. package/resources/accounts/index.d.ts.map +1 -0
  126. package/resources/accounts/index.js +27 -0
  127. package/resources/accounts/index.js.map +1 -0
  128. package/resources/accounts/index.mjs +13 -0
  129. package/resources/accounts/index.mjs.map +1 -0
  130. package/resources/accounts/locate-orders.d.ts +56 -0
  131. package/resources/accounts/locate-orders.d.ts.map +1 -0
  132. package/resources/accounts/locate-orders.js +39 -0
  133. package/resources/accounts/locate-orders.js.map +1 -0
  134. package/resources/accounts/locate-orders.mjs +35 -0
  135. package/resources/accounts/locate-orders.mjs.map +1 -0
  136. package/resources/accounts/orders.d.ts +164 -0
  137. package/resources/accounts/orders.d.ts.map +1 -0
  138. package/resources/accounts/orders.js +53 -0
  139. package/resources/accounts/orders.js.map +1 -0
  140. package/resources/accounts/orders.mjs +49 -0
  141. package/resources/accounts/orders.mjs.map +1 -0
  142. package/resources/accounts/pnl-details.d.ts +113 -0
  143. package/resources/accounts/pnl-details.d.ts.map +1 -0
  144. package/resources/accounts/pnl-details.js +17 -0
  145. package/resources/accounts/pnl-details.js.map +1 -0
  146. package/resources/accounts/pnl-details.mjs +13 -0
  147. package/resources/accounts/pnl-details.mjs.map +1 -0
  148. package/resources/accounts/pnl-summary.d.ts +10 -0
  149. package/resources/accounts/pnl-summary.d.ts.map +1 -0
  150. package/resources/accounts/pnl-summary.js +15 -0
  151. package/resources/accounts/pnl-summary.js.map +1 -0
  152. package/resources/accounts/pnl-summary.mjs +11 -0
  153. package/resources/accounts/pnl-summary.mjs.map +1 -0
  154. package/resources/accounts/pnl-sums.d.ts +138 -0
  155. package/resources/accounts/pnl-sums.d.ts.map +1 -0
  156. package/resources/accounts/pnl-sums.js +18 -0
  157. package/resources/accounts/pnl-sums.js.map +1 -0
  158. package/resources/accounts/pnl-sums.mjs +14 -0
  159. package/resources/accounts/pnl-sums.mjs.map +1 -0
  160. package/resources/accounts/positions.d.ts +37 -0
  161. package/resources/accounts/positions.d.ts.map +1 -0
  162. package/resources/accounts/positions.js +24 -0
  163. package/resources/accounts/positions.js.map +1 -0
  164. package/resources/accounts/positions.mjs +20 -0
  165. package/resources/accounts/positions.mjs.map +1 -0
  166. package/resources/accounts/trades.d.ts +37 -0
  167. package/resources/accounts/trades.d.ts.map +1 -0
  168. package/resources/accounts/trades.js +24 -0
  169. package/resources/accounts/trades.js.map +1 -0
  170. package/resources/accounts/trades.mjs +20 -0
  171. package/resources/accounts/trades.mjs.map +1 -0
  172. package/resources/entities/entities.d.ts +458 -0
  173. package/resources/entities/entities.d.ts.map +1 -0
  174. package/resources/entities/entities.js +61 -0
  175. package/resources/entities/entities.js.map +1 -0
  176. package/resources/entities/entities.mjs +34 -0
  177. package/resources/entities/entities.mjs.map +1 -0
  178. package/resources/entities/index.d.ts +6 -0
  179. package/resources/entities/index.d.ts.map +1 -0
  180. package/resources/entities/index.js +15 -0
  181. package/resources/entities/index.js.map +1 -0
  182. package/resources/entities/index.mjs +7 -0
  183. package/resources/entities/index.mjs.map +1 -0
  184. package/resources/entities/pnl-summaries.d.ts +10 -0
  185. package/resources/entities/pnl-summaries.d.ts.map +1 -0
  186. package/resources/entities/pnl-summaries.js +15 -0
  187. package/resources/entities/pnl-summaries.js.map +1 -0
  188. package/resources/entities/pnl-summaries.mjs +11 -0
  189. package/resources/entities/pnl-summaries.mjs.map +1 -0
  190. package/resources/entities/portfolio-margins.d.ts +10 -0
  191. package/resources/entities/portfolio-margins.d.ts.map +1 -0
  192. package/resources/entities/portfolio-margins.js +15 -0
  193. package/resources/entities/portfolio-margins.js.map +1 -0
  194. package/resources/entities/portfolio-margins.mjs +11 -0
  195. package/resources/entities/portfolio-margins.mjs.map +1 -0
  196. package/resources/entities/regt-margin-simulations.d.ts +97 -0
  197. package/resources/entities/regt-margin-simulations.d.ts.map +1 -0
  198. package/resources/entities/regt-margin-simulations.js +30 -0
  199. package/resources/entities/regt-margin-simulations.js.map +1 -0
  200. package/resources/entities/regt-margin-simulations.mjs +26 -0
  201. package/resources/entities/regt-margin-simulations.mjs.map +1 -0
  202. package/resources/entities/regt-margins.d.ts +10 -0
  203. package/resources/entities/regt-margins.d.ts.map +1 -0
  204. package/resources/entities/regt-margins.js +15 -0
  205. package/resources/entities/regt-margins.js.map +1 -0
  206. package/resources/entities/regt-margins.mjs +11 -0
  207. package/resources/entities/regt-margins.mjs.map +1 -0
  208. package/resources/index.d.ts +5 -0
  209. package/resources/index.d.ts.map +1 -0
  210. package/resources/index.js +26 -0
  211. package/resources/index.js.map +1 -0
  212. package/resources/index.mjs +6 -0
  213. package/resources/index.mjs.map +1 -0
  214. package/resources/instruments.d.ts +45 -0
  215. package/resources/instruments.d.ts.map +1 -0
  216. package/resources/instruments.js +18 -0
  217. package/resources/instruments.js.map +1 -0
  218. package/resources/instruments.mjs +14 -0
  219. package/resources/instruments.mjs.map +1 -0
  220. package/resources/shared.d.ts +332 -0
  221. package/resources/shared.d.ts.map +1 -0
  222. package/resources/shared.js +4 -0
  223. package/resources/shared.js.map +1 -0
  224. package/resources/shared.mjs +3 -0
  225. package/resources/shared.mjs.map +1 -0
  226. package/shims/node.d.ts +30 -0
  227. package/shims/node.d.ts.map +1 -0
  228. package/shims/node.js +31 -0
  229. package/shims/node.js.map +1 -0
  230. package/shims/node.mjs +5 -0
  231. package/shims/node.mjs.map +1 -0
  232. package/shims/web.d.ts +26 -0
  233. package/shims/web.d.ts.map +1 -0
  234. package/shims/web.js +31 -0
  235. package/shims/web.js.map +1 -0
  236. package/shims/web.mjs +5 -0
  237. package/shims/web.mjs.map +1 -0
  238. package/src/_shims/MultipartBody.ts +9 -0
  239. package/src/_shims/README.md +46 -0
  240. package/src/_shims/auto/runtime-bun.ts +4 -0
  241. package/src/_shims/auto/runtime-node.ts +4 -0
  242. package/src/_shims/auto/runtime.ts +4 -0
  243. package/src/_shims/auto/types-node.ts +4 -0
  244. package/src/_shims/auto/types.d.ts +101 -0
  245. package/src/_shims/auto/types.js +3 -0
  246. package/src/_shims/auto/types.mjs +3 -0
  247. package/src/_shims/bun-runtime.ts +14 -0
  248. package/src/_shims/index.d.ts +81 -0
  249. package/src/_shims/index.js +13 -0
  250. package/src/_shims/index.mjs +7 -0
  251. package/src/_shims/manual-types.d.ts +12 -0
  252. package/src/_shims/manual-types.js +3 -0
  253. package/src/_shims/manual-types.mjs +3 -0
  254. package/src/_shims/node-runtime.ts +81 -0
  255. package/src/_shims/node-types.d.ts +42 -0
  256. package/src/_shims/node-types.js +3 -0
  257. package/src/_shims/node-types.mjs +3 -0
  258. package/src/_shims/registry.ts +67 -0
  259. package/src/_shims/web-runtime.ts +103 -0
  260. package/src/_shims/web-types.d.ts +83 -0
  261. package/src/_shims/web-types.js +3 -0
  262. package/src/_shims/web-types.mjs +3 -0
  263. package/src/core.ts +1190 -0
  264. package/src/error.ts +146 -0
  265. package/src/index.ts +231 -0
  266. package/src/lib/.keep +4 -0
  267. package/src/resource.ts +11 -0
  268. package/src/resources/accounts/accounts.ts +97 -0
  269. package/src/resources/accounts/bulk-orders.ts +161 -0
  270. package/src/resources/accounts/easy-borrows.ts +23 -0
  271. package/src/resources/accounts/holdings.ts +103 -0
  272. package/src/resources/accounts/index.ts +27 -0
  273. package/src/resources/accounts/locate-orders.ts +94 -0
  274. package/src/resources/accounts/orders.ts +243 -0
  275. package/src/resources/accounts/pnl-details.ts +143 -0
  276. package/src/resources/accounts/pnl-summary.ts +14 -0
  277. package/src/resources/accounts/pnl-sums.ts +176 -0
  278. package/src/resources/accounts/positions.ts +66 -0
  279. package/src/resources/accounts/trades.ts +62 -0
  280. package/src/resources/entities/entities.ts +562 -0
  281. package/src/resources/entities/index.ts +12 -0
  282. package/src/resources/entities/pnl-summaries.ts +14 -0
  283. package/src/resources/entities/portfolio-margins.ts +14 -0
  284. package/src/resources/entities/regt-margin-simulations.ts +127 -0
  285. package/src/resources/entities/regt-margins.ts +14 -0
  286. package/src/resources/index.ts +13 -0
  287. package/src/resources/instruments.ts +70 -0
  288. package/src/resources/shared.ts +428 -0
  289. package/src/shims/node.ts +50 -0
  290. package/src/shims/web.ts +50 -0
  291. package/src/tsconfig.json +11 -0
  292. package/src/uploads.ts +255 -0
  293. package/src/version.ts +1 -0
  294. package/uploads.d.ts +75 -0
  295. package/uploads.d.ts.map +1 -0
  296. package/uploads.js +171 -0
  297. package/uploads.js.map +1 -0
  298. package/uploads.mjs +158 -0
  299. package/uploads.mjs.map +1 -0
  300. package/version.d.ts +2 -0
  301. package/version.d.ts.map +1 -0
  302. package/version.js +5 -0
  303. package/version.js.map +1 -0
  304. package/version.mjs +2 -0
  305. package/version.mjs.map +1 -0
@@ -0,0 +1,10 @@
1
+ import { APIResource } from "../../resource.js";
2
+ import * as Core from "../../core.js";
3
+ import * as EntitiesAPI from "./entities.js";
4
+ export declare class PortfolioMargins extends APIResource {
5
+ /**
6
+ * Get latest portfolio margin calculation for the given entity
7
+ */
8
+ retrieve(entityId: string, options?: Core.RequestOptions): Core.APIPromise<EntitiesAPI.PortfolioMargin>;
9
+ }
10
+ //# sourceMappingURL=portfolio-margins.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"portfolio-margins.d.ts","sourceRoot":"","sources":["../../src/resources/entities/portfolio-margins.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,WAAW,MAAM,YAAY,CAAC;AAE1C,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,eAAe,CAAC;CAGxG"}
@@ -0,0 +1,15 @@
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.PortfolioMargins = void 0;
5
+ const resource_1 = require("../../resource.js");
6
+ class PortfolioMargins extends resource_1.APIResource {
7
+ /**
8
+ * Get latest portfolio margin calculation for the given entity
9
+ */
10
+ retrieve(entityId, options) {
11
+ return this._client.get(`/entities/${entityId}/portfolio-margin`, options);
12
+ }
13
+ }
14
+ exports.PortfolioMargins = PortfolioMargins;
15
+ //# sourceMappingURL=portfolio-margins.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"portfolio-margins.js","sourceRoot":"","sources":["../../src/resources/entities/portfolio-margins.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAI7C,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;OAEG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAA6B;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,QAAQ,mBAAmB,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;CACF;AAPD,4CAOC"}
@@ -0,0 +1,11 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../resource.mjs";
3
+ export class PortfolioMargins extends APIResource {
4
+ /**
5
+ * Get latest portfolio margin calculation for the given entity
6
+ */
7
+ retrieve(entityId, options) {
8
+ return this._client.get(`/entities/${entityId}/portfolio-margin`, options);
9
+ }
10
+ }
11
+ //# sourceMappingURL=portfolio-margins.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"portfolio-margins.mjs","sourceRoot":"","sources":["../../src/resources/entities/portfolio-margins.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAA6B;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,QAAQ,mBAAmB,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;CACF"}
@@ -0,0 +1,97 @@
1
+ import { APIResource } from "../../resource.js";
2
+ import * as Core from "../../core.js";
3
+ import * as RegtMarginSimulationsAPI from "./regt-margin-simulations.js";
4
+ import * as Shared from "../shared.js";
5
+ export declare class RegtMarginSimulations extends APIResource {
6
+ /**
7
+ * Simulate Reg-T margin calculation for a given hypothetical set of prices and/or
8
+ * trades. This is useful for understanding the impact of price fluctuations or
9
+ * trades on margin requirements. Once a simulation is created, it remains
10
+ * available for 48-hours, after which it will automatically be deleted.
11
+ *
12
+ * Simulations created through the API are visible in the Studio UI under the Risk
13
+ * & Margin section, after enabling the "Risk Simulations" toggle.
14
+ */
15
+ create(entityId: string, body: RegtMarginSimulationCreateParams, options?: Core.RequestOptions): Core.APIPromise<RegtMarginSimulationCreateResponse>;
16
+ /**
17
+ * Get a Reg-T margin simluation that was previously created. Note, simulations are
18
+ * automatically deleted after 48-hours.
19
+ */
20
+ retrieve(entityId: string, simulationId: SimulationID, options?: Core.RequestOptions): Core.APIPromise<Shared.RegtMarginSimulation>;
21
+ }
22
+ /**
23
+ * Unique ID for a simulation.
24
+ */
25
+ export type SimulationID = string;
26
+ export interface RegtMarginSimulationCreateResponse {
27
+ /**
28
+ * Unique ID for a simulation.
29
+ */
30
+ simulation_id: SimulationID;
31
+ }
32
+ export interface RegtMarginSimulationCreateParams {
33
+ /**
34
+ * A name for this simulation for reference.
35
+ */
36
+ name: string;
37
+ /**
38
+ * If true, the simulation will ignore any existing positions and balances in the
39
+ * account. Set to true if you want to simulate from a clean slate, i.e. an empty
40
+ * account.
41
+ */
42
+ ignore_existing?: boolean;
43
+ /**
44
+ * List of prices to use in the simulation, i.e. fair-market-values you specify for
45
+ * each symbol. If this is not provided, current market prices will be used, if
46
+ * they are available.
47
+ */
48
+ prices?: Array<RegtMarginSimulationCreateParams.Price>;
49
+ /**
50
+ * List of hypothetical trades to include in the simulation, if any.
51
+ */
52
+ trades?: Array<RegtMarginSimulationCreateParams.Trade>;
53
+ }
54
+ export declare namespace RegtMarginSimulationCreateParams {
55
+ interface Price {
56
+ /**
57
+ * The price to use in the simulation.
58
+ */
59
+ price: string;
60
+ /**
61
+ * The symbol for the instrument.
62
+ */
63
+ symbol: string;
64
+ /**
65
+ * Denotes the format of the provided `symbol` field.
66
+ */
67
+ symbol_format?: 'cms' | 'osi';
68
+ }
69
+ interface Trade {
70
+ /**
71
+ * The price of the simulated trade.
72
+ */
73
+ price: string;
74
+ /**
75
+ * The quantity of the simulated trade.
76
+ */
77
+ quantity: string;
78
+ /**
79
+ * The side of the simulated trade.
80
+ */
81
+ side: 'buy' | 'sell';
82
+ /**
83
+ * The symbol for the instrument.
84
+ */
85
+ symbol: string;
86
+ /**
87
+ * Denotes the format of the provided `symbol` field.
88
+ */
89
+ symbol_format?: 'cms' | 'osi';
90
+ }
91
+ }
92
+ export declare namespace RegtMarginSimulations {
93
+ export import SimulationID = RegtMarginSimulationsAPI.SimulationID;
94
+ export import RegtMarginSimulationCreateResponse = RegtMarginSimulationsAPI.RegtMarginSimulationCreateResponse;
95
+ export import RegtMarginSimulationCreateParams = RegtMarginSimulationsAPI.RegtMarginSimulationCreateParams;
96
+ }
97
+ //# sourceMappingURL=regt-margin-simulations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"regt-margin-simulations.d.ts","sourceRoot":"","sources":["../../src/resources/entities/regt-margin-simulations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,wBAAwB,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AAEpC,qBAAa,qBAAsB,SAAQ,WAAW;IACpD;;;;;;;;OAQG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,gCAAgC,EACtC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,kCAAkC,CAAC;IAItD;;;OAGG;IACH,QAAQ,CACN,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,YAAY,EAC1B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,oBAAoB,CAAC;CAGhD;AAED;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,aAAa,EAAE,YAAY,CAAC;CAC7B;AAED,MAAM,WAAW,gCAAgC;IAC/C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,gCAAgC,CAAC,KAAK,CAAC,CAAC;IAEvD;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,gCAAgC,CAAC,KAAK,CAAC,CAAC;CACxD;AAED,yBAAiB,gCAAgC,CAAC;IAChD,UAAiB,KAAK;QACpB;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,aAAa,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;KAC/B;IAED,UAAiB,KAAK;QACpB;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,IAAI,EAAE,KAAK,GAAG,MAAM,CAAC;QAErB;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,aAAa,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;KAC/B;CACF;AAED,yBAAiB,qBAAqB,CAAC;IACrC,MAAM,QAAQ,YAAY,GAAG,wBAAwB,CAAC,YAAY,CAAC;IACnE,MAAM,QAAQ,kCAAkC,GAAG,wBAAwB,CAAC,kCAAkC,CAAC;IAC/G,MAAM,QAAQ,gCAAgC,GAAG,wBAAwB,CAAC,gCAAgC,CAAC;CAC5G"}
@@ -0,0 +1,30 @@
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.RegtMarginSimulations = void 0;
5
+ const resource_1 = require("../../resource.js");
6
+ class RegtMarginSimulations extends resource_1.APIResource {
7
+ /**
8
+ * Simulate Reg-T margin calculation for a given hypothetical set of prices and/or
9
+ * trades. This is useful for understanding the impact of price fluctuations or
10
+ * trades on margin requirements. Once a simulation is created, it remains
11
+ * available for 48-hours, after which it will automatically be deleted.
12
+ *
13
+ * Simulations created through the API are visible in the Studio UI under the Risk
14
+ * & Margin section, after enabling the "Risk Simulations" toggle.
15
+ */
16
+ create(entityId, body, options) {
17
+ return this._client.post(`/entities/${entityId}/regt-margin-simulations`, { body, ...options });
18
+ }
19
+ /**
20
+ * Get a Reg-T margin simluation that was previously created. Note, simulations are
21
+ * automatically deleted after 48-hours.
22
+ */
23
+ retrieve(entityId, simulationId, options) {
24
+ return this._client.get(`/entities/${entityId}/regt-margin-simulations/${simulationId}`, options);
25
+ }
26
+ }
27
+ exports.RegtMarginSimulations = RegtMarginSimulations;
28
+ (function (RegtMarginSimulations) {
29
+ })(RegtMarginSimulations = exports.RegtMarginSimulations || (exports.RegtMarginSimulations = {}));
30
+ //# sourceMappingURL=regt-margin-simulations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"regt-margin-simulations.js","sourceRoot":"","sources":["../../src/resources/entities/regt-margin-simulations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAK7C,MAAa,qBAAsB,SAAQ,sBAAW;IACpD;;;;;;;;OAQG;IACH,MAAM,CACJ,QAAgB,EAChB,IAAsC,EACtC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,QAAQ,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClG,CAAC;IAED;;;OAGG;IACH,QAAQ,CACN,QAAgB,EAChB,YAA0B,EAC1B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,QAAQ,4BAA4B,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACpG,CAAC;CACF;AA7BD,sDA6BC;AAsFD,WAAiB,qBAAqB;AAItC,CAAC,EAJgB,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIrC"}
@@ -0,0 +1,26 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../resource.mjs";
3
+ export class RegtMarginSimulations extends APIResource {
4
+ /**
5
+ * Simulate Reg-T margin calculation for a given hypothetical set of prices and/or
6
+ * trades. This is useful for understanding the impact of price fluctuations or
7
+ * trades on margin requirements. Once a simulation is created, it remains
8
+ * available for 48-hours, after which it will automatically be deleted.
9
+ *
10
+ * Simulations created through the API are visible in the Studio UI under the Risk
11
+ * & Margin section, after enabling the "Risk Simulations" toggle.
12
+ */
13
+ create(entityId, body, options) {
14
+ return this._client.post(`/entities/${entityId}/regt-margin-simulations`, { body, ...options });
15
+ }
16
+ /**
17
+ * Get a Reg-T margin simluation that was previously created. Note, simulations are
18
+ * automatically deleted after 48-hours.
19
+ */
20
+ retrieve(entityId, simulationId, options) {
21
+ return this._client.get(`/entities/${entityId}/regt-margin-simulations/${simulationId}`, options);
22
+ }
23
+ }
24
+ (function (RegtMarginSimulations) {
25
+ })(RegtMarginSimulations || (RegtMarginSimulations = {}));
26
+ //# sourceMappingURL=regt-margin-simulations.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"regt-margin-simulations.mjs","sourceRoot":"","sources":["../../src/resources/entities/regt-margin-simulations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,qBAAsB,SAAQ,WAAW;IACpD;;;;;;;;OAQG;IACH,MAAM,CACJ,QAAgB,EAChB,IAAsC,EACtC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,QAAQ,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClG,CAAC;IAED;;;OAGG;IACH,QAAQ,CACN,QAAgB,EAChB,YAA0B,EAC1B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,QAAQ,4BAA4B,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACpG,CAAC;CACF;AAsFD,WAAiB,qBAAqB;AAItC,CAAC,EAJgB,qBAAqB,KAArB,qBAAqB,QAIrC"}
@@ -0,0 +1,10 @@
1
+ import { APIResource } from "../../resource.js";
2
+ import * as Core from "../../core.js";
3
+ import * as EntitiesAPI from "./entities.js";
4
+ export declare class RegtMargins extends APIResource {
5
+ /**
6
+ * Get the latest Reg-T margin calculation for the given entity
7
+ */
8
+ retrieve(entityId: string, options?: Core.RequestOptions): Core.APIPromise<EntitiesAPI.RegtMargin>;
9
+ }
10
+ //# sourceMappingURL=regt-margins.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"regt-margins.d.ts","sourceRoot":"","sources":["../../src/resources/entities/regt-margins.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,WAAW,MAAM,YAAY,CAAC;AAE1C,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,UAAU,CAAC;CAGnG"}
@@ -0,0 +1,15 @@
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.RegtMargins = void 0;
5
+ const resource_1 = require("../../resource.js");
6
+ class RegtMargins extends resource_1.APIResource {
7
+ /**
8
+ * Get the latest Reg-T margin calculation for the given entity
9
+ */
10
+ retrieve(entityId, options) {
11
+ return this._client.get(`/entities/${entityId}/regt-margin`, options);
12
+ }
13
+ }
14
+ exports.RegtMargins = RegtMargins;
15
+ //# sourceMappingURL=regt-margins.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"regt-margins.js","sourceRoot":"","sources":["../../src/resources/entities/regt-margins.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAI7C,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;OAEG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAA6B;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,QAAQ,cAAc,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;CACF;AAPD,kCAOC"}
@@ -0,0 +1,11 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../resource.mjs";
3
+ export class RegtMargins extends APIResource {
4
+ /**
5
+ * Get the latest Reg-T margin calculation for the given entity
6
+ */
7
+ retrieve(entityId, options) {
8
+ return this._client.get(`/entities/${entityId}/regt-margin`, options);
9
+ }
10
+ }
11
+ //# sourceMappingURL=regt-margins.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"regt-margins.mjs","sourceRoot":"","sources":["../../src/resources/entities/regt-margins.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAA6B;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,QAAQ,cAAc,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;CACF"}
@@ -0,0 +1,5 @@
1
+ export * from "./shared.js";
2
+ export { Account, AccountListResponse, Accounts } from "./accounts/accounts.js";
3
+ export { Entity, PnlSummary, PortfolioMargin, RegtMargin, EntityListResponse, Entities, } from "./entities/entities.js";
4
+ export { Instrument, InstrumentRetrieveParams, Instruments } from "./instruments.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EACL,MAAM,EACN,UAAU,EACV,eAAe,EACf,UAAU,EACV,kBAAkB,EAClB,QAAQ,GACT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,wBAAwB,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.Instruments = exports.Entities = exports.Accounts = void 0;
19
+ __exportStar(require("./shared.js"), exports);
20
+ var accounts_1 = require("./accounts/accounts.js");
21
+ Object.defineProperty(exports, "Accounts", { enumerable: true, get: function () { return accounts_1.Accounts; } });
22
+ var entities_1 = require("./entities/entities.js");
23
+ Object.defineProperty(exports, "Entities", { enumerable: true, get: function () { return entities_1.Entities; } });
24
+ var instruments_1 = require("./instruments.js");
25
+ Object.defineProperty(exports, "Instruments", { enumerable: true, get: function () { return instruments_1.Instruments; } });
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;AAEtF,8CAAyB;AACzB,mDAA6E;AAAtC,oGAAA,QAAQ,OAAA;AAC/C,mDAO6B;AAD3B,oGAAA,QAAQ,OAAA;AAEV,gDAAkF;AAAnC,0GAAA,WAAW,OAAA"}
@@ -0,0 +1,6 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./shared.mjs";
3
+ export { Accounts } from "./accounts/accounts.mjs";
4
+ export { Entities, } from "./entities/entities.mjs";
5
+ export { Instruments } from "./instruments.mjs";
6
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EAAgC,QAAQ,EAAE;OAC1C,EAML,QAAQ,GACT;OACM,EAAwC,WAAW,EAAE"}
@@ -0,0 +1,45 @@
1
+ import { APIResource } from "../resource.js";
2
+ import * as Core from "../core.js";
3
+ import * as InstrumentsAPI from "./instruments.js";
4
+ export declare class Instruments extends APIResource {
5
+ /**
6
+ * Get an instrument by the given symbol
7
+ */
8
+ retrieve(symbol: string, query?: InstrumentRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<Instrument>;
9
+ retrieve(symbol: string, options?: Core.RequestOptions): Core.APIPromise<Instrument>;
10
+ }
11
+ export interface Instrument {
12
+ /**
13
+ * The asset class of the symbol.
14
+ */
15
+ asset_class: 'other' | 'currency' | 'equity' | 'option' | 'debt' | 'fund';
16
+ /**
17
+ * A description of the instrument.
18
+ */
19
+ description: string;
20
+ /**
21
+ * The primary exchange for the instrument.
22
+ */
23
+ primary_exchange: string;
24
+ symbols: Array<Instrument.Symbol>;
25
+ }
26
+ export declare namespace Instrument {
27
+ interface Symbol {
28
+ symbol?: string;
29
+ /**
30
+ * Denotes the format of the provided `symbol` field.
31
+ */
32
+ symbol_format?: 'cms' | 'osi';
33
+ }
34
+ }
35
+ export interface InstrumentRetrieveParams {
36
+ /**
37
+ * The format of the provided symbol.
38
+ */
39
+ symbol_format?: 'cms' | 'osi';
40
+ }
41
+ export declare namespace Instruments {
42
+ export import Instrument = InstrumentsAPI.Instrument;
43
+ export import InstrumentRetrieveParams = InstrumentsAPI.InstrumentRetrieveParams;
44
+ }
45
+ //# sourceMappingURL=instruments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instruments.d.ts","sourceRoot":"","sources":["../src/resources/instruments.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,cAAc,MAAM,eAAe,CAAC;AAEhD,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;CAWrF;AAED,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,WAAW,EAAE,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;IAE1E;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;CACnC;AAED,yBAAiB,UAAU,CAAC;IAC1B,UAAiB,MAAM;QACrB,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,aAAa,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;KAC/B;CACF;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;CAC/B;AAED,yBAAiB,WAAW,CAAC;IAC3B,MAAM,QAAQ,UAAU,GAAG,cAAc,CAAC,UAAU,CAAC;IACrD,MAAM,QAAQ,wBAAwB,GAAG,cAAc,CAAC,wBAAwB,CAAC;CAClF"}
@@ -0,0 +1,18 @@
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.Instruments = void 0;
5
+ const resource_1 = require("../resource.js");
6
+ const core_1 = require("../core.js");
7
+ class Instruments extends resource_1.APIResource {
8
+ retrieve(symbol, query = {}, options) {
9
+ if ((0, core_1.isRequestOptions)(query)) {
10
+ return this.retrieve(symbol, {}, query);
11
+ }
12
+ return this._client.get(`/instruments/${symbol}`, { query, ...options });
13
+ }
14
+ }
15
+ exports.Instruments = Instruments;
16
+ (function (Instruments) {
17
+ })(Instruments = exports.Instruments || (exports.Instruments = {}));
18
+ //# sourceMappingURL=instruments.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instruments.js","sourceRoot":"","sources":["../src/resources/instruments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAC1C,qCAA2C;AAI3C,MAAa,WAAY,SAAQ,sBAAW;IAU1C,QAAQ,CACN,MAAc,EACd,QAAwD,EAAE,EAC1D,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACzC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;CACF;AApBD,kCAoBC;AAuCD,WAAiB,WAAW;AAG5B,CAAC,EAHgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAG3B"}
@@ -0,0 +1,14 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../resource.mjs";
3
+ import { isRequestOptions } from "../core.mjs";
4
+ export class Instruments extends APIResource {
5
+ retrieve(symbol, query = {}, options) {
6
+ if (isRequestOptions(query)) {
7
+ return this.retrieve(symbol, {}, query);
8
+ }
9
+ return this._client.get(`/instruments/${symbol}`, { query, ...options });
10
+ }
11
+ }
12
+ (function (Instruments) {
13
+ })(Instruments || (Instruments = {}));
14
+ //# sourceMappingURL=instruments.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instruments.mjs","sourceRoot":"","sources":["../src/resources/instruments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAI3B,MAAM,OAAO,WAAY,SAAQ,WAAW;IAU1C,QAAQ,CACN,MAAc,EACd,QAAwD,EAAE,EAC1D,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACzC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;CACF;AAuCD,WAAiB,WAAW;AAG5B,CAAC,EAHgB,WAAW,KAAX,WAAW,QAG3B"}