@clear-street/clearstreet 0.76.0 → 0.77.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 +8 -0
- package/package.json +1 -1
- package/resources/v1/accounts.d.mts +26 -13
- package/resources/v1/accounts.d.mts.map +1 -1
- package/resources/v1/accounts.d.ts +26 -13
- package/resources/v1/accounts.d.ts.map +1 -1
- package/resources/v1/calendar.d.mts +10 -5
- package/resources/v1/calendar.d.mts.map +1 -1
- package/resources/v1/calendar.d.ts +10 -5
- package/resources/v1/calendar.d.ts.map +1 -1
- package/resources/v1/instrument-data/instrument-data.d.mts +90 -45
- package/resources/v1/instrument-data/instrument-data.d.mts.map +1 -1
- package/resources/v1/instrument-data/instrument-data.d.ts +90 -45
- package/resources/v1/instrument-data/instrument-data.d.ts.map +1 -1
- package/resources/v1/instrument-data/instrument-data.js.map +1 -1
- package/resources/v1/instrument-data/instrument-data.mjs.map +1 -1
- package/resources/v1/instrument-data/market-data.d.mts +29 -14
- package/resources/v1/instrument-data/market-data.d.mts.map +1 -1
- package/resources/v1/instrument-data/market-data.d.ts +29 -14
- package/resources/v1/instrument-data/market-data.d.ts.map +1 -1
- package/resources/v1/instrument-data/news.d.mts +10 -5
- package/resources/v1/instrument-data/news.d.mts.map +1 -1
- package/resources/v1/instrument-data/news.d.ts +10 -5
- package/resources/v1/instrument-data/news.d.ts.map +1 -1
- package/resources/v1/instruments.d.mts +42 -21
- package/resources/v1/instruments.d.mts.map +1 -1
- package/resources/v1/instruments.d.ts +42 -21
- package/resources/v1/instruments.d.ts.map +1 -1
- package/resources/v1/omni-ai/messages.d.mts +4 -0
- package/resources/v1/omni-ai/messages.d.mts.map +1 -1
- package/resources/v1/omni-ai/messages.d.ts +4 -0
- package/resources/v1/omni-ai/messages.d.ts.map +1 -1
- package/resources/v1/omni-ai/omni-ai.d.mts +20 -10
- package/resources/v1/omni-ai/omni-ai.d.mts.map +1 -1
- package/resources/v1/omni-ai/omni-ai.d.ts +20 -10
- 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/omni-ai/responses.d.mts +9 -2
- package/resources/v1/omni-ai/responses.d.mts.map +1 -1
- package/resources/v1/omni-ai/responses.d.ts +9 -2
- package/resources/v1/omni-ai/responses.d.ts.map +1 -1
- package/resources/v1/omni-ai/threads.d.mts +1 -1
- package/resources/v1/omni-ai/threads.d.ts +1 -1
- package/resources/v1/orders.d.mts +30 -15
- package/resources/v1/orders.d.mts.map +1 -1
- package/resources/v1/orders.d.ts +30 -15
- package/resources/v1/orders.d.ts.map +1 -1
- package/resources/v1/positions.d.mts +27 -13
- package/resources/v1/positions.d.mts.map +1 -1
- package/resources/v1/positions.d.ts +27 -13
- package/resources/v1/positions.d.ts.map +1 -1
- package/resources/v1/watchlist.d.mts +4 -2
- package/resources/v1/watchlist.d.mts.map +1 -1
- package/resources/v1/watchlist.d.ts +4 -2
- package/resources/v1/watchlist.d.ts.map +1 -1
- package/src/resources/v1/accounts.ts +26 -13
- package/src/resources/v1/calendar.ts +10 -5
- package/src/resources/v1/instrument-data/instrument-data.ts +90 -45
- package/src/resources/v1/instrument-data/market-data.ts +29 -14
- package/src/resources/v1/instrument-data/news.ts +10 -5
- package/src/resources/v1/instruments.ts +42 -21
- package/src/resources/v1/omni-ai/messages.ts +4 -0
- package/src/resources/v1/omni-ai/omni-ai.ts +20 -10
- package/src/resources/v1/omni-ai/responses.ts +9 -2
- package/src/resources/v1/omni-ai/threads.ts +1 -1
- package/src/resources/v1/orders.ts +30 -15
- package/src/resources/v1/positions.ts +27 -13
- package/src/resources/v1/watchlist.ts +4 -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,12 +90,14 @@ export interface ActionButton {
|
|
|
90
90
|
label: string;
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
|
-
* Follow-up prompt to submit as the next user message.
|
|
93
|
+
* Follow-up prompt to submit as the next user message. When a null/undefined value
|
|
94
|
+
* is observed, it indicates it does not apply.
|
|
94
95
|
*/
|
|
95
96
|
prompt?: PromptButtonAction | null;
|
|
96
97
|
|
|
97
98
|
/**
|
|
98
|
-
* Structured action in the same message to execute on click.
|
|
99
|
+
* Structured action in the same message to execute on click. When a null/undefined
|
|
100
|
+
* value is observed, it indicates it does not apply.
|
|
99
101
|
*/
|
|
100
102
|
structuredAction?: StructuredActionButtonAction | null;
|
|
101
103
|
}
|
|
@@ -115,7 +117,8 @@ export interface ChartPayload {
|
|
|
115
117
|
actionButtons?: Array<ActionButton>;
|
|
116
118
|
|
|
117
119
|
/**
|
|
118
|
-
* Explicit series-driven chart definition.
|
|
120
|
+
* Explicit series-driven chart definition. When a null/undefined value is
|
|
121
|
+
* observed, it indicates it does not apply.
|
|
119
122
|
*/
|
|
120
123
|
dataChart?: DataChart | null;
|
|
121
124
|
}
|
|
@@ -221,12 +224,14 @@ export interface OpenChartAction {
|
|
|
221
224
|
symbol: string;
|
|
222
225
|
|
|
223
226
|
/**
|
|
224
|
-
* Additional chart configuration (indicators, overlays, etc.)
|
|
227
|
+
* Additional chart configuration (indicators, overlays, etc.) When a
|
|
228
|
+
* null/undefined value is observed, it indicates it does not apply.
|
|
225
229
|
*/
|
|
226
230
|
extras?: unknown;
|
|
227
231
|
|
|
228
232
|
/**
|
|
229
|
-
* Chart timeframe (e.g., "1D", "1W", "1M", "3M", "1Y", "5Y")
|
|
233
|
+
* Chart timeframe (e.g., "1D", "1W", "1M", "3M", "1Y", "5Y") When a null/undefined
|
|
234
|
+
* value is observed, it indicates it does not apply.
|
|
230
235
|
*/
|
|
231
236
|
timeframe?: string | null;
|
|
232
237
|
}
|
|
@@ -257,22 +262,26 @@ export interface OpenScreenerAction {
|
|
|
257
262
|
filters: Array<ScreenerFilter>;
|
|
258
263
|
|
|
259
264
|
/**
|
|
260
|
-
* Optional field/column selection for screener results.
|
|
265
|
+
* Optional field/column selection for screener results. When a null/undefined
|
|
266
|
+
* value is observed, it indicates it does not apply.
|
|
261
267
|
*/
|
|
262
268
|
field_filter?: Array<string> | null;
|
|
263
269
|
|
|
264
270
|
/**
|
|
265
|
-
* Optional page size.
|
|
271
|
+
* Optional page size. When a null/undefined value is observed, it indicates it
|
|
272
|
+
* does not apply.
|
|
266
273
|
*/
|
|
267
274
|
page_size?: number | null;
|
|
268
275
|
|
|
269
276
|
/**
|
|
270
|
-
* Optional sort field for screener rows.
|
|
277
|
+
* Optional sort field for screener rows. When a null/undefined value is observed,
|
|
278
|
+
* it indicates it does not apply.
|
|
271
279
|
*/
|
|
272
280
|
sort_by?: string | null;
|
|
273
281
|
|
|
274
282
|
/**
|
|
275
|
-
* Optional sort direction (`ASC` or `DESC`).
|
|
283
|
+
* Optional sort direction (`ASC` or `DESC`). When a null/undefined value is
|
|
284
|
+
* observed, it indicates it does not apply.
|
|
276
285
|
*/
|
|
277
286
|
sort_direction?: string | null;
|
|
278
287
|
}
|
|
@@ -413,7 +422,8 @@ export namespace StructuredAction {
|
|
|
413
422
|
*/
|
|
414
423
|
export interface StructuredActionButtonAction {
|
|
415
424
|
/**
|
|
416
|
-
* UUID of a `structured_action` content part in the same message.
|
|
425
|
+
* UUID of a `structured_action` content part in the same message. When a
|
|
426
|
+
* null/undefined value is observed, it indicates it does not apply.
|
|
417
427
|
*/
|
|
418
428
|
actionId?: string | null;
|
|
419
429
|
}
|
|
@@ -81,6 +81,9 @@ export interface ErrorStatus {
|
|
|
81
81
|
|
|
82
82
|
message: string;
|
|
83
83
|
|
|
84
|
+
/**
|
|
85
|
+
* When a null/undefined value is observed, it indicates it does not apply.
|
|
86
|
+
*/
|
|
84
87
|
details?: unknown | null;
|
|
85
88
|
}
|
|
86
89
|
|
|
@@ -100,15 +103,19 @@ export interface Response {
|
|
|
100
103
|
user_message_id: string;
|
|
101
104
|
|
|
102
105
|
/**
|
|
103
|
-
*
|
|
106
|
+
* When a null/undefined value is observed, it indicates that there is no available
|
|
107
|
+
* data.
|
|
104
108
|
*/
|
|
105
109
|
content?: ResponseContent | null;
|
|
106
110
|
|
|
107
111
|
/**
|
|
108
|
-
*
|
|
112
|
+
* When a null/undefined value is observed, it indicates it does not apply.
|
|
109
113
|
*/
|
|
110
114
|
error?: ErrorStatus | null;
|
|
111
115
|
|
|
116
|
+
/**
|
|
117
|
+
* When a null/undefined value is observed, it indicates it does not apply.
|
|
118
|
+
*/
|
|
112
119
|
output_message_id?: string | null;
|
|
113
120
|
}
|
|
114
121
|
|
|
@@ -414,7 +414,8 @@ export interface Order {
|
|
|
414
414
|
venue: string;
|
|
415
415
|
|
|
416
416
|
/**
|
|
417
|
-
* Average fill price across all executions
|
|
417
|
+
* Average fill price across all executions When a null/undefined value is
|
|
418
|
+
* observed, it indicates that there is no available data.
|
|
418
419
|
*/
|
|
419
420
|
average_fill_price?: string | null;
|
|
420
421
|
|
|
@@ -425,7 +426,8 @@ export interface Order {
|
|
|
425
426
|
|
|
426
427
|
/**
|
|
427
428
|
* Timestamp when the order will expire (UTC). Present when time_in_force is
|
|
428
|
-
* GOOD_TILL_DATE.
|
|
429
|
+
* GOOD_TILL_DATE. When a null/undefined value is observed, it indicates it does
|
|
430
|
+
* not apply.
|
|
429
431
|
*/
|
|
430
432
|
expires_at?: string | null;
|
|
431
433
|
|
|
@@ -435,65 +437,78 @@ export interface Order {
|
|
|
435
437
|
extended_hours?: boolean | null;
|
|
436
438
|
|
|
437
439
|
/**
|
|
438
|
-
* Limit offset for trailing stop-limit orders (signed)
|
|
440
|
+
* Limit offset for trailing stop-limit orders (signed) When a null/undefined value
|
|
441
|
+
* is observed, it indicates it does not apply.
|
|
439
442
|
*/
|
|
440
443
|
limit_offset?: string | null;
|
|
441
444
|
|
|
442
445
|
/**
|
|
443
|
-
* Limit price (for LIMIT and STOP_LIMIT orders)
|
|
446
|
+
* Limit price (for LIMIT and STOP_LIMIT orders) When a null/undefined value is
|
|
447
|
+
* observed, it indicates it does not apply.
|
|
444
448
|
*/
|
|
445
449
|
limit_price?: string | null;
|
|
446
450
|
|
|
447
451
|
/**
|
|
448
452
|
* Parent order queue state, present when the order is awaiting release or
|
|
449
|
-
* released.
|
|
453
|
+
* released. When a null/undefined value is observed, it indicates it does not
|
|
454
|
+
* apply.
|
|
450
455
|
*/
|
|
451
456
|
queue_state?: QueueState | null;
|
|
452
457
|
|
|
453
458
|
/**
|
|
454
|
-
* Scheduled release time for orders awaiting release.
|
|
459
|
+
* Scheduled release time for orders awaiting release. When a null/undefined value
|
|
460
|
+
* is observed, it indicates it does not apply.
|
|
455
461
|
*/
|
|
456
462
|
releases_at?: string | null;
|
|
457
463
|
|
|
458
464
|
/**
|
|
459
|
-
* Stop price (for STOP and STOP_LIMIT orders)
|
|
465
|
+
* Stop price (for STOP and STOP_LIMIT orders) When a null/undefined value is
|
|
466
|
+
* observed, it indicates it does not apply.
|
|
460
467
|
*/
|
|
461
468
|
stop_price?: string | null;
|
|
462
469
|
|
|
463
470
|
/**
|
|
464
|
-
* Current trailing limit price computed by the trailing strategy
|
|
471
|
+
* Current trailing limit price computed by the trailing strategy When a
|
|
472
|
+
* null/undefined value is observed, it indicates it does not apply.
|
|
465
473
|
*/
|
|
466
474
|
trailing_limit_px?: string | null;
|
|
467
475
|
|
|
468
476
|
/**
|
|
469
|
-
* Trailing offset amount for trailing orders
|
|
477
|
+
* Trailing offset amount for trailing orders When a null/undefined value is
|
|
478
|
+
* observed, it indicates it does not apply.
|
|
470
479
|
*/
|
|
471
480
|
trailing_offset?: string | null;
|
|
472
481
|
|
|
473
482
|
/**
|
|
474
|
-
* Trailing offset type for trailing orders
|
|
483
|
+
* Trailing offset type for trailing orders When a null/undefined value is
|
|
484
|
+
* observed, it indicates it does not apply.
|
|
475
485
|
*/
|
|
476
486
|
trailing_offset_type?: TrailingOffsetType | null;
|
|
477
487
|
|
|
478
488
|
/**
|
|
479
|
-
* Current trailing stop price computed by the trailing strategy
|
|
489
|
+
* Current trailing stop price computed by the trailing strategy When a
|
|
490
|
+
* null/undefined value is observed, it indicates it does not apply.
|
|
480
491
|
*/
|
|
481
492
|
trailing_stop_px?: string | null;
|
|
482
493
|
|
|
483
494
|
/**
|
|
484
|
-
* Trailing watermark price for trailing orders
|
|
495
|
+
* Trailing watermark price for trailing orders When a null/undefined value is
|
|
496
|
+
* observed, it indicates it does not apply.
|
|
485
497
|
*/
|
|
486
498
|
trailing_watermark_px?: string | null;
|
|
487
499
|
|
|
488
500
|
/**
|
|
489
|
-
* Trailing watermark timestamp for trailing orders
|
|
501
|
+
* Trailing watermark timestamp for trailing orders When a null/undefined value is
|
|
502
|
+
* observed, it indicates it does not apply.
|
|
490
503
|
*/
|
|
491
504
|
trailing_watermark_ts?: string | null;
|
|
492
505
|
|
|
493
506
|
/**
|
|
494
507
|
* Instrument ID of the option's underlying instrument. Populated only for options
|
|
495
|
-
* orders
|
|
496
|
-
*
|
|
508
|
+
* orders. A `null` means one of two things: the order is not an option, so the
|
|
509
|
+
* field does not apply; or the order is an option whose underlier has not yet been
|
|
510
|
+
* resolved. When a null/undefined value is observed, it indicates it does not
|
|
511
|
+
* apply.
|
|
497
512
|
*/
|
|
498
513
|
underlying_instrument_id?: string | null;
|
|
499
514
|
}
|
|
@@ -215,55 +215,66 @@ export interface Position {
|
|
|
215
215
|
symbol: string;
|
|
216
216
|
|
|
217
217
|
/**
|
|
218
|
-
* The average price paid per share or contract for this position
|
|
218
|
+
* The average price paid per share or contract for this position When a
|
|
219
|
+
* null/undefined value is observed, it indicates that there is no available data.
|
|
219
220
|
*/
|
|
220
221
|
avg_price?: string | null;
|
|
221
222
|
|
|
222
223
|
/**
|
|
223
|
-
* The closing price used to value the position for the last trading day
|
|
224
|
+
* The closing price used to value the position for the last trading day When a
|
|
225
|
+
* null/undefined value is observed, it indicates that there is no available data.
|
|
224
226
|
*/
|
|
225
227
|
closing_price?: string | null;
|
|
226
228
|
|
|
227
229
|
/**
|
|
228
|
-
* The market date associated with `closing_price`
|
|
230
|
+
* The market date associated with `closing_price` When a null/undefined value is
|
|
231
|
+
* observed, it indicates that there is no available data.
|
|
229
232
|
*/
|
|
230
233
|
closing_price_date?: string | null;
|
|
231
234
|
|
|
232
235
|
/**
|
|
233
|
-
* The total cost basis for this position
|
|
236
|
+
* The total cost basis for this position When a null/undefined value is observed,
|
|
237
|
+
* it indicates that there is no available data.
|
|
234
238
|
*/
|
|
235
239
|
cost_basis?: string | null;
|
|
236
240
|
|
|
237
241
|
/**
|
|
238
242
|
* The unrealized profit or loss for this position relative to the previous close
|
|
243
|
+
* When a null/undefined value is observed, it indicates that there is no available
|
|
244
|
+
* data.
|
|
239
245
|
*/
|
|
240
246
|
daily_unrealized_pnl?: string | null;
|
|
241
247
|
|
|
242
248
|
/**
|
|
243
249
|
* The unrealized profit/loss for the position for the current day, expressed as a
|
|
244
|
-
* percentage of the baseline value (range: 0-100).
|
|
250
|
+
* percentage of the baseline value (range: 0-100). When a null/undefined value is
|
|
251
|
+
* observed, it indicates that there is no available data.
|
|
245
252
|
*/
|
|
246
253
|
daily_unrealized_pnl_pct?: string | null;
|
|
247
254
|
|
|
248
255
|
/**
|
|
249
|
-
* The current market price of the instrument
|
|
256
|
+
* The current market price of the instrument When a null/undefined value is
|
|
257
|
+
* observed, it indicates that there is no available data.
|
|
250
258
|
*/
|
|
251
259
|
instrument_price?: string | null;
|
|
252
260
|
|
|
253
261
|
/**
|
|
254
|
-
* Identifier of the underlying instrument, when available
|
|
262
|
+
* Identifier of the underlying instrument, when available When a null/undefined
|
|
263
|
+
* value is observed, it indicates it does not apply.
|
|
255
264
|
*/
|
|
256
265
|
underlying_instrument_id?: string | null;
|
|
257
266
|
|
|
258
267
|
/**
|
|
259
268
|
* The total unrealized profit or loss for this position based on current market
|
|
260
|
-
* value
|
|
269
|
+
* value When a null/undefined value is observed, it indicates that there is no
|
|
270
|
+
* available data.
|
|
261
271
|
*/
|
|
262
272
|
unrealized_pnl?: string | null;
|
|
263
273
|
|
|
264
274
|
/**
|
|
265
275
|
* The unrealized profit/loss for the position, expressed as a percentage of the
|
|
266
|
-
* position's cost basis (range: 0-100).
|
|
276
|
+
* position's cost basis (range: 0-100). When a null/undefined value is observed,
|
|
277
|
+
* it indicates that there is no available data.
|
|
267
278
|
*/
|
|
268
279
|
unrealized_pnl_pct?: string | null;
|
|
269
280
|
}
|
|
@@ -315,12 +326,14 @@ export interface PositionInstruction {
|
|
|
315
326
|
|
|
316
327
|
/**
|
|
317
328
|
* Number of contracts accepted by the clearing venue. Populated once the
|
|
318
|
-
* instruction reaches `ACCEPTED`.
|
|
329
|
+
* instruction reaches `ACCEPTED`. When a null/undefined value is observed, it
|
|
330
|
+
* indicates that there is no available data.
|
|
319
331
|
*/
|
|
320
332
|
accepted_quantity?: string | null;
|
|
321
333
|
|
|
322
334
|
/**
|
|
323
|
-
* When the instruction was first accepted by the service.
|
|
335
|
+
* When the instruction was first accepted by the service. When a null/undefined
|
|
336
|
+
* value is observed, it indicates that there is no available data.
|
|
324
337
|
*/
|
|
325
338
|
created_at?: string | null;
|
|
326
339
|
|
|
@@ -328,12 +341,13 @@ export interface PositionInstruction {
|
|
|
328
341
|
* Human-readable explanation populated on any non-success terminal status —
|
|
329
342
|
* `REJECTED` or `CANCEL_FAILED`. On a `207 Multi-Status` batch submit the
|
|
330
343
|
* top-level `error` field summarizes the batch; per-row detail continues to live
|
|
331
|
-
* here.
|
|
344
|
+
* here. When a null/undefined value is observed, it indicates it does not apply.
|
|
332
345
|
*/
|
|
333
346
|
rejection_reason?: string | null;
|
|
334
347
|
|
|
335
348
|
/**
|
|
336
|
-
* When the instruction's lifecycle state last changed.
|
|
349
|
+
* When the instruction's lifecycle state last changed. When a null/undefined value
|
|
350
|
+
* is observed, it indicates that there is no available data.
|
|
337
351
|
*/
|
|
338
352
|
updated_at?: string | null;
|
|
339
353
|
}
|
|
@@ -193,12 +193,14 @@ export interface WatchlistItemEntry {
|
|
|
193
193
|
added_at: string;
|
|
194
194
|
|
|
195
195
|
/**
|
|
196
|
-
* Price when the item was added
|
|
196
|
+
* Price when the item was added When a null/undefined value is observed, it
|
|
197
|
+
* indicates that there is no available data.
|
|
197
198
|
*/
|
|
198
199
|
added_price?: string | null;
|
|
199
200
|
|
|
200
201
|
/**
|
|
201
|
-
* Instrument details
|
|
202
|
+
* Instrument details When a null/undefined value is observed, it indicates that
|
|
203
|
+
* there is no available data.
|
|
202
204
|
*/
|
|
203
205
|
instrument?: InstrumentsAPI.Instrument | null;
|
|
204
206
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.77.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.77.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.77.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.77.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|