@clear-street/clearstreet 0.93.1 → 0.94.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 +17 -0
- package/package.json +1 -1
- package/resources/v1/accounts.d.mts +0 -30
- package/resources/v1/accounts.d.mts.map +1 -1
- package/resources/v1/accounts.d.ts +0 -30
- package/resources/v1/accounts.d.ts.map +1 -1
- package/resources/v1/index.d.mts +2 -2
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +2 -2
- 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/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 +10 -1
- package/resources/v1/instrument-data/market-data.d.mts.map +1 -1
- package/resources/v1/instrument-data/market-data.d.ts +10 -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/omni-ai.d.mts +12 -0
- package/resources/v1/omni-ai/omni-ai.d.mts.map +1 -1
- package/resources/v1/omni-ai/omni-ai.d.ts +12 -0
- 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 +59 -5
- package/resources/v1/orders.d.mts.map +1 -1
- package/resources/v1/orders.d.ts +59 -5
- 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/v1.d.mts +4 -4
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +4 -4
- 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 +0 -36
- package/src/resources/v1/index.ts +2 -0
- 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 +11 -1
- package/src/resources/v1/instruments.ts +74 -7
- package/src/resources/v1/omni-ai/omni-ai.ts +15 -0
- package/src/resources/v1/orders.ts +68 -10
- package/src/resources/v1/v1.ts +4 -0
- 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
|
@@ -41,13 +41,15 @@ export class InstrumentData extends APIResource {
|
|
|
41
41
|
news: NewsAPI.News = new NewsAPI.News(this._client);
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
|
-
* List instrument events across all securities, grouped by date.
|
|
44
|
+
* List instrument events across all securities, grouped by date. Results are
|
|
45
|
+
* paginated via `page_size` / `page_token`; a date's events may span two pages.
|
|
45
46
|
*
|
|
46
47
|
* Date range defaults (anchored on the current trading day, or the next trading
|
|
47
48
|
* day if today is a weekend or US market holiday):
|
|
48
49
|
*
|
|
49
50
|
* - Unfiltered (no `instrument_ids`): a single trading day (`from_date` =
|
|
50
|
-
* `to_date` = anchor)
|
|
51
|
+
* `to_date` = anchor). If only one bound is given, the other defaults to 6 days
|
|
52
|
+
* from it; there is no maximum span once both bounds are given.
|
|
51
53
|
* - Filtered (with `instrument_ids`): a 30-day lookback ending on the anchor
|
|
52
54
|
* (`from_date` = anchor − 30 days, `to_date` = anchor).
|
|
53
55
|
*
|
|
@@ -137,8 +139,8 @@ export class InstrumentData extends APIResource {
|
|
|
137
139
|
}
|
|
138
140
|
|
|
139
141
|
/**
|
|
140
|
-
* Retrieves corporate events (dividends, splits,
|
|
141
|
-
* by event type.
|
|
142
|
+
* Retrieves corporate events (earnings, dividends, splits, IPO) for an instrument,
|
|
143
|
+
* grouped by event type. Filter to specific types via `event_types`.
|
|
142
144
|
*
|
|
143
145
|
* Date range defaults:
|
|
144
146
|
*
|
|
@@ -1059,6 +1061,11 @@ export interface InstrumentEventsData {
|
|
|
1059
1061
|
*/
|
|
1060
1062
|
instrument_id: string;
|
|
1061
1063
|
|
|
1064
|
+
/**
|
|
1065
|
+
* IPO events
|
|
1066
|
+
*/
|
|
1067
|
+
ipos: Array<InstrumentIpoEvent>;
|
|
1068
|
+
|
|
1062
1069
|
/**
|
|
1063
1070
|
* Stock split events
|
|
1064
1071
|
*/
|
|
@@ -1359,6 +1366,58 @@ export interface InstrumentIncomeStatement {
|
|
|
1359
1366
|
|
|
1360
1367
|
export type InstrumentIncomeStatementList = Array<InstrumentIncomeStatement>;
|
|
1361
1368
|
|
|
1369
|
+
/**
|
|
1370
|
+
* Represents an IPO event for an instrument
|
|
1371
|
+
*/
|
|
1372
|
+
export interface InstrumentIpoEvent {
|
|
1373
|
+
/**
|
|
1374
|
+
* The date of the IPO
|
|
1375
|
+
*/
|
|
1376
|
+
date: string;
|
|
1377
|
+
|
|
1378
|
+
/**
|
|
1379
|
+
* IPO action. When a null/undefined value is observed, it indicates that there is
|
|
1380
|
+
* no available data.
|
|
1381
|
+
*/
|
|
1382
|
+
actions?: string | null;
|
|
1383
|
+
|
|
1384
|
+
/**
|
|
1385
|
+
* IPO announced timestamp. When a null/undefined value is observed, it indicates
|
|
1386
|
+
* that there is no available data.
|
|
1387
|
+
*/
|
|
1388
|
+
announced_at?: string | null;
|
|
1389
|
+
|
|
1390
|
+
/**
|
|
1391
|
+
* IPO company name. When a null/undefined value is observed, it indicates that
|
|
1392
|
+
* there is no available data.
|
|
1393
|
+
*/
|
|
1394
|
+
company?: string | null;
|
|
1395
|
+
|
|
1396
|
+
/**
|
|
1397
|
+
* IPO exchange. When a null/undefined value is observed, it indicates that there
|
|
1398
|
+
* is no available data.
|
|
1399
|
+
*/
|
|
1400
|
+
exchange?: string | null;
|
|
1401
|
+
|
|
1402
|
+
/**
|
|
1403
|
+
* IPO market cap. When a null/undefined value is observed, it indicates that there
|
|
1404
|
+
* is no available data.
|
|
1405
|
+
*/
|
|
1406
|
+
market_cap?: string | null;
|
|
1407
|
+
|
|
1408
|
+
/**
|
|
1409
|
+
* IPO price range. When a null/undefined value is observed, it indicates that
|
|
1410
|
+
* there is no available data.
|
|
1411
|
+
*/
|
|
1412
|
+
price_range?: string | null;
|
|
1413
|
+
|
|
1414
|
+
/**
|
|
1415
|
+
* IPO shares offered. When a null/undefined value is observed, it indicates that
|
|
1416
|
+
* there is no available data.
|
|
1417
|
+
*/
|
|
1418
|
+
shares?: string | null;
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1362
1421
|
/**
|
|
1363
1422
|
* Represents a stock split event for an instrument
|
|
1364
1423
|
*/
|
|
@@ -1473,6 +1532,18 @@ export interface InstrumentDataGetAllInstrumentEventsParams {
|
|
|
1473
1532
|
*/
|
|
1474
1533
|
instrument_ids?: Array<OrdersAPI.InstrumentIDOrSymbol>;
|
|
1475
1534
|
|
|
1535
|
+
/**
|
|
1536
|
+
* The number of items to return per page. Only used when page_token is not
|
|
1537
|
+
* provided.
|
|
1538
|
+
*/
|
|
1539
|
+
page_size?: number;
|
|
1540
|
+
|
|
1541
|
+
/**
|
|
1542
|
+
* Token for retrieving the next or previous page of results. Contains encoded
|
|
1543
|
+
* pagination state; when provided, page_size is ignored.
|
|
1544
|
+
*/
|
|
1545
|
+
page_token?: string;
|
|
1546
|
+
|
|
1476
1547
|
/**
|
|
1477
1548
|
* The end date for the query range, inclusive (YYYY-MM-DD).
|
|
1478
1549
|
*/
|
|
@@ -1540,6 +1611,12 @@ export interface InstrumentDataGetInstrumentCashFlowStatementsParams {
|
|
|
1540
1611
|
}
|
|
1541
1612
|
|
|
1542
1613
|
export interface InstrumentDataGetInstrumentEventsParams {
|
|
1614
|
+
/**
|
|
1615
|
+
* Filter by event type(s). Comma-delimited list. Example:
|
|
1616
|
+
* `event_types=EARNINGS,IPO`.
|
|
1617
|
+
*/
|
|
1618
|
+
event_types?: Array<AllEventsEventType>;
|
|
1619
|
+
|
|
1543
1620
|
/**
|
|
1544
1621
|
* The start date for the query range, inclusive (YYYY-MM-DD).
|
|
1545
1622
|
*/
|
|
@@ -1599,6 +1676,7 @@ export declare namespace InstrumentData {
|
|
|
1599
1676
|
type InstrumentFundamentals as InstrumentFundamentals,
|
|
1600
1677
|
type InstrumentIncomeStatement as InstrumentIncomeStatement,
|
|
1601
1678
|
type InstrumentIncomeStatementList as InstrumentIncomeStatementList,
|
|
1679
|
+
type InstrumentIpoEvent as InstrumentIpoEvent,
|
|
1602
1680
|
type InstrumentSplitEvent as InstrumentSplitEvent,
|
|
1603
1681
|
type PriceTarget as PriceTarget,
|
|
1604
1682
|
type ReportTime as ReportTime,
|
|
@@ -300,9 +300,19 @@ export interface SnapshotSession {
|
|
|
300
300
|
change_percent: string;
|
|
301
301
|
|
|
302
302
|
/**
|
|
303
|
-
* Previous session close price.
|
|
303
|
+
* Previous session close price. Corporate-action-adjusted (stock dividends, cash
|
|
304
|
+
* dividends, and forward/reverse splits) when an adjustment exists for the close
|
|
305
|
+
* date; the raw close otherwise.
|
|
304
306
|
*/
|
|
305
307
|
previous_close: string;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Unadjusted (raw) previous session close. Present only when a corporate-action
|
|
311
|
+
* adjustment exists for the previous close date; when no adjustment exists,
|
|
312
|
+
* `previous_close` is the raw close and this field is omitted. When a
|
|
313
|
+
* null/undefined value is observed, it indicates that there is no available data.
|
|
314
|
+
*/
|
|
315
|
+
previous_close_unadjusted?: string | null;
|
|
306
316
|
}
|
|
307
317
|
|
|
308
318
|
export interface MarketDataGetDailySummariesResponse extends Shared.BaseResponse {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as Shared from '../shared';
|
|
5
|
+
import * as OrdersAPI from './orders';
|
|
5
6
|
import * as V1API from './v1';
|
|
6
7
|
import { APIPromise } from '../../core/api-promise';
|
|
7
8
|
import { RequestOptions } from '../../internal/request-options';
|
|
@@ -47,8 +48,10 @@ export class Instruments extends APIResource {
|
|
|
47
48
|
/**
|
|
48
49
|
* List options contracts.
|
|
49
50
|
*
|
|
50
|
-
* Returns options contracts
|
|
51
|
-
*
|
|
51
|
+
* Returns options contracts with options-specific metadata. Exactly one identifier
|
|
52
|
+
* must be provided: `underlier`/`underlying_instrument_id` (list all contracts for
|
|
53
|
+
* that underlier) or `contract_ids` (look up specific contracts directly).
|
|
54
|
+
* `expiry`/`contract_type` apply as filters in either case.
|
|
52
55
|
*
|
|
53
56
|
* @example
|
|
54
57
|
* ```ts
|
|
@@ -175,6 +178,13 @@ export interface Instrument {
|
|
|
175
178
|
*/
|
|
176
179
|
adv?: string | null;
|
|
177
180
|
|
|
181
|
+
/**
|
|
182
|
+
* Corporate-action-adjusted last close; present only when an adjustment exists for
|
|
183
|
+
* the previous_close date. When a null/undefined value is observed, it indicates
|
|
184
|
+
* that there is no available data.
|
|
185
|
+
*/
|
|
186
|
+
cax_adjusted_previous_close?: string | null;
|
|
187
|
+
|
|
178
188
|
/**
|
|
179
189
|
* The type of security (e.g., Common Stock, ETF) When a null/undefined value is
|
|
180
190
|
* observed, it indicates that there is no available data.
|
|
@@ -194,16 +204,28 @@ export interface Instrument {
|
|
|
194
204
|
name?: string | null;
|
|
195
205
|
|
|
196
206
|
/**
|
|
197
|
-
* Notional average daily volume (ADV multiplied by
|
|
198
|
-
*
|
|
207
|
+
* Notional average daily volume (ADV multiplied by the cax-adjusted close when
|
|
208
|
+
* present, the raw previous close otherwise). When a null/undefined value is
|
|
209
|
+
* observed, it indicates that there is no available data.
|
|
199
210
|
*/
|
|
200
211
|
notional_adv?: string | null;
|
|
201
212
|
|
|
202
213
|
/**
|
|
203
|
-
* Available options expiration dates for this instrument
|
|
214
|
+
* Available options expiration dates for this instrument, each annotated with
|
|
215
|
+
* which settlement cycles have listed contracts on it. Present only when
|
|
204
216
|
* `include_options_expiry_dates=true` in the request. When a null/undefined value
|
|
205
217
|
* is observed, it indicates it does not apply.
|
|
206
218
|
*/
|
|
219
|
+
options_contract_expiry_dates?: Array<OptionExpiryDate> | null;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* @deprecated Available options expiration dates for this instrument. Present only
|
|
223
|
+
* when `include_options_expiry_dates=true` in the request.
|
|
224
|
+
*
|
|
225
|
+
* Deprecated: use `options_contract_expiry_dates`, which carries the same dates
|
|
226
|
+
* annotated with settlement-cycle information. When a null/undefined value is
|
|
227
|
+
* observed, it indicates it does not apply.
|
|
228
|
+
*/
|
|
207
229
|
options_expiry_dates?: Array<string> | null;
|
|
208
230
|
|
|
209
231
|
/**
|
|
@@ -292,6 +314,13 @@ export interface InstrumentCore {
|
|
|
292
314
|
*/
|
|
293
315
|
adv?: string | null;
|
|
294
316
|
|
|
317
|
+
/**
|
|
318
|
+
* Corporate-action-adjusted last close; present only when an adjustment exists for
|
|
319
|
+
* the previous_close date. When a null/undefined value is observed, it indicates
|
|
320
|
+
* that there is no available data.
|
|
321
|
+
*/
|
|
322
|
+
cax_adjusted_previous_close?: string | null;
|
|
323
|
+
|
|
295
324
|
/**
|
|
296
325
|
* The type of security (e.g., Common Stock, ETF) When a null/undefined value is
|
|
297
326
|
* observed, it indicates that there is no available data.
|
|
@@ -311,8 +340,9 @@ export interface InstrumentCore {
|
|
|
311
340
|
name?: string | null;
|
|
312
341
|
|
|
313
342
|
/**
|
|
314
|
-
* Notional average daily volume (ADV multiplied by
|
|
315
|
-
*
|
|
343
|
+
* Notional average daily volume (ADV multiplied by the cax-adjusted close when
|
|
344
|
+
* present, the raw previous close otherwise). When a null/undefined value is
|
|
345
|
+
* observed, it indicates that there is no available data.
|
|
316
346
|
*/
|
|
317
347
|
notional_adv?: string | null;
|
|
318
348
|
|
|
@@ -336,6 +366,29 @@ export type InstrumentCoreList = Array<InstrumentCore>;
|
|
|
336
366
|
*/
|
|
337
367
|
export type ListingType = 'STANDARD' | 'FLEX' | 'OTC';
|
|
338
368
|
|
|
369
|
+
/**
|
|
370
|
+
* An options expiry date, annotated with which settlement cycles have listed
|
|
371
|
+
* contracts on it.
|
|
372
|
+
*/
|
|
373
|
+
export interface OptionExpiryDate {
|
|
374
|
+
/**
|
|
375
|
+
* The expiration date.
|
|
376
|
+
*/
|
|
377
|
+
date: string;
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* Whether this date has at least one listed contract that settles at the close (PM
|
|
381
|
+
* settlement) -- the standard cycle.
|
|
382
|
+
*/
|
|
383
|
+
has_settles_on_close: boolean;
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* Whether this date has at least one listed contract that settles on the opening
|
|
387
|
+
* print (AM settlement).
|
|
388
|
+
*/
|
|
389
|
+
has_settles_on_open: boolean;
|
|
390
|
+
}
|
|
391
|
+
|
|
339
392
|
/**
|
|
340
393
|
* An options contract with options-specific metadata
|
|
341
394
|
*/
|
|
@@ -514,6 +567,13 @@ export interface InstrumentGetInstrumentsParams {
|
|
|
514
567
|
}
|
|
515
568
|
|
|
516
569
|
export interface InstrumentGetOptionContractsParams {
|
|
570
|
+
/**
|
|
571
|
+
* Comma-separated contract instrument IDs (UUID) or OSI option symbols to look up
|
|
572
|
+
* directly, bypassing underlier expansion. Mutually exclusive with
|
|
573
|
+
* underlier/underlying_instrument_id; up to 100 values.
|
|
574
|
+
*/
|
|
575
|
+
contract_ids?: Array<OrdersAPI.InstrumentIDOrSymbol>;
|
|
576
|
+
|
|
517
577
|
/**
|
|
518
578
|
* Filter by contract type: CALL or PUT
|
|
519
579
|
*/
|
|
@@ -524,6 +584,12 @@ export interface InstrumentGetOptionContractsParams {
|
|
|
524
584
|
*/
|
|
525
585
|
expiry?: string;
|
|
526
586
|
|
|
587
|
+
/**
|
|
588
|
+
* Filter by settlement cycle: true for early-settling (AM, settle-on-open)
|
|
589
|
+
* contracts, false for normal (PM) contracts. Omit to return both.
|
|
590
|
+
*/
|
|
591
|
+
is_settle_on_open?: boolean;
|
|
592
|
+
|
|
527
593
|
/**
|
|
528
594
|
* The number of items to return per page. Only used when page_token is not
|
|
529
595
|
* provided.
|
|
@@ -603,6 +669,7 @@ export declare namespace Instruments {
|
|
|
603
669
|
type InstrumentCore as InstrumentCore,
|
|
604
670
|
type InstrumentCoreList as InstrumentCoreList,
|
|
605
671
|
type ListingType as ListingType,
|
|
672
|
+
type OptionExpiryDate as OptionExpiryDate,
|
|
606
673
|
type OptionsContract as OptionsContract,
|
|
607
674
|
type OptionsContractList as OptionsContractList,
|
|
608
675
|
type InstrumentGetInstrumentByIDResponse as InstrumentGetInstrumentByIDResponse,
|
|
@@ -318,6 +318,11 @@ export interface PrefillModifyOrderRequest {
|
|
|
318
318
|
*/
|
|
319
319
|
account_id?: number;
|
|
320
320
|
|
|
321
|
+
/**
|
|
322
|
+
* New limit offset for trailing stop-limit orders (signed)
|
|
323
|
+
*/
|
|
324
|
+
limit_offset?: string | null;
|
|
325
|
+
|
|
321
326
|
/**
|
|
322
327
|
* New limit price for the order
|
|
323
328
|
*/
|
|
@@ -337,6 +342,16 @@ export interface PrefillModifyOrderRequest {
|
|
|
337
342
|
* New stop price for the order
|
|
338
343
|
*/
|
|
339
344
|
stop_price?: string | null;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* New trailing offset for trailing orders
|
|
348
|
+
*/
|
|
349
|
+
trailing_offset?: string | null;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* New trailing offset type (PRICE or BPS)
|
|
353
|
+
*/
|
|
354
|
+
trailing_offset_type?: OrdersAPI.TrailingOffsetType | null;
|
|
340
355
|
}
|
|
341
356
|
|
|
342
357
|
/**
|
|
@@ -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
|
|
@@ -218,6 +222,22 @@ export interface Execution {
|
|
|
218
222
|
* a null/undefined value is observed, it indicates it does not apply.
|
|
219
223
|
*/
|
|
220
224
|
symbol?: string | null;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Underlying instrument identifier for a derivative fill. `null` for a
|
|
228
|
+
* non-derivative fill, when the underlier could not be resolved, or when a
|
|
229
|
+
* multileg fill's legs resolve to different underliers. When a null/undefined
|
|
230
|
+
* value is observed, it indicates it does not apply.
|
|
231
|
+
*/
|
|
232
|
+
underlying_instrument_id?: string | null;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Venue where this fill occurred, as reported by that venue. Distinct from an
|
|
236
|
+
* order's `venue`, which is the routing destination. Codes are not normalized, so
|
|
237
|
+
* the format varies by venue. When a null/undefined value is observed, it
|
|
238
|
+
* indicates that there is no available data.
|
|
239
|
+
*/
|
|
240
|
+
venue?: string | null;
|
|
221
241
|
}
|
|
222
242
|
|
|
223
243
|
export type ExecutionList = Array<Execution>;
|
|
@@ -550,6 +570,11 @@ export type QueueState = 'AWAITING_RELEASE' | 'RELEASED';
|
|
|
550
570
|
* At least one field must be provided.
|
|
551
571
|
*/
|
|
552
572
|
export interface ReplaceOrderRequest {
|
|
573
|
+
/**
|
|
574
|
+
* New limit offset for trailing stop-limit orders (signed)
|
|
575
|
+
*/
|
|
576
|
+
limit_offset?: string | null;
|
|
577
|
+
|
|
553
578
|
/**
|
|
554
579
|
* New limit price for the order
|
|
555
580
|
*/
|
|
@@ -564,6 +589,16 @@ export interface ReplaceOrderRequest {
|
|
|
564
589
|
* New stop price for the order
|
|
565
590
|
*/
|
|
566
591
|
stop_price?: string | null;
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* New trailing offset for trailing orders
|
|
595
|
+
*/
|
|
596
|
+
trailing_offset?: string | null;
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* New trailing offset type (PRICE or BPS)
|
|
600
|
+
*/
|
|
601
|
+
trailing_offset_type?: TrailingOffsetType | null;
|
|
567
602
|
}
|
|
568
603
|
|
|
569
604
|
/**
|
|
@@ -587,10 +622,7 @@ export type RequestTimeInForce =
|
|
|
587
622
|
| 'FILL_OR_KILL'
|
|
588
623
|
| 'GOOD_TILL_DATE'
|
|
589
624
|
| 'AT_THE_OPENING'
|
|
590
|
-
| 'AT_THE_CLOSE'
|
|
591
|
-
| 'GOOD_TILL_CROSSING'
|
|
592
|
-
| 'GOOD_THROUGH_CROSSING'
|
|
593
|
-
| 'AT_CROSSING';
|
|
625
|
+
| 'AT_THE_CLOSE';
|
|
594
626
|
|
|
595
627
|
/**
|
|
596
628
|
* Side of an order
|
|
@@ -608,9 +640,6 @@ export type TimeInForce =
|
|
|
608
640
|
| 'GOOD_TILL_DATE'
|
|
609
641
|
| 'AT_THE_OPENING'
|
|
610
642
|
| 'AT_THE_CLOSE'
|
|
611
|
-
| 'GOOD_TILL_CROSSING'
|
|
612
|
-
| 'GOOD_THROUGH_CROSSING'
|
|
613
|
-
| 'AT_CROSSING'
|
|
614
643
|
| 'OTHER';
|
|
615
644
|
|
|
616
645
|
/**
|
|
@@ -710,6 +739,12 @@ export interface OrderGetExecutionsParams {
|
|
|
710
739
|
*/
|
|
711
740
|
instrument_ids?: Array<string>;
|
|
712
741
|
|
|
742
|
+
/**
|
|
743
|
+
* Comma-separated order IDs to filter by. When provided, only executions belonging
|
|
744
|
+
* to an order in this set are returned.
|
|
745
|
+
*/
|
|
746
|
+
order_ids?: Array<string>;
|
|
747
|
+
|
|
713
748
|
/**
|
|
714
749
|
* The number of items to return per page. Only used when page_token is not
|
|
715
750
|
* provided.
|
|
@@ -726,6 +761,13 @@ export interface OrderGetExecutionsParams {
|
|
|
726
761
|
* The end date and time for the query range, inclusive (ISO 8601 format)
|
|
727
762
|
*/
|
|
728
763
|
to?: string;
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* Comma-separated instrument IDs (UUID) or symbols (equity tickers or OSI option
|
|
767
|
+
* symbols). Matches option fills whose resolved underlier is any of the given
|
|
768
|
+
* instruments.
|
|
769
|
+
*/
|
|
770
|
+
underlying_instrument_ids?: Array<string>;
|
|
729
771
|
}
|
|
730
772
|
|
|
731
773
|
export interface OrderGetOrderByIDParams {
|
|
@@ -753,8 +795,9 @@ export interface OrderGetOrdersParams {
|
|
|
753
795
|
instrument_type?: 'COMMON_STOCK' | 'INDEX' | 'OPTION' | 'CASH';
|
|
754
796
|
|
|
755
797
|
/**
|
|
756
|
-
* Comma-separated
|
|
757
|
-
*
|
|
798
|
+
* Comma-separated list of order identifiers. Each value may be an order's `id` or
|
|
799
|
+
* its `client_order_id`; only orders matching one of the given identifiers are
|
|
800
|
+
* returned.
|
|
758
801
|
*/
|
|
759
802
|
order_ids?: Array<string>;
|
|
760
803
|
|
|
@@ -815,6 +858,11 @@ export interface OrderReplaceOrderParams {
|
|
|
815
858
|
*/
|
|
816
859
|
account_id: number;
|
|
817
860
|
|
|
861
|
+
/**
|
|
862
|
+
* Body param: New limit offset for trailing stop-limit orders (signed)
|
|
863
|
+
*/
|
|
864
|
+
limit_offset?: string | null;
|
|
865
|
+
|
|
818
866
|
/**
|
|
819
867
|
* Body param: New limit price for the order
|
|
820
868
|
*/
|
|
@@ -829,6 +877,16 @@ export interface OrderReplaceOrderParams {
|
|
|
829
877
|
* Body param: New stop price for the order
|
|
830
878
|
*/
|
|
831
879
|
stop_price?: string | null;
|
|
880
|
+
|
|
881
|
+
/**
|
|
882
|
+
* Body param: New trailing offset for trailing orders
|
|
883
|
+
*/
|
|
884
|
+
trailing_offset?: string | null;
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* Body param: New trailing offset type (PRICE or BPS)
|
|
888
|
+
*/
|
|
889
|
+
trailing_offset_type?: TrailingOffsetType | null;
|
|
832
890
|
}
|
|
833
891
|
|
|
834
892
|
export interface OrderSubmitOrdersParams {
|
package/src/resources/v1/v1.ts
CHANGED
|
@@ -67,6 +67,7 @@ import {
|
|
|
67
67
|
InstrumentSearchInstrumentsResponse,
|
|
68
68
|
Instruments,
|
|
69
69
|
ListingType,
|
|
70
|
+
OptionExpiryDate,
|
|
70
71
|
OptionsContract,
|
|
71
72
|
OptionsContractList,
|
|
72
73
|
} from './instruments';
|
|
@@ -212,6 +213,7 @@ import {
|
|
|
212
213
|
InstrumentFundamentals,
|
|
213
214
|
InstrumentIncomeStatement,
|
|
214
215
|
InstrumentIncomeStatementList,
|
|
216
|
+
InstrumentIpoEvent,
|
|
215
217
|
InstrumentSplitEvent,
|
|
216
218
|
PriceTarget,
|
|
217
219
|
ReportTime,
|
|
@@ -357,6 +359,7 @@ export declare namespace V1 {
|
|
|
357
359
|
type InstrumentFundamentals as InstrumentFundamentals,
|
|
358
360
|
type InstrumentIncomeStatement as InstrumentIncomeStatement,
|
|
359
361
|
type InstrumentIncomeStatementList as InstrumentIncomeStatementList,
|
|
362
|
+
type InstrumentIpoEvent as InstrumentIpoEvent,
|
|
360
363
|
type InstrumentSplitEvent as InstrumentSplitEvent,
|
|
361
364
|
type PriceTarget as PriceTarget,
|
|
362
365
|
type ReportTime as ReportTime,
|
|
@@ -383,6 +386,7 @@ export declare namespace V1 {
|
|
|
383
386
|
type InstrumentCore as InstrumentCore,
|
|
384
387
|
type InstrumentCoreList as InstrumentCoreList,
|
|
385
388
|
type ListingType as ListingType,
|
|
389
|
+
type OptionExpiryDate as OptionExpiryDate,
|
|
386
390
|
type OptionsContract as OptionsContract,
|
|
387
391
|
type OptionsContractList as OptionsContractList,
|
|
388
392
|
type InstrumentGetInstrumentByIDResponse as InstrumentGetInstrumentByIDResponse,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.94.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.94.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.94.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.94.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|