@clear-street/clearstreet 0.74.1 → 0.75.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 +9 -0
- package/package.json +1 -1
- package/resources/v1/accounts.d.mts +20 -2
- package/resources/v1/accounts.d.mts.map +1 -1
- package/resources/v1/accounts.d.ts +20 -2
- package/resources/v1/accounts.d.ts.map +1 -1
- package/resources/v1/index.d.mts +1 -1
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +1 -1
- 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/instrument-data.d.mts +3 -4
- package/resources/v1/instrument-data/instrument-data.d.mts.map +1 -1
- package/resources/v1/instrument-data/instrument-data.d.ts +3 -4
- 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 +9 -14
- package/resources/v1/instrument-data/market-data.d.mts.map +1 -1
- package/resources/v1/instrument-data/market-data.d.ts +9 -14
- package/resources/v1/instrument-data/market-data.d.ts.map +1 -1
- package/resources/v1/instrument-data/market-data.js +3 -8
- package/resources/v1/instrument-data/market-data.js.map +1 -1
- package/resources/v1/instrument-data/market-data.mjs +3 -8
- package/resources/v1/instrument-data/market-data.mjs.map +1 -1
- package/resources/v1/instrument-data/news.d.mts +4 -4
- package/resources/v1/instrument-data/news.d.ts +4 -4
- package/resources/v1/instruments.d.mts +13 -19
- package/resources/v1/instruments.d.mts.map +1 -1
- package/resources/v1/instruments.d.ts +13 -19
- package/resources/v1/instruments.d.ts.map +1 -1
- package/resources/v1/instruments.js +3 -5
- package/resources/v1/instruments.js.map +1 -1
- package/resources/v1/instruments.mjs +3 -5
- package/resources/v1/instruments.mjs.map +1 -1
- package/resources/v1/orders.d.mts +12 -12
- package/resources/v1/orders.d.ts +12 -12
- package/resources/v1/positions.d.mts +9 -11
- package/resources/v1/positions.d.mts.map +1 -1
- package/resources/v1/positions.d.ts +9 -11
- package/resources/v1/positions.d.ts.map +1 -1
- package/resources/v1/v1.d.mts +2 -2
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +2 -2
- 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/resources/v1/watchlist.d.mts +1 -1
- package/resources/v1/watchlist.d.ts +1 -1
- package/src/resources/v1/accounts.ts +24 -1
- package/src/resources/v1/index.ts +1 -0
- package/src/resources/v1/instrument-data/instrument-data.ts +3 -4
- package/src/resources/v1/instrument-data/market-data.ts +9 -14
- package/src/resources/v1/instrument-data/news.ts +4 -4
- package/src/resources/v1/instruments.ts +13 -19
- package/src/resources/v1/orders.ts +12 -12
- package/src/resources/v1/positions.ts +9 -11
- package/src/resources/v1/v1.ts +2 -0
- package/src/resources/v1/watchlist.ts +1 -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
|
@@ -32,17 +32,17 @@ export class News extends APIResource {
|
|
|
32
32
|
*/
|
|
33
33
|
export interface NewsInstrument {
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Instrument identifier.
|
|
36
36
|
*/
|
|
37
37
|
instrument_id: string;
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
|
-
* Instrument name/description, if available
|
|
40
|
+
* Instrument name/description, if available.
|
|
41
41
|
*/
|
|
42
42
|
name?: string | null;
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
-
* Trading symbol, if available
|
|
45
|
+
* Trading symbol, if available.
|
|
46
46
|
*/
|
|
47
47
|
symbol?: string | null;
|
|
48
48
|
}
|
|
@@ -127,7 +127,7 @@ export interface NewsGetNewsParams {
|
|
|
127
127
|
include_publishers?: string;
|
|
128
128
|
|
|
129
129
|
/**
|
|
130
|
-
* Comma-delimited
|
|
130
|
+
* Comma-delimited instrument identifiers to filter by.
|
|
131
131
|
*/
|
|
132
132
|
instrument_ids?: Array<string>;
|
|
133
133
|
|
|
@@ -70,11 +70,9 @@ export class Instruments extends APIResource {
|
|
|
70
70
|
* Search instruments by symbol, alternate identifier, or company name.
|
|
71
71
|
*
|
|
72
72
|
* The `q` parameter is case-insensitive and supports ticker symbols, alternate
|
|
73
|
-
* identifiers such as CUSIP, ISIN, OPRA root, and
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
* marginability, easy-to-borrow status, and OTC, restricted, and liquidation-only
|
|
77
|
-
* penalties. Defaults to the `EQUITY` asset class (common stocks, preferred
|
|
73
|
+
* identifiers such as CUSIP, ISIN, and OPRA root, and company names for non-option
|
|
74
|
+
* instruments. Results are ranked by match quality plus instrument quality signals
|
|
75
|
+
* and relevance. Defaults to the `EQUITY` asset class (common stocks, preferred
|
|
78
76
|
* shares, ADRs, ETFs, and exchange-traded mutual funds). Pass `asset_class=OPTION`
|
|
79
77
|
* to search option contracts: by full OSI symbol, by an OSI prefix (root +
|
|
80
78
|
* `YYMMDD` expiry, e.g. `AAPL 261217`), or by a root-scoped phrase such as
|
|
@@ -109,7 +107,7 @@ export type ExerciseStyle = 'AMERICAN' | 'EUROPEAN';
|
|
|
109
107
|
*/
|
|
110
108
|
export interface Instrument {
|
|
111
109
|
/**
|
|
112
|
-
* Unique
|
|
110
|
+
* Unique instrument identifier (UUID)
|
|
113
111
|
*/
|
|
114
112
|
id: string;
|
|
115
113
|
|
|
@@ -200,9 +198,7 @@ export interface Instrument {
|
|
|
200
198
|
name?: string | null;
|
|
201
199
|
|
|
202
200
|
/**
|
|
203
|
-
* Notional
|
|
204
|
-
* `/instruments/search` ranking. Computed at response time so it stays consistent
|
|
205
|
-
* with whatever `adv` and `previous_close` show.
|
|
201
|
+
* Notional average daily volume (ADV multiplied by previous close price).
|
|
206
202
|
*/
|
|
207
203
|
notional_adv?: string | null;
|
|
208
204
|
|
|
@@ -230,7 +226,7 @@ export interface Instrument {
|
|
|
230
226
|
|
|
231
227
|
export interface InstrumentCore {
|
|
232
228
|
/**
|
|
233
|
-
* Unique
|
|
229
|
+
* Unique instrument identifier (UUID)
|
|
234
230
|
*/
|
|
235
231
|
id: string;
|
|
236
232
|
|
|
@@ -321,9 +317,7 @@ export interface InstrumentCore {
|
|
|
321
317
|
name?: string | null;
|
|
322
318
|
|
|
323
319
|
/**
|
|
324
|
-
* Notional
|
|
325
|
-
* `/instruments/search` ranking. Computed at response time so it stays consistent
|
|
326
|
-
* with whatever `adv` and `previous_close` show.
|
|
320
|
+
* Notional average daily volume (ADV multiplied by previous close price).
|
|
327
321
|
*/
|
|
328
322
|
notional_adv?: string | null;
|
|
329
323
|
|
|
@@ -355,7 +349,7 @@ export type ListingType = 'STANDARD' | 'FLEX' | 'OTC';
|
|
|
355
349
|
*/
|
|
356
350
|
export interface OptionsContract {
|
|
357
351
|
/**
|
|
358
|
-
*
|
|
352
|
+
* Instrument identifier
|
|
359
353
|
*/
|
|
360
354
|
id: string;
|
|
361
355
|
|
|
@@ -420,7 +414,7 @@ export interface OptionsContract {
|
|
|
420
414
|
open_interest?: number | null;
|
|
421
415
|
|
|
422
416
|
/**
|
|
423
|
-
*
|
|
417
|
+
* Instrument ID of the underlying instrument, when available
|
|
424
418
|
*/
|
|
425
419
|
underlying_instrument_id?: string | null;
|
|
426
420
|
}
|
|
@@ -460,7 +454,7 @@ export interface InstrumentGetInstrumentsParams {
|
|
|
460
454
|
easy_to_borrow?: boolean;
|
|
461
455
|
|
|
462
456
|
/**
|
|
463
|
-
* Comma-separated
|
|
457
|
+
* Comma-separated instrument identifiers
|
|
464
458
|
*/
|
|
465
459
|
instrument_ids?: Array<string>;
|
|
466
460
|
|
|
@@ -536,7 +530,7 @@ export interface InstrumentGetOptionContractsParams {
|
|
|
536
530
|
underlier?: string;
|
|
537
531
|
|
|
538
532
|
/**
|
|
539
|
-
*
|
|
533
|
+
* Instrument identifier or symbol of the underlying equity/index
|
|
540
534
|
*/
|
|
541
535
|
underlying_instrument_id?: OrdersAPI.InstrumentIDOrSymbol;
|
|
542
536
|
}
|
|
@@ -544,8 +538,8 @@ export interface InstrumentGetOptionContractsParams {
|
|
|
544
538
|
export interface InstrumentSearchInstrumentsParams {
|
|
545
539
|
/**
|
|
546
540
|
* Search term applied case-insensitively to ticker symbols, alternate identifiers
|
|
547
|
-
* (CUSIP, ISIN, OPRA root
|
|
548
|
-
*
|
|
541
|
+
* (CUSIP, ISIN, OPRA root), and company names for non-option instruments. Option
|
|
542
|
+
* searches match symbols and alternate identifiers.
|
|
549
543
|
*/
|
|
550
544
|
q: string;
|
|
551
545
|
|
|
@@ -197,7 +197,7 @@ export interface Execution {
|
|
|
197
197
|
id: string;
|
|
198
198
|
|
|
199
199
|
/**
|
|
200
|
-
*
|
|
200
|
+
* Unique instrument identifier.
|
|
201
201
|
*/
|
|
202
202
|
instrument_id: string;
|
|
203
203
|
|
|
@@ -235,7 +235,7 @@ export interface Execution {
|
|
|
235
235
|
export type ExecutionList = Array<Execution>;
|
|
236
236
|
|
|
237
237
|
/**
|
|
238
|
-
*
|
|
238
|
+
* Instrument identifier
|
|
239
239
|
*/
|
|
240
240
|
export type InstrumentIDOrSymbol = string;
|
|
241
241
|
|
|
@@ -283,7 +283,7 @@ export interface NewOrderRequest {
|
|
|
283
283
|
extended_hours?: boolean | null;
|
|
284
284
|
|
|
285
285
|
/**
|
|
286
|
-
*
|
|
286
|
+
* Instrument identifier
|
|
287
287
|
*/
|
|
288
288
|
instrument_id?: InstrumentIDOrSymbol | null;
|
|
289
289
|
|
|
@@ -344,7 +344,7 @@ export interface Order {
|
|
|
344
344
|
account_id: number;
|
|
345
345
|
|
|
346
346
|
/**
|
|
347
|
-
* Client-provided identifier echoed back
|
|
347
|
+
* Client-provided identifier echoed back.
|
|
348
348
|
*/
|
|
349
349
|
client_order_id: string;
|
|
350
350
|
|
|
@@ -359,7 +359,7 @@ export interface Order {
|
|
|
359
359
|
filled_quantity: string;
|
|
360
360
|
|
|
361
361
|
/**
|
|
362
|
-
*
|
|
362
|
+
* Instrument identifier for the traded instrument.
|
|
363
363
|
*/
|
|
364
364
|
instrument_id: string;
|
|
365
365
|
|
|
@@ -491,9 +491,9 @@ export interface Order {
|
|
|
491
491
|
trailing_watermark_ts?: string | null;
|
|
492
492
|
|
|
493
493
|
/**
|
|
494
|
-
*
|
|
495
|
-
*
|
|
496
|
-
* resolved
|
|
494
|
+
* Instrument ID of the option's underlying instrument. Populated only for options
|
|
495
|
+
* orders; `null` for non-options and for options whose underlier cannot be
|
|
496
|
+
* resolved.
|
|
497
497
|
*/
|
|
498
498
|
underlying_instrument_id?: string | null;
|
|
499
499
|
}
|
|
@@ -645,7 +645,7 @@ export interface OrderSubmitOrdersResponse extends Shared.BaseResponse {
|
|
|
645
645
|
|
|
646
646
|
export interface OrderCancelAllOpenOrdersParams {
|
|
647
647
|
/**
|
|
648
|
-
* Comma-separated
|
|
648
|
+
* Comma-separated instrument identifiers
|
|
649
649
|
*/
|
|
650
650
|
instrument_ids?: Array<string>;
|
|
651
651
|
|
|
@@ -680,7 +680,7 @@ export interface OrderGetExecutionsParams {
|
|
|
680
680
|
|
|
681
681
|
/**
|
|
682
682
|
* Optional instrument to filter by. Accepts either a symbol (e.g. `AAPL`) or an
|
|
683
|
-
*
|
|
683
|
+
* instrument identifier.
|
|
684
684
|
*/
|
|
685
685
|
instrument_id?: InstrumentIDOrSymbol;
|
|
686
686
|
|
|
@@ -716,7 +716,7 @@ export interface OrderGetOrdersParams {
|
|
|
716
716
|
from?: string;
|
|
717
717
|
|
|
718
718
|
/**
|
|
719
|
-
* Comma-separated
|
|
719
|
+
* Comma-separated instrument identifiers
|
|
720
720
|
*/
|
|
721
721
|
instrument_ids?: Array<string>;
|
|
722
722
|
|
|
@@ -769,7 +769,7 @@ export interface OrderGetOrdersParams {
|
|
|
769
769
|
to?: string;
|
|
770
770
|
|
|
771
771
|
/**
|
|
772
|
-
* Comma-separated
|
|
772
|
+
* Comma-separated instrument identifiers. Matches options orders whose resolved
|
|
773
773
|
* underlier is any of the given IDs.
|
|
774
774
|
*/
|
|
775
775
|
underlying_instrument_ids?: Array<string>;
|
|
@@ -179,7 +179,7 @@ export interface Position {
|
|
|
179
179
|
available_quantity: string;
|
|
180
180
|
|
|
181
181
|
/**
|
|
182
|
-
*
|
|
182
|
+
* Unique instrument identifier
|
|
183
183
|
*/
|
|
184
184
|
instrument_id: string;
|
|
185
185
|
|
|
@@ -245,7 +245,7 @@ export interface Position {
|
|
|
245
245
|
instrument_price?: string | null;
|
|
246
246
|
|
|
247
247
|
/**
|
|
248
|
-
*
|
|
248
|
+
* Identifier of the underlying instrument, when available
|
|
249
249
|
*/
|
|
250
250
|
underlying_instrument_id?: string | null;
|
|
251
251
|
|
|
@@ -337,21 +337,19 @@ export type PositionInstructionList = Array<PositionInstruction>;
|
|
|
337
337
|
/**
|
|
338
338
|
* Lifecycle status of a position instruction.
|
|
339
339
|
*
|
|
340
|
-
* - `SENT`: accepted and
|
|
340
|
+
* - `SENT`: accepted and submitted to the clearing venue.
|
|
341
341
|
* - `ACCEPTED`: terminal — accepted by the clearing venue.
|
|
342
342
|
* - `REJECTED`: terminal rejection from the clearing venue; `rejection_reason`
|
|
343
343
|
* carries the venue-reported detail.
|
|
344
|
-
* - `ENGINE_REJECTED`: terminal rejection
|
|
345
|
-
*
|
|
346
|
-
*
|
|
347
|
-
*
|
|
348
|
-
* resolve.
|
|
344
|
+
* - `ENGINE_REJECTED`: terminal rejection from validation; `rejection_reason`
|
|
345
|
+
* carries the detail. Typical causes: duplicate `instruction_id`,
|
|
346
|
+
* `DO_NOT_EXERCISE` / `CONTRARY_EXERCISE` submitted on a non-expiry day,
|
|
347
|
+
* insufficient position, or an invalid instrument.
|
|
349
348
|
* - `CANCEL_REQUESTED`: cancel accepted; final cancel state pending.
|
|
350
349
|
* - `CANCELLED`: terminal — cancel completed.
|
|
351
350
|
* - `CANCEL_FAILED`: cancel could not be completed; operator attention required.
|
|
352
351
|
* `rejection_reason` carries the detail.
|
|
353
|
-
* - `UNKNOWN`: status could not be
|
|
354
|
-
* in practice; surfaces a service version skew.
|
|
352
|
+
* - `UNKNOWN`: status could not be determined.
|
|
355
353
|
*/
|
|
356
354
|
export type PositionInstructionStatus =
|
|
357
355
|
| 'SENT'
|
|
@@ -439,7 +437,7 @@ export interface PositionGetPositionInstructionsParams {
|
|
|
439
437
|
|
|
440
438
|
export interface PositionGetPositionsParams {
|
|
441
439
|
/**
|
|
442
|
-
* Comma-separated
|
|
440
|
+
* Comma-separated instrument identifiers
|
|
443
441
|
*/
|
|
444
442
|
instrument_ids?: Array<string>;
|
|
445
443
|
|
package/src/resources/v1/v1.ts
CHANGED
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
Accounts,
|
|
24
24
|
MarginDetails,
|
|
25
25
|
MarginDetailsUsage,
|
|
26
|
+
MarginSessionDetails,
|
|
26
27
|
MarginTopContributor,
|
|
27
28
|
MarginType,
|
|
28
29
|
PortfolioHistoryResponse,
|
|
@@ -256,6 +257,7 @@ export declare namespace V1 {
|
|
|
256
257
|
type AccountType as AccountType,
|
|
257
258
|
type MarginDetails as MarginDetails,
|
|
258
259
|
type MarginDetailsUsage as MarginDetailsUsage,
|
|
260
|
+
type MarginSessionDetails as MarginSessionDetails,
|
|
259
261
|
type MarginTopContributor as MarginTopContributor,
|
|
260
262
|
type MarginType as MarginType,
|
|
261
263
|
type PortfolioHistoryResponse as PortfolioHistoryResponse,
|
|
@@ -238,7 +238,7 @@ export interface WatchlistGetWatchlistsResponse extends Shared.BaseResponse {
|
|
|
238
238
|
|
|
239
239
|
export interface WatchlistAddWatchlistItemParams {
|
|
240
240
|
/**
|
|
241
|
-
*
|
|
241
|
+
* Instrument identifier
|
|
242
242
|
*/
|
|
243
243
|
instrument_id: OrdersAPI.InstrumentIDOrSymbol;
|
|
244
244
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.75.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.75.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.75.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.75.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|