@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.
Files changed (141) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +9 -0
  3. package/core.d.ts +4 -4
  4. package/core.d.ts.map +1 -1
  5. package/core.js +6 -4
  6. package/core.js.map +1 -1
  7. package/core.mjs +6 -4
  8. package/core.mjs.map +1 -1
  9. package/error.d.ts.map +1 -1
  10. package/index.d.mts +18 -25
  11. package/index.d.ts +18 -25
  12. package/index.d.ts.map +1 -1
  13. package/index.js +25 -10
  14. package/index.js.map +1 -1
  15. package/index.mjs +9 -9
  16. package/index.mjs.map +1 -1
  17. package/package.json +2 -2
  18. package/resources/accounts/accounts.d.ts +25 -35
  19. package/resources/accounts/accounts.d.ts.map +1 -1
  20. package/resources/accounts/accounts.js +24 -12
  21. package/resources/accounts/accounts.js.map +1 -1
  22. package/resources/accounts/accounts.mjs +24 -12
  23. package/resources/accounts/accounts.mjs.map +1 -1
  24. package/resources/accounts/bulk-orders.d.ts +1 -3
  25. package/resources/accounts/bulk-orders.d.ts.map +1 -1
  26. package/resources/accounts/bulk-orders.js +0 -2
  27. package/resources/accounts/bulk-orders.js.map +1 -1
  28. package/resources/accounts/bulk-orders.mjs +0 -2
  29. package/resources/accounts/bulk-orders.mjs.map +1 -1
  30. package/resources/accounts/easy-borrows.d.ts +1 -2
  31. package/resources/accounts/easy-borrows.d.ts.map +1 -1
  32. package/resources/accounts/easy-borrows.js +0 -2
  33. package/resources/accounts/easy-borrows.js.map +1 -1
  34. package/resources/accounts/easy-borrows.mjs +0 -2
  35. package/resources/accounts/easy-borrows.mjs.map +1 -1
  36. package/resources/accounts/holdings.d.ts +1 -3
  37. package/resources/accounts/holdings.d.ts.map +1 -1
  38. package/resources/accounts/holdings.js +0 -2
  39. package/resources/accounts/holdings.js.map +1 -1
  40. package/resources/accounts/holdings.mjs +0 -2
  41. package/resources/accounts/holdings.mjs.map +1 -1
  42. package/resources/accounts/index.d.ts +11 -10
  43. package/resources/accounts/index.d.ts.map +1 -1
  44. package/resources/accounts/index.js +5 -3
  45. package/resources/accounts/index.js.map +1 -1
  46. package/resources/accounts/index.mjs +2 -1
  47. package/resources/accounts/index.mjs.map +1 -1
  48. package/resources/accounts/inventories.d.ts +31 -0
  49. package/resources/accounts/inventories.d.ts.map +1 -0
  50. package/resources/accounts/inventories.js +15 -0
  51. package/resources/accounts/inventories.js.map +1 -0
  52. package/resources/accounts/inventories.mjs +11 -0
  53. package/resources/accounts/inventories.mjs.map +1 -0
  54. package/resources/accounts/locate-orders.d.ts +1 -4
  55. package/resources/accounts/locate-orders.d.ts.map +1 -1
  56. package/resources/accounts/locate-orders.js +0 -2
  57. package/resources/accounts/locate-orders.js.map +1 -1
  58. package/resources/accounts/locate-orders.mjs +0 -2
  59. package/resources/accounts/locate-orders.mjs.map +1 -1
  60. package/resources/accounts/orders.d.ts +1 -8
  61. package/resources/accounts/orders.d.ts.map +1 -1
  62. package/resources/accounts/orders.js +0 -2
  63. package/resources/accounts/orders.js.map +1 -1
  64. package/resources/accounts/orders.mjs +0 -2
  65. package/resources/accounts/orders.mjs.map +1 -1
  66. package/resources/accounts/pnl-details.d.ts +1 -2
  67. package/resources/accounts/pnl-details.d.ts.map +1 -1
  68. package/resources/accounts/pnl-details.js +0 -2
  69. package/resources/accounts/pnl-details.js.map +1 -1
  70. package/resources/accounts/pnl-details.mjs +0 -2
  71. package/resources/accounts/pnl-details.mjs.map +1 -1
  72. package/resources/accounts/pnl-sums.d.ts +1 -3
  73. package/resources/accounts/pnl-sums.d.ts.map +1 -1
  74. package/resources/accounts/pnl-sums.js +0 -2
  75. package/resources/accounts/pnl-sums.js.map +1 -1
  76. package/resources/accounts/pnl-sums.mjs +0 -2
  77. package/resources/accounts/pnl-sums.mjs.map +1 -1
  78. package/resources/accounts/positions.d.ts +1 -3
  79. package/resources/accounts/positions.d.ts.map +1 -1
  80. package/resources/accounts/positions.js +0 -2
  81. package/resources/accounts/positions.js.map +1 -1
  82. package/resources/accounts/positions.mjs +0 -2
  83. package/resources/accounts/positions.mjs.map +1 -1
  84. package/resources/accounts/trades.d.ts +1 -3
  85. package/resources/accounts/trades.d.ts.map +1 -1
  86. package/resources/accounts/trades.js +0 -2
  87. package/resources/accounts/trades.js.map +1 -1
  88. package/resources/accounts/trades.mjs +0 -2
  89. package/resources/accounts/trades.mjs.map +1 -1
  90. package/resources/entities/entities.d.ts +9 -13
  91. package/resources/entities/entities.d.ts.map +1 -1
  92. package/resources/entities/entities.js +8 -6
  93. package/resources/entities/entities.js.map +1 -1
  94. package/resources/entities/entities.mjs +8 -6
  95. package/resources/entities/entities.mjs.map +1 -1
  96. package/resources/entities/index.d.ts +2 -2
  97. package/resources/entities/index.d.ts.map +1 -1
  98. package/resources/entities/index.js +3 -3
  99. package/resources/entities/index.js.map +1 -1
  100. package/resources/entities/index.mjs +2 -2
  101. package/resources/entities/index.mjs.map +1 -1
  102. package/resources/entities/regt-margin-simulations.d.ts +1 -4
  103. package/resources/entities/regt-margin-simulations.d.ts.map +1 -1
  104. package/resources/entities/regt-margin-simulations.js +0 -2
  105. package/resources/entities/regt-margin-simulations.js.map +1 -1
  106. package/resources/entities/regt-margin-simulations.mjs +0 -2
  107. package/resources/entities/regt-margin-simulations.mjs.map +1 -1
  108. package/resources/index.d.ts +3 -3
  109. package/resources/index.d.ts.map +1 -1
  110. package/resources/index.js.map +1 -1
  111. package/resources/index.mjs.map +1 -1
  112. package/resources/instruments.d.ts +1 -3
  113. package/resources/instruments.d.ts.map +1 -1
  114. package/resources/instruments.js +0 -2
  115. package/resources/instruments.js.map +1 -1
  116. package/resources/instruments.mjs +0 -2
  117. package/resources/instruments.mjs.map +1 -1
  118. package/src/core.ts +16 -10
  119. package/src/error.ts +1 -1
  120. package/src/index.ts +47 -35
  121. package/src/resources/accounts/accounts.ts +97 -36
  122. package/src/resources/accounts/bulk-orders.ts +5 -4
  123. package/src/resources/accounts/easy-borrows.ts +2 -3
  124. package/src/resources/accounts/holdings.ts +2 -4
  125. package/src/resources/accounts/index.ts +19 -18
  126. package/src/resources/accounts/inventories.ts +45 -0
  127. package/src/resources/accounts/locate-orders.ts +6 -5
  128. package/src/resources/accounts/orders.ts +10 -9
  129. package/src/resources/accounts/pnl-details.ts +2 -3
  130. package/src/resources/accounts/pnl-sums.ts +2 -4
  131. package/src/resources/accounts/positions.ts +2 -4
  132. package/src/resources/accounts/trades.ts +2 -4
  133. package/src/resources/entities/entities.ts +35 -14
  134. package/src/resources/entities/index.ts +12 -5
  135. package/src/resources/entities/regt-margin-simulations.ts +6 -5
  136. package/src/resources/index.ts +7 -7
  137. package/src/resources/instruments.ts +2 -4
  138. package/src/version.ts +1 -1
  139. package/version.d.ts +1 -1
  140. package/version.js +1 -1
  141. 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
- export namespace Accounts {
63
- export import Account = AccountsAPI.Account;
64
- export import AccountListResponse = AccountsAPI.AccountListResponse;
65
- export import BulkOrders = BulkOrdersAPI.BulkOrders;
66
- export import BulkOrderCreateResponse = BulkOrdersAPI.BulkOrderCreateResponse;
67
- export import BulkOrderCreateParams = BulkOrdersAPI.BulkOrderCreateParams;
68
- export import Orders = OrdersAPI.Orders;
69
- export import OrderCreateResponse = OrdersAPI.OrderCreateResponse;
70
- export import OrderRetrieveResponse = OrdersAPI.OrderRetrieveResponse;
71
- export import OrderListResponse = OrdersAPI.OrderListResponse;
72
- export import OrderDeleteResponse = OrdersAPI.OrderDeleteResponse;
73
- export import OrderCreateParams = OrdersAPI.OrderCreateParams;
74
- export import OrderListParams = OrdersAPI.OrderListParams;
75
- export import OrderDeleteParams = OrdersAPI.OrderDeleteParams;
76
- export import Trades = TradesAPI.Trades;
77
- export import TradeListResponse = TradesAPI.TradeListResponse;
78
- export import TradeListParams = TradesAPI.TradeListParams;
79
- export import Positions = PositionsAPI.Positions;
80
- export import PositionListResponse = PositionsAPI.PositionListResponse;
81
- export import PositionListParams = PositionsAPI.PositionListParams;
82
- export import LocateOrders = LocateOrdersAPI.LocateOrders;
83
- export import LocateOrderListResponse = LocateOrdersAPI.LocateOrderListResponse;
84
- export import LocateOrderCreateParams = LocateOrdersAPI.LocateOrderCreateParams;
85
- export import LocateOrderUpdateParams = LocateOrdersAPI.LocateOrderUpdateParams;
86
- export import EasyBorrows = EasyBorrowsAPI.EasyBorrows;
87
- export import EasyBorrowListResponse = EasyBorrowsAPI.EasyBorrowListResponse;
88
- export import PnlSummary = PnlSummaryAPI.PnlSummary;
89
- export import PnlDetails = PnlDetailsAPI.PnlDetails;
90
- export import PnlDetailListResponse = PnlDetailsAPI.PnlDetailListResponse;
91
- export import PnlSums = PnlSumsAPI.PnlSums;
92
- export import PnlSumListResponse = PnlSumsAPI.PnlSumListResponse;
93
- export import PnlSumListParams = PnlSumsAPI.PnlSumListParams;
94
- export import Holdings = HoldingsAPI.Holdings;
95
- export import HoldingListResponse = HoldingsAPI.HoldingListResponse;
96
- export import HoldingListParams = HoldingsAPI.HoldingListParams;
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 import BulkOrderCreateResponse = BulkOrdersAPI.BulkOrderCreateResponse;
160
- export import BulkOrderCreateParams = BulkOrdersAPI.BulkOrderCreateParams;
157
+ export declare namespace BulkOrders {
158
+ export {
159
+ type BulkOrderCreateResponse as BulkOrderCreateResponse,
160
+ type BulkOrderCreateParams as BulkOrderCreateParams,
161
+ };
161
162
  }
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { APIResource } from '../../resource';
4
4
  import * as Core from '../../core';
5
- import * as EasyBorrowsAPI from './easy-borrows';
6
5
 
7
6
  export class EasyBorrows extends APIResource {
8
7
  /**
@@ -18,6 +17,6 @@ export interface EasyBorrowListResponse {
18
17
  data: Array<string>;
19
18
  }
20
19
 
21
- export namespace EasyBorrows {
22
- export import EasyBorrowListResponse = EasyBorrowsAPI.EasyBorrowListResponse;
20
+ export declare namespace EasyBorrows {
21
+ export { type EasyBorrowListResponse as EasyBorrowListResponse };
23
22
  }
@@ -3,7 +3,6 @@
3
3
  import { APIResource } from '../../resource';
4
4
  import { isRequestOptions } from '../../core';
5
5
  import * as Core from '../../core';
6
- import * as HoldingsAPI from './holdings';
7
6
 
8
7
  export class Holdings extends APIResource {
9
8
  /**
@@ -97,7 +96,6 @@ export interface HoldingListParams {
97
96
  date?: number;
98
97
  }
99
98
 
100
- export namespace Holdings {
101
- export import HoldingListResponse = HoldingsAPI.HoldingListResponse;
102
- export import HoldingListParams = HoldingsAPI.HoldingListParams;
99
+ export declare namespace Holdings {
100
+ export { type HoldingListResponse as HoldingListResponse, type HoldingListParams as HoldingListParams };
103
101
  }
@@ -1,27 +1,28 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export { Account, AccountListResponse, Accounts } from './accounts';
4
- export { BulkOrderCreateResponse, BulkOrderCreateParams, BulkOrders } from './bulk-orders';
5
- export { EasyBorrowListResponse, EasyBorrows } from './easy-borrows';
6
- export { HoldingListResponse, HoldingListParams, Holdings } from './holdings';
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 { PnlDetailListResponse, PnlDetails } from './pnl-details';
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 { PositionListResponse, PositionListParams, Positions } from './positions';
27
- export { TradeListResponse, TradeListParams, Trades } from './trades';
26
+ export { PnlSums, type PnlSumListResponse, type PnlSumListParams } from './pnl-sums';
27
+ export { Positions, type PositionListResponse, type PositionListParams } from './positions';
28
+ export { Trades, type TradeListResponse, type TradeListParams } from './trades';
@@ -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 import LocateOrderListResponse = LocateOrdersAPI.LocateOrderListResponse;
92
- export import LocateOrderCreateParams = LocateOrdersAPI.LocateOrderCreateParams;
93
- export import LocateOrderUpdateParams = LocateOrdersAPI.LocateOrderUpdateParams;
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 import OrderCreateResponse = OrdersAPI.OrderCreateResponse;
237
- export import OrderRetrieveResponse = OrdersAPI.OrderRetrieveResponse;
238
- export import OrderListResponse = OrdersAPI.OrderListResponse;
239
- export import OrderDeleteResponse = OrdersAPI.OrderDeleteResponse;
240
- export import OrderCreateParams = OrdersAPI.OrderCreateParams;
241
- export import OrderListParams = OrdersAPI.OrderListParams;
242
- export import OrderDeleteParams = OrdersAPI.OrderDeleteParams;
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 import PnlDetailListResponse = PnlDetailsAPI.PnlDetailListResponse;
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 import PnlSumListResponse = PnlSumsAPI.PnlSumListResponse;
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 import PositionListResponse = PositionsAPI.PositionListResponse;
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 import TradeListResponse = TradesAPI.TradeListResponse;
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
- export namespace Entities {
550
- export import Entity = EntitiesAPI.Entity;
551
- export import PnlSummary = EntitiesAPI.PnlSummary;
552
- export import PortfolioMargin = EntitiesAPI.PortfolioMargin;
553
- export import RegtMargin = EntitiesAPI.RegtMargin;
554
- export import EntityListResponse = EntitiesAPI.EntityListResponse;
555
- export import PnlSummaries = PnlSummariesAPI.PnlSummaries;
556
- export import RegtMargins = RegtMarginsAPI.RegtMargins;
557
- export import PortfolioMargins = PortfolioMarginsAPI.PortfolioMargins;
558
- export import RegtMarginSimulations = RegtMarginSimulationsAPI.RegtMarginSimulations;
559
- export import SimulationID = RegtMarginSimulationsAPI.SimulationID;
560
- export import RegtMarginSimulationCreateResponse = RegtMarginSimulationsAPI.RegtMarginSimulationCreateResponse;
561
- export import RegtMarginSimulationCreateParams = RegtMarginSimulationsAPI.RegtMarginSimulationCreateParams;
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 { Entity, PnlSummary, PortfolioMargin, RegtMargin, EntityListResponse, Entities } from './entities';
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 import SimulationID = RegtMarginSimulationsAPI.SimulationID;
125
- export import RegtMarginSimulationCreateResponse = RegtMarginSimulationsAPI.RegtMarginSimulationCreateResponse;
126
- export import RegtMarginSimulationCreateParams = RegtMarginSimulationsAPI.RegtMarginSimulationCreateParams;
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
  }
@@ -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, Accounts } from './accounts/accounts';
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, Instruments } from './instruments';
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 import Instrument = InstrumentsAPI.Instrument;
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.10'; // x-release-please-version
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.10";
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.10'; // x-release-please-version
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.10'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.13'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map