@clear-street/studio-sdk 0.1.0-alpha.12 → 0.1.0-alpha.13

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 (139) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +9 -0
  3. package/core.d.ts +3 -3
  4. package/core.d.ts.map +1 -1
  5. package/core.js.map +1 -1
  6. package/core.mjs.map +1 -1
  7. package/error.d.ts.map +1 -1
  8. package/index.d.mts +18 -25
  9. package/index.d.ts +18 -25
  10. package/index.d.ts.map +1 -1
  11. package/index.js +25 -10
  12. package/index.js.map +1 -1
  13. package/index.mjs +9 -9
  14. package/index.mjs.map +1 -1
  15. package/package.json +2 -2
  16. package/resources/accounts/accounts.d.ts +23 -37
  17. package/resources/accounts/accounts.d.ts.map +1 -1
  18. package/resources/accounts/accounts.js +22 -13
  19. package/resources/accounts/accounts.js.map +1 -1
  20. package/resources/accounts/accounts.mjs +22 -13
  21. package/resources/accounts/accounts.mjs.map +1 -1
  22. package/resources/accounts/bulk-orders.d.ts +1 -3
  23. package/resources/accounts/bulk-orders.d.ts.map +1 -1
  24. package/resources/accounts/bulk-orders.js +0 -2
  25. package/resources/accounts/bulk-orders.js.map +1 -1
  26. package/resources/accounts/bulk-orders.mjs +0 -2
  27. package/resources/accounts/bulk-orders.mjs.map +1 -1
  28. package/resources/accounts/easy-borrows.d.ts +1 -2
  29. package/resources/accounts/easy-borrows.d.ts.map +1 -1
  30. package/resources/accounts/easy-borrows.js +0 -2
  31. package/resources/accounts/easy-borrows.js.map +1 -1
  32. package/resources/accounts/easy-borrows.mjs +0 -2
  33. package/resources/accounts/easy-borrows.mjs.map +1 -1
  34. package/resources/accounts/holdings.d.ts +1 -3
  35. package/resources/accounts/holdings.d.ts.map +1 -1
  36. package/resources/accounts/holdings.js +0 -2
  37. package/resources/accounts/holdings.js.map +1 -1
  38. package/resources/accounts/holdings.mjs +0 -2
  39. package/resources/accounts/holdings.mjs.map +1 -1
  40. package/resources/accounts/index.d.ts +11 -11
  41. package/resources/accounts/index.d.ts.map +1 -1
  42. package/resources/accounts/index.js +3 -3
  43. package/resources/accounts/index.js.map +1 -1
  44. package/resources/accounts/index.mjs +1 -1
  45. package/resources/accounts/index.mjs.map +1 -1
  46. package/resources/accounts/inventories.d.ts +1 -2
  47. package/resources/accounts/inventories.d.ts.map +1 -1
  48. package/resources/accounts/inventories.js +0 -2
  49. package/resources/accounts/inventories.js.map +1 -1
  50. package/resources/accounts/inventories.mjs +0 -2
  51. package/resources/accounts/inventories.mjs.map +1 -1
  52. package/resources/accounts/locate-orders.d.ts +1 -4
  53. package/resources/accounts/locate-orders.d.ts.map +1 -1
  54. package/resources/accounts/locate-orders.js +0 -2
  55. package/resources/accounts/locate-orders.js.map +1 -1
  56. package/resources/accounts/locate-orders.mjs +0 -2
  57. package/resources/accounts/locate-orders.mjs.map +1 -1
  58. package/resources/accounts/orders.d.ts +1 -8
  59. package/resources/accounts/orders.d.ts.map +1 -1
  60. package/resources/accounts/orders.js +0 -2
  61. package/resources/accounts/orders.js.map +1 -1
  62. package/resources/accounts/orders.mjs +0 -2
  63. package/resources/accounts/orders.mjs.map +1 -1
  64. package/resources/accounts/pnl-details.d.ts +1 -2
  65. package/resources/accounts/pnl-details.d.ts.map +1 -1
  66. package/resources/accounts/pnl-details.js +0 -2
  67. package/resources/accounts/pnl-details.js.map +1 -1
  68. package/resources/accounts/pnl-details.mjs +0 -2
  69. package/resources/accounts/pnl-details.mjs.map +1 -1
  70. package/resources/accounts/pnl-sums.d.ts +1 -3
  71. package/resources/accounts/pnl-sums.d.ts.map +1 -1
  72. package/resources/accounts/pnl-sums.js +0 -2
  73. package/resources/accounts/pnl-sums.js.map +1 -1
  74. package/resources/accounts/pnl-sums.mjs +0 -2
  75. package/resources/accounts/pnl-sums.mjs.map +1 -1
  76. package/resources/accounts/positions.d.ts +1 -3
  77. package/resources/accounts/positions.d.ts.map +1 -1
  78. package/resources/accounts/positions.js +0 -2
  79. package/resources/accounts/positions.js.map +1 -1
  80. package/resources/accounts/positions.mjs +0 -2
  81. package/resources/accounts/positions.mjs.map +1 -1
  82. package/resources/accounts/trades.d.ts +1 -3
  83. package/resources/accounts/trades.d.ts.map +1 -1
  84. package/resources/accounts/trades.js +0 -2
  85. package/resources/accounts/trades.js.map +1 -1
  86. package/resources/accounts/trades.mjs +0 -2
  87. package/resources/accounts/trades.mjs.map +1 -1
  88. package/resources/entities/entities.d.ts +9 -13
  89. package/resources/entities/entities.d.ts.map +1 -1
  90. package/resources/entities/entities.js +8 -6
  91. package/resources/entities/entities.js.map +1 -1
  92. package/resources/entities/entities.mjs +8 -6
  93. package/resources/entities/entities.mjs.map +1 -1
  94. package/resources/entities/index.d.ts +2 -2
  95. package/resources/entities/index.d.ts.map +1 -1
  96. package/resources/entities/index.js +3 -3
  97. package/resources/entities/index.js.map +1 -1
  98. package/resources/entities/index.mjs +2 -2
  99. package/resources/entities/index.mjs.map +1 -1
  100. package/resources/entities/regt-margin-simulations.d.ts +1 -4
  101. package/resources/entities/regt-margin-simulations.d.ts.map +1 -1
  102. package/resources/entities/regt-margin-simulations.js +0 -2
  103. package/resources/entities/regt-margin-simulations.js.map +1 -1
  104. package/resources/entities/regt-margin-simulations.mjs +0 -2
  105. package/resources/entities/regt-margin-simulations.mjs.map +1 -1
  106. package/resources/index.d.ts +3 -3
  107. package/resources/index.d.ts.map +1 -1
  108. package/resources/index.js.map +1 -1
  109. package/resources/index.mjs.map +1 -1
  110. package/resources/instruments.d.ts +1 -3
  111. package/resources/instruments.d.ts.map +1 -1
  112. package/resources/instruments.js +0 -2
  113. package/resources/instruments.js.map +1 -1
  114. package/resources/instruments.mjs +0 -2
  115. package/resources/instruments.mjs.map +1 -1
  116. package/src/core.ts +5 -5
  117. package/src/error.ts +1 -1
  118. package/src/index.ts +47 -35
  119. package/src/resources/accounts/accounts.ts +95 -38
  120. package/src/resources/accounts/bulk-orders.ts +5 -4
  121. package/src/resources/accounts/easy-borrows.ts +2 -3
  122. package/src/resources/accounts/holdings.ts +2 -4
  123. package/src/resources/accounts/index.ts +19 -19
  124. package/src/resources/accounts/inventories.ts +2 -3
  125. package/src/resources/accounts/locate-orders.ts +6 -5
  126. package/src/resources/accounts/orders.ts +10 -9
  127. package/src/resources/accounts/pnl-details.ts +2 -3
  128. package/src/resources/accounts/pnl-sums.ts +2 -4
  129. package/src/resources/accounts/positions.ts +2 -4
  130. package/src/resources/accounts/trades.ts +2 -4
  131. package/src/resources/entities/entities.ts +35 -14
  132. package/src/resources/entities/index.ts +12 -5
  133. package/src/resources/entities/regt-margin-simulations.ts +6 -5
  134. package/src/resources/index.ts +7 -7
  135. package/src/resources/instruments.ts +2 -4
  136. package/src/version.ts +1 -1
  137. package/version.d.ts +1 -1
  138. package/version.js +1 -1
  139. package/version.mjs +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/entities/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3G,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EACL,YAAY,EACZ,kCAAkC,EAClC,gCAAgC,EAChC,qBAAqB,GACtB,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/entities/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EACR,KAAK,MAAM,EACX,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,kBAAkB,GACxB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EACL,qBAAqB,EACrB,KAAK,YAAY,EACjB,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,GACtC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.RegtMarginSimulations = exports.RegtMargins = exports.PortfolioMargins = exports.PnlSummaries = exports.Entities = void 0;
4
+ exports.RegtMargins = exports.RegtMarginSimulations = exports.PortfolioMargins = exports.PnlSummaries = exports.Entities = void 0;
5
5
  var entities_1 = require("./entities.js");
6
6
  Object.defineProperty(exports, "Entities", { enumerable: true, get: function () { return entities_1.Entities; } });
7
7
  var pnl_summaries_1 = require("./pnl-summaries.js");
8
8
  Object.defineProperty(exports, "PnlSummaries", { enumerable: true, get: function () { return pnl_summaries_1.PnlSummaries; } });
9
9
  var portfolio_margins_1 = require("./portfolio-margins.js");
10
10
  Object.defineProperty(exports, "PortfolioMargins", { enumerable: true, get: function () { return portfolio_margins_1.PortfolioMargins; } });
11
- var regt_margins_1 = require("./regt-margins.js");
12
- Object.defineProperty(exports, "RegtMargins", { enumerable: true, get: function () { return regt_margins_1.RegtMargins; } });
13
11
  var regt_margin_simulations_1 = require("./regt-margin-simulations.js");
14
12
  Object.defineProperty(exports, "RegtMarginSimulations", { enumerable: true, get: function () { return regt_margin_simulations_1.RegtMarginSimulations; } });
13
+ var regt_margins_1 = require("./regt-margins.js");
14
+ Object.defineProperty(exports, "RegtMargins", { enumerable: true, get: function () { return regt_margins_1.RegtMargins; } });
15
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/entities/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAA2G;AAA7B,oGAAA,QAAQ,OAAA;AACtF,oDAA+C;AAAtC,6GAAA,YAAY,OAAA;AACrB,4DAAuD;AAA9C,qHAAA,gBAAgB,OAAA;AACzB,kDAA6C;AAApC,2GAAA,WAAW,OAAA;AACpB,wEAKmC;AADjC,gIAAA,qBAAqB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/entities/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAOoB;AANlB,oGAAA,QAAQ,OAAA;AAOV,oDAA+C;AAAtC,6GAAA,YAAY,OAAA;AACrB,4DAAuD;AAA9C,qHAAA,gBAAgB,OAAA;AACzB,wEAKmC;AAJjC,gIAAA,qBAAqB,OAAA;AAKvB,kDAA6C;AAApC,2GAAA,WAAW,OAAA"}
@@ -1,7 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export { Entities } from "./entities.mjs";
2
+ export { Entities, } from "./entities.mjs";
3
3
  export { PnlSummaries } from "./pnl-summaries.mjs";
4
4
  export { PortfolioMargins } from "./portfolio-margins.mjs";
5
- export { RegtMargins } from "./regt-margins.mjs";
6
5
  export { RegtMarginSimulations, } from "./regt-margin-simulations.mjs";
6
+ export { RegtMargins } from "./regt-margins.mjs";
7
7
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/entities/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAuE,QAAQ,EAAE;OACjF,EAAE,YAAY,EAAE;OAChB,EAAE,gBAAgB,EAAE;OACpB,EAAE,WAAW,EAAE;OACf,EAIL,qBAAqB,GACtB"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/entities/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,QAAQ,GAMT;OACM,EAAE,YAAY,EAAE;OAChB,EAAE,gBAAgB,EAAE;OACpB,EACL,qBAAqB,GAItB;OACM,EAAE,WAAW,EAAE"}
@@ -1,6 +1,5 @@
1
1
  import { APIResource } from "../../resource.js";
2
2
  import * as Core from "../../core.js";
3
- import * as RegtMarginSimulationsAPI from "./regt-margin-simulations.js";
4
3
  import * as Shared from "../shared.js";
5
4
  export declare class RegtMarginSimulations extends APIResource {
6
5
  /**
@@ -90,8 +89,6 @@ export declare namespace RegtMarginSimulationCreateParams {
90
89
  }
91
90
  }
92
91
  export declare namespace RegtMarginSimulations {
93
- export import SimulationID = RegtMarginSimulationsAPI.SimulationID;
94
- export import RegtMarginSimulationCreateResponse = RegtMarginSimulationsAPI.RegtMarginSimulationCreateResponse;
95
- export import RegtMarginSimulationCreateParams = RegtMarginSimulationsAPI.RegtMarginSimulationCreateParams;
92
+ export { type SimulationID as SimulationID, type RegtMarginSimulationCreateResponse as RegtMarginSimulationCreateResponse, type RegtMarginSimulationCreateParams as RegtMarginSimulationCreateParams, };
96
93
  }
97
94
  //# sourceMappingURL=regt-margin-simulations.d.ts.map
@@ -1 +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,CAA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;;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,MAAM,CAAC,OAAO,WAAW,qBAAqB,CAAC;IAC7C,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
@@ -25,6 +25,4 @@ class RegtMarginSimulations extends resource_1.APIResource {
25
25
  }
26
26
  }
27
27
  exports.RegtMarginSimulations = RegtMarginSimulations;
28
- (function (RegtMarginSimulations) {
29
- })(RegtMarginSimulations = exports.RegtMarginSimulations || (exports.RegtMarginSimulations = {}));
30
28
  //# sourceMappingURL=regt-margin-simulations.js.map
@@ -1 +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"}
1
+ {"version":3,"file":"regt-margin-simulations.js","sourceRoot":"","sources":["../../src/resources/entities/regt-margin-simulations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAI7C,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"}
@@ -21,6 +21,4 @@ export class RegtMarginSimulations extends APIResource {
21
21
  return this._client.get(`/entities/${entityId}/regt-margin-simulations/${simulationId}`, options);
22
22
  }
23
23
  }
24
- (function (RegtMarginSimulations) {
25
- })(RegtMarginSimulations || (RegtMarginSimulations = {}));
26
24
  //# sourceMappingURL=regt-margin-simulations.mjs.map
@@ -1 +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"}
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;AAItB,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"}
@@ -1,5 +1,5 @@
1
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";
2
+ export { Accounts, type Account, type AccountListResponse } from "./accounts/accounts.js";
3
+ export { Entities, type Entity, type PnlSummary, type PortfolioMargin, type RegtMargin, type EntityListResponse, } from "./entities/entities.js";
4
+ export { Instruments, type Instrument, type InstrumentRetrieveParams } from "./instruments.js";
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,QAAQ,EAAE,KAAK,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,EACL,QAAQ,EACR,KAAK,MAAM,EACX,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,kBAAkB,GACxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,wBAAwB,EAAE,MAAM,eAAe,CAAC"}
@@ -1 +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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;AAEtF,8CAAyB;AACzB,mDAAuF;AAA9E,oGAAA,QAAQ,OAAA;AACjB,mDAO6B;AAN3B,oGAAA,QAAQ,OAAA;AAOV,gDAA4F;AAAnF,0GAAA,WAAW,OAAA"}
@@ -1 +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"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EAAE,QAAQ,EAA0C;OACpD,EACL,QAAQ,GAMT;OACM,EAAE,WAAW,EAAkD"}
@@ -1,6 +1,5 @@
1
1
  import { APIResource } from "../resource.js";
2
2
  import * as Core from "../core.js";
3
- import * as InstrumentsAPI from "./instruments.js";
4
3
  export declare class Instruments extends APIResource {
5
4
  /**
6
5
  * Get an instrument by the given symbol
@@ -39,7 +38,6 @@ export interface InstrumentRetrieveParams {
39
38
  symbol_format?: 'cms' | 'osi';
40
39
  }
41
40
  export declare namespace Instruments {
42
- export import Instrument = InstrumentsAPI.Instrument;
43
- export import InstrumentRetrieveParams = InstrumentsAPI.InstrumentRetrieveParams;
41
+ export { type Instrument as Instrument, type InstrumentRetrieveParams as InstrumentRetrieveParams };
44
42
  }
45
43
  //# sourceMappingURL=instruments.d.ts.map
@@ -1 +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,IAA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AM,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,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EAAE,KAAK,UAAU,IAAI,UAAU,EAAE,KAAK,wBAAwB,IAAI,wBAAwB,EAAE,CAAC;CACrG"}
@@ -13,6 +13,4 @@ class Instruments extends resource_1.APIResource {
13
13
  }
14
14
  }
15
15
  exports.Instruments = Instruments;
16
- (function (Instruments) {
17
- })(Instruments = exports.Instruments || (exports.Instruments = {}));
18
16
  //# sourceMappingURL=instruments.js.map
@@ -1 +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"}
1
+ {"version":3,"file":"instruments.js","sourceRoot":"","sources":["../src/resources/instruments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAC1C,qCAA2C;AAG3C,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"}
@@ -9,6 +9,4 @@ export class Instruments extends APIResource {
9
9
  return this._client.get(`/instruments/${symbol}`, { query, ...options });
10
10
  }
11
11
  }
12
- (function (Instruments) {
13
- })(Instruments || (Instruments = {}));
14
12
  //# sourceMappingURL=instruments.mjs.map
@@ -1 +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"}
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;AAG3B,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"}
package/src/core.ts CHANGED
@@ -396,7 +396,7 @@ export abstract class APIClient {
396
396
  error: Object | undefined,
397
397
  message: string | undefined,
398
398
  headers: Headers | undefined,
399
- ) {
399
+ ): APIError {
400
400
  return APIError.generate(status, error, message, headers);
401
401
  }
402
402
 
@@ -668,9 +668,9 @@ export abstract class AbstractPage<Item> implements AsyncIterable<Item> {
668
668
  return await this.#client.requestAPIList(this.constructor as any, nextOptions);
669
669
  }
670
670
 
671
- async *iterPages() {
671
+ async *iterPages(): AsyncGenerator<this> {
672
672
  // eslint-disable-next-line @typescript-eslint/no-this-alias
673
- let page: AbstractPage<Item> = this;
673
+ let page: this = this;
674
674
  yield page;
675
675
  while (page.hasNextPage()) {
676
676
  page = await page.getNextPage();
@@ -678,7 +678,7 @@ export abstract class AbstractPage<Item> implements AsyncIterable<Item> {
678
678
  }
679
679
  }
680
680
 
681
- async *[Symbol.asyncIterator]() {
681
+ async *[Symbol.asyncIterator](): AsyncGenerator<Item> {
682
682
  for await (const page of this.iterPages()) {
683
683
  for (const item of page.getPaginatedItems()) {
684
684
  yield item;
@@ -721,7 +721,7 @@ export class PagePromise<
721
721
  * console.log(item)
722
722
  * }
723
723
  */
724
- async *[Symbol.asyncIterator]() {
724
+ async *[Symbol.asyncIterator](): AsyncGenerator<Item> {
725
725
  const page = await this;
726
726
  for await (const item of page) {
727
727
  yield item;
package/src/error.ts CHANGED
@@ -47,7 +47,7 @@ export class APIError extends StudioSDKError {
47
47
  errorResponse: Object | undefined,
48
48
  message: string | undefined,
49
49
  headers: Headers | undefined,
50
- ) {
50
+ ): APIError {
51
51
  if (!status) {
52
52
  return new APIConnectionError({ message, cause: castToError(errorResponse) });
53
53
  }
package/src/index.ts CHANGED
@@ -1,17 +1,26 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import * as Errors from './error';
4
- import * as Uploads from './uploads';
5
3
  import { type Agent } from './_shims/index';
6
4
  import * as Core from './core';
5
+ import * as Errors from './error';
6
+ import * as Uploads from './uploads';
7
7
  import * as API from './resources/index';
8
+ import { Instrument, InstrumentRetrieveParams, Instruments } from './resources/instruments';
9
+ import { Account, AccountListResponse, Accounts } from './resources/accounts/accounts';
10
+ import {
11
+ Entities,
12
+ Entity,
13
+ EntityListResponse,
14
+ PnlSummary,
15
+ PortfolioMargin,
16
+ RegtMargin,
17
+ } from './resources/entities/entities';
8
18
 
9
19
  const environments = {
10
20
  production: 'https://api.clearstreet.io/studio/v2',
11
21
  sandbox: 'https://sandbox-api.clearstreet.io/studio/v2',
12
22
  };
13
23
  type Environment = keyof typeof environments;
14
-
15
24
  export interface ClientOptions {
16
25
  /**
17
26
  * Defaults to process.env['STUDIO_SDK_BEARER_TOKEN'].
@@ -182,7 +191,40 @@ export class StudioSDK extends Core.APIClient {
182
191
  static fileFromPath = Uploads.fileFromPath;
183
192
  }
184
193
 
185
- export const {
194
+ StudioSDK.Entities = Entities;
195
+ StudioSDK.Accounts = Accounts;
196
+ StudioSDK.Instruments = Instruments;
197
+ export declare namespace StudioSDK {
198
+ export type RequestOptions = Core.RequestOptions;
199
+
200
+ export {
201
+ Entities as Entities,
202
+ type Entity as Entity,
203
+ type PnlSummary as PnlSummary,
204
+ type PortfolioMargin as PortfolioMargin,
205
+ type RegtMargin as RegtMargin,
206
+ type EntityListResponse as EntityListResponse,
207
+ };
208
+
209
+ export { Accounts as Accounts, type Account as Account, type AccountListResponse as AccountListResponse };
210
+
211
+ export {
212
+ Instruments as Instruments,
213
+ type Instrument as Instrument,
214
+ type InstrumentRetrieveParams as InstrumentRetrieveParams,
215
+ };
216
+
217
+ export type BaseStrategy = API.BaseStrategy;
218
+ export type LocateOrder = API.LocateOrder;
219
+ export type Order = API.Order;
220
+ export type Position = API.Position;
221
+ export type RegtMarginSimulation = API.RegtMarginSimulation;
222
+ export type Strategy = API.Strategy;
223
+ export type Trade = API.Trade;
224
+ }
225
+
226
+ export { toFile, fileFromPath } from './uploads';
227
+ export {
186
228
  StudioSDKError,
187
229
  APIError,
188
230
  APIConnectionError,
@@ -196,36 +238,6 @@ export const {
196
238
  InternalServerError,
197
239
  PermissionDeniedError,
198
240
  UnprocessableEntityError,
199
- } = Errors;
200
-
201
- export import toFile = Uploads.toFile;
202
- export import fileFromPath = Uploads.fileFromPath;
203
-
204
- export namespace StudioSDK {
205
- export import RequestOptions = Core.RequestOptions;
206
-
207
- export import Entities = API.Entities;
208
- export import Entity = API.Entity;
209
- export import PnlSummary = API.PnlSummary;
210
- export import PortfolioMargin = API.PortfolioMargin;
211
- export import RegtMargin = API.RegtMargin;
212
- export import EntityListResponse = API.EntityListResponse;
213
-
214
- export import Accounts = API.Accounts;
215
- export import Account = API.Account;
216
- export import AccountListResponse = API.AccountListResponse;
217
-
218
- export import Instruments = API.Instruments;
219
- export import Instrument = API.Instrument;
220
- export import InstrumentRetrieveParams = API.InstrumentRetrieveParams;
221
-
222
- export import BaseStrategy = API.BaseStrategy;
223
- export import LocateOrder = API.LocateOrder;
224
- export import Order = API.Order;
225
- export import Position = API.Position;
226
- export import RegtMarginSimulation = API.RegtMarginSimulation;
227
- export import Strategy = API.Strategy;
228
- export import Trade = API.Trade;
229
- }
241
+ } from './error';
230
242
 
231
243
  export default StudioSDK;
@@ -2,18 +2,42 @@
2
2
 
3
3
  import { APIResource } from '../../resource';
4
4
  import * as Core from '../../core';
5
- import * as AccountsAPI from './accounts';
6
5
  import * as BulkOrdersAPI from './bulk-orders';
6
+ import { BulkOrderCreateParams, BulkOrderCreateResponse, BulkOrders } from './bulk-orders';
7
7
  import * as EasyBorrowsAPI from './easy-borrows';
8
+ import { EasyBorrowListResponse, EasyBorrows } from './easy-borrows';
8
9
  import * as HoldingsAPI from './holdings';
10
+ import { HoldingListParams, HoldingListResponse, Holdings } from './holdings';
9
11
  import * as InventoriesAPI from './inventories';
12
+ import { Inventories, InventoryRetrieveResponse } from './inventories';
10
13
  import * as LocateOrdersAPI from './locate-orders';
14
+ import {
15
+ LocateOrderCreateParams,
16
+ LocateOrderListResponse,
17
+ LocateOrderUpdateParams,
18
+ LocateOrders,
19
+ } from './locate-orders';
11
20
  import * as OrdersAPI from './orders';
21
+ import {
22
+ OrderCreateParams,
23
+ OrderCreateResponse,
24
+ OrderDeleteParams,
25
+ OrderDeleteResponse,
26
+ OrderListParams,
27
+ OrderListResponse,
28
+ OrderRetrieveResponse,
29
+ Orders,
30
+ } from './orders';
12
31
  import * as PnlDetailsAPI from './pnl-details';
32
+ import { PnlDetailListResponse, PnlDetails } from './pnl-details';
13
33
  import * as PnlSummaryAPI from './pnl-summary';
34
+ import { PnlSummary } from './pnl-summary';
14
35
  import * as PnlSumsAPI from './pnl-sums';
36
+ import { PnlSumListParams, PnlSumListResponse, PnlSums } from './pnl-sums';
15
37
  import * as PositionsAPI from './positions';
38
+ import { PositionListParams, PositionListResponse, Positions } from './positions';
16
39
  import * as TradesAPI from './trades';
40
+ import { TradeListParams, TradeListResponse, Trades } from './trades';
17
41
 
18
42
  export class Accounts extends APIResource {
19
43
  bulkOrders: BulkOrdersAPI.BulkOrders = new BulkOrdersAPI.BulkOrders(this._client);
@@ -61,41 +85,74 @@ export interface AccountListResponse {
61
85
  data?: Array<Account>;
62
86
  }
63
87
 
64
- export namespace Accounts {
65
- export import Account = AccountsAPI.Account;
66
- export import AccountListResponse = AccountsAPI.AccountListResponse;
67
- export import BulkOrders = BulkOrdersAPI.BulkOrders;
68
- export import BulkOrderCreateResponse = BulkOrdersAPI.BulkOrderCreateResponse;
69
- export import BulkOrderCreateParams = BulkOrdersAPI.BulkOrderCreateParams;
70
- export import Orders = OrdersAPI.Orders;
71
- export import OrderCreateResponse = OrdersAPI.OrderCreateResponse;
72
- export import OrderRetrieveResponse = OrdersAPI.OrderRetrieveResponse;
73
- export import OrderListResponse = OrdersAPI.OrderListResponse;
74
- export import OrderDeleteResponse = OrdersAPI.OrderDeleteResponse;
75
- export import OrderCreateParams = OrdersAPI.OrderCreateParams;
76
- export import OrderListParams = OrdersAPI.OrderListParams;
77
- export import OrderDeleteParams = OrdersAPI.OrderDeleteParams;
78
- export import Trades = TradesAPI.Trades;
79
- export import TradeListResponse = TradesAPI.TradeListResponse;
80
- export import TradeListParams = TradesAPI.TradeListParams;
81
- export import Positions = PositionsAPI.Positions;
82
- export import PositionListResponse = PositionsAPI.PositionListResponse;
83
- export import PositionListParams = PositionsAPI.PositionListParams;
84
- export import LocateOrders = LocateOrdersAPI.LocateOrders;
85
- export import LocateOrderListResponse = LocateOrdersAPI.LocateOrderListResponse;
86
- export import LocateOrderCreateParams = LocateOrdersAPI.LocateOrderCreateParams;
87
- export import LocateOrderUpdateParams = LocateOrdersAPI.LocateOrderUpdateParams;
88
- export import EasyBorrows = EasyBorrowsAPI.EasyBorrows;
89
- export import EasyBorrowListResponse = EasyBorrowsAPI.EasyBorrowListResponse;
90
- export import PnlSummary = PnlSummaryAPI.PnlSummary;
91
- export import PnlDetails = PnlDetailsAPI.PnlDetails;
92
- export import PnlDetailListResponse = PnlDetailsAPI.PnlDetailListResponse;
93
- export import PnlSums = PnlSumsAPI.PnlSums;
94
- export import PnlSumListResponse = PnlSumsAPI.PnlSumListResponse;
95
- export import PnlSumListParams = PnlSumsAPI.PnlSumListParams;
96
- export import Holdings = HoldingsAPI.Holdings;
97
- export import HoldingListResponse = HoldingsAPI.HoldingListResponse;
98
- export import HoldingListParams = HoldingsAPI.HoldingListParams;
99
- export import Inventories = InventoriesAPI.Inventories;
100
- export import InventoryRetrieveResponse = InventoriesAPI.InventoryRetrieveResponse;
88
+ Accounts.BulkOrders = BulkOrders;
89
+ Accounts.Orders = Orders;
90
+ Accounts.Trades = Trades;
91
+ Accounts.Positions = Positions;
92
+ Accounts.LocateOrders = LocateOrders;
93
+ Accounts.EasyBorrows = EasyBorrows;
94
+ Accounts.PnlSummary = PnlSummary;
95
+ Accounts.PnlDetails = PnlDetails;
96
+ Accounts.PnlSums = PnlSums;
97
+ Accounts.Holdings = Holdings;
98
+ Accounts.Inventories = Inventories;
99
+
100
+ export declare namespace Accounts {
101
+ export { type Account as Account, type AccountListResponse as AccountListResponse };
102
+
103
+ export {
104
+ BulkOrders as BulkOrders,
105
+ type BulkOrderCreateResponse as BulkOrderCreateResponse,
106
+ type BulkOrderCreateParams as BulkOrderCreateParams,
107
+ };
108
+
109
+ export {
110
+ Orders as Orders,
111
+ type OrderCreateResponse as OrderCreateResponse,
112
+ type OrderRetrieveResponse as OrderRetrieveResponse,
113
+ type OrderListResponse as OrderListResponse,
114
+ type OrderDeleteResponse as OrderDeleteResponse,
115
+ type OrderCreateParams as OrderCreateParams,
116
+ type OrderListParams as OrderListParams,
117
+ type OrderDeleteParams as OrderDeleteParams,
118
+ };
119
+
120
+ export {
121
+ Trades as Trades,
122
+ type TradeListResponse as TradeListResponse,
123
+ type TradeListParams as TradeListParams,
124
+ };
125
+
126
+ export {
127
+ Positions as Positions,
128
+ type PositionListResponse as PositionListResponse,
129
+ type PositionListParams as PositionListParams,
130
+ };
131
+
132
+ export {
133
+ LocateOrders as LocateOrders,
134
+ type LocateOrderListResponse as LocateOrderListResponse,
135
+ type LocateOrderCreateParams as LocateOrderCreateParams,
136
+ type LocateOrderUpdateParams as LocateOrderUpdateParams,
137
+ };
138
+
139
+ export { EasyBorrows as EasyBorrows, type EasyBorrowListResponse as EasyBorrowListResponse };
140
+
141
+ export { PnlSummary as PnlSummary };
142
+
143
+ export { PnlDetails as PnlDetails, type PnlDetailListResponse as PnlDetailListResponse };
144
+
145
+ export {
146
+ PnlSums as PnlSums,
147
+ type PnlSumListResponse as PnlSumListResponse,
148
+ type PnlSumListParams as PnlSumListParams,
149
+ };
150
+
151
+ export {
152
+ Holdings as Holdings,
153
+ type HoldingListResponse as HoldingListResponse,
154
+ type HoldingListParams as HoldingListParams,
155
+ };
156
+
157
+ export { Inventories as Inventories, type InventoryRetrieveResponse as InventoryRetrieveResponse };
101
158
  }
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { APIResource } from '../../resource';
4
4
  import * as Core from '../../core';
5
- import * as BulkOrdersAPI from './bulk-orders';
6
5
  import * as Shared from '../shared';
7
6
 
8
7
  export class BulkOrders extends APIResource {
@@ -155,7 +154,9 @@ export namespace BulkOrderCreateParams {
155
154
  }
156
155
  }
157
156
 
158
- export namespace BulkOrders {
159
- export import BulkOrderCreateResponse = BulkOrdersAPI.BulkOrderCreateResponse;
160
- export import BulkOrderCreateParams = BulkOrdersAPI.BulkOrderCreateParams;
157
+ export declare namespace BulkOrders {
158
+ export {
159
+ type BulkOrderCreateResponse as BulkOrderCreateResponse,
160
+ type BulkOrderCreateParams as BulkOrderCreateParams,
161
+ };
161
162
  }
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { APIResource } from '../../resource';
4
4
  import * as Core from '../../core';
5
- import * as EasyBorrowsAPI from './easy-borrows';
6
5
 
7
6
  export class EasyBorrows extends APIResource {
8
7
  /**
@@ -18,6 +17,6 @@ export interface EasyBorrowListResponse {
18
17
  data: Array<string>;
19
18
  }
20
19
 
21
- export namespace EasyBorrows {
22
- export import EasyBorrowListResponse = EasyBorrowsAPI.EasyBorrowListResponse;
20
+ export declare namespace EasyBorrows {
21
+ export { type EasyBorrowListResponse as EasyBorrowListResponse };
23
22
  }
@@ -3,7 +3,6 @@
3
3
  import { APIResource } from '../../resource';
4
4
  import { isRequestOptions } from '../../core';
5
5
  import * as Core from '../../core';
6
- import * as HoldingsAPI from './holdings';
7
6
 
8
7
  export class Holdings extends APIResource {
9
8
  /**
@@ -97,7 +96,6 @@ export interface HoldingListParams {
97
96
  date?: number;
98
97
  }
99
98
 
100
- export namespace Holdings {
101
- export import HoldingListResponse = HoldingsAPI.HoldingListResponse;
102
- export import HoldingListParams = HoldingsAPI.HoldingListParams;
99
+ export declare namespace Holdings {
100
+ export { type HoldingListResponse as HoldingListResponse, type HoldingListParams as HoldingListParams };
103
101
  }
@@ -1,28 +1,28 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export { Account, AccountListResponse, Accounts } from './accounts';
4
- export { BulkOrderCreateResponse, BulkOrderCreateParams, BulkOrders } from './bulk-orders';
5
- export { EasyBorrowListResponse, EasyBorrows } from './easy-borrows';
6
- export { HoldingListResponse, HoldingListParams, Holdings } from './holdings';
7
- export { InventoryRetrieveResponse, Inventories } from './inventories';
3
+ export { Accounts, type Account, type AccountListResponse } from './accounts';
4
+ export { BulkOrders, type BulkOrderCreateResponse, type BulkOrderCreateParams } from './bulk-orders';
5
+ export { EasyBorrows, type EasyBorrowListResponse } from './easy-borrows';
6
+ export { Holdings, type HoldingListResponse, type HoldingListParams } from './holdings';
7
+ export { Inventories, type InventoryRetrieveResponse } from './inventories';
8
8
  export {
9
- LocateOrderListResponse,
10
- LocateOrderCreateParams,
11
- LocateOrderUpdateParams,
12
9
  LocateOrders,
10
+ type LocateOrderListResponse,
11
+ type LocateOrderCreateParams,
12
+ type LocateOrderUpdateParams,
13
13
  } from './locate-orders';
14
14
  export {
15
- OrderCreateResponse,
16
- OrderRetrieveResponse,
17
- OrderListResponse,
18
- OrderDeleteResponse,
19
- OrderCreateParams,
20
- OrderListParams,
21
- OrderDeleteParams,
22
15
  Orders,
16
+ type OrderCreateResponse,
17
+ type OrderRetrieveResponse,
18
+ type OrderListResponse,
19
+ type OrderDeleteResponse,
20
+ type OrderCreateParams,
21
+ type OrderListParams,
22
+ type OrderDeleteParams,
23
23
  } from './orders';
24
- export { PnlDetailListResponse, PnlDetails } from './pnl-details';
25
- export { PnlSumListResponse, PnlSumListParams, PnlSums } from './pnl-sums';
24
+ export { PnlDetails, type PnlDetailListResponse } from './pnl-details';
26
25
  export { PnlSummary } from './pnl-summary';
27
- export { PositionListResponse, PositionListParams, Positions } from './positions';
28
- export { TradeListResponse, TradeListParams, Trades } from './trades';
26
+ export { PnlSums, type PnlSumListResponse, type PnlSumListParams } from './pnl-sums';
27
+ export { Positions, type PositionListResponse, type PositionListParams } from './positions';
28
+ export { Trades, type TradeListResponse, type TradeListParams } from './trades';
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { APIResource } from '../../resource';
4
4
  import * as Core from '../../core';
5
- import * as InventoriesAPI from './inventories';
6
5
 
7
6
  export class Inventories extends APIResource {
8
7
  /**
@@ -41,6 +40,6 @@ export interface InventoryRetrieveResponse {
41
40
  used?: string;
42
41
  }
43
42
 
44
- export namespace Inventories {
45
- export import InventoryRetrieveResponse = InventoriesAPI.InventoryRetrieveResponse;
43
+ export declare namespace Inventories {
44
+ export { type InventoryRetrieveResponse as InventoryRetrieveResponse };
46
45
  }