@clear-street/clearstreet 0.89.0 → 0.91.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 +21 -0
- package/package.json +1 -1
- package/resources/v1/accounts.d.mts +105 -3
- package/resources/v1/accounts.d.mts.map +1 -1
- package/resources/v1/accounts.d.ts +105 -3
- package/resources/v1/accounts.d.ts.map +1 -1
- package/resources/v1/accounts.js +2 -1
- package/resources/v1/accounts.js.map +1 -1
- package/resources/v1/accounts.mjs +2 -1
- package/resources/v1/accounts.mjs.map +1 -1
- package/resources/v1/index.d.mts +3 -3
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +3 -3
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/instruments.d.mts +1 -21
- package/resources/v1/instruments.d.mts.map +1 -1
- package/resources/v1/instruments.d.ts +1 -21
- package/resources/v1/instruments.d.ts.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 +44 -2
- package/resources/v1/omni-ai/omni-ai.d.mts.map +1 -1
- package/resources/v1/omni-ai/omni-ai.d.ts +44 -2
- 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 +53 -30
- package/resources/v1/orders.d.mts.map +1 -1
- package/resources/v1/orders.d.ts +53 -30
- package/resources/v1/orders.d.ts.map +1 -1
- package/resources/v1/v1.d.mts +7 -7
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +7 -7
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs.map +1 -1
- package/src/resources/v1/accounts.ts +126 -2
- package/src/resources/v1/index.ts +5 -0
- package/src/resources/v1/instruments.ts +1 -25
- package/src/resources/v1/omni-ai/index.ts +2 -0
- package/src/resources/v1/omni-ai/omni-ai.ts +53 -1
- package/src/resources/v1/orders.ts +60 -34
- package/src/resources/v1/v1.ts +11 -1
- 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
|
@@ -28,7 +28,8 @@ export class Accounts extends APIResource {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* Fetch account details by ID
|
|
31
|
+
* Fetch account details by ID, including the mailing address, date of birth, phone
|
|
32
|
+
* number, and country of tax residency of the account-holder entity when on file.
|
|
32
33
|
*
|
|
33
34
|
* @example
|
|
34
35
|
* ```ts
|
|
@@ -349,6 +350,127 @@ export type AccountSubtype = 'CASH' | 'MARGIN' | 'OTHER';
|
|
|
349
350
|
*/
|
|
350
351
|
export type AccountType = 'CUSTOMER' | 'OTHER';
|
|
351
352
|
|
|
353
|
+
/**
|
|
354
|
+
* Represents a trading account
|
|
355
|
+
*/
|
|
356
|
+
export interface AccountWithPersonalDetails {
|
|
357
|
+
/**
|
|
358
|
+
* The unique identifier for the account
|
|
359
|
+
*/
|
|
360
|
+
id: number;
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* The account holder entity identifier
|
|
364
|
+
*/
|
|
365
|
+
account_holder_entity_id: number;
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* The full legal name of the account
|
|
369
|
+
*/
|
|
370
|
+
full_name: string;
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* The date the account was opened
|
|
374
|
+
*/
|
|
375
|
+
open_date: string;
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* The options level of the account
|
|
379
|
+
*/
|
|
380
|
+
options_level: number;
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* The short name of the account
|
|
384
|
+
*/
|
|
385
|
+
short_name: string;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* The current status of the account
|
|
389
|
+
*/
|
|
390
|
+
status: AccountStatus;
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* The sub-type of account
|
|
394
|
+
*/
|
|
395
|
+
subtype: AccountSubtype;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* The type of account
|
|
399
|
+
*/
|
|
400
|
+
type: AccountType;
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* The date the account was closed, if applicable When a null/undefined value is
|
|
404
|
+
* observed, it indicates it does not apply.
|
|
405
|
+
*/
|
|
406
|
+
close_date?: string | null;
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* The country of tax residency of the account-holder entity. `null` when not on
|
|
410
|
+
* file or entity reference data is unavailable. When a null/undefined value is
|
|
411
|
+
* observed, it indicates that there is no available data.
|
|
412
|
+
*/
|
|
413
|
+
country_of_tax_residency?: string | null;
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* The date of birth of the account holder's primary contact. `null` when not on
|
|
417
|
+
* file or entity reference data is unavailable. When a null/undefined value is
|
|
418
|
+
* observed, it indicates that there is no available data.
|
|
419
|
+
*/
|
|
420
|
+
date_of_birth?: string | null;
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* The mailing address of the account-holder entity. `null` when no mailing address
|
|
424
|
+
* is on file or entity reference data is unavailable. When a null/undefined value
|
|
425
|
+
* is observed, it indicates that there is no available data.
|
|
426
|
+
*/
|
|
427
|
+
mailing_address?: Address | null;
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* The phone number of the account holder's primary contact. `null` when not on
|
|
431
|
+
* file or entity reference data is unavailable. When a null/undefined value is
|
|
432
|
+
* observed, it indicates that there is no available data.
|
|
433
|
+
*/
|
|
434
|
+
phone_number?: string | null;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* A postal address.
|
|
439
|
+
*/
|
|
440
|
+
export interface Address {
|
|
441
|
+
/**
|
|
442
|
+
* City
|
|
443
|
+
*/
|
|
444
|
+
city: string;
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Country
|
|
448
|
+
*/
|
|
449
|
+
country: string;
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* First street address line
|
|
453
|
+
*/
|
|
454
|
+
line1: string;
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* Postal code
|
|
458
|
+
*/
|
|
459
|
+
postal_code: string;
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* Second street address line When a null/undefined value is observed, it indicates
|
|
463
|
+
* it does not apply.
|
|
464
|
+
*/
|
|
465
|
+
line2?: string | null;
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* State or province When a null/undefined value is observed, it indicates it does
|
|
469
|
+
* not apply.
|
|
470
|
+
*/
|
|
471
|
+
state?: string | null;
|
|
472
|
+
}
|
|
473
|
+
|
|
352
474
|
export interface MarginDetails {
|
|
353
475
|
/**
|
|
354
476
|
* @deprecated The number of day trades executed over the 5 most recent trading
|
|
@@ -557,7 +679,7 @@ export interface AccountGetAccountByIDResponse extends Shared.BaseResponse {
|
|
|
557
679
|
/**
|
|
558
680
|
* Represents a trading account
|
|
559
681
|
*/
|
|
560
|
-
data:
|
|
682
|
+
data: AccountWithPersonalDetails;
|
|
561
683
|
}
|
|
562
684
|
|
|
563
685
|
export interface AccountGetAccountsResponse extends Shared.BaseResponse {
|
|
@@ -634,6 +756,8 @@ export declare namespace Accounts {
|
|
|
634
756
|
type AccountStatus as AccountStatus,
|
|
635
757
|
type AccountSubtype as AccountSubtype,
|
|
636
758
|
type AccountType as AccountType,
|
|
759
|
+
type AccountWithPersonalDetails as AccountWithPersonalDetails,
|
|
760
|
+
type Address as Address,
|
|
637
761
|
type MarginDetails as MarginDetails,
|
|
638
762
|
type MarginDetailsUsage as MarginDetailsUsage,
|
|
639
763
|
type MarginSessionDetails as MarginSessionDetails,
|
|
@@ -11,6 +11,8 @@ export {
|
|
|
11
11
|
type AccountStatus,
|
|
12
12
|
type AccountSubtype,
|
|
13
13
|
type AccountType,
|
|
14
|
+
type AccountWithPersonalDetails,
|
|
15
|
+
type Address,
|
|
14
16
|
type MarginDetails,
|
|
15
17
|
type MarginDetailsUsage,
|
|
16
18
|
type MarginSessionDetails,
|
|
@@ -120,6 +122,8 @@ export {
|
|
|
120
122
|
type OpenEntitlementConsentAction,
|
|
121
123
|
type OpenScreenerAction,
|
|
122
124
|
type PrefillCancelOrderAction,
|
|
125
|
+
type PrefillModifyOrderAction,
|
|
126
|
+
type PrefillModifyOrderRequest,
|
|
123
127
|
type PrefillNewOrderAction,
|
|
124
128
|
type PrefillOrderAction,
|
|
125
129
|
type PromptButtonAction,
|
|
@@ -139,6 +143,7 @@ export {
|
|
|
139
143
|
type OrderStatus,
|
|
140
144
|
type OrderType,
|
|
141
145
|
type QueueState,
|
|
146
|
+
type ReplaceOrderRequest,
|
|
142
147
|
type RequestOrderType,
|
|
143
148
|
type RequestTimeInForce,
|
|
144
149
|
type Side,
|
|
@@ -178,12 +178,6 @@ export interface Instrument {
|
|
|
178
178
|
*/
|
|
179
179
|
adv?: string | null;
|
|
180
180
|
|
|
181
|
-
/**
|
|
182
|
-
* @deprecated Deprecated. Always null. When a null/undefined value is observed, it
|
|
183
|
-
* indicates it does not apply.
|
|
184
|
-
*/
|
|
185
|
-
expiry?: string | null;
|
|
186
|
-
|
|
187
181
|
/**
|
|
188
182
|
* The type of security (e.g., Common Stock, ETF) When a null/undefined value is
|
|
189
183
|
* observed, it indicates that there is no available data.
|
|
@@ -226,12 +220,6 @@ export interface Instrument {
|
|
|
226
220
|
* null/undefined value is observed, it indicates that there is no available data.
|
|
227
221
|
*/
|
|
228
222
|
short_margin_rate?: string | null;
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* @deprecated Deprecated. Always null. When a null/undefined value is observed, it
|
|
232
|
-
* indicates it does not apply.
|
|
233
|
-
*/
|
|
234
|
-
strike_price?: string | null;
|
|
235
223
|
}
|
|
236
224
|
|
|
237
225
|
export interface InstrumentCore {
|
|
@@ -307,12 +295,6 @@ export interface InstrumentCore {
|
|
|
307
295
|
*/
|
|
308
296
|
adv?: string | null;
|
|
309
297
|
|
|
310
|
-
/**
|
|
311
|
-
* @deprecated Deprecated. Always null. When a null/undefined value is observed, it
|
|
312
|
-
* indicates it does not apply.
|
|
313
|
-
*/
|
|
314
|
-
expiry?: string | null;
|
|
315
|
-
|
|
316
298
|
/**
|
|
317
299
|
* The type of security (e.g., Common Stock, ETF) When a null/undefined value is
|
|
318
300
|
* observed, it indicates that there is no available data.
|
|
@@ -348,12 +330,6 @@ export interface InstrumentCore {
|
|
|
348
330
|
* null/undefined value is observed, it indicates that there is no available data.
|
|
349
331
|
*/
|
|
350
332
|
short_margin_rate?: string | null;
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
* @deprecated Deprecated. Always null. When a null/undefined value is observed, it
|
|
354
|
-
* indicates it does not apply.
|
|
355
|
-
*/
|
|
356
|
-
strike_price?: string | null;
|
|
357
333
|
}
|
|
358
334
|
|
|
359
335
|
export type InstrumentCoreList = Array<InstrumentCore>;
|
|
@@ -488,7 +464,7 @@ export interface InstrumentGetInstrumentsParams {
|
|
|
488
464
|
/**
|
|
489
465
|
* Filter by instrument type (e.g. COMMON_STOCK, OPTION)
|
|
490
466
|
*/
|
|
491
|
-
instrument_type?: 'COMMON_STOCK' | 'OPTION' | 'CASH';
|
|
467
|
+
instrument_type?: 'COMMON_STOCK' | 'INDEX' | 'OPTION' | 'CASH';
|
|
492
468
|
|
|
493
469
|
/**
|
|
494
470
|
* Filter by liquidation only status
|
|
@@ -41,6 +41,8 @@ export {
|
|
|
41
41
|
type OpenEntitlementConsentAction,
|
|
42
42
|
type OpenScreenerAction,
|
|
43
43
|
type PrefillCancelOrderAction,
|
|
44
|
+
type PrefillModifyOrderAction,
|
|
45
|
+
type PrefillModifyOrderRequest,
|
|
44
46
|
type PrefillNewOrderAction,
|
|
45
47
|
type PrefillOrderAction,
|
|
46
48
|
type PromptButtonAction,
|
|
@@ -297,6 +297,48 @@ export interface PrefillCancelOrderAction {
|
|
|
297
297
|
orders: Array<OrdersAPI.CancelOrderRequest>;
|
|
298
298
|
}
|
|
299
299
|
|
|
300
|
+
/**
|
|
301
|
+
* Modify-order prefill action.
|
|
302
|
+
*/
|
|
303
|
+
export interface PrefillModifyOrderAction {
|
|
304
|
+
/**
|
|
305
|
+
* Modification targets and deltas needed to construct replace-order API requests.
|
|
306
|
+
*/
|
|
307
|
+
orders: Array<PrefillModifyOrderRequest>;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* Request to replace (modify) an existing order
|
|
312
|
+
*
|
|
313
|
+
* At least one field must be provided.
|
|
314
|
+
*/
|
|
315
|
+
export interface PrefillModifyOrderRequest {
|
|
316
|
+
/**
|
|
317
|
+
* Account ID that owns the order.
|
|
318
|
+
*/
|
|
319
|
+
account_id?: number;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* New limit price for the order
|
|
323
|
+
*/
|
|
324
|
+
limit_price?: string | null;
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Order ID to modify.
|
|
328
|
+
*/
|
|
329
|
+
order_id?: string;
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* New quantity for the order
|
|
333
|
+
*/
|
|
334
|
+
quantity?: string | null;
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* New stop price for the order
|
|
338
|
+
*/
|
|
339
|
+
stop_price?: string | null;
|
|
340
|
+
}
|
|
341
|
+
|
|
300
342
|
/**
|
|
301
343
|
* New-order prefill action.
|
|
302
344
|
*/
|
|
@@ -316,7 +358,8 @@ export interface PrefillNewOrderAction {
|
|
|
316
358
|
*/
|
|
317
359
|
export type PrefillOrderAction =
|
|
318
360
|
| PrefillOrderAction.PrefillNewOrderAction
|
|
319
|
-
| PrefillOrderAction.PrefillCancelOrderAction
|
|
361
|
+
| PrefillOrderAction.PrefillCancelOrderAction
|
|
362
|
+
| PrefillOrderAction.PrefillModifyOrderAction;
|
|
320
363
|
|
|
321
364
|
export namespace PrefillOrderAction {
|
|
322
365
|
/**
|
|
@@ -332,6 +375,13 @@ export namespace PrefillOrderAction {
|
|
|
332
375
|
export interface PrefillCancelOrderAction extends OmniAIAPI.PrefillCancelOrderAction {
|
|
333
376
|
action_type: 'CANCEL';
|
|
334
377
|
}
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* Modify one or more existing orders.
|
|
381
|
+
*/
|
|
382
|
+
export interface PrefillModifyOrderAction extends OmniAIAPI.PrefillModifyOrderAction {
|
|
383
|
+
action_type: 'MODIFY';
|
|
384
|
+
}
|
|
335
385
|
}
|
|
336
386
|
|
|
337
387
|
/**
|
|
@@ -443,6 +493,8 @@ export declare namespace OmniAI {
|
|
|
443
493
|
type OpenEntitlementConsentAction as OpenEntitlementConsentAction,
|
|
444
494
|
type OpenScreenerAction as OpenScreenerAction,
|
|
445
495
|
type PrefillCancelOrderAction as PrefillCancelOrderAction,
|
|
496
|
+
type PrefillModifyOrderAction as PrefillModifyOrderAction,
|
|
497
|
+
type PrefillModifyOrderRequest as PrefillModifyOrderRequest,
|
|
446
498
|
type PrefillNewOrderAction as PrefillNewOrderAction,
|
|
447
499
|
type PrefillOrderAction as PrefillOrderAction,
|
|
448
500
|
type PromptButtonAction as PromptButtonAction,
|
|
@@ -180,11 +180,6 @@ export interface Execution {
|
|
|
180
180
|
*/
|
|
181
181
|
id: string;
|
|
182
182
|
|
|
183
|
-
/**
|
|
184
|
-
* Unique instrument identifier.
|
|
185
|
-
*/
|
|
186
|
-
instrument_id: string;
|
|
187
|
-
|
|
188
183
|
/**
|
|
189
184
|
* Identifier of the order this execution belongs to.
|
|
190
185
|
*/
|
|
@@ -206,14 +201,22 @@ export interface Execution {
|
|
|
206
201
|
side: Side;
|
|
207
202
|
|
|
208
203
|
/**
|
|
209
|
-
*
|
|
204
|
+
* Transaction timestamp in nanosecond precision (UTC).
|
|
210
205
|
*/
|
|
211
|
-
|
|
206
|
+
transaction_time: string;
|
|
212
207
|
|
|
213
208
|
/**
|
|
214
|
-
*
|
|
209
|
+
* Unique instrument identifier. `null` when this fill has no single resolvable
|
|
210
|
+
* instrument. When a null/undefined value is observed, it indicates it does not
|
|
211
|
+
* apply.
|
|
215
212
|
*/
|
|
216
|
-
|
|
213
|
+
instrument_id?: string | null;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Trading symbol. `null` when this fill has no single resolvable instrument. When
|
|
217
|
+
* a null/undefined value is observed, it indicates it does not apply.
|
|
218
|
+
*/
|
|
219
|
+
symbol?: string | null;
|
|
217
220
|
}
|
|
218
221
|
|
|
219
222
|
export type ExecutionList = Array<Execution>;
|
|
@@ -337,16 +340,6 @@ export interface Order {
|
|
|
337
340
|
*/
|
|
338
341
|
filled_quantity: string;
|
|
339
342
|
|
|
340
|
-
/**
|
|
341
|
-
* Instrument identifier for the traded instrument.
|
|
342
|
-
*/
|
|
343
|
-
instrument_id: string;
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* Type of security
|
|
347
|
-
*/
|
|
348
|
-
instrument_type: V1API.SecurityType;
|
|
349
|
-
|
|
350
343
|
/**
|
|
351
344
|
* Remaining unfilled quantity
|
|
352
345
|
*/
|
|
@@ -372,11 +365,6 @@ export interface Order {
|
|
|
372
365
|
*/
|
|
373
366
|
status: OrderStatus;
|
|
374
367
|
|
|
375
|
-
/**
|
|
376
|
-
* Trading symbol
|
|
377
|
-
*/
|
|
378
|
-
symbol: string;
|
|
379
|
-
|
|
380
368
|
/**
|
|
381
369
|
* Time in force instruction
|
|
382
370
|
*/
|
|
@@ -415,6 +403,19 @@ export interface Order {
|
|
|
415
403
|
*/
|
|
416
404
|
extended_hours?: boolean | null;
|
|
417
405
|
|
|
406
|
+
/**
|
|
407
|
+
* Instrument identifier for the traded instrument. `null` when the order has no
|
|
408
|
+
* single resolvable instrument. When a null/undefined value is observed, it
|
|
409
|
+
* indicates it does not apply.
|
|
410
|
+
*/
|
|
411
|
+
instrument_id?: string | null;
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Type of security. `null` when the order has no single resolvable instrument.
|
|
415
|
+
* When a null/undefined value is observed, it indicates it does not apply.
|
|
416
|
+
*/
|
|
417
|
+
instrument_type?: V1API.SecurityType | null;
|
|
418
|
+
|
|
418
419
|
/**
|
|
419
420
|
* Limit offset for trailing stop-limit orders (signed) When a null/undefined value
|
|
420
421
|
* is observed, it indicates it does not apply.
|
|
@@ -446,6 +447,12 @@ export interface Order {
|
|
|
446
447
|
*/
|
|
447
448
|
stop_price?: string | null;
|
|
448
449
|
|
|
450
|
+
/**
|
|
451
|
+
* Trading symbol. `null` when the order has no single resolvable instrument. When
|
|
452
|
+
* a null/undefined value is observed, it indicates it does not apply.
|
|
453
|
+
*/
|
|
454
|
+
symbol?: string | null;
|
|
455
|
+
|
|
449
456
|
/**
|
|
450
457
|
* Current trailing limit price computed by the trailing strategy When a
|
|
451
458
|
* null/undefined value is observed, it indicates it does not apply.
|
|
@@ -531,6 +538,28 @@ export type OrderType =
|
|
|
531
538
|
*/
|
|
532
539
|
export type QueueState = 'AWAITING_RELEASE' | 'RELEASED';
|
|
533
540
|
|
|
541
|
+
/**
|
|
542
|
+
* Request to replace (modify) an existing order
|
|
543
|
+
*
|
|
544
|
+
* At least one field must be provided.
|
|
545
|
+
*/
|
|
546
|
+
export interface ReplaceOrderRequest {
|
|
547
|
+
/**
|
|
548
|
+
* New limit price for the order
|
|
549
|
+
*/
|
|
550
|
+
limit_price?: string | null;
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* New quantity for the order
|
|
554
|
+
*/
|
|
555
|
+
quantity?: string | null;
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* New stop price for the order
|
|
559
|
+
*/
|
|
560
|
+
stop_price?: string | null;
|
|
561
|
+
}
|
|
562
|
+
|
|
534
563
|
/**
|
|
535
564
|
* Strict order-type enum for order submission/replacement requests.
|
|
536
565
|
*/
|
|
@@ -543,7 +572,7 @@ export type RequestOrderType =
|
|
|
543
572
|
| 'TRAILING_STOP_LIMIT';
|
|
544
573
|
|
|
545
574
|
/**
|
|
546
|
-
* Strict time-in-force enum for order submission
|
|
575
|
+
* Strict time-in-force enum for order submission requests.
|
|
547
576
|
*/
|
|
548
577
|
export type RequestTimeInForce =
|
|
549
578
|
| 'DAY'
|
|
@@ -634,14 +663,15 @@ export interface OrderSubmitOrdersResponse extends Shared.BaseResponse {
|
|
|
634
663
|
|
|
635
664
|
export interface OrderCancelAllOpenOrdersParams {
|
|
636
665
|
/**
|
|
637
|
-
* Comma-separated instrument
|
|
666
|
+
* Comma-separated instrument IDs (UUID) or symbols (equity tickers or OSI option
|
|
667
|
+
* symbols).
|
|
638
668
|
*/
|
|
639
|
-
instrument_ids?: Array<
|
|
669
|
+
instrument_ids?: Array<InstrumentIDOrSymbol>;
|
|
640
670
|
|
|
641
671
|
/**
|
|
642
672
|
* Filter by instrument type (e.g., COMMON_STOCK, OPTION)
|
|
643
673
|
*/
|
|
644
|
-
instrument_type?: 'COMMON_STOCK' | 'OPTION' | 'CASH';
|
|
674
|
+
instrument_type?: 'COMMON_STOCK' | 'INDEX' | 'OPTION' | 'CASH';
|
|
645
675
|
|
|
646
676
|
/**
|
|
647
677
|
* Filter by order side (BUY or SELL)
|
|
@@ -714,7 +744,7 @@ export interface OrderGetOrdersParams {
|
|
|
714
744
|
/**
|
|
715
745
|
* Instrument type filter (e.g., COMMON_STOCK, OPTION)
|
|
716
746
|
*/
|
|
717
|
-
instrument_type?: 'COMMON_STOCK' | 'OPTION' | 'CASH';
|
|
747
|
+
instrument_type?: 'COMMON_STOCK' | 'INDEX' | 'OPTION' | 'CASH';
|
|
718
748
|
|
|
719
749
|
/**
|
|
720
750
|
* Comma-separated order IDs to filter by. When provided, only orders whose order
|
|
@@ -793,11 +823,6 @@ export interface OrderReplaceOrderParams {
|
|
|
793
823
|
* Body param: New stop price for the order
|
|
794
824
|
*/
|
|
795
825
|
stop_price?: string | null;
|
|
796
|
-
|
|
797
|
-
/**
|
|
798
|
-
* Body param: New time in force for the order
|
|
799
|
-
*/
|
|
800
|
-
time_in_force?: RequestTimeInForce;
|
|
801
826
|
}
|
|
802
827
|
|
|
803
828
|
export interface OrderSubmitOrdersParams {
|
|
@@ -816,6 +841,7 @@ export declare namespace Orders {
|
|
|
816
841
|
type OrderStatus as OrderStatus,
|
|
817
842
|
type OrderType as OrderType,
|
|
818
843
|
type QueueState as QueueState,
|
|
844
|
+
type ReplaceOrderRequest as ReplaceOrderRequest,
|
|
819
845
|
type RequestOrderType as RequestOrderType,
|
|
820
846
|
type RequestTimeInForce as RequestTimeInForce,
|
|
821
847
|
type Side as Side,
|
package/src/resources/v1/v1.ts
CHANGED
|
@@ -20,7 +20,9 @@ import {
|
|
|
20
20
|
AccountStatus,
|
|
21
21
|
AccountSubtype,
|
|
22
22
|
AccountType,
|
|
23
|
+
AccountWithPersonalDetails,
|
|
23
24
|
Accounts,
|
|
25
|
+
Address,
|
|
24
26
|
MarginDetails,
|
|
25
27
|
MarginDetailsUsage,
|
|
26
28
|
MarginSessionDetails,
|
|
@@ -95,6 +97,7 @@ import {
|
|
|
95
97
|
OrderType,
|
|
96
98
|
Orders,
|
|
97
99
|
QueueState,
|
|
100
|
+
ReplaceOrderRequest,
|
|
98
101
|
RequestOrderType,
|
|
99
102
|
RequestTimeInForce,
|
|
100
103
|
Side,
|
|
@@ -233,6 +236,8 @@ import {
|
|
|
233
236
|
OpenEntitlementConsentAction,
|
|
234
237
|
OpenScreenerAction,
|
|
235
238
|
PrefillCancelOrderAction,
|
|
239
|
+
PrefillModifyOrderAction,
|
|
240
|
+
PrefillModifyOrderRequest,
|
|
236
241
|
PrefillNewOrderAction,
|
|
237
242
|
PrefillOrderAction,
|
|
238
243
|
PromptButtonAction,
|
|
@@ -257,7 +262,7 @@ export class V1 extends APIResource {
|
|
|
257
262
|
/**
|
|
258
263
|
* Security type
|
|
259
264
|
*/
|
|
260
|
-
export type SecurityType = 'COMMON_STOCK' | 'OPTION' | 'CASH';
|
|
265
|
+
export type SecurityType = 'COMMON_STOCK' | 'INDEX' | 'OPTION' | 'CASH';
|
|
261
266
|
|
|
262
267
|
/**
|
|
263
268
|
* Sort direction sorted results
|
|
@@ -288,6 +293,8 @@ export declare namespace V1 {
|
|
|
288
293
|
type AccountStatus as AccountStatus,
|
|
289
294
|
type AccountSubtype as AccountSubtype,
|
|
290
295
|
type AccountType as AccountType,
|
|
296
|
+
type AccountWithPersonalDetails as AccountWithPersonalDetails,
|
|
297
|
+
type Address as Address,
|
|
291
298
|
type MarginDetails as MarginDetails,
|
|
292
299
|
type MarginDetailsUsage as MarginDetailsUsage,
|
|
293
300
|
type MarginSessionDetails as MarginSessionDetails,
|
|
@@ -407,6 +414,8 @@ export declare namespace V1 {
|
|
|
407
414
|
type OpenEntitlementConsentAction as OpenEntitlementConsentAction,
|
|
408
415
|
type OpenScreenerAction as OpenScreenerAction,
|
|
409
416
|
type PrefillCancelOrderAction as PrefillCancelOrderAction,
|
|
417
|
+
type PrefillModifyOrderAction as PrefillModifyOrderAction,
|
|
418
|
+
type PrefillModifyOrderRequest as PrefillModifyOrderRequest,
|
|
410
419
|
type PrefillNewOrderAction as PrefillNewOrderAction,
|
|
411
420
|
type PrefillOrderAction as PrefillOrderAction,
|
|
412
421
|
type PromptButtonAction as PromptButtonAction,
|
|
@@ -427,6 +436,7 @@ export declare namespace V1 {
|
|
|
427
436
|
type OrderStatus as OrderStatus,
|
|
428
437
|
type OrderType as OrderType,
|
|
429
438
|
type QueueState as QueueState,
|
|
439
|
+
type ReplaceOrderRequest as ReplaceOrderRequest,
|
|
430
440
|
type RequestOrderType as RequestOrderType,
|
|
431
441
|
type RequestTimeInForce as RequestTimeInForce,
|
|
432
442
|
type Side as Side,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.91.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.91.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.91.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.91.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|