@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
|
@@ -2,17 +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';
|
|
11
|
+
import * as InventoriesAPI from './inventories';
|
|
12
|
+
import { Inventories, InventoryRetrieveResponse } from './inventories';
|
|
9
13
|
import * as LocateOrdersAPI from './locate-orders';
|
|
14
|
+
import {
|
|
15
|
+
LocateOrderCreateParams,
|
|
16
|
+
LocateOrderListResponse,
|
|
17
|
+
LocateOrderUpdateParams,
|
|
18
|
+
LocateOrders,
|
|
19
|
+
} from './locate-orders';
|
|
10
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';
|
|
11
31
|
import * as PnlDetailsAPI from './pnl-details';
|
|
32
|
+
import { PnlDetailListResponse, PnlDetails } from './pnl-details';
|
|
12
33
|
import * as PnlSummaryAPI from './pnl-summary';
|
|
34
|
+
import { PnlSummary } from './pnl-summary';
|
|
13
35
|
import * as PnlSumsAPI from './pnl-sums';
|
|
36
|
+
import { PnlSumListParams, PnlSumListResponse, PnlSums } from './pnl-sums';
|
|
14
37
|
import * as PositionsAPI from './positions';
|
|
38
|
+
import { PositionListParams, PositionListResponse, Positions } from './positions';
|
|
15
39
|
import * as TradesAPI from './trades';
|
|
40
|
+
import { TradeListParams, TradeListResponse, Trades } from './trades';
|
|
16
41
|
|
|
17
42
|
export class Accounts extends APIResource {
|
|
18
43
|
bulkOrders: BulkOrdersAPI.BulkOrders = new BulkOrdersAPI.BulkOrders(this._client);
|
|
@@ -25,6 +50,7 @@ export class Accounts extends APIResource {
|
|
|
25
50
|
pnlDetails: PnlDetailsAPI.PnlDetails = new PnlDetailsAPI.PnlDetails(this._client);
|
|
26
51
|
pnlSums: PnlSumsAPI.PnlSums = new PnlSumsAPI.PnlSums(this._client);
|
|
27
52
|
holdings: HoldingsAPI.Holdings = new HoldingsAPI.Holdings(this._client);
|
|
53
|
+
inventories: InventoriesAPI.Inventories = new InventoriesAPI.Inventories(this._client);
|
|
28
54
|
|
|
29
55
|
/**
|
|
30
56
|
* Get an account by its ID.
|
|
@@ -59,39 +85,74 @@ export interface AccountListResponse {
|
|
|
59
85
|
data?: Array<Account>;
|
|
60
86
|
}
|
|
61
87
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
export
|
|
76
|
-
|
|
77
|
-
export
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
export
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
export
|
|
95
|
-
|
|
96
|
-
|
|
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 };
|
|
97
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
|
|
160
|
-
|
|
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
|
|
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
|
|
102
|
-
export import HoldingListParams = HoldingsAPI.HoldingListParams;
|
|
99
|
+
export declare namespace Holdings {
|
|
100
|
+
export { type HoldingListResponse as HoldingListResponse, type HoldingListParams as HoldingListParams };
|
|
103
101
|
}
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export { Account, AccountListResponse
|
|
4
|
-
export { BulkOrderCreateResponse, BulkOrderCreateParams
|
|
5
|
-
export {
|
|
6
|
-
export { HoldingListResponse, HoldingListParams
|
|
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';
|
|
7
8
|
export {
|
|
8
|
-
LocateOrderListResponse,
|
|
9
|
-
LocateOrderCreateParams,
|
|
10
|
-
LocateOrderUpdateParams,
|
|
11
9
|
LocateOrders,
|
|
10
|
+
type LocateOrderListResponse,
|
|
11
|
+
type LocateOrderCreateParams,
|
|
12
|
+
type LocateOrderUpdateParams,
|
|
12
13
|
} from './locate-orders';
|
|
13
14
|
export {
|
|
14
|
-
OrderCreateResponse,
|
|
15
|
-
OrderRetrieveResponse,
|
|
16
|
-
OrderListResponse,
|
|
17
|
-
OrderDeleteResponse,
|
|
18
|
-
OrderCreateParams,
|
|
19
|
-
OrderListParams,
|
|
20
|
-
OrderDeleteParams,
|
|
21
15
|
Orders,
|
|
16
|
+
type OrderCreateResponse,
|
|
17
|
+
type OrderRetrieveResponse,
|
|
18
|
+
type OrderListResponse,
|
|
19
|
+
type OrderDeleteResponse,
|
|
20
|
+
type OrderCreateParams,
|
|
21
|
+
type OrderListParams,
|
|
22
|
+
type OrderDeleteParams,
|
|
22
23
|
} from './orders';
|
|
23
|
-
export {
|
|
24
|
-
export { PnlSumListResponse, PnlSumListParams, PnlSums } from './pnl-sums';
|
|
24
|
+
export { PnlDetails, type PnlDetailListResponse } from './pnl-details';
|
|
25
25
|
export { PnlSummary } from './pnl-summary';
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
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';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
5
|
+
|
|
6
|
+
export class Inventories extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Get located inventory for a symbol.
|
|
9
|
+
*/
|
|
10
|
+
retrieve(
|
|
11
|
+
accountId: string,
|
|
12
|
+
symbol: string,
|
|
13
|
+
options?: Core.RequestOptions,
|
|
14
|
+
): Core.APIPromise<InventoryRetrieveResponse> {
|
|
15
|
+
return this._client.get(`/accounts/${accountId}/inventories/${symbol}`, options);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface InventoryRetrieveResponse {
|
|
20
|
+
/**
|
|
21
|
+
* Account ID for the account.
|
|
22
|
+
*/
|
|
23
|
+
account_id?: string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* String representation of quantity.
|
|
27
|
+
*/
|
|
28
|
+
available?: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* String representation of quantity.
|
|
32
|
+
*/
|
|
33
|
+
reserved?: string;
|
|
34
|
+
|
|
35
|
+
symbol?: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* String representation of quantity.
|
|
39
|
+
*/
|
|
40
|
+
used?: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export declare namespace Inventories {
|
|
44
|
+
export { type InventoryRetrieveResponse as InventoryRetrieveResponse };
|
|
45
|
+
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
4
|
import * as Core from '../../core';
|
|
5
|
-
import * as LocateOrdersAPI from './locate-orders';
|
|
6
5
|
import * as Shared from '../shared';
|
|
7
6
|
|
|
8
7
|
export class LocateOrders extends APIResource {
|
|
@@ -87,8 +86,10 @@ export interface LocateOrderUpdateParams {
|
|
|
87
86
|
accept: boolean;
|
|
88
87
|
}
|
|
89
88
|
|
|
90
|
-
export namespace LocateOrders {
|
|
91
|
-
export
|
|
92
|
-
|
|
93
|
-
|
|
89
|
+
export declare namespace LocateOrders {
|
|
90
|
+
export {
|
|
91
|
+
type LocateOrderListResponse as LocateOrderListResponse,
|
|
92
|
+
type LocateOrderCreateParams as LocateOrderCreateParams,
|
|
93
|
+
type LocateOrderUpdateParams as LocateOrderUpdateParams,
|
|
94
|
+
};
|
|
94
95
|
}
|
|
@@ -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 OrdersAPI from './orders';
|
|
7
6
|
import * as Shared from '../shared';
|
|
8
7
|
|
|
9
8
|
export class Orders extends APIResource {
|
|
@@ -232,12 +231,14 @@ export interface OrderDeleteParams {
|
|
|
232
231
|
symbol_format?: 'cms' | 'osi';
|
|
233
232
|
}
|
|
234
233
|
|
|
235
|
-
export namespace Orders {
|
|
236
|
-
export
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
234
|
+
export declare namespace Orders {
|
|
235
|
+
export {
|
|
236
|
+
type OrderCreateResponse as OrderCreateResponse,
|
|
237
|
+
type OrderRetrieveResponse as OrderRetrieveResponse,
|
|
238
|
+
type OrderListResponse as OrderListResponse,
|
|
239
|
+
type OrderDeleteResponse as OrderDeleteResponse,
|
|
240
|
+
type OrderCreateParams as OrderCreateParams,
|
|
241
|
+
type OrderListParams as OrderListParams,
|
|
242
|
+
type OrderDeleteParams as OrderDeleteParams,
|
|
243
|
+
};
|
|
243
244
|
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
4
|
import * as Core from '../../core';
|
|
5
|
-
import * as PnlDetailsAPI from './pnl-details';
|
|
6
5
|
|
|
7
6
|
export class PnlDetails extends APIResource {
|
|
8
7
|
/**
|
|
@@ -138,6 +137,6 @@ export namespace PnlDetailListResponse {
|
|
|
138
137
|
}
|
|
139
138
|
}
|
|
140
139
|
|
|
141
|
-
export namespace PnlDetails {
|
|
142
|
-
export
|
|
140
|
+
export declare namespace PnlDetails {
|
|
141
|
+
export { type PnlDetailListResponse as PnlDetailListResponse };
|
|
143
142
|
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
4
|
import * as Core from '../../core';
|
|
5
|
-
import * as PnlSumsAPI from './pnl-sums';
|
|
6
5
|
|
|
7
6
|
export class PnlSums extends APIResource {
|
|
8
7
|
/**
|
|
@@ -170,7 +169,6 @@ export interface PnlSumListParams {
|
|
|
170
169
|
underlying_symbol?: string;
|
|
171
170
|
}
|
|
172
171
|
|
|
173
|
-
export namespace PnlSums {
|
|
174
|
-
export
|
|
175
|
-
export import PnlSumListParams = PnlSumsAPI.PnlSumListParams;
|
|
172
|
+
export declare namespace PnlSums {
|
|
173
|
+
export { type PnlSumListResponse as PnlSumListResponse, type PnlSumListParams as PnlSumListParams };
|
|
176
174
|
}
|
|
@@ -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 PositionsAPI from './positions';
|
|
7
6
|
import * as Shared from '../shared';
|
|
8
7
|
|
|
9
8
|
export class Positions extends APIResource {
|
|
@@ -60,7 +59,6 @@ export interface PositionListParams {
|
|
|
60
59
|
page_token?: string;
|
|
61
60
|
}
|
|
62
61
|
|
|
63
|
-
export namespace Positions {
|
|
64
|
-
export
|
|
65
|
-
export import PositionListParams = PositionsAPI.PositionListParams;
|
|
62
|
+
export declare namespace Positions {
|
|
63
|
+
export { type PositionListResponse as PositionListResponse, type PositionListParams as PositionListParams };
|
|
66
64
|
}
|
|
@@ -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 TradesAPI from './trades';
|
|
7
6
|
import * as Shared from '../shared';
|
|
8
7
|
|
|
9
8
|
export class Trades extends APIResource {
|
|
@@ -56,7 +55,6 @@ export interface TradeListParams {
|
|
|
56
55
|
page_token?: string;
|
|
57
56
|
}
|
|
58
57
|
|
|
59
|
-
export namespace Trades {
|
|
60
|
-
export
|
|
61
|
-
export import TradeListParams = TradesAPI.TradeListParams;
|
|
58
|
+
export declare namespace Trades {
|
|
59
|
+
export { type TradeListResponse as TradeListResponse, type TradeListParams as TradeListParams };
|
|
62
60
|
}
|
|
@@ -2,11 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
4
|
import * as Core from '../../core';
|
|
5
|
-
import * as EntitiesAPI from './entities';
|
|
6
5
|
import * as PnlSummariesAPI from './pnl-summaries';
|
|
6
|
+
import { PnlSummaries } from './pnl-summaries';
|
|
7
7
|
import * as PortfolioMarginsAPI from './portfolio-margins';
|
|
8
|
+
import { PortfolioMargins } from './portfolio-margins';
|
|
8
9
|
import * as RegtMarginSimulationsAPI from './regt-margin-simulations';
|
|
10
|
+
import {
|
|
11
|
+
RegtMarginSimulationCreateParams,
|
|
12
|
+
RegtMarginSimulationCreateResponse,
|
|
13
|
+
RegtMarginSimulations,
|
|
14
|
+
SimulationID,
|
|
15
|
+
} from './regt-margin-simulations';
|
|
9
16
|
import * as RegtMarginsAPI from './regt-margins';
|
|
17
|
+
import { RegtMargins } from './regt-margins';
|
|
10
18
|
|
|
11
19
|
export class Entities extends APIResource {
|
|
12
20
|
pnlSummaries: PnlSummariesAPI.PnlSummaries = new PnlSummariesAPI.PnlSummaries(this._client);
|
|
@@ -546,17 +554,30 @@ export interface EntityListResponse {
|
|
|
546
554
|
data?: Array<Entity>;
|
|
547
555
|
}
|
|
548
556
|
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
export
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
557
|
+
Entities.PnlSummaries = PnlSummaries;
|
|
558
|
+
Entities.RegtMargins = RegtMargins;
|
|
559
|
+
Entities.PortfolioMargins = PortfolioMargins;
|
|
560
|
+
Entities.RegtMarginSimulations = RegtMarginSimulations;
|
|
561
|
+
|
|
562
|
+
export declare namespace Entities {
|
|
563
|
+
export {
|
|
564
|
+
type Entity as Entity,
|
|
565
|
+
type PnlSummary as PnlSummary,
|
|
566
|
+
type PortfolioMargin as PortfolioMargin,
|
|
567
|
+
type RegtMargin as RegtMargin,
|
|
568
|
+
type EntityListResponse as EntityListResponse,
|
|
569
|
+
};
|
|
570
|
+
|
|
571
|
+
export { PnlSummaries as PnlSummaries };
|
|
572
|
+
|
|
573
|
+
export { RegtMargins as RegtMargins };
|
|
574
|
+
|
|
575
|
+
export { PortfolioMargins as PortfolioMargins };
|
|
576
|
+
|
|
577
|
+
export {
|
|
578
|
+
RegtMarginSimulations as RegtMarginSimulations,
|
|
579
|
+
type SimulationID as SimulationID,
|
|
580
|
+
type RegtMarginSimulationCreateResponse as RegtMarginSimulationCreateResponse,
|
|
581
|
+
type RegtMarginSimulationCreateParams as RegtMarginSimulationCreateParams,
|
|
582
|
+
};
|
|
562
583
|
}
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export {
|
|
4
|
+
Entities,
|
|
5
|
+
type Entity,
|
|
6
|
+
type PnlSummary,
|
|
7
|
+
type PortfolioMargin,
|
|
8
|
+
type RegtMargin,
|
|
9
|
+
type EntityListResponse,
|
|
10
|
+
} from './entities';
|
|
4
11
|
export { PnlSummaries } from './pnl-summaries';
|
|
5
12
|
export { PortfolioMargins } from './portfolio-margins';
|
|
6
|
-
export { RegtMargins } from './regt-margins';
|
|
7
13
|
export {
|
|
8
|
-
SimulationID,
|
|
9
|
-
RegtMarginSimulationCreateResponse,
|
|
10
|
-
RegtMarginSimulationCreateParams,
|
|
11
14
|
RegtMarginSimulations,
|
|
15
|
+
type SimulationID,
|
|
16
|
+
type RegtMarginSimulationCreateResponse,
|
|
17
|
+
type RegtMarginSimulationCreateParams,
|
|
12
18
|
} from './regt-margin-simulations';
|
|
19
|
+
export { RegtMargins } from './regt-margins';
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
4
|
import * as Core from '../../core';
|
|
5
|
-
import * as RegtMarginSimulationsAPI from './regt-margin-simulations';
|
|
6
5
|
import * as Shared from '../shared';
|
|
7
6
|
|
|
8
7
|
export class RegtMarginSimulations extends APIResource {
|
|
@@ -120,8 +119,10 @@ export namespace RegtMarginSimulationCreateParams {
|
|
|
120
119
|
}
|
|
121
120
|
}
|
|
122
121
|
|
|
123
|
-
export namespace RegtMarginSimulations {
|
|
124
|
-
export
|
|
125
|
-
|
|
126
|
-
|
|
122
|
+
export declare namespace RegtMarginSimulations {
|
|
123
|
+
export {
|
|
124
|
+
type SimulationID as SimulationID,
|
|
125
|
+
type RegtMarginSimulationCreateResponse as RegtMarginSimulationCreateResponse,
|
|
126
|
+
type RegtMarginSimulationCreateParams as RegtMarginSimulationCreateParams,
|
|
127
|
+
};
|
|
127
128
|
}
|
package/src/resources/index.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export * from './shared';
|
|
4
|
-
export { Account, AccountListResponse
|
|
4
|
+
export { Accounts, type Account, type AccountListResponse } from './accounts/accounts';
|
|
5
5
|
export {
|
|
6
|
-
Entity,
|
|
7
|
-
PnlSummary,
|
|
8
|
-
PortfolioMargin,
|
|
9
|
-
RegtMargin,
|
|
10
|
-
EntityListResponse,
|
|
11
6
|
Entities,
|
|
7
|
+
type Entity,
|
|
8
|
+
type PnlSummary,
|
|
9
|
+
type PortfolioMargin,
|
|
10
|
+
type RegtMargin,
|
|
11
|
+
type EntityListResponse,
|
|
12
12
|
} from './entities/entities';
|
|
13
|
-
export { Instrument, InstrumentRetrieveParams
|
|
13
|
+
export { Instruments, type Instrument, type InstrumentRetrieveParams } from './instruments';
|
|
@@ -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 InstrumentsAPI from './instruments';
|
|
7
6
|
|
|
8
7
|
export class Instruments extends APIResource {
|
|
9
8
|
/**
|
|
@@ -64,7 +63,6 @@ export interface InstrumentRetrieveParams {
|
|
|
64
63
|
symbol_format?: 'cms' | 'osi';
|
|
65
64
|
}
|
|
66
65
|
|
|
67
|
-
export namespace Instruments {
|
|
68
|
-
export
|
|
69
|
-
export import InstrumentRetrieveParams = InstrumentsAPI.InstrumentRetrieveParams;
|
|
66
|
+
export declare namespace Instruments {
|
|
67
|
+
export { type Instrument as Instrument, type InstrumentRetrieveParams as InstrumentRetrieveParams };
|
|
70
68
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.13'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.13";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.1.0-alpha.
|
|
4
|
+
exports.VERSION = '0.1.0-alpha.13'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.13'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|