@clear-street/studio-sdk 0.1.0-alpha.10 → 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.
- package/CHANGELOG.md +32 -0
- package/README.md +9 -0
- package/core.d.ts +4 -4
- package/core.d.ts.map +1 -1
- package/core.js +6 -4
- package/core.js.map +1 -1
- package/core.mjs +6 -4
- package/core.mjs.map +1 -1
- package/error.d.ts.map +1 -1
- package/index.d.mts +18 -25
- package/index.d.ts +18 -25
- package/index.d.ts.map +1 -1
- package/index.js +25 -10
- package/index.js.map +1 -1
- package/index.mjs +9 -9
- package/index.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/accounts/accounts.d.ts +25 -35
- package/resources/accounts/accounts.d.ts.map +1 -1
- package/resources/accounts/accounts.js +24 -12
- package/resources/accounts/accounts.js.map +1 -1
- package/resources/accounts/accounts.mjs +24 -12
- package/resources/accounts/accounts.mjs.map +1 -1
- package/resources/accounts/bulk-orders.d.ts +1 -3
- package/resources/accounts/bulk-orders.d.ts.map +1 -1
- package/resources/accounts/bulk-orders.js +0 -2
- package/resources/accounts/bulk-orders.js.map +1 -1
- package/resources/accounts/bulk-orders.mjs +0 -2
- package/resources/accounts/bulk-orders.mjs.map +1 -1
- package/resources/accounts/easy-borrows.d.ts +1 -2
- package/resources/accounts/easy-borrows.d.ts.map +1 -1
- package/resources/accounts/easy-borrows.js +0 -2
- package/resources/accounts/easy-borrows.js.map +1 -1
- package/resources/accounts/easy-borrows.mjs +0 -2
- package/resources/accounts/easy-borrows.mjs.map +1 -1
- package/resources/accounts/holdings.d.ts +1 -3
- package/resources/accounts/holdings.d.ts.map +1 -1
- package/resources/accounts/holdings.js +0 -2
- package/resources/accounts/holdings.js.map +1 -1
- package/resources/accounts/holdings.mjs +0 -2
- package/resources/accounts/holdings.mjs.map +1 -1
- package/resources/accounts/index.d.ts +11 -10
- package/resources/accounts/index.d.ts.map +1 -1
- package/resources/accounts/index.js +5 -3
- package/resources/accounts/index.js.map +1 -1
- package/resources/accounts/index.mjs +2 -1
- package/resources/accounts/index.mjs.map +1 -1
- package/resources/accounts/inventories.d.ts +31 -0
- package/resources/accounts/inventories.d.ts.map +1 -0
- package/resources/accounts/inventories.js +15 -0
- package/resources/accounts/inventories.js.map +1 -0
- package/resources/accounts/inventories.mjs +11 -0
- package/resources/accounts/inventories.mjs.map +1 -0
- package/resources/accounts/locate-orders.d.ts +1 -4
- package/resources/accounts/locate-orders.d.ts.map +1 -1
- package/resources/accounts/locate-orders.js +0 -2
- package/resources/accounts/locate-orders.js.map +1 -1
- package/resources/accounts/locate-orders.mjs +0 -2
- package/resources/accounts/locate-orders.mjs.map +1 -1
- package/resources/accounts/orders.d.ts +1 -8
- package/resources/accounts/orders.d.ts.map +1 -1
- package/resources/accounts/orders.js +0 -2
- package/resources/accounts/orders.js.map +1 -1
- package/resources/accounts/orders.mjs +0 -2
- package/resources/accounts/orders.mjs.map +1 -1
- package/resources/accounts/pnl-details.d.ts +1 -2
- package/resources/accounts/pnl-details.d.ts.map +1 -1
- package/resources/accounts/pnl-details.js +0 -2
- package/resources/accounts/pnl-details.js.map +1 -1
- package/resources/accounts/pnl-details.mjs +0 -2
- package/resources/accounts/pnl-details.mjs.map +1 -1
- package/resources/accounts/pnl-sums.d.ts +1 -3
- package/resources/accounts/pnl-sums.d.ts.map +1 -1
- package/resources/accounts/pnl-sums.js +0 -2
- package/resources/accounts/pnl-sums.js.map +1 -1
- package/resources/accounts/pnl-sums.mjs +0 -2
- package/resources/accounts/pnl-sums.mjs.map +1 -1
- package/resources/accounts/positions.d.ts +1 -3
- package/resources/accounts/positions.d.ts.map +1 -1
- package/resources/accounts/positions.js +0 -2
- package/resources/accounts/positions.js.map +1 -1
- package/resources/accounts/positions.mjs +0 -2
- package/resources/accounts/positions.mjs.map +1 -1
- package/resources/accounts/trades.d.ts +1 -3
- package/resources/accounts/trades.d.ts.map +1 -1
- package/resources/accounts/trades.js +0 -2
- package/resources/accounts/trades.js.map +1 -1
- package/resources/accounts/trades.mjs +0 -2
- package/resources/accounts/trades.mjs.map +1 -1
- package/resources/entities/entities.d.ts +9 -13
- package/resources/entities/entities.d.ts.map +1 -1
- package/resources/entities/entities.js +8 -6
- package/resources/entities/entities.js.map +1 -1
- package/resources/entities/entities.mjs +8 -6
- package/resources/entities/entities.mjs.map +1 -1
- package/resources/entities/index.d.ts +2 -2
- package/resources/entities/index.d.ts.map +1 -1
- package/resources/entities/index.js +3 -3
- package/resources/entities/index.js.map +1 -1
- package/resources/entities/index.mjs +2 -2
- package/resources/entities/index.mjs.map +1 -1
- package/resources/entities/regt-margin-simulations.d.ts +1 -4
- package/resources/entities/regt-margin-simulations.d.ts.map +1 -1
- package/resources/entities/regt-margin-simulations.js +0 -2
- package/resources/entities/regt-margin-simulations.js.map +1 -1
- package/resources/entities/regt-margin-simulations.mjs +0 -2
- package/resources/entities/regt-margin-simulations.mjs.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/instruments.d.ts +1 -3
- package/resources/instruments.d.ts.map +1 -1
- package/resources/instruments.js +0 -2
- package/resources/instruments.js.map +1 -1
- package/resources/instruments.mjs +0 -2
- package/resources/instruments.mjs.map +1 -1
- package/src/core.ts +16 -10
- package/src/error.ts +1 -1
- package/src/index.ts +47 -35
- package/src/resources/accounts/accounts.ts +97 -36
- package/src/resources/accounts/bulk-orders.ts +5 -4
- package/src/resources/accounts/easy-borrows.ts +2 -3
- package/src/resources/accounts/holdings.ts +2 -4
- package/src/resources/accounts/index.ts +19 -18
- package/src/resources/accounts/inventories.ts +45 -0
- package/src/resources/accounts/locate-orders.ts +6 -5
- package/src/resources/accounts/orders.ts +10 -9
- package/src/resources/accounts/pnl-details.ts +2 -3
- package/src/resources/accounts/pnl-sums.ts +2 -4
- package/src/resources/accounts/positions.ts +2 -4
- package/src/resources/accounts/trades.ts +2 -4
- package/src/resources/entities/entities.ts +35 -14
- package/src/resources/entities/index.ts +12 -5
- package/src/resources/entities/regt-margin-simulations.ts +6 -5
- package/src/resources/index.ts +7 -7
- package/src/resources/instruments.ts +2 -4
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../src/resources/entities/entities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../src/resources/entities/entities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,eAAe,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,KAAK,mBAAmB,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,wBAAwB,MAAM,2BAA2B,CAAC;AACtE,OAAO,EACL,gCAAgC,EAChC,kCAAkC,EAClC,qBAAqB,EACrB,YAAY,EACb,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,cAAc,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,qBAAa,QAAS,SAAQ,WAAW;IACvC,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;IAC5F,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IACvF,gBAAgB,EAAE,mBAAmB,CAAC,gBAAgB,CAEpD;IACF,qBAAqB,EAAE,wBAAwB,CAAC,qBAAqB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UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;YAE1E;;eAEG;YACH,YAAY,EAAE,MAAM,CAAC;YAErB;;;;eAIG;YACH,oBAAoB,EAAE,MAAM,CAAC;YAE7B;;eAEG;YACH,QAAQ,EAAE,MAAM,CAAC;YAEjB;;eAEG;YACH,MAAM,EAAE,MAAM,CAAC;SAChB;KACF;CACF;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB;AAOD,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EAAE,YAAY,IAAI,YAAY,EAAE,CAAC;IAExC,OAAO,EAAE,WAAW,IAAI,WAAW,EAAE,CAAC;IAEtC,OAAO,EAAE,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;IAEhD,OAAO,EACL,qBAAqB,IAAI,qBAAqB,EAC9C,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
|
|
@@ -27,9 +27,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
27
27
|
exports.Entities = void 0;
|
|
28
28
|
const resource_1 = require("../../resource.js");
|
|
29
29
|
const PnlSummariesAPI = __importStar(require("./pnl-summaries.js"));
|
|
30
|
+
const pnl_summaries_1 = require("./pnl-summaries.js");
|
|
30
31
|
const PortfolioMarginsAPI = __importStar(require("./portfolio-margins.js"));
|
|
32
|
+
const portfolio_margins_1 = require("./portfolio-margins.js");
|
|
31
33
|
const RegtMarginSimulationsAPI = __importStar(require("./regt-margin-simulations.js"));
|
|
34
|
+
const regt_margin_simulations_1 = require("./regt-margin-simulations.js");
|
|
32
35
|
const RegtMarginsAPI = __importStar(require("./regt-margins.js"));
|
|
36
|
+
const regt_margins_1 = require("./regt-margins.js");
|
|
33
37
|
class Entities extends resource_1.APIResource {
|
|
34
38
|
constructor() {
|
|
35
39
|
super(...arguments);
|
|
@@ -52,10 +56,8 @@ class Entities extends resource_1.APIResource {
|
|
|
52
56
|
}
|
|
53
57
|
}
|
|
54
58
|
exports.Entities = Entities;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
Entities.RegtMarginSimulations = RegtMarginSimulationsAPI.RegtMarginSimulations;
|
|
60
|
-
})(Entities = exports.Entities || (exports.Entities = {}));
|
|
59
|
+
Entities.PnlSummaries = pnl_summaries_1.PnlSummaries;
|
|
60
|
+
Entities.RegtMargins = regt_margins_1.RegtMargins;
|
|
61
|
+
Entities.PortfolioMargins = portfolio_margins_1.PortfolioMargins;
|
|
62
|
+
Entities.RegtMarginSimulations = regt_margin_simulations_1.RegtMarginSimulations;
|
|
61
63
|
//# sourceMappingURL=entities.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.js","sourceRoot":"","sources":["../../src/resources/entities/entities.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;
|
|
1
|
+
{"version":3,"file":"entities.js","sourceRoot":"","sources":["../../src/resources/entities/entities.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAE7C,oEAAmD;AACnD,sDAA+C;AAC/C,4EAA2D;AAC3D,8DAAuD;AACvD,uFAAsE;AACtE,0EAKmC;AACnC,kEAAiD;AACjD,oDAA6C;AAE7C,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;QACF,0BAAqB,GACnB,IAAI,wBAAwB,CAAC,qBAAqB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAerE,CAAC;IAbC;;OAEG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAA6B;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;CACF;AAtBD,4BAsBC;AAogBD,QAAQ,CAAC,YAAY,GAAG,4BAAY,CAAC;AACrC,QAAQ,CAAC,WAAW,GAAG,0BAAW,CAAC;AACnC,QAAQ,CAAC,gBAAgB,GAAG,oCAAgB,CAAC;AAC7C,QAAQ,CAAC,qBAAqB,GAAG,+CAAqB,CAAC"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../resource.mjs";
|
|
3
3
|
import * as PnlSummariesAPI from "./pnl-summaries.mjs";
|
|
4
|
+
import { PnlSummaries } from "./pnl-summaries.mjs";
|
|
4
5
|
import * as PortfolioMarginsAPI from "./portfolio-margins.mjs";
|
|
6
|
+
import { PortfolioMargins } from "./portfolio-margins.mjs";
|
|
5
7
|
import * as RegtMarginSimulationsAPI from "./regt-margin-simulations.mjs";
|
|
8
|
+
import { RegtMarginSimulations, } from "./regt-margin-simulations.mjs";
|
|
6
9
|
import * as RegtMarginsAPI from "./regt-margins.mjs";
|
|
10
|
+
import { RegtMargins } from "./regt-margins.mjs";
|
|
7
11
|
export class Entities extends APIResource {
|
|
8
12
|
constructor() {
|
|
9
13
|
super(...arguments);
|
|
@@ -25,10 +29,8 @@ export class Entities extends APIResource {
|
|
|
25
29
|
return this._client.get('/entities', options);
|
|
26
30
|
}
|
|
27
31
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
Entities.RegtMarginSimulations = RegtMarginSimulationsAPI.RegtMarginSimulations;
|
|
33
|
-
})(Entities || (Entities = {}));
|
|
32
|
+
Entities.PnlSummaries = PnlSummaries;
|
|
33
|
+
Entities.RegtMargins = RegtMargins;
|
|
34
|
+
Entities.PortfolioMargins = PortfolioMargins;
|
|
35
|
+
Entities.RegtMarginSimulations = RegtMarginSimulations;
|
|
34
36
|
//# sourceMappingURL=entities.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.mjs","sourceRoot":"","sources":["../../src/resources/entities/entities.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"entities.mjs","sourceRoot":"","sources":["../../src/resources/entities/entities.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,eAAe;OACpB,EAAE,YAAY,EAAE;OAChB,KAAK,mBAAmB;OACxB,EAAE,gBAAgB,EAAE;OACpB,KAAK,wBAAwB;OAC7B,EAGL,qBAAqB,GAEtB;OACM,KAAK,cAAc;OACnB,EAAE,WAAW,EAAE;AAEtB,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;QACF,0BAAqB,GACnB,IAAI,wBAAwB,CAAC,qBAAqB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAerE,CAAC;IAbC;;OAEG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAA6B;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;CACF;AAogBD,QAAQ,CAAC,YAAY,GAAG,YAAY,CAAC;AACrC,QAAQ,CAAC,WAAW,GAAG,WAAW,CAAC;AACnC,QAAQ,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;AAC7C,QAAQ,CAAC,qBAAqB,GAAG,qBAAqB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { Entity, PnlSummary, PortfolioMargin, RegtMargin, EntityListResponse,
|
|
1
|
+
export { Entities, type Entity, type PnlSummary, type PortfolioMargin, type RegtMargin, type EntityListResponse, } from "./entities.js";
|
|
2
2
|
export { PnlSummaries } from "./pnl-summaries.js";
|
|
3
3
|
export { PortfolioMargins } from "./portfolio-margins.js";
|
|
4
|
+
export { RegtMarginSimulations, type SimulationID, type RegtMarginSimulationCreateResponse, type RegtMarginSimulationCreateParams, } from "./regt-margin-simulations.js";
|
|
4
5
|
export { RegtMargins } from "./regt-margins.js";
|
|
5
|
-
export { SimulationID, RegtMarginSimulationCreateResponse, RegtMarginSimulationCreateParams, RegtMarginSimulations, } from "./regt-margin-simulations.js";
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/entities/index.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
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.
|
|
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,
|
|
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,
|
|
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
|
|
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,
|
|
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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;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;
|
|
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;
|
|
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"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "./shared.js";
|
|
2
|
-
export { Account, AccountListResponse
|
|
3
|
-
export { Entity, PnlSummary, PortfolioMargin, RegtMargin, EntityListResponse,
|
|
4
|
-
export { Instrument, InstrumentRetrieveParams
|
|
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
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,
|
|
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"}
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;AAEtF,8CAAyB;AACzB,
|
|
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"}
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,
|
|
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
|
|
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;
|
|
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;AAEhC,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,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EAAE,KAAK,UAAU,IAAI,UAAU,EAAE,KAAK,wBAAwB,IAAI,wBAAwB,EAAE,CAAC;CACrG"}
|
package/resources/instruments.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instruments.js","sourceRoot":"","sources":["../src/resources/instruments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAC1C,qCAA2C;
|
|
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"}
|
|
@@ -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;
|
|
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
|
@@ -84,8 +84,10 @@ export class APIPromise<T> extends Promise<T> {
|
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
_thenUnwrap<U>(transform: (data: T) => U): APIPromise<U> {
|
|
88
|
-
return new APIPromise(this.responsePromise, async (props) =>
|
|
87
|
+
_thenUnwrap<U>(transform: (data: T, props: APIResponseProps) => U): APIPromise<U> {
|
|
88
|
+
return new APIPromise(this.responsePromise, async (props) =>
|
|
89
|
+
transform(await this.parseResponse(props), props),
|
|
90
|
+
);
|
|
89
91
|
}
|
|
90
92
|
|
|
91
93
|
/**
|
|
@@ -349,9 +351,13 @@ export abstract class APIClient {
|
|
|
349
351
|
delete reqHeaders['content-type'];
|
|
350
352
|
}
|
|
351
353
|
|
|
352
|
-
// Don't set the retry count header if it was already set or removed
|
|
353
|
-
// which can contain nulls, instead of `reqHeaders` to
|
|
354
|
-
|
|
354
|
+
// Don't set the retry count header if it was already set or removed through default headers or by the
|
|
355
|
+
// caller. We check `defaultHeaders` and `headers`, which can contain nulls, instead of `reqHeaders` to
|
|
356
|
+
// account for the removal case.
|
|
357
|
+
if (
|
|
358
|
+
getHeader(defaultHeaders, 'x-stainless-retry-count') === undefined &&
|
|
359
|
+
getHeader(headers, 'x-stainless-retry-count') === undefined
|
|
360
|
+
) {
|
|
355
361
|
reqHeaders['x-stainless-retry-count'] = String(retryCount);
|
|
356
362
|
}
|
|
357
363
|
|
|
@@ -390,7 +396,7 @@ export abstract class APIClient {
|
|
|
390
396
|
error: Object | undefined,
|
|
391
397
|
message: string | undefined,
|
|
392
398
|
headers: Headers | undefined,
|
|
393
|
-
) {
|
|
399
|
+
): APIError {
|
|
394
400
|
return APIError.generate(status, error, message, headers);
|
|
395
401
|
}
|
|
396
402
|
|
|
@@ -662,9 +668,9 @@ export abstract class AbstractPage<Item> implements AsyncIterable<Item> {
|
|
|
662
668
|
return await this.#client.requestAPIList(this.constructor as any, nextOptions);
|
|
663
669
|
}
|
|
664
670
|
|
|
665
|
-
async *iterPages() {
|
|
671
|
+
async *iterPages(): AsyncGenerator<this> {
|
|
666
672
|
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
667
|
-
let page:
|
|
673
|
+
let page: this = this;
|
|
668
674
|
yield page;
|
|
669
675
|
while (page.hasNextPage()) {
|
|
670
676
|
page = await page.getNextPage();
|
|
@@ -672,7 +678,7 @@ export abstract class AbstractPage<Item> implements AsyncIterable<Item> {
|
|
|
672
678
|
}
|
|
673
679
|
}
|
|
674
680
|
|
|
675
|
-
async *[Symbol.asyncIterator]() {
|
|
681
|
+
async *[Symbol.asyncIterator](): AsyncGenerator<Item> {
|
|
676
682
|
for await (const page of this.iterPages()) {
|
|
677
683
|
for (const item of page.getPaginatedItems()) {
|
|
678
684
|
yield item;
|
|
@@ -715,7 +721,7 @@ export class PagePromise<
|
|
|
715
721
|
* console.log(item)
|
|
716
722
|
* }
|
|
717
723
|
*/
|
|
718
|
-
async *[Symbol.asyncIterator]() {
|
|
724
|
+
async *[Symbol.asyncIterator](): AsyncGenerator<Item> {
|
|
719
725
|
const page = await this;
|
|
720
726
|
for await (const item of page) {
|
|
721
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
|
-
|
|
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
|
-
}
|
|
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;
|