@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.
- package/CHANGELOG.md +135 -0
- package/LICENSE +201 -0
- package/README.md +290 -0
- package/_shims/MultipartBody.d.ts +9 -0
- package/_shims/MultipartBody.d.ts.map +1 -0
- package/_shims/MultipartBody.js +16 -0
- package/_shims/MultipartBody.js.map +1 -0
- package/_shims/MultipartBody.mjs +12 -0
- package/_shims/MultipartBody.mjs.map +1 -0
- package/_shims/README.md +46 -0
- package/_shims/auto/runtime-bun.d.ts +5 -0
- package/_shims/auto/runtime-bun.d.ts.map +1 -0
- package/_shims/auto/runtime-bun.js +21 -0
- package/_shims/auto/runtime-bun.js.map +1 -0
- package/_shims/auto/runtime-bun.mjs +2 -0
- package/_shims/auto/runtime-bun.mjs.map +1 -0
- package/_shims/auto/runtime-node.d.ts +5 -0
- package/_shims/auto/runtime-node.d.ts.map +1 -0
- package/_shims/auto/runtime-node.js +21 -0
- package/_shims/auto/runtime-node.js.map +1 -0
- package/_shims/auto/runtime-node.mjs +2 -0
- package/_shims/auto/runtime-node.mjs.map +1 -0
- package/_shims/auto/runtime.d.ts +5 -0
- package/_shims/auto/runtime.d.ts.map +1 -0
- package/_shims/auto/runtime.js +21 -0
- package/_shims/auto/runtime.js.map +1 -0
- package/_shims/auto/runtime.mjs +2 -0
- package/_shims/auto/runtime.mjs.map +1 -0
- package/_shims/auto/types-node.d.ts +5 -0
- package/_shims/auto/types-node.d.ts.map +1 -0
- package/_shims/auto/types-node.js +21 -0
- package/_shims/auto/types-node.js.map +1 -0
- package/_shims/auto/types-node.mjs +2 -0
- package/_shims/auto/types-node.mjs.map +1 -0
- package/_shims/auto/types.d.ts +101 -0
- package/_shims/auto/types.js +3 -0
- package/_shims/auto/types.mjs +3 -0
- package/_shims/bun-runtime.d.ts +6 -0
- package/_shims/bun-runtime.d.ts.map +1 -0
- package/_shims/bun-runtime.js +14 -0
- package/_shims/bun-runtime.js.map +1 -0
- package/_shims/bun-runtime.mjs +10 -0
- package/_shims/bun-runtime.mjs.map +1 -0
- package/_shims/index.d.ts +81 -0
- package/_shims/index.js +13 -0
- package/_shims/index.mjs +7 -0
- package/_shims/manual-types.d.ts +12 -0
- package/_shims/manual-types.js +3 -0
- package/_shims/manual-types.mjs +3 -0
- package/_shims/node-runtime.d.ts +3 -0
- package/_shims/node-runtime.d.ts.map +1 -0
- package/_shims/node-runtime.js +89 -0
- package/_shims/node-runtime.js.map +1 -0
- package/_shims/node-runtime.mjs +56 -0
- package/_shims/node-runtime.mjs.map +1 -0
- package/_shims/node-types.d.ts +42 -0
- package/_shims/node-types.js +3 -0
- package/_shims/node-types.mjs +3 -0
- package/_shims/registry.d.ts +37 -0
- package/_shims/registry.d.ts.map +1 -0
- package/_shims/registry.js +41 -0
- package/_shims/registry.js.map +1 -0
- package/_shims/registry.mjs +37 -0
- package/_shims/registry.mjs.map +1 -0
- package/_shims/web-runtime.d.ts +5 -0
- package/_shims/web-runtime.d.ts.map +1 -0
- package/_shims/web-runtime.js +78 -0
- package/_shims/web-runtime.js.map +1 -0
- package/_shims/web-runtime.mjs +71 -0
- package/_shims/web-runtime.mjs.map +1 -0
- package/_shims/web-types.d.ts +83 -0
- package/_shims/web-types.js +3 -0
- package/_shims/web-types.mjs +3 -0
- package/core.d.ts +242 -0
- package/core.d.ts.map +1 -0
- package/core.js +901 -0
- package/core.js.map +1 -0
- package/core.mjs +869 -0
- package/core.mjs.map +1 -0
- package/error.d.ts +53 -0
- package/error.d.ts.map +1 -0
- package/error.js +143 -0
- package/error.js.map +1 -0
- package/error.mjs +127 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +144 -0
- package/index.d.ts +144 -0
- package/index.d.ts.map +1 -0
- package/index.js +122 -0
- package/index.js.map +1 -0
- package/index.mjs +94 -0
- package/index.mjs.map +1 -0
- package/package.json +103 -0
- package/resource.d.ts +6 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +11 -0
- package/resource.js.map +1 -0
- package/resource.mjs +7 -0
- package/resource.mjs.map +1 -0
- package/resources/accounts/accounts.d.ts +84 -0
- package/resources/accounts/accounts.d.ts.map +1 -0
- package/resources/accounts/accounts.js +79 -0
- package/resources/accounts/accounts.js.map +1 -0
- package/resources/accounts/accounts.mjs +52 -0
- package/resources/accounts/accounts.mjs.map +1 -0
- package/resources/accounts/bulk-orders.d.ts +134 -0
- package/resources/accounts/bulk-orders.d.ts.map +1 -0
- package/resources/accounts/bulk-orders.js +29 -0
- package/resources/accounts/bulk-orders.js.map +1 -0
- package/resources/accounts/bulk-orders.mjs +25 -0
- package/resources/accounts/bulk-orders.mjs.map +1 -0
- package/resources/accounts/easy-borrows.d.ts +17 -0
- package/resources/accounts/easy-borrows.d.ts.map +1 -0
- package/resources/accounts/easy-borrows.js +18 -0
- package/resources/accounts/easy-borrows.js.map +1 -0
- package/resources/accounts/easy-borrows.mjs +14 -0
- package/resources/accounts/easy-borrows.mjs.map +1 -0
- package/resources/accounts/holdings.d.ts +73 -0
- package/resources/accounts/holdings.d.ts.map +1 -0
- package/resources/accounts/holdings.js +18 -0
- package/resources/accounts/holdings.js.map +1 -0
- package/resources/accounts/holdings.mjs +14 -0
- package/resources/accounts/holdings.mjs.map +1 -0
- package/resources/accounts/index.d.ts +12 -0
- package/resources/accounts/index.d.ts.map +1 -0
- package/resources/accounts/index.js +27 -0
- package/resources/accounts/index.js.map +1 -0
- package/resources/accounts/index.mjs +13 -0
- package/resources/accounts/index.mjs.map +1 -0
- package/resources/accounts/locate-orders.d.ts +56 -0
- package/resources/accounts/locate-orders.d.ts.map +1 -0
- package/resources/accounts/locate-orders.js +39 -0
- package/resources/accounts/locate-orders.js.map +1 -0
- package/resources/accounts/locate-orders.mjs +35 -0
- package/resources/accounts/locate-orders.mjs.map +1 -0
- package/resources/accounts/orders.d.ts +164 -0
- package/resources/accounts/orders.d.ts.map +1 -0
- package/resources/accounts/orders.js +53 -0
- package/resources/accounts/orders.js.map +1 -0
- package/resources/accounts/orders.mjs +49 -0
- package/resources/accounts/orders.mjs.map +1 -0
- package/resources/accounts/pnl-details.d.ts +113 -0
- package/resources/accounts/pnl-details.d.ts.map +1 -0
- package/resources/accounts/pnl-details.js +17 -0
- package/resources/accounts/pnl-details.js.map +1 -0
- package/resources/accounts/pnl-details.mjs +13 -0
- package/resources/accounts/pnl-details.mjs.map +1 -0
- package/resources/accounts/pnl-summary.d.ts +10 -0
- package/resources/accounts/pnl-summary.d.ts.map +1 -0
- package/resources/accounts/pnl-summary.js +15 -0
- package/resources/accounts/pnl-summary.js.map +1 -0
- package/resources/accounts/pnl-summary.mjs +11 -0
- package/resources/accounts/pnl-summary.mjs.map +1 -0
- package/resources/accounts/pnl-sums.d.ts +138 -0
- package/resources/accounts/pnl-sums.d.ts.map +1 -0
- package/resources/accounts/pnl-sums.js +18 -0
- package/resources/accounts/pnl-sums.js.map +1 -0
- package/resources/accounts/pnl-sums.mjs +14 -0
- package/resources/accounts/pnl-sums.mjs.map +1 -0
- package/resources/accounts/positions.d.ts +37 -0
- package/resources/accounts/positions.d.ts.map +1 -0
- package/resources/accounts/positions.js +24 -0
- package/resources/accounts/positions.js.map +1 -0
- package/resources/accounts/positions.mjs +20 -0
- package/resources/accounts/positions.mjs.map +1 -0
- package/resources/accounts/trades.d.ts +37 -0
- package/resources/accounts/trades.d.ts.map +1 -0
- package/resources/accounts/trades.js +24 -0
- package/resources/accounts/trades.js.map +1 -0
- package/resources/accounts/trades.mjs +20 -0
- package/resources/accounts/trades.mjs.map +1 -0
- package/resources/entities/entities.d.ts +458 -0
- package/resources/entities/entities.d.ts.map +1 -0
- package/resources/entities/entities.js +61 -0
- package/resources/entities/entities.js.map +1 -0
- package/resources/entities/entities.mjs +34 -0
- package/resources/entities/entities.mjs.map +1 -0
- package/resources/entities/index.d.ts +6 -0
- package/resources/entities/index.d.ts.map +1 -0
- package/resources/entities/index.js +15 -0
- package/resources/entities/index.js.map +1 -0
- package/resources/entities/index.mjs +7 -0
- package/resources/entities/index.mjs.map +1 -0
- package/resources/entities/pnl-summaries.d.ts +10 -0
- package/resources/entities/pnl-summaries.d.ts.map +1 -0
- package/resources/entities/pnl-summaries.js +15 -0
- package/resources/entities/pnl-summaries.js.map +1 -0
- package/resources/entities/pnl-summaries.mjs +11 -0
- package/resources/entities/pnl-summaries.mjs.map +1 -0
- package/resources/entities/portfolio-margins.d.ts +10 -0
- package/resources/entities/portfolio-margins.d.ts.map +1 -0
- package/resources/entities/portfolio-margins.js +15 -0
- package/resources/entities/portfolio-margins.js.map +1 -0
- package/resources/entities/portfolio-margins.mjs +11 -0
- package/resources/entities/portfolio-margins.mjs.map +1 -0
- package/resources/entities/regt-margin-simulations.d.ts +97 -0
- package/resources/entities/regt-margin-simulations.d.ts.map +1 -0
- package/resources/entities/regt-margin-simulations.js +30 -0
- package/resources/entities/regt-margin-simulations.js.map +1 -0
- package/resources/entities/regt-margin-simulations.mjs +26 -0
- package/resources/entities/regt-margin-simulations.mjs.map +1 -0
- package/resources/entities/regt-margins.d.ts +10 -0
- package/resources/entities/regt-margins.d.ts.map +1 -0
- package/resources/entities/regt-margins.js +15 -0
- package/resources/entities/regt-margins.js.map +1 -0
- package/resources/entities/regt-margins.mjs +11 -0
- package/resources/entities/regt-margins.mjs.map +1 -0
- package/resources/index.d.ts +5 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +26 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +6 -0
- package/resources/index.mjs.map +1 -0
- package/resources/instruments.d.ts +45 -0
- package/resources/instruments.d.ts.map +1 -0
- package/resources/instruments.js +18 -0
- package/resources/instruments.js.map +1 -0
- package/resources/instruments.mjs +14 -0
- package/resources/instruments.mjs.map +1 -0
- package/resources/shared.d.ts +332 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +4 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +3 -0
- package/resources/shared.mjs.map +1 -0
- package/shims/node.d.ts +30 -0
- package/shims/node.d.ts.map +1 -0
- package/shims/node.js +31 -0
- package/shims/node.js.map +1 -0
- package/shims/node.mjs +5 -0
- package/shims/node.mjs.map +1 -0
- package/shims/web.d.ts +26 -0
- package/shims/web.d.ts.map +1 -0
- package/shims/web.js +31 -0
- package/shims/web.js.map +1 -0
- package/shims/web.mjs +5 -0
- package/shims/web.mjs.map +1 -0
- package/src/_shims/MultipartBody.ts +9 -0
- package/src/_shims/README.md +46 -0
- package/src/_shims/auto/runtime-bun.ts +4 -0
- package/src/_shims/auto/runtime-node.ts +4 -0
- package/src/_shims/auto/runtime.ts +4 -0
- package/src/_shims/auto/types-node.ts +4 -0
- package/src/_shims/auto/types.d.ts +101 -0
- package/src/_shims/auto/types.js +3 -0
- package/src/_shims/auto/types.mjs +3 -0
- package/src/_shims/bun-runtime.ts +14 -0
- package/src/_shims/index.d.ts +81 -0
- package/src/_shims/index.js +13 -0
- package/src/_shims/index.mjs +7 -0
- package/src/_shims/manual-types.d.ts +12 -0
- package/src/_shims/manual-types.js +3 -0
- package/src/_shims/manual-types.mjs +3 -0
- package/src/_shims/node-runtime.ts +81 -0
- package/src/_shims/node-types.d.ts +42 -0
- package/src/_shims/node-types.js +3 -0
- package/src/_shims/node-types.mjs +3 -0
- package/src/_shims/registry.ts +67 -0
- package/src/_shims/web-runtime.ts +103 -0
- package/src/_shims/web-types.d.ts +83 -0
- package/src/_shims/web-types.js +3 -0
- package/src/_shims/web-types.mjs +3 -0
- package/src/core.ts +1190 -0
- package/src/error.ts +146 -0
- package/src/index.ts +231 -0
- package/src/lib/.keep +4 -0
- package/src/resource.ts +11 -0
- package/src/resources/accounts/accounts.ts +97 -0
- package/src/resources/accounts/bulk-orders.ts +161 -0
- package/src/resources/accounts/easy-borrows.ts +23 -0
- package/src/resources/accounts/holdings.ts +103 -0
- package/src/resources/accounts/index.ts +27 -0
- package/src/resources/accounts/locate-orders.ts +94 -0
- package/src/resources/accounts/orders.ts +243 -0
- package/src/resources/accounts/pnl-details.ts +143 -0
- package/src/resources/accounts/pnl-summary.ts +14 -0
- package/src/resources/accounts/pnl-sums.ts +176 -0
- package/src/resources/accounts/positions.ts +66 -0
- package/src/resources/accounts/trades.ts +62 -0
- package/src/resources/entities/entities.ts +562 -0
- package/src/resources/entities/index.ts +12 -0
- package/src/resources/entities/pnl-summaries.ts +14 -0
- package/src/resources/entities/portfolio-margins.ts +14 -0
- package/src/resources/entities/regt-margin-simulations.ts +127 -0
- package/src/resources/entities/regt-margins.ts +14 -0
- package/src/resources/index.ts +13 -0
- package/src/resources/instruments.ts +70 -0
- package/src/resources/shared.ts +428 -0
- package/src/shims/node.ts +50 -0
- package/src/shims/web.ts +50 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +255 -0
- package/src/version.ts +1 -0
- package/uploads.d.ts +75 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +171 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +158 -0
- package/uploads.mjs.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,79 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.Accounts = void 0;
|
|
28
|
+
const resource_1 = require("../../resource.js");
|
|
29
|
+
const BulkOrdersAPI = __importStar(require("./bulk-orders.js"));
|
|
30
|
+
const EasyBorrowsAPI = __importStar(require("./easy-borrows.js"));
|
|
31
|
+
const HoldingsAPI = __importStar(require("./holdings.js"));
|
|
32
|
+
const LocateOrdersAPI = __importStar(require("./locate-orders.js"));
|
|
33
|
+
const OrdersAPI = __importStar(require("./orders.js"));
|
|
34
|
+
const PnlDetailsAPI = __importStar(require("./pnl-details.js"));
|
|
35
|
+
const PnlSummaryAPI = __importStar(require("./pnl-summary.js"));
|
|
36
|
+
const PnlSumsAPI = __importStar(require("./pnl-sums.js"));
|
|
37
|
+
const PositionsAPI = __importStar(require("./positions.js"));
|
|
38
|
+
const TradesAPI = __importStar(require("./trades.js"));
|
|
39
|
+
class Accounts extends resource_1.APIResource {
|
|
40
|
+
constructor() {
|
|
41
|
+
super(...arguments);
|
|
42
|
+
this.bulkOrders = new BulkOrdersAPI.BulkOrders(this._client);
|
|
43
|
+
this.orders = new OrdersAPI.Orders(this._client);
|
|
44
|
+
this.trades = new TradesAPI.Trades(this._client);
|
|
45
|
+
this.positions = new PositionsAPI.Positions(this._client);
|
|
46
|
+
this.locateOrders = new LocateOrdersAPI.LocateOrders(this._client);
|
|
47
|
+
this.easyBorrows = new EasyBorrowsAPI.EasyBorrows(this._client);
|
|
48
|
+
this.pnlSummary = new PnlSummaryAPI.PnlSummary(this._client);
|
|
49
|
+
this.pnlDetails = new PnlDetailsAPI.PnlDetails(this._client);
|
|
50
|
+
this.pnlSums = new PnlSumsAPI.PnlSums(this._client);
|
|
51
|
+
this.holdings = new HoldingsAPI.Holdings(this._client);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Get an account by its ID.
|
|
55
|
+
*/
|
|
56
|
+
retrieve(accountId, options) {
|
|
57
|
+
return this._client.get(`/accounts/${accountId}`, options);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* List all available accounts.
|
|
61
|
+
*/
|
|
62
|
+
list(options) {
|
|
63
|
+
return this._client.get('/accounts', options);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.Accounts = Accounts;
|
|
67
|
+
(function (Accounts) {
|
|
68
|
+
Accounts.BulkOrders = BulkOrdersAPI.BulkOrders;
|
|
69
|
+
Accounts.Orders = OrdersAPI.Orders;
|
|
70
|
+
Accounts.Trades = TradesAPI.Trades;
|
|
71
|
+
Accounts.Positions = PositionsAPI.Positions;
|
|
72
|
+
Accounts.LocateOrders = LocateOrdersAPI.LocateOrders;
|
|
73
|
+
Accounts.EasyBorrows = EasyBorrowsAPI.EasyBorrows;
|
|
74
|
+
Accounts.PnlSummary = PnlSummaryAPI.PnlSummary;
|
|
75
|
+
Accounts.PnlDetails = PnlDetailsAPI.PnlDetails;
|
|
76
|
+
Accounts.PnlSums = PnlSumsAPI.PnlSums;
|
|
77
|
+
Accounts.Holdings = HoldingsAPI.Holdings;
|
|
78
|
+
})(Accounts = exports.Accounts || (exports.Accounts = {}));
|
|
79
|
+
//# sourceMappingURL=accounts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../src/resources/accounts/accounts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAG7C,gEAA+C;AAC/C,kEAAiD;AACjD,2DAA0C;AAC1C,oEAAmD;AACnD,uDAAsC;AACtC,gEAA+C;AAC/C,gEAA+C;AAC/C,0DAAyC;AACzC,6DAA4C;AAC5C,uDAAsC;AAEtC,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,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,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAe1E,CAAC;IAbC;;OAEG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAA6B;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;CACF;AAzBD,4BAyBC;AAoBD,WAAiB,QAAQ;IAGT,mBAAU,GAAG,aAAa,CAAC,UAAU,CAAC;IAGtC,eAAM,GAAG,SAAS,CAAC,MAAM,CAAC;IAQ1B,eAAM,GAAG,SAAS,CAAC,MAAM,CAAC;IAG1B,kBAAS,GAAG,YAAY,CAAC,SAAS,CAAC;IAGnC,qBAAY,GAAG,eAAe,CAAC,YAAY,CAAC;IAI5C,oBAAW,GAAG,cAAc,CAAC,WAAW,CAAC;IAEzC,mBAAU,GAAG,aAAa,CAAC,UAAU,CAAC;IACtC,mBAAU,GAAG,aAAa,CAAC,UAAU,CAAC;IAEtC,gBAAO,GAAG,UAAU,CAAC,OAAO,CAAC;IAG7B,iBAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC;AAGhD,CAAC,EAnCgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAmCxB"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
import * as BulkOrdersAPI from "./bulk-orders.mjs";
|
|
4
|
+
import * as EasyBorrowsAPI from "./easy-borrows.mjs";
|
|
5
|
+
import * as HoldingsAPI from "./holdings.mjs";
|
|
6
|
+
import * as LocateOrdersAPI from "./locate-orders.mjs";
|
|
7
|
+
import * as OrdersAPI from "./orders.mjs";
|
|
8
|
+
import * as PnlDetailsAPI from "./pnl-details.mjs";
|
|
9
|
+
import * as PnlSummaryAPI from "./pnl-summary.mjs";
|
|
10
|
+
import * as PnlSumsAPI from "./pnl-sums.mjs";
|
|
11
|
+
import * as PositionsAPI from "./positions.mjs";
|
|
12
|
+
import * as TradesAPI from "./trades.mjs";
|
|
13
|
+
export class Accounts extends APIResource {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.bulkOrders = new BulkOrdersAPI.BulkOrders(this._client);
|
|
17
|
+
this.orders = new OrdersAPI.Orders(this._client);
|
|
18
|
+
this.trades = new TradesAPI.Trades(this._client);
|
|
19
|
+
this.positions = new PositionsAPI.Positions(this._client);
|
|
20
|
+
this.locateOrders = new LocateOrdersAPI.LocateOrders(this._client);
|
|
21
|
+
this.easyBorrows = new EasyBorrowsAPI.EasyBorrows(this._client);
|
|
22
|
+
this.pnlSummary = new PnlSummaryAPI.PnlSummary(this._client);
|
|
23
|
+
this.pnlDetails = new PnlDetailsAPI.PnlDetails(this._client);
|
|
24
|
+
this.pnlSums = new PnlSumsAPI.PnlSums(this._client);
|
|
25
|
+
this.holdings = new HoldingsAPI.Holdings(this._client);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Get an account by its ID.
|
|
29
|
+
*/
|
|
30
|
+
retrieve(accountId, options) {
|
|
31
|
+
return this._client.get(`/accounts/${accountId}`, options);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* List all available accounts.
|
|
35
|
+
*/
|
|
36
|
+
list(options) {
|
|
37
|
+
return this._client.get('/accounts', options);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
(function (Accounts) {
|
|
41
|
+
Accounts.BulkOrders = BulkOrdersAPI.BulkOrders;
|
|
42
|
+
Accounts.Orders = OrdersAPI.Orders;
|
|
43
|
+
Accounts.Trades = TradesAPI.Trades;
|
|
44
|
+
Accounts.Positions = PositionsAPI.Positions;
|
|
45
|
+
Accounts.LocateOrders = LocateOrdersAPI.LocateOrders;
|
|
46
|
+
Accounts.EasyBorrows = EasyBorrowsAPI.EasyBorrows;
|
|
47
|
+
Accounts.PnlSummary = PnlSummaryAPI.PnlSummary;
|
|
48
|
+
Accounts.PnlDetails = PnlDetailsAPI.PnlDetails;
|
|
49
|
+
Accounts.PnlSums = PnlSumsAPI.PnlSums;
|
|
50
|
+
Accounts.Holdings = HoldingsAPI.Holdings;
|
|
51
|
+
})(Accounts || (Accounts = {}));
|
|
52
|
+
//# sourceMappingURL=accounts.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accounts.mjs","sourceRoot":"","sources":["../../src/resources/accounts/accounts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,KAAK,aAAa;OAClB,KAAK,cAAc;OACnB,KAAK,WAAW;OAChB,KAAK,eAAe;OACpB,KAAK,SAAS;OACd,KAAK,aAAa;OAClB,KAAK,aAAa;OAClB,KAAK,UAAU;OACf,KAAK,YAAY;OACjB,KAAK,SAAS;AAErB,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,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,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAe1E,CAAC;IAbC;;OAEG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAA6B;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;CACF;AAoBD,WAAiB,QAAQ;IAGT,mBAAU,GAAG,aAAa,CAAC,UAAU,CAAC;IAGtC,eAAM,GAAG,SAAS,CAAC,MAAM,CAAC;IAQ1B,eAAM,GAAG,SAAS,CAAC,MAAM,CAAC;IAG1B,kBAAS,GAAG,YAAY,CAAC,SAAS,CAAC;IAGnC,qBAAY,GAAG,eAAe,CAAC,YAAY,CAAC;IAI5C,oBAAW,GAAG,cAAc,CAAC,WAAW,CAAC;IAEzC,mBAAU,GAAG,aAAa,CAAC,UAAU,CAAC;IACtC,mBAAU,GAAG,aAAa,CAAC,UAAU,CAAC;IAEtC,gBAAO,GAAG,UAAU,CAAC,OAAO,CAAC;IAG7B,iBAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC;AAGhD,CAAC,EAnCgB,QAAQ,KAAR,QAAQ,QAmCxB"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
import * as BulkOrdersAPI from "./bulk-orders.js";
|
|
4
|
+
import * as Shared from "../shared.js";
|
|
5
|
+
export declare class BulkOrders extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Creates multiple orders in a single request, up to 1000. Note that a successful
|
|
8
|
+
* call to this endpoint does not necessarily mean your orders have been accepted,
|
|
9
|
+
* e.g. a downstream venue might reject your order. You should therefore utilize
|
|
10
|
+
* our WebSocket APIs to listen for changes in order lifecycle events.
|
|
11
|
+
*
|
|
12
|
+
* The response will contain an array of objects, indicating whether your order was
|
|
13
|
+
* submitted. If the order was submitted, the `order_id` field will be populated
|
|
14
|
+
* with the order ID assigned to this order. If the order was rejected, the
|
|
15
|
+
* `reason` field will be populated with the reason for rejection. The data array
|
|
16
|
+
* returned in the response object is guaranteed to be ordered in the same order as
|
|
17
|
+
* the orders you provided in the request. Again, note that even if your order was
|
|
18
|
+
* submitted, that doesn't mean it was _accepted_, and may still be rejected by
|
|
19
|
+
* downstream venues.
|
|
20
|
+
*/
|
|
21
|
+
create(accountId: string, body: BulkOrderCreateParams, options?: Core.RequestOptions): Core.APIPromise<BulkOrderCreateResponse>;
|
|
22
|
+
}
|
|
23
|
+
export interface BulkOrderCreateResponse {
|
|
24
|
+
/**
|
|
25
|
+
* Array indicating whether each respective order was submitted or not. This array
|
|
26
|
+
* is guaranteed to be sorted in the same order as the orders you provided in your
|
|
27
|
+
* request.
|
|
28
|
+
*/
|
|
29
|
+
data: Array<BulkOrderCreateResponse.Data>;
|
|
30
|
+
/**
|
|
31
|
+
* Total number of orders rejected
|
|
32
|
+
*/
|
|
33
|
+
rejected: number;
|
|
34
|
+
/**
|
|
35
|
+
* Total number of orders submitted
|
|
36
|
+
*/
|
|
37
|
+
submitted: number;
|
|
38
|
+
}
|
|
39
|
+
export declare namespace BulkOrderCreateResponse {
|
|
40
|
+
interface Data {
|
|
41
|
+
/**
|
|
42
|
+
* True if the order was submitted successfully, false otherwise.
|
|
43
|
+
*/
|
|
44
|
+
submitted: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* If the order was submitted, the order ID assigned to this order. Empty if the
|
|
47
|
+
* order was rejected.
|
|
48
|
+
*/
|
|
49
|
+
order_id?: string;
|
|
50
|
+
/**
|
|
51
|
+
* If the order rejected, the reason for rejection. Empty if the order was
|
|
52
|
+
* accepted.
|
|
53
|
+
*/
|
|
54
|
+
reason?: string;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
export interface BulkOrderCreateParams {
|
|
58
|
+
/**
|
|
59
|
+
* An array of orders to create.
|
|
60
|
+
*/
|
|
61
|
+
orders: Array<BulkOrderCreateParams.Order>;
|
|
62
|
+
}
|
|
63
|
+
export declare namespace BulkOrderCreateParams {
|
|
64
|
+
interface Order {
|
|
65
|
+
/**
|
|
66
|
+
* The type of order, can be one of the following:
|
|
67
|
+
*
|
|
68
|
+
* - `limit`: A limit order will execute at-or-better than the limit price you
|
|
69
|
+
* specify
|
|
70
|
+
* - `market`: An order that will execute at the prevailing market prices
|
|
71
|
+
* - `stop`: A stop order will result in a market order when the market price
|
|
72
|
+
* reaches the specified stop price
|
|
73
|
+
* - `stop-limit`: A stop limit order will result in a limit order when the market
|
|
74
|
+
* price reaches the specified stop price
|
|
75
|
+
*/
|
|
76
|
+
order_type: 'limit' | 'market' | 'stop' | 'stop-limit';
|
|
77
|
+
/**
|
|
78
|
+
* The maximum quantity to be executed.
|
|
79
|
+
*/
|
|
80
|
+
quantity: string;
|
|
81
|
+
/**
|
|
82
|
+
* Buy, sell, sell-short indicator.
|
|
83
|
+
*/
|
|
84
|
+
side: 'buy' | 'sell' | 'sell-short';
|
|
85
|
+
/**
|
|
86
|
+
* The symbol this order is for. See `symbol_format` for supported symbol formats.
|
|
87
|
+
*/
|
|
88
|
+
symbol: string;
|
|
89
|
+
/**
|
|
90
|
+
* The lifecycle enforcement of this order.
|
|
91
|
+
*
|
|
92
|
+
* - `day`: The order will exist for the duration of the current trading session
|
|
93
|
+
* - `ioc`: The order will immediately be executed or cancelled
|
|
94
|
+
* - `day-plus`: The order will exist only for the duration the current trading
|
|
95
|
+
* session plus extended hours, if applicable
|
|
96
|
+
* - `at-open`: The order will exist only for the opening auction of the next
|
|
97
|
+
* session
|
|
98
|
+
* - `at-close`: The order will exist only for the closing auction of the current
|
|
99
|
+
* session
|
|
100
|
+
*/
|
|
101
|
+
time_in_force: 'day' | 'ioc' | 'day-plus' | 'at-open' | 'at-close';
|
|
102
|
+
/**
|
|
103
|
+
* If you're short-selling and using an away broker for a locate, provide the
|
|
104
|
+
* broker name here.
|
|
105
|
+
*/
|
|
106
|
+
locate_broker?: string;
|
|
107
|
+
/**
|
|
108
|
+
* The price to execute at-or-better for limit orders.
|
|
109
|
+
*/
|
|
110
|
+
price?: string;
|
|
111
|
+
/**
|
|
112
|
+
* An ID that you provide.
|
|
113
|
+
*/
|
|
114
|
+
reference_id?: string;
|
|
115
|
+
/**
|
|
116
|
+
* The price at which stop orders become marketable.
|
|
117
|
+
*/
|
|
118
|
+
stop_price?: string;
|
|
119
|
+
/**
|
|
120
|
+
* The execution strategy to use for this order. If not provided, our smart
|
|
121
|
+
* order-router will handle execution for your order.
|
|
122
|
+
*/
|
|
123
|
+
strategy?: Shared.Strategy;
|
|
124
|
+
/**
|
|
125
|
+
* Denotes the format of the provided `symbol` field.
|
|
126
|
+
*/
|
|
127
|
+
symbol_format?: 'cms' | 'osi';
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
export declare namespace BulkOrders {
|
|
131
|
+
export import BulkOrderCreateResponse = BulkOrdersAPI.BulkOrderCreateResponse;
|
|
132
|
+
export import BulkOrderCreateParams = BulkOrdersAPI.BulkOrderCreateParams;
|
|
133
|
+
}
|
|
134
|
+
//# sourceMappingURL=bulk-orders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulk-orders.d.ts","sourceRoot":"","sources":["../../src/resources/accounts/bulk-orders.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,aAAa,MAAM,eAAe,CAAC;AAC/C,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AAEpC,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,qBAAqB,EAC3B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,uBAAuB,CAAC;CAG5C;AAED,MAAM,WAAW,uBAAuB;IACtC;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;IAE1C;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,yBAAiB,uBAAuB,CAAC;IACvC,UAAiB,IAAI;QACnB;;WAEG;QACH,SAAS,EAAE,OAAO,CAAC;QAEnB;;;WAGG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB;;;WAGG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC;CAC5C;AAED,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,KAAK;QACpB;;;;;;;;;;WAUG;QACH,UAAU,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,YAAY,CAAC;QAEvD;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,YAAY,CAAC;QAEpC;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;;;;;;;;;;WAWG;QACH,aAAa,EAAE,KAAK,GAAG,KAAK,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,CAAC;QAEnE;;;WAGG;QACH,aAAa,CAAC,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;;WAGG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC;QAE3B;;WAEG;QACH,aAAa,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;KAC/B;CACF;AAED,yBAAiB,UAAU,CAAC;IAC1B,MAAM,QAAQ,uBAAuB,GAAG,aAAa,CAAC,uBAAuB,CAAC;IAC9E,MAAM,QAAQ,qBAAqB,GAAG,aAAa,CAAC,qBAAqB,CAAC;CAC3E"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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.BulkOrders = void 0;
|
|
5
|
+
const resource_1 = require("../../resource.js");
|
|
6
|
+
class BulkOrders extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Creates multiple orders in a single request, up to 1000. Note that a successful
|
|
9
|
+
* call to this endpoint does not necessarily mean your orders have been accepted,
|
|
10
|
+
* e.g. a downstream venue might reject your order. You should therefore utilize
|
|
11
|
+
* our WebSocket APIs to listen for changes in order lifecycle events.
|
|
12
|
+
*
|
|
13
|
+
* The response will contain an array of objects, indicating whether your order was
|
|
14
|
+
* submitted. If the order was submitted, the `order_id` field will be populated
|
|
15
|
+
* with the order ID assigned to this order. If the order was rejected, the
|
|
16
|
+
* `reason` field will be populated with the reason for rejection. The data array
|
|
17
|
+
* returned in the response object is guaranteed to be ordered in the same order as
|
|
18
|
+
* the orders you provided in the request. Again, note that even if your order was
|
|
19
|
+
* submitted, that doesn't mean it was _accepted_, and may still be rejected by
|
|
20
|
+
* downstream venues.
|
|
21
|
+
*/
|
|
22
|
+
create(accountId, body, options) {
|
|
23
|
+
return this._client.post(`/accounts/${accountId}/bulk-orders`, { body, ...options });
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.BulkOrders = BulkOrders;
|
|
27
|
+
(function (BulkOrders) {
|
|
28
|
+
})(BulkOrders = exports.BulkOrders || (exports.BulkOrders = {}));
|
|
29
|
+
//# sourceMappingURL=bulk-orders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulk-orders.js","sourceRoot":"","sources":["../../src/resources/accounts/bulk-orders.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAK7C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,SAAiB,EACjB,IAA2B,EAC3B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,SAAS,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF;AAvBD,gCAuBC;AA+HD,WAAiB,UAAU;AAG3B,CAAC,EAHgB,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAG1B"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
export class BulkOrders extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Creates multiple orders in a single request, up to 1000. Note that a successful
|
|
6
|
+
* call to this endpoint does not necessarily mean your orders have been accepted,
|
|
7
|
+
* e.g. a downstream venue might reject your order. You should therefore utilize
|
|
8
|
+
* our WebSocket APIs to listen for changes in order lifecycle events.
|
|
9
|
+
*
|
|
10
|
+
* The response will contain an array of objects, indicating whether your order was
|
|
11
|
+
* submitted. If the order was submitted, the `order_id` field will be populated
|
|
12
|
+
* with the order ID assigned to this order. If the order was rejected, the
|
|
13
|
+
* `reason` field will be populated with the reason for rejection. The data array
|
|
14
|
+
* returned in the response object is guaranteed to be ordered in the same order as
|
|
15
|
+
* the orders you provided in the request. Again, note that even if your order was
|
|
16
|
+
* submitted, that doesn't mean it was _accepted_, and may still be rejected by
|
|
17
|
+
* downstream venues.
|
|
18
|
+
*/
|
|
19
|
+
create(accountId, body, options) {
|
|
20
|
+
return this._client.post(`/accounts/${accountId}/bulk-orders`, { body, ...options });
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
(function (BulkOrders) {
|
|
24
|
+
})(BulkOrders || (BulkOrders = {}));
|
|
25
|
+
//# sourceMappingURL=bulk-orders.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulk-orders.mjs","sourceRoot":"","sources":["../../src/resources/accounts/bulk-orders.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,SAAiB,EACjB,IAA2B,EAC3B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,SAAS,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF;AA+HD,WAAiB,UAAU;AAG3B,CAAC,EAHgB,UAAU,KAAV,UAAU,QAG1B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
import * as EasyBorrowsAPI from "./easy-borrows.js";
|
|
4
|
+
export declare class EasyBorrows extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* List all current easy-to-borrow stock symbols. This list changes dynamically
|
|
7
|
+
* daily.
|
|
8
|
+
*/
|
|
9
|
+
list(accountId: string, options?: Core.RequestOptions): Core.APIPromise<EasyBorrowListResponse>;
|
|
10
|
+
}
|
|
11
|
+
export interface EasyBorrowListResponse {
|
|
12
|
+
data: Array<string>;
|
|
13
|
+
}
|
|
14
|
+
export declare namespace EasyBorrows {
|
|
15
|
+
export import EasyBorrowListResponse = EasyBorrowsAPI.EasyBorrowListResponse;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=easy-borrows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"easy-borrows.d.ts","sourceRoot":"","sources":["../../src/resources/accounts/easy-borrows.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,cAAc,MAAM,gBAAgB,CAAC;AAEjD,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;OAGG;IACH,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC;CAGhG;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACrB;AAED,yBAAiB,WAAW,CAAC;IAC3B,MAAM,QAAQ,sBAAsB,GAAG,cAAc,CAAC,sBAAsB,CAAC;CAC9E"}
|
|
@@ -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.EasyBorrows = void 0;
|
|
5
|
+
const resource_1 = require("../../resource.js");
|
|
6
|
+
class EasyBorrows extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* List all current easy-to-borrow stock symbols. This list changes dynamically
|
|
9
|
+
* daily.
|
|
10
|
+
*/
|
|
11
|
+
list(accountId, options) {
|
|
12
|
+
return this._client.get(`/accounts/${accountId}/easy-borrows`, options);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.EasyBorrows = EasyBorrows;
|
|
16
|
+
(function (EasyBorrows) {
|
|
17
|
+
})(EasyBorrows = exports.EasyBorrows || (exports.EasyBorrows = {}));
|
|
18
|
+
//# sourceMappingURL=easy-borrows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"easy-borrows.js","sourceRoot":"","sources":["../../src/resources/accounts/easy-borrows.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAI7C,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;OAGG;IACH,IAAI,CAAC,SAAiB,EAAE,OAA6B;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,SAAS,eAAe,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF;AARD,kCAQC;AAMD,WAAiB,WAAW;AAE5B,CAAC,EAFgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAE3B"}
|
|
@@ -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
|
+
export class EasyBorrows extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* List all current easy-to-borrow stock symbols. This list changes dynamically
|
|
6
|
+
* daily.
|
|
7
|
+
*/
|
|
8
|
+
list(accountId, options) {
|
|
9
|
+
return this._client.get(`/accounts/${accountId}/easy-borrows`, options);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
(function (EasyBorrows) {
|
|
13
|
+
})(EasyBorrows || (EasyBorrows = {}));
|
|
14
|
+
//# sourceMappingURL=easy-borrows.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"easy-borrows.mjs","sourceRoot":"","sources":["../../src/resources/accounts/easy-borrows.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;OAGG;IACH,IAAI,CAAC,SAAiB,EAAE,OAA6B;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,SAAS,eAAe,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF;AAMD,WAAiB,WAAW;AAE5B,CAAC,EAFgB,WAAW,KAAX,WAAW,QAE3B"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
import * as HoldingsAPI from "./holdings.js";
|
|
4
|
+
export declare class Holdings extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* List holdings for a given account, filtered on the given query parameters. This
|
|
7
|
+
* endpoint will return either historical or real-time holdings directly from our
|
|
8
|
+
* custodial systems. Positions returned here are can be different than positions
|
|
9
|
+
* returned from the Execution API. While the Execution API returns positions based
|
|
10
|
+
* on trading activity within Studio, our custodial system returns all positions
|
|
11
|
+
* regardless of where trades occur.
|
|
12
|
+
*/
|
|
13
|
+
list(accountId: string, query?: HoldingListParams, options?: Core.RequestOptions): Core.APIPromise<HoldingListResponse>;
|
|
14
|
+
list(accountId: string, options?: Core.RequestOptions): Core.APIPromise<HoldingListResponse>;
|
|
15
|
+
}
|
|
16
|
+
export interface HoldingListResponse {
|
|
17
|
+
/**
|
|
18
|
+
* Account ID for the account.
|
|
19
|
+
*/
|
|
20
|
+
account_id: string;
|
|
21
|
+
data: Array<HoldingListResponse.Data>;
|
|
22
|
+
/**
|
|
23
|
+
* Integer in YYYYMMDD representing a date.
|
|
24
|
+
*/
|
|
25
|
+
date: number;
|
|
26
|
+
/**
|
|
27
|
+
* Start of day equity.
|
|
28
|
+
*/
|
|
29
|
+
sod_equity: number;
|
|
30
|
+
/**
|
|
31
|
+
* For historical holdings, the end of day equity. Omitted for real-time holdings.
|
|
32
|
+
*/
|
|
33
|
+
eod_equity?: number;
|
|
34
|
+
/**
|
|
35
|
+
* For real-time holdings, the timestamp reflecting the last update made to the
|
|
36
|
+
* holdings data. Omitted for historical holdings.
|
|
37
|
+
*/
|
|
38
|
+
timestamp?: number;
|
|
39
|
+
}
|
|
40
|
+
export declare namespace HoldingListResponse {
|
|
41
|
+
interface Data {
|
|
42
|
+
/**
|
|
43
|
+
* The asset class of the symbol.
|
|
44
|
+
*/
|
|
45
|
+
asset_class: 'other' | 'currency' | 'equity' | 'option' | 'debt' | 'fund';
|
|
46
|
+
/**
|
|
47
|
+
* The quantity held for the given symbol. This is an EOD quantity if querying
|
|
48
|
+
* historically, else the current real-time quantity for the current date.
|
|
49
|
+
*/
|
|
50
|
+
quantity: string;
|
|
51
|
+
/**
|
|
52
|
+
* The quantity held for the given symbol at the start of the day.
|
|
53
|
+
*/
|
|
54
|
+
sod_quantity: string;
|
|
55
|
+
symbol: string;
|
|
56
|
+
/**
|
|
57
|
+
* Description of the symbol.
|
|
58
|
+
*/
|
|
59
|
+
symbol_description?: string;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
export interface HoldingListParams {
|
|
63
|
+
/**
|
|
64
|
+
* The historical date to get holdings for. If omitted, current real-time holdings
|
|
65
|
+
* will be returned.
|
|
66
|
+
*/
|
|
67
|
+
date?: number;
|
|
68
|
+
}
|
|
69
|
+
export declare namespace Holdings {
|
|
70
|
+
export import HoldingListResponse = HoldingsAPI.HoldingListResponse;
|
|
71
|
+
export import HoldingListParams = HoldingsAPI.HoldingListParams;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=holdings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"holdings.d.ts","sourceRoot":"","sources":["../../src/resources/accounts/holdings.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,WAAW,MAAM,YAAY,CAAC;AAE1C,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;OAOG;IACH,IAAI,CACF,SAAS,EAAE,MAAM,EACjB,KAAK,CAAC,EAAE,iBAAiB,EACzB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;IACvC,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;CAW7F;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB,IAAI,EAAE,KAAK,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAEtC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,yBAAiB,mBAAmB,CAAC;IACnC,UAAiB,IAAI;QACnB;;WAEG;QACH,WAAW,EAAE,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;QAE1E;;;WAGG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;QAErB,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;KAC7B;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,yBAAiB,QAAQ,CAAC;IACxB,MAAM,QAAQ,mBAAmB,GAAG,WAAW,CAAC,mBAAmB,CAAC;IACpE,MAAM,QAAQ,iBAAiB,GAAG,WAAW,CAAC,iBAAiB,CAAC;CACjE"}
|
|
@@ -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.Holdings = void 0;
|
|
5
|
+
const resource_1 = require("../../resource.js");
|
|
6
|
+
const core_1 = require("../../core.js");
|
|
7
|
+
class Holdings extends resource_1.APIResource {
|
|
8
|
+
list(accountId, query = {}, options) {
|
|
9
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
10
|
+
return this.list(accountId, {}, query);
|
|
11
|
+
}
|
|
12
|
+
return this._client.get(`/accounts/${accountId}/holdings`, { query, ...options });
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Holdings = Holdings;
|
|
16
|
+
(function (Holdings) {
|
|
17
|
+
})(Holdings = exports.Holdings || (exports.Holdings = {}));
|
|
18
|
+
//# sourceMappingURL=holdings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"holdings.js","sourceRoot":"","sources":["../../src/resources/accounts/holdings.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAI9C,MAAa,QAAS,SAAQ,sBAAW;IAevC,IAAI,CACF,SAAiB,EACjB,QAAiD,EAAE,EACnD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACxC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,SAAS,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF;AAzBD,4BAyBC;AAmED,WAAiB,QAAQ;AAGzB,CAAC,EAHgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAGxB"}
|
|
@@ -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 Holdings extends APIResource {
|
|
5
|
+
list(accountId, query = {}, options) {
|
|
6
|
+
if (isRequestOptions(query)) {
|
|
7
|
+
return this.list(accountId, {}, query);
|
|
8
|
+
}
|
|
9
|
+
return this._client.get(`/accounts/${accountId}/holdings`, { query, ...options });
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
(function (Holdings) {
|
|
13
|
+
})(Holdings || (Holdings = {}));
|
|
14
|
+
//# sourceMappingURL=holdings.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"holdings.mjs","sourceRoot":"","sources":["../../src/resources/accounts/holdings.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAI3B,MAAM,OAAO,QAAS,SAAQ,WAAW;IAevC,IAAI,CACF,SAAiB,EACjB,QAAiD,EAAE,EACnD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACxC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,SAAS,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF;AAmED,WAAiB,QAAQ;AAGzB,CAAC,EAHgB,QAAQ,KAAR,QAAQ,QAGxB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { Account, AccountListResponse, Accounts } from "./accounts.js";
|
|
2
|
+
export { BulkOrderCreateResponse, BulkOrderCreateParams, BulkOrders } from "./bulk-orders.js";
|
|
3
|
+
export { EasyBorrowListResponse, EasyBorrows } from "./easy-borrows.js";
|
|
4
|
+
export { HoldingListResponse, HoldingListParams, Holdings } from "./holdings.js";
|
|
5
|
+
export { LocateOrderListResponse, LocateOrderCreateParams, LocateOrderUpdateParams, LocateOrders, } from "./locate-orders.js";
|
|
6
|
+
export { OrderCreateResponse, OrderRetrieveResponse, OrderListResponse, OrderDeleteResponse, OrderCreateParams, OrderListParams, OrderDeleteParams, Orders, } from "./orders.js";
|
|
7
|
+
export { PnlDetailListResponse, PnlDetails } from "./pnl-details.js";
|
|
8
|
+
export { PnlSumListResponse, PnlSumListParams, PnlSums } from "./pnl-sums.js";
|
|
9
|
+
export { PnlSummary } from "./pnl-summary.js";
|
|
10
|
+
export { PositionListResponse, PositionListParams, Positions } from "./positions.js";
|
|
11
|
+
export { TradeListResponse, TradeListParams, Trades } from "./trades.js";
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/accounts/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3F,OAAO,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC9E,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,YAAY,GACb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,MAAM,GACP,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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.Trades = exports.Positions = exports.PnlSummary = exports.PnlSums = exports.PnlDetails = exports.Orders = exports.LocateOrders = exports.Holdings = exports.EasyBorrows = exports.BulkOrders = exports.Accounts = void 0;
|
|
5
|
+
var accounts_1 = require("./accounts.js");
|
|
6
|
+
Object.defineProperty(exports, "Accounts", { enumerable: true, get: function () { return accounts_1.Accounts; } });
|
|
7
|
+
var bulk_orders_1 = require("./bulk-orders.js");
|
|
8
|
+
Object.defineProperty(exports, "BulkOrders", { enumerable: true, get: function () { return bulk_orders_1.BulkOrders; } });
|
|
9
|
+
var easy_borrows_1 = require("./easy-borrows.js");
|
|
10
|
+
Object.defineProperty(exports, "EasyBorrows", { enumerable: true, get: function () { return easy_borrows_1.EasyBorrows; } });
|
|
11
|
+
var holdings_1 = require("./holdings.js");
|
|
12
|
+
Object.defineProperty(exports, "Holdings", { enumerable: true, get: function () { return holdings_1.Holdings; } });
|
|
13
|
+
var locate_orders_1 = require("./locate-orders.js");
|
|
14
|
+
Object.defineProperty(exports, "LocateOrders", { enumerable: true, get: function () { return locate_orders_1.LocateOrders; } });
|
|
15
|
+
var orders_1 = require("./orders.js");
|
|
16
|
+
Object.defineProperty(exports, "Orders", { enumerable: true, get: function () { return orders_1.Orders; } });
|
|
17
|
+
var pnl_details_1 = require("./pnl-details.js");
|
|
18
|
+
Object.defineProperty(exports, "PnlDetails", { enumerable: true, get: function () { return pnl_details_1.PnlDetails; } });
|
|
19
|
+
var pnl_sums_1 = require("./pnl-sums.js");
|
|
20
|
+
Object.defineProperty(exports, "PnlSums", { enumerable: true, get: function () { return pnl_sums_1.PnlSums; } });
|
|
21
|
+
var pnl_summary_1 = require("./pnl-summary.js");
|
|
22
|
+
Object.defineProperty(exports, "PnlSummary", { enumerable: true, get: function () { return pnl_summary_1.PnlSummary; } });
|
|
23
|
+
var positions_1 = require("./positions.js");
|
|
24
|
+
Object.defineProperty(exports, "Positions", { enumerable: true, get: function () { return positions_1.Positions; } });
|
|
25
|
+
var trades_1 = require("./trades.js");
|
|
26
|
+
Object.defineProperty(exports, "Trades", { enumerable: true, get: function () { return trades_1.Trades; } });
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/accounts/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAAoE;AAA7B,oGAAA,QAAQ,OAAA;AAC/C,gDAA2F;AAAlC,yGAAA,UAAU,OAAA;AACnE,kDAAqE;AAApC,2GAAA,WAAW,OAAA;AAC5C,0CAA8E;AAA7B,oGAAA,QAAQ,OAAA;AACzD,oDAKyB;AADvB,6GAAA,YAAY,OAAA;AAEd,sCASkB;AADhB,gGAAA,MAAM,OAAA;AAER,gDAAkE;AAAlC,yGAAA,UAAU,OAAA;AAC1C,0CAA2E;AAA5B,mGAAA,OAAO,OAAA;AACtD,gDAA2C;AAAlC,yGAAA,UAAU,OAAA;AACnB,4CAAkF;AAA/B,sGAAA,SAAS,OAAA;AAC5D,sCAAsE;AAAzB,gGAAA,MAAM,OAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export { Accounts } from "./accounts.mjs";
|
|
3
|
+
export { BulkOrders } from "./bulk-orders.mjs";
|
|
4
|
+
export { EasyBorrows } from "./easy-borrows.mjs";
|
|
5
|
+
export { Holdings } from "./holdings.mjs";
|
|
6
|
+
export { LocateOrders, } from "./locate-orders.mjs";
|
|
7
|
+
export { Orders, } from "./orders.mjs";
|
|
8
|
+
export { PnlDetails } from "./pnl-details.mjs";
|
|
9
|
+
export { PnlSums } from "./pnl-sums.mjs";
|
|
10
|
+
export { PnlSummary } from "./pnl-summary.mjs";
|
|
11
|
+
export { Positions } from "./positions.mjs";
|
|
12
|
+
export { Trades } from "./trades.mjs";
|
|
13
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/accounts/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAgC,QAAQ,EAAE;OAC1C,EAAkD,UAAU,EAAE;OAC9D,EAA0B,WAAW,EAAE;OACvC,EAA0C,QAAQ,EAAE;OACpD,EAIL,YAAY,GACb;OACM,EAQL,MAAM,GACP;OACM,EAAyB,UAAU,EAAE;OACrC,EAAwC,OAAO,EAAE;OACjD,EAAE,UAAU,EAAE;OACd,EAA4C,SAAS,EAAE;OACvD,EAAsC,MAAM,EAAE"}
|