@clear-street/clearstreet 0.93.1 → 0.95.0
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 +25 -0
- package/package.json +1 -1
- package/resources/v1/accounts.d.mts +27 -44
- package/resources/v1/accounts.d.mts.map +1 -1
- package/resources/v1/accounts.d.ts +27 -44
- package/resources/v1/accounts.d.ts.map +1 -1
- package/resources/v1/index.d.mts +5 -4
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +5 -4
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +3 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +1 -0
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/instrument-data/index.d.mts +1 -1
- package/resources/v1/instrument-data/index.d.mts.map +1 -1
- package/resources/v1/instrument-data/index.d.ts +1 -1
- package/resources/v1/instrument-data/index.d.ts.map +1 -1
- package/resources/v1/instrument-data/index.js.map +1 -1
- package/resources/v1/instrument-data/index.mjs.map +1 -1
- package/resources/v1/instrument-data/instrument-data.d.mts +70 -5
- package/resources/v1/instrument-data/instrument-data.d.mts.map +1 -1
- package/resources/v1/instrument-data/instrument-data.d.ts +70 -5
- package/resources/v1/instrument-data/instrument-data.d.ts.map +1 -1
- package/resources/v1/instrument-data/instrument-data.js +6 -4
- package/resources/v1/instrument-data/instrument-data.js.map +1 -1
- package/resources/v1/instrument-data/instrument-data.mjs +6 -4
- package/resources/v1/instrument-data/instrument-data.mjs.map +1 -1
- package/resources/v1/instrument-data/market-data.d.mts +48 -1
- package/resources/v1/instrument-data/market-data.d.mts.map +1 -1
- package/resources/v1/instrument-data/market-data.d.ts +48 -1
- package/resources/v1/instrument-data/market-data.d.ts.map +1 -1
- package/resources/v1/instruments.d.mts +66 -8
- package/resources/v1/instruments.d.mts.map +1 -1
- package/resources/v1/instruments.d.ts +66 -8
- package/resources/v1/instruments.d.ts.map +1 -1
- package/resources/v1/instruments.js +4 -2
- package/resources/v1/instruments.js.map +1 -1
- package/resources/v1/instruments.mjs +4 -2
- package/resources/v1/instruments.mjs.map +1 -1
- package/resources/v1/omni-ai/index.d.mts +1 -1
- package/resources/v1/omni-ai/index.d.mts.map +1 -1
- package/resources/v1/omni-ai/index.d.ts +1 -1
- package/resources/v1/omni-ai/index.d.ts.map +1 -1
- package/resources/v1/omni-ai/index.js.map +1 -1
- package/resources/v1/omni-ai/index.mjs.map +1 -1
- package/resources/v1/omni-ai/omni-ai.d.mts +169 -3
- package/resources/v1/omni-ai/omni-ai.d.mts.map +1 -1
- package/resources/v1/omni-ai/omni-ai.d.ts +169 -3
- package/resources/v1/omni-ai/omni-ai.d.ts.map +1 -1
- package/resources/v1/omni-ai/omni-ai.js.map +1 -1
- package/resources/v1/omni-ai/omni-ai.mjs.map +1 -1
- package/resources/v1/orders.d.mts +60 -22
- package/resources/v1/orders.d.mts.map +1 -1
- package/resources/v1/orders.d.ts +60 -22
- package/resources/v1/orders.d.ts.map +1 -1
- package/resources/v1/orders.js +5 -1
- package/resources/v1/orders.js.map +1 -1
- package/resources/v1/orders.mjs +5 -1
- package/resources/v1/orders.mjs.map +1 -1
- package/resources/v1/private-markets/index.d.mts +3 -0
- package/resources/v1/private-markets/index.d.mts.map +1 -0
- package/resources/v1/private-markets/index.d.ts +3 -0
- package/resources/v1/private-markets/index.d.ts.map +1 -0
- package/resources/v1/private-markets/index.js +9 -0
- package/resources/v1/private-markets/index.js.map +1 -0
- package/resources/v1/private-markets/index.mjs +4 -0
- package/resources/v1/private-markets/index.mjs.map +1 -0
- package/resources/v1/private-markets/offerings.d.mts +369 -0
- package/resources/v1/private-markets/offerings.d.mts.map +1 -0
- package/resources/v1/private-markets/offerings.d.ts +369 -0
- package/resources/v1/private-markets/offerings.d.ts.map +1 -0
- package/resources/v1/private-markets/offerings.js +46 -0
- package/resources/v1/private-markets/offerings.js.map +1 -0
- package/resources/v1/private-markets/offerings.mjs +42 -0
- package/resources/v1/private-markets/offerings.mjs.map +1 -0
- package/resources/v1/private-markets/private-markets.d.mts +10 -0
- package/resources/v1/private-markets/private-markets.d.mts.map +1 -0
- package/resources/v1/private-markets/private-markets.d.ts +10 -0
- package/resources/v1/private-markets/private-markets.d.ts.map +1 -0
- package/resources/v1/private-markets/private-markets.js +17 -0
- package/resources/v1/private-markets/private-markets.js.map +1 -0
- package/resources/v1/private-markets/private-markets.mjs +12 -0
- package/resources/v1/private-markets/private-markets.mjs.map +1 -0
- package/resources/v1/private-markets.d.mts +2 -0
- package/resources/v1/private-markets.d.mts.map +1 -0
- package/resources/v1/private-markets.d.ts +2 -0
- package/resources/v1/private-markets.d.ts.map +1 -0
- package/resources/v1/private-markets.js +6 -0
- package/resources/v1/private-markets.js.map +1 -0
- package/resources/v1/private-markets.mjs +3 -0
- package/resources/v1/private-markets.mjs.map +1 -0
- package/resources/v1/screener.d.mts +3 -0
- package/resources/v1/screener.d.mts.map +1 -1
- package/resources/v1/screener.d.ts +3 -0
- package/resources/v1/screener.d.ts.map +1 -1
- package/resources/v1/screener.js +3 -0
- package/resources/v1/screener.js.map +1 -1
- package/resources/v1/screener.mjs +3 -0
- package/resources/v1/screener.mjs.map +1 -1
- package/resources/v1/v1.d.mts +12 -8
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +12 -8
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +4 -0
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +4 -0
- package/resources/v1/v1.mjs.map +1 -1
- package/src/resources/v1/accounts.ts +27 -50
- package/src/resources/v1/index.ts +5 -1
- package/src/resources/v1/instrument-data/index.ts +1 -0
- package/src/resources/v1/instrument-data/instrument-data.ts +82 -4
- package/src/resources/v1/instrument-data/market-data.ts +55 -1
- package/src/resources/v1/instruments.ts +74 -7
- package/src/resources/v1/omni-ai/index.ts +2 -0
- package/src/resources/v1/omni-ai/omni-ai.ts +202 -2
- package/src/resources/v1/orders.ts +68 -29
- package/src/resources/v1/private-markets/index.ts +27 -0
- package/src/resources/v1/private-markets/offerings.ts +477 -0
- package/src/resources/v1/private-markets/private-markets.ts +61 -0
- package/src/resources/v1/private-markets.ts +3 -0
- package/src/resources/v1/screener.ts +3 -0
- package/src/resources/v1/v1.ts +14 -2
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -90,6 +90,13 @@ export interface ActionButton {
|
|
|
90
90
|
*/
|
|
91
91
|
label: string;
|
|
92
92
|
|
|
93
|
+
/**
|
|
94
|
+
* Interaction-tracking identity. Absent on messages created before tracking. When
|
|
95
|
+
* a null/undefined value is observed, it indicates that there is no available
|
|
96
|
+
* data.
|
|
97
|
+
*/
|
|
98
|
+
itemId?: string | null;
|
|
99
|
+
|
|
93
100
|
/**
|
|
94
101
|
* Follow-up prompt to submit as the next user message. When a null/undefined value
|
|
95
102
|
* is observed, it indicates it does not apply.
|
|
@@ -112,6 +119,11 @@ export interface ChartPayload {
|
|
|
112
119
|
*/
|
|
113
120
|
chartId: string;
|
|
114
121
|
|
|
122
|
+
/**
|
|
123
|
+
* Whether the current user clicked this chart.
|
|
124
|
+
*/
|
|
125
|
+
clicked: boolean;
|
|
126
|
+
|
|
115
127
|
/**
|
|
116
128
|
* Buttons associated with this chart.
|
|
117
129
|
*/
|
|
@@ -122,6 +134,13 @@ export interface ChartPayload {
|
|
|
122
134
|
* observed, it indicates it does not apply.
|
|
123
135
|
*/
|
|
124
136
|
dataChart?: DataChart | null;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Interaction-tracking identity. Absent on messages created before tracking. When
|
|
140
|
+
* a null/undefined value is observed, it indicates that there is no available
|
|
141
|
+
* data.
|
|
142
|
+
*/
|
|
143
|
+
itemId?: string | null;
|
|
125
144
|
}
|
|
126
145
|
|
|
127
146
|
/**
|
|
@@ -172,6 +191,23 @@ export interface ContentPartStructuredActionPayload {
|
|
|
172
191
|
action: StructuredAction;
|
|
173
192
|
|
|
174
193
|
action_id: string;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Whether the current user clicked this action.
|
|
197
|
+
*/
|
|
198
|
+
clicked: boolean;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* IDs of nested items clicked by the current user.
|
|
202
|
+
*/
|
|
203
|
+
clicked_item_ids?: Array<string>;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Interaction-tracking identity. Absent on messages created before tracking. When
|
|
207
|
+
* a null/undefined value is observed, it indicates that there is no available
|
|
208
|
+
* data.
|
|
209
|
+
*/
|
|
210
|
+
item_id?: string | null;
|
|
175
211
|
}
|
|
176
212
|
|
|
177
213
|
/**
|
|
@@ -230,6 +266,13 @@ export interface OpenChartAction {
|
|
|
230
266
|
*/
|
|
231
267
|
extras?: unknown;
|
|
232
268
|
|
|
269
|
+
/**
|
|
270
|
+
* Interaction-tracking identity. Absent on messages created before tracking. When
|
|
271
|
+
* a null/undefined value is observed, it indicates that there is no available
|
|
272
|
+
* data.
|
|
273
|
+
*/
|
|
274
|
+
item_id?: string | null;
|
|
275
|
+
|
|
233
276
|
/**
|
|
234
277
|
* Chart timeframe (e.g., "1D", "1W", "1M", "3M", "1Y", "5Y") When a null/undefined
|
|
235
278
|
* value is observed, it indicates it does not apply.
|
|
@@ -251,6 +294,13 @@ export interface OpenEntitlementConsentAction {
|
|
|
251
294
|
entitlement_codes: Array<EntitlementCode>;
|
|
252
295
|
|
|
253
296
|
reason: string;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Interaction-tracking identity. Absent on messages created before tracking. When
|
|
300
|
+
* a null/undefined value is observed, it indicates that there is no available
|
|
301
|
+
* data.
|
|
302
|
+
*/
|
|
303
|
+
item_id?: string | null;
|
|
254
304
|
}
|
|
255
305
|
|
|
256
306
|
/**
|
|
@@ -268,6 +318,13 @@ export interface OpenScreenerAction {
|
|
|
268
318
|
*/
|
|
269
319
|
columns?: Array<string> | null;
|
|
270
320
|
|
|
321
|
+
/**
|
|
322
|
+
* Interaction-tracking identity. Absent on messages created before tracking. When
|
|
323
|
+
* a null/undefined value is observed, it indicates that there is no available
|
|
324
|
+
* data.
|
|
325
|
+
*/
|
|
326
|
+
item_id?: string | null;
|
|
327
|
+
|
|
271
328
|
/**
|
|
272
329
|
* Optional page size. When a null/undefined value is observed, it indicates it
|
|
273
330
|
* does not apply.
|
|
@@ -294,7 +351,32 @@ export interface PrefillCancelOrderAction {
|
|
|
294
351
|
/**
|
|
295
352
|
* Orders to cancel using the same identifiers required by the cancel-order API.
|
|
296
353
|
*/
|
|
297
|
-
orders: Array<
|
|
354
|
+
orders: Array<PrefillCancelOrderRequest>;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* Request to cancel an existing order
|
|
359
|
+
*
|
|
360
|
+
* Note: In the API, order cancellation is done via DELETE request without a body.
|
|
361
|
+
* The order_id and account_id come from the URL path parameters.
|
|
362
|
+
*/
|
|
363
|
+
export interface PrefillCancelOrderRequest {
|
|
364
|
+
/**
|
|
365
|
+
* Account ID (from path parameter)
|
|
366
|
+
*/
|
|
367
|
+
account_id: number;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Order ID to cancel (from path parameter)
|
|
371
|
+
*/
|
|
372
|
+
order_id: string;
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Interaction-tracking identity. Absent on messages created before tracking. When
|
|
376
|
+
* a null/undefined value is observed, it indicates that there is no available
|
|
377
|
+
* data.
|
|
378
|
+
*/
|
|
379
|
+
item_id?: string | null;
|
|
298
380
|
}
|
|
299
381
|
|
|
300
382
|
/**
|
|
@@ -318,6 +400,18 @@ export interface PrefillModifyOrderRequest {
|
|
|
318
400
|
*/
|
|
319
401
|
account_id?: number;
|
|
320
402
|
|
|
403
|
+
/**
|
|
404
|
+
* Interaction-tracking identity. Absent on messages created before tracking. When
|
|
405
|
+
* a null/undefined value is observed, it indicates that there is no available
|
|
406
|
+
* data.
|
|
407
|
+
*/
|
|
408
|
+
item_id?: string | null;
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* New limit offset for trailing stop-limit orders (signed)
|
|
412
|
+
*/
|
|
413
|
+
limit_offset?: string | null;
|
|
414
|
+
|
|
321
415
|
/**
|
|
322
416
|
* New limit price for the order
|
|
323
417
|
*/
|
|
@@ -337,6 +431,16 @@ export interface PrefillModifyOrderRequest {
|
|
|
337
431
|
* New stop price for the order
|
|
338
432
|
*/
|
|
339
433
|
stop_price?: string | null;
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* New trailing offset for trailing orders
|
|
437
|
+
*/
|
|
438
|
+
trailing_offset?: string | null;
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* New trailing offset type (PRICE or BPS)
|
|
442
|
+
*/
|
|
443
|
+
trailing_offset_type?: OrdersAPI.TrailingOffsetType | null;
|
|
340
444
|
}
|
|
341
445
|
|
|
342
446
|
/**
|
|
@@ -346,7 +450,96 @@ export interface PrefillNewOrderAction {
|
|
|
346
450
|
/**
|
|
347
451
|
* Orders to prefill using the same shape accepted by the orders API.
|
|
348
452
|
*/
|
|
349
|
-
orders: Array<
|
|
453
|
+
orders: Array<PrefillNewOrderRequest>;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* Request to submit a new order (PlaceOrderRequest from spec)
|
|
458
|
+
*/
|
|
459
|
+
export interface PrefillNewOrderRequest {
|
|
460
|
+
/**
|
|
461
|
+
* Type of order
|
|
462
|
+
*/
|
|
463
|
+
order_type: OrdersAPI.RequestOrderType;
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* Quantity to trade. For COMMON_STOCK: shares (may be fractional if supported).
|
|
467
|
+
* For OPTION (single-leg): contracts (must be an integer)
|
|
468
|
+
*/
|
|
469
|
+
quantity: string;
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* Side of the order
|
|
473
|
+
*/
|
|
474
|
+
side: OrdersAPI.Side;
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* Time in force
|
|
478
|
+
*/
|
|
479
|
+
time_in_force: OrdersAPI.RequestTimeInForce;
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* Optional client-provided unique ID (idempotency). Required to be unique per
|
|
483
|
+
* account.
|
|
484
|
+
*/
|
|
485
|
+
id?: string | null;
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* The timestamp when the order should expire (UTC). Required when time_in_force is
|
|
489
|
+
* GOOD_TILL_DATE.
|
|
490
|
+
*/
|
|
491
|
+
expires_at?: string | null;
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Allow trading outside regular trading hours. Some brokers disallow options
|
|
495
|
+
* outside RTH.
|
|
496
|
+
*/
|
|
497
|
+
extended_hours?: boolean | null;
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* Instrument ID (UUID) or symbol (equity ticker or OSI option symbol). Either
|
|
501
|
+
* `symbol` or `instrument_id` must be provided.
|
|
502
|
+
*/
|
|
503
|
+
instrument_id?: OrdersAPI.InstrumentIDOrSymbol | null;
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* Interaction-tracking identity. Absent on messages created before tracking. When
|
|
507
|
+
* a null/undefined value is observed, it indicates that there is no available
|
|
508
|
+
* data.
|
|
509
|
+
*/
|
|
510
|
+
item_id?: string | null;
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* Limit offset for trailing stop-limit orders (signed)
|
|
514
|
+
*/
|
|
515
|
+
limit_offset?: string | null;
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* Limit price (required for LIMIT and STOP_LIMIT orders)
|
|
519
|
+
*/
|
|
520
|
+
limit_price?: string | null;
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Stop price (required for STOP and STOP_LIMIT orders)
|
|
524
|
+
*/
|
|
525
|
+
stop_price?: string | null;
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* Trading symbol. For equities, use the ticker symbol (e.g., "TSLA"). For options,
|
|
529
|
+
* use the OSI symbol (e.g., "TSLA 250117C00190000"). Either `symbol` or
|
|
530
|
+
* `instrument_id` must be provided.
|
|
531
|
+
*/
|
|
532
|
+
symbol?: string | null;
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* Trailing offset amount (required for trailing orders)
|
|
536
|
+
*/
|
|
537
|
+
trailing_offset?: string | null;
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* Trailing offset type (PRICE or PERCENT_BPS)
|
|
541
|
+
*/
|
|
542
|
+
trailing_offset_type?: OrdersAPI.TrailingOffsetType | null;
|
|
350
543
|
}
|
|
351
544
|
|
|
352
545
|
/**
|
|
@@ -467,6 +660,11 @@ export interface SuggestedActionsPayload {
|
|
|
467
660
|
* Ordered message-level buttons.
|
|
468
661
|
*/
|
|
469
662
|
actionButtons?: Array<ActionButton>;
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* IDs of buttons clicked by the current user.
|
|
666
|
+
*/
|
|
667
|
+
clickedItemIds?: Array<string>;
|
|
470
668
|
}
|
|
471
669
|
|
|
472
670
|
OmniAI.Entitlements = Entitlements;
|
|
@@ -493,9 +691,11 @@ export declare namespace OmniAI {
|
|
|
493
691
|
type OpenEntitlementConsentAction as OpenEntitlementConsentAction,
|
|
494
692
|
type OpenScreenerAction as OpenScreenerAction,
|
|
495
693
|
type PrefillCancelOrderAction as PrefillCancelOrderAction,
|
|
694
|
+
type PrefillCancelOrderRequest as PrefillCancelOrderRequest,
|
|
496
695
|
type PrefillModifyOrderAction as PrefillModifyOrderAction,
|
|
497
696
|
type PrefillModifyOrderRequest as PrefillModifyOrderRequest,
|
|
498
697
|
type PrefillNewOrderAction as PrefillNewOrderAction,
|
|
698
|
+
type PrefillNewOrderRequest as PrefillNewOrderRequest,
|
|
499
699
|
type PrefillOrderAction as PrefillOrderAction,
|
|
500
700
|
type PromptButtonAction as PromptButtonAction,
|
|
501
701
|
type StructuredAction as StructuredAction,
|
|
@@ -71,7 +71,11 @@ export class Orders extends APIResource {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
74
|
+
* Fetch a single order. The `{order_id}` path parameter accepts either the order's
|
|
75
|
+
* `id` or its `client_order_id`. A `client_order_id` can only be used while the
|
|
76
|
+
* order is open; after that, use the `id` returned in every order response, or
|
|
77
|
+
* find the order with the list-orders endpoint's `order_ids` filter, which accepts
|
|
78
|
+
* both identifiers at any time.
|
|
75
79
|
*
|
|
76
80
|
* @example
|
|
77
81
|
* ```ts
|
|
@@ -153,24 +157,6 @@ export class Orders extends APIResource {
|
|
|
153
157
|
}
|
|
154
158
|
}
|
|
155
159
|
|
|
156
|
-
/**
|
|
157
|
-
* Request to cancel an existing order
|
|
158
|
-
*
|
|
159
|
-
* Note: In the API, order cancellation is done via DELETE request without a body.
|
|
160
|
-
* The order_id and account_id come from the URL path parameters.
|
|
161
|
-
*/
|
|
162
|
-
export interface CancelOrderRequest {
|
|
163
|
-
/**
|
|
164
|
-
* Account ID (from path parameter)
|
|
165
|
-
*/
|
|
166
|
-
account_id: number;
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Order ID to cancel (from path parameter)
|
|
170
|
-
*/
|
|
171
|
-
order_id: string;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
160
|
/**
|
|
175
161
|
* Represents a single fill of an order for an account.
|
|
176
162
|
*/
|
|
@@ -218,6 +204,22 @@ export interface Execution {
|
|
|
218
204
|
* a null/undefined value is observed, it indicates it does not apply.
|
|
219
205
|
*/
|
|
220
206
|
symbol?: string | null;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Underlying instrument identifier for a derivative fill. `null` for a
|
|
210
|
+
* non-derivative fill, when the underlier could not be resolved, or when a
|
|
211
|
+
* multileg fill's legs resolve to different underliers. When a null/undefined
|
|
212
|
+
* value is observed, it indicates it does not apply.
|
|
213
|
+
*/
|
|
214
|
+
underlying_instrument_id?: string | null;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Venue where this fill occurred, as reported by that venue. Distinct from an
|
|
218
|
+
* order's `venue`, which is the routing destination. Codes are not normalized, so
|
|
219
|
+
* the format varies by venue. When a null/undefined value is observed, it
|
|
220
|
+
* indicates that there is no available data.
|
|
221
|
+
*/
|
|
222
|
+
venue?: string | null;
|
|
221
223
|
}
|
|
222
224
|
|
|
223
225
|
export type ExecutionList = Array<Execution>;
|
|
@@ -550,6 +552,11 @@ export type QueueState = 'AWAITING_RELEASE' | 'RELEASED';
|
|
|
550
552
|
* At least one field must be provided.
|
|
551
553
|
*/
|
|
552
554
|
export interface ReplaceOrderRequest {
|
|
555
|
+
/**
|
|
556
|
+
* New limit offset for trailing stop-limit orders (signed)
|
|
557
|
+
*/
|
|
558
|
+
limit_offset?: string | null;
|
|
559
|
+
|
|
553
560
|
/**
|
|
554
561
|
* New limit price for the order
|
|
555
562
|
*/
|
|
@@ -564,6 +571,16 @@ export interface ReplaceOrderRequest {
|
|
|
564
571
|
* New stop price for the order
|
|
565
572
|
*/
|
|
566
573
|
stop_price?: string | null;
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* New trailing offset for trailing orders
|
|
577
|
+
*/
|
|
578
|
+
trailing_offset?: string | null;
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* New trailing offset type (PRICE or BPS)
|
|
582
|
+
*/
|
|
583
|
+
trailing_offset_type?: TrailingOffsetType | null;
|
|
567
584
|
}
|
|
568
585
|
|
|
569
586
|
/**
|
|
@@ -587,10 +604,7 @@ export type RequestTimeInForce =
|
|
|
587
604
|
| 'FILL_OR_KILL'
|
|
588
605
|
| 'GOOD_TILL_DATE'
|
|
589
606
|
| 'AT_THE_OPENING'
|
|
590
|
-
| 'AT_THE_CLOSE'
|
|
591
|
-
| 'GOOD_TILL_CROSSING'
|
|
592
|
-
| 'GOOD_THROUGH_CROSSING'
|
|
593
|
-
| 'AT_CROSSING';
|
|
607
|
+
| 'AT_THE_CLOSE';
|
|
594
608
|
|
|
595
609
|
/**
|
|
596
610
|
* Side of an order
|
|
@@ -608,9 +622,6 @@ export type TimeInForce =
|
|
|
608
622
|
| 'GOOD_TILL_DATE'
|
|
609
623
|
| 'AT_THE_OPENING'
|
|
610
624
|
| 'AT_THE_CLOSE'
|
|
611
|
-
| 'GOOD_TILL_CROSSING'
|
|
612
|
-
| 'GOOD_THROUGH_CROSSING'
|
|
613
|
-
| 'AT_CROSSING'
|
|
614
625
|
| 'OTHER';
|
|
615
626
|
|
|
616
627
|
/**
|
|
@@ -710,6 +721,12 @@ export interface OrderGetExecutionsParams {
|
|
|
710
721
|
*/
|
|
711
722
|
instrument_ids?: Array<string>;
|
|
712
723
|
|
|
724
|
+
/**
|
|
725
|
+
* Comma-separated order IDs to filter by. When provided, only executions belonging
|
|
726
|
+
* to an order in this set are returned.
|
|
727
|
+
*/
|
|
728
|
+
order_ids?: Array<string>;
|
|
729
|
+
|
|
713
730
|
/**
|
|
714
731
|
* The number of items to return per page. Only used when page_token is not
|
|
715
732
|
* provided.
|
|
@@ -726,6 +743,13 @@ export interface OrderGetExecutionsParams {
|
|
|
726
743
|
* The end date and time for the query range, inclusive (ISO 8601 format)
|
|
727
744
|
*/
|
|
728
745
|
to?: string;
|
|
746
|
+
|
|
747
|
+
/**
|
|
748
|
+
* Comma-separated instrument IDs (UUID) or symbols (equity tickers or OSI option
|
|
749
|
+
* symbols). Matches option fills whose resolved underlier is any of the given
|
|
750
|
+
* instruments.
|
|
751
|
+
*/
|
|
752
|
+
underlying_instrument_ids?: Array<string>;
|
|
729
753
|
}
|
|
730
754
|
|
|
731
755
|
export interface OrderGetOrderByIDParams {
|
|
@@ -753,8 +777,9 @@ export interface OrderGetOrdersParams {
|
|
|
753
777
|
instrument_type?: 'COMMON_STOCK' | 'INDEX' | 'OPTION' | 'CASH';
|
|
754
778
|
|
|
755
779
|
/**
|
|
756
|
-
* Comma-separated
|
|
757
|
-
*
|
|
780
|
+
* Comma-separated list of order identifiers. Each value may be an order's `id` or
|
|
781
|
+
* its `client_order_id`; only orders matching one of the given identifiers are
|
|
782
|
+
* returned.
|
|
758
783
|
*/
|
|
759
784
|
order_ids?: Array<string>;
|
|
760
785
|
|
|
@@ -815,6 +840,11 @@ export interface OrderReplaceOrderParams {
|
|
|
815
840
|
*/
|
|
816
841
|
account_id: number;
|
|
817
842
|
|
|
843
|
+
/**
|
|
844
|
+
* Body param: New limit offset for trailing stop-limit orders (signed)
|
|
845
|
+
*/
|
|
846
|
+
limit_offset?: string | null;
|
|
847
|
+
|
|
818
848
|
/**
|
|
819
849
|
* Body param: New limit price for the order
|
|
820
850
|
*/
|
|
@@ -829,6 +859,16 @@ export interface OrderReplaceOrderParams {
|
|
|
829
859
|
* Body param: New stop price for the order
|
|
830
860
|
*/
|
|
831
861
|
stop_price?: string | null;
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* Body param: New trailing offset for trailing orders
|
|
865
|
+
*/
|
|
866
|
+
trailing_offset?: string | null;
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
* Body param: New trailing offset type (PRICE or BPS)
|
|
870
|
+
*/
|
|
871
|
+
trailing_offset_type?: TrailingOffsetType | null;
|
|
832
872
|
}
|
|
833
873
|
|
|
834
874
|
export interface OrderSubmitOrdersParams {
|
|
@@ -837,7 +877,6 @@ export interface OrderSubmitOrdersParams {
|
|
|
837
877
|
|
|
838
878
|
export declare namespace Orders {
|
|
839
879
|
export {
|
|
840
|
-
type CancelOrderRequest as CancelOrderRequest,
|
|
841
880
|
type Execution as Execution,
|
|
842
881
|
type ExecutionList as ExecutionList,
|
|
843
882
|
type InstrumentIDOrSymbol as InstrumentIDOrSymbol,
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Offerings,
|
|
5
|
+
type Currency,
|
|
6
|
+
type MetricUnit,
|
|
7
|
+
type MetricValueType,
|
|
8
|
+
type OfferingCard,
|
|
9
|
+
type OfferingCardList,
|
|
10
|
+
type OfferingClass,
|
|
11
|
+
type OfferingCompany,
|
|
12
|
+
type OfferingDetail,
|
|
13
|
+
type OfferingDocumentResource,
|
|
14
|
+
type OfferingDocumentType,
|
|
15
|
+
type OfferingHighlight,
|
|
16
|
+
type OfferingKeyRisk,
|
|
17
|
+
type OfferingParticipantResource,
|
|
18
|
+
type OfferingSpv,
|
|
19
|
+
type ParticipantRole,
|
|
20
|
+
type SpvStatus,
|
|
21
|
+
type ValuationBasis,
|
|
22
|
+
type OfferingGetOfferingByIDResponse,
|
|
23
|
+
type OfferingGetOfferingsResponse,
|
|
24
|
+
type OfferingGetOfferingByIDParams,
|
|
25
|
+
type OfferingGetOfferingsParams,
|
|
26
|
+
} from './offerings';
|
|
27
|
+
export { PrivateMarkets } from './private-markets';
|