@clear-street/clearstreet 0.104.0 → 0.106.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 +19 -0
- package/package.json +1 -1
- package/resources/v1/accounts.d.mts +15 -3
- package/resources/v1/accounts.d.mts.map +1 -1
- package/resources/v1/accounts.d.ts +15 -3
- package/resources/v1/accounts.d.ts.map +1 -1
- package/resources/v1/calendar.d.mts +10 -3
- package/resources/v1/calendar.d.mts.map +1 -1
- package/resources/v1/calendar.d.ts +10 -3
- package/resources/v1/calendar.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 +127 -1
- package/resources/v1/instrument-data/instrument-data.d.mts.map +1 -1
- package/resources/v1/instrument-data/instrument-data.d.ts +127 -1
- package/resources/v1/instrument-data/instrument-data.d.ts.map +1 -1
- package/resources/v1/instrument-data/instrument-data.js +28 -0
- package/resources/v1/instrument-data/instrument-data.js.map +1 -1
- package/resources/v1/instrument-data/instrument-data.mjs +28 -0
- package/resources/v1/instrument-data/instrument-data.mjs.map +1 -1
- package/resources/v1/instruments.d.mts +50 -5
- package/resources/v1/instruments.d.mts.map +1 -1
- package/resources/v1/instruments.d.ts +50 -5
- package/resources/v1/instruments.d.ts.map +1 -1
- package/resources/v1/instruments.js +2 -2
- package/resources/v1/instruments.mjs +2 -2
- package/resources/v1/omni-ai/omni-ai.d.mts +2 -1
- package/resources/v1/omni-ai/omni-ai.d.mts.map +1 -1
- package/resources/v1/omni-ai/omni-ai.d.ts +2 -1
- 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 +2 -1
- package/resources/v1/orders.d.mts.map +1 -1
- package/resources/v1/orders.d.ts +2 -1
- package/resources/v1/orders.d.ts.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 +18 -3
- package/src/resources/v1/calendar.ts +11 -3
- package/src/resources/v1/index.ts +7 -0
- package/src/resources/v1/instrument-data/index.ts +5 -0
- package/src/resources/v1/instrument-data/instrument-data.ts +160 -0
- package/src/resources/v1/instruments.ts +58 -4
- package/src/resources/v1/omni-ai/omni-ai.ts +2 -1
- package/src/resources/v1/orders.ts +2 -1
- package/src/resources/v1/v1.ts +14 -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
|
@@ -147,6 +147,39 @@ export class InstrumentData extends APIResource {
|
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
+
/**
|
|
151
|
+
* Retrieves earnings call transcripts for a specific instrument, newest fiscal
|
|
152
|
+
* period first.
|
|
153
|
+
*
|
|
154
|
+
* Defaults: `page_size` is 1 and is capped at 5, because each transcript is large.
|
|
155
|
+
* Send `event_date` with the `date` of an earnings event from the events endpoints
|
|
156
|
+
* to fetch that event's transcript. The `date.gt`, `date.gte`, `date.lt`, and
|
|
157
|
+
* `date.lte` filters compare the call date itself. An instrument without
|
|
158
|
+
* transcripts returns an empty list.
|
|
159
|
+
*
|
|
160
|
+
* Pagination metadata does not include `total_items` or `total_pages` for this
|
|
161
|
+
* endpoint. Use `next_page_token` to detect whether more results exist. The token
|
|
162
|
+
* does not carry filters: send the same filters with every page request.
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* ```ts
|
|
166
|
+
* const response =
|
|
167
|
+
* await client.v1.instrumentData.getInstrumentEarningsTranscripts(
|
|
168
|
+
* 'x',
|
|
169
|
+
* );
|
|
170
|
+
* ```
|
|
171
|
+
*/
|
|
172
|
+
getInstrumentEarningsTranscripts(
|
|
173
|
+
instrumentID: string,
|
|
174
|
+
query: InstrumentDataGetInstrumentEarningsTranscriptsParams | null | undefined = {},
|
|
175
|
+
options?: RequestOptions,
|
|
176
|
+
): APIPromise<InstrumentDataGetInstrumentEarningsTranscriptsResponse> {
|
|
177
|
+
return this._client.get(path`/v1/instruments/${instrumentID}/earnings-transcripts`, {
|
|
178
|
+
query,
|
|
179
|
+
...options,
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
|
|
150
183
|
/**
|
|
151
184
|
* Retrieves corporate events (earnings, dividends, splits, IPO) for an instrument,
|
|
152
185
|
* grouped by event type. Filter to specific types via `event_types`.
|
|
@@ -262,6 +295,11 @@ export type AnalystRating = 'STRONG_BUY' | 'BUY' | 'HOLD' | 'SELL' | 'STRONG_SEL
|
|
|
262
295
|
*/
|
|
263
296
|
export type FiscalPeriodType = 'QUARTERLY' | 'ANNUAL' | 'TTM' | 'BIANNUAL';
|
|
264
297
|
|
|
298
|
+
/**
|
|
299
|
+
* Fiscal quarter of a reporting period
|
|
300
|
+
*/
|
|
301
|
+
export type FiscalQuarter = 'Q1' | 'Q2' | 'Q3' | 'Q4';
|
|
302
|
+
|
|
265
303
|
/**
|
|
266
304
|
* All-events payload grouped by date.
|
|
267
305
|
*/
|
|
@@ -892,6 +930,13 @@ export interface InstrumentEarnings {
|
|
|
892
930
|
*/
|
|
893
931
|
date: string;
|
|
894
932
|
|
|
933
|
+
/**
|
|
934
|
+
* True when an earnings call transcript exists for this event. Fetch it with
|
|
935
|
+
* `GET /v1/instruments/{instrument_id}/earnings-transcripts?event_date=<date>`,
|
|
936
|
+
* where `<date>` is this event's `date`.
|
|
937
|
+
*/
|
|
938
|
+
transcript_available: boolean;
|
|
939
|
+
|
|
895
940
|
/**
|
|
896
941
|
* The actual earnings per share (EPS) for the period When a null/undefined value
|
|
897
942
|
* is observed, it indicates that there is no available data.
|
|
@@ -935,6 +980,38 @@ export interface InstrumentEarnings {
|
|
|
935
980
|
revenue_surprise_percent?: string | null;
|
|
936
981
|
}
|
|
937
982
|
|
|
983
|
+
/**
|
|
984
|
+
* An earnings call transcript for one fiscal quarter.
|
|
985
|
+
*/
|
|
986
|
+
export interface InstrumentEarningsTranscript {
|
|
987
|
+
/**
|
|
988
|
+
* The full text of the transcript
|
|
989
|
+
*/
|
|
990
|
+
content: string;
|
|
991
|
+
|
|
992
|
+
/**
|
|
993
|
+
* The date of the earnings call
|
|
994
|
+
*/
|
|
995
|
+
date: string;
|
|
996
|
+
|
|
997
|
+
/**
|
|
998
|
+
* The fiscal quarter of the call
|
|
999
|
+
*/
|
|
1000
|
+
period: FiscalQuarter;
|
|
1001
|
+
|
|
1002
|
+
/**
|
|
1003
|
+
* The type of fiscal period. Always `QUARTERLY`.
|
|
1004
|
+
*/
|
|
1005
|
+
period_type: FiscalPeriodType;
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
* The fiscal year of the call
|
|
1009
|
+
*/
|
|
1010
|
+
year: number;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
export type InstrumentEarningsTranscriptList = Array<InstrumentEarningsTranscript>;
|
|
1014
|
+
|
|
938
1015
|
/**
|
|
939
1016
|
* Unified envelope for the all-events response.
|
|
940
1017
|
*/
|
|
@@ -1527,6 +1604,10 @@ export interface InstrumentDataGetInstrumentCashFlowStatementsResponse extends S
|
|
|
1527
1604
|
data: InstrumentCashFlowStatementList;
|
|
1528
1605
|
}
|
|
1529
1606
|
|
|
1607
|
+
export interface InstrumentDataGetInstrumentEarningsTranscriptsResponse extends Shared.BaseResponse {
|
|
1608
|
+
data: InstrumentEarningsTranscriptList;
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1530
1611
|
export interface InstrumentDataGetInstrumentEventsResponse extends Shared.BaseResponse {
|
|
1531
1612
|
/**
|
|
1532
1613
|
* Grouped instrument events by type
|
|
@@ -1642,6 +1723,80 @@ export interface InstrumentDataGetInstrumentCashFlowStatementsParams {
|
|
|
1642
1723
|
to_date?: string;
|
|
1643
1724
|
}
|
|
1644
1725
|
|
|
1726
|
+
export interface InstrumentDataGetInstrumentEarningsTranscriptsParams {
|
|
1727
|
+
date?: InstrumentDataGetInstrumentEarningsTranscriptsParams.Date;
|
|
1728
|
+
|
|
1729
|
+
/**
|
|
1730
|
+
* Return only transcripts whose call date is within one day of this earnings event
|
|
1731
|
+
* date (`YYYY-MM-DD`). Use an event's `date` to fetch that event's transcript.
|
|
1732
|
+
*/
|
|
1733
|
+
event_date?: string;
|
|
1734
|
+
|
|
1735
|
+
/**
|
|
1736
|
+
* The number of items to return per page. Only used when page_token is not
|
|
1737
|
+
* provided.
|
|
1738
|
+
*/
|
|
1739
|
+
page_size?: number;
|
|
1740
|
+
|
|
1741
|
+
/**
|
|
1742
|
+
* Token for retrieving the next or previous page of results. Contains encoded
|
|
1743
|
+
* pagination state; when provided, page_size is ignored.
|
|
1744
|
+
*/
|
|
1745
|
+
page_token?: string;
|
|
1746
|
+
|
|
1747
|
+
/**
|
|
1748
|
+
* Only return the transcript for this fiscal quarter.
|
|
1749
|
+
*/
|
|
1750
|
+
period?: 'Q1' | 'Q2' | 'Q3' | 'Q4';
|
|
1751
|
+
|
|
1752
|
+
/**
|
|
1753
|
+
* Only return the transcript for this fiscal year.
|
|
1754
|
+
*/
|
|
1755
|
+
year?: number;
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
export namespace InstrumentDataGetInstrumentEarningsTranscriptsParams {
|
|
1759
|
+
export interface Date {
|
|
1760
|
+
/**
|
|
1761
|
+
* Return only rows where `date` is strictly after the given value. A bare
|
|
1762
|
+
* `YYYY-MM-DD` date expands to the end of that day (UTC), so this matches from the
|
|
1763
|
+
* start of the following day. See
|
|
1764
|
+
* [Range filters](https://docs.clearstreet.com/guides/api-fundamentals#range-filters)
|
|
1765
|
+
* for accepted formats, bare-date expansion, and combining bounds. Returns 400 if
|
|
1766
|
+
* the resulting range is inverted.
|
|
1767
|
+
*/
|
|
1768
|
+
gt?: string;
|
|
1769
|
+
|
|
1770
|
+
/**
|
|
1771
|
+
* Return only rows where `date` is on or after the given value. A bare
|
|
1772
|
+
* `YYYY-MM-DD` date expands to the start of that day (UTC). See
|
|
1773
|
+
* [Range filters](https://docs.clearstreet.com/guides/api-fundamentals#range-filters)
|
|
1774
|
+
* for accepted formats, bare-date expansion, and combining bounds. Returns 400 if
|
|
1775
|
+
* the resulting range is inverted.
|
|
1776
|
+
*/
|
|
1777
|
+
gte?: string;
|
|
1778
|
+
|
|
1779
|
+
/**
|
|
1780
|
+
* Return only rows where `date` is strictly before the given value. A bare
|
|
1781
|
+
* `YYYY-MM-DD` date expands to the start of that day (UTC). See
|
|
1782
|
+
* [Range filters](https://docs.clearstreet.com/guides/api-fundamentals#range-filters)
|
|
1783
|
+
* for accepted formats, bare-date expansion, and combining bounds. Returns 400 if
|
|
1784
|
+
* the resulting range is inverted.
|
|
1785
|
+
*/
|
|
1786
|
+
lt?: string;
|
|
1787
|
+
|
|
1788
|
+
/**
|
|
1789
|
+
* Return only rows where `date` is on or before the given value. A bare
|
|
1790
|
+
* `YYYY-MM-DD` date expands to the end of that day (UTC), so this matches through
|
|
1791
|
+
* the end of that day. See
|
|
1792
|
+
* [Range filters](https://docs.clearstreet.com/guides/api-fundamentals#range-filters)
|
|
1793
|
+
* for accepted formats, bare-date expansion, and combining bounds. Returns 400 if
|
|
1794
|
+
* the resulting range is inverted.
|
|
1795
|
+
*/
|
|
1796
|
+
lte?: string;
|
|
1797
|
+
}
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1645
1800
|
export interface InstrumentDataGetInstrumentEventsParams {
|
|
1646
1801
|
/**
|
|
1647
1802
|
* Filter by event type(s). Comma-delimited list. Example:
|
|
@@ -1693,6 +1848,7 @@ export declare namespace InstrumentData {
|
|
|
1693
1848
|
type AnalystDistribution as AnalystDistribution,
|
|
1694
1849
|
type AnalystRating as AnalystRating,
|
|
1695
1850
|
type FiscalPeriodType as FiscalPeriodType,
|
|
1851
|
+
type FiscalQuarter as FiscalQuarter,
|
|
1696
1852
|
type InstrumentAllEventsData as InstrumentAllEventsData,
|
|
1697
1853
|
type InstrumentAnalystConsensus as InstrumentAnalystConsensus,
|
|
1698
1854
|
type InstrumentBalanceSheetStatement as InstrumentBalanceSheetStatement,
|
|
@@ -1701,6 +1857,8 @@ export declare namespace InstrumentData {
|
|
|
1701
1857
|
type InstrumentCashFlowStatementList as InstrumentCashFlowStatementList,
|
|
1702
1858
|
type InstrumentDividendEvent as InstrumentDividendEvent,
|
|
1703
1859
|
type InstrumentEarnings as InstrumentEarnings,
|
|
1860
|
+
type InstrumentEarningsTranscript as InstrumentEarningsTranscript,
|
|
1861
|
+
type InstrumentEarningsTranscriptList as InstrumentEarningsTranscriptList,
|
|
1704
1862
|
type InstrumentEventEnvelope as InstrumentEventEnvelope,
|
|
1705
1863
|
type InstrumentEventIpoItem as InstrumentEventIpoItem,
|
|
1706
1864
|
type InstrumentEventsByDate as InstrumentEventsByDate,
|
|
@@ -1716,6 +1874,7 @@ export declare namespace InstrumentData {
|
|
|
1716
1874
|
type InstrumentDataGetInstrumentAnalystConsensusResponse as InstrumentDataGetInstrumentAnalystConsensusResponse,
|
|
1717
1875
|
type InstrumentDataGetInstrumentBalanceSheetStatementsResponse as InstrumentDataGetInstrumentBalanceSheetStatementsResponse,
|
|
1718
1876
|
type InstrumentDataGetInstrumentCashFlowStatementsResponse as InstrumentDataGetInstrumentCashFlowStatementsResponse,
|
|
1877
|
+
type InstrumentDataGetInstrumentEarningsTranscriptsResponse as InstrumentDataGetInstrumentEarningsTranscriptsResponse,
|
|
1719
1878
|
type InstrumentDataGetInstrumentEventsResponse as InstrumentDataGetInstrumentEventsResponse,
|
|
1720
1879
|
type InstrumentDataGetInstrumentFundamentalsResponse as InstrumentDataGetInstrumentFundamentalsResponse,
|
|
1721
1880
|
type InstrumentDataGetInstrumentIncomeStatementsResponse as InstrumentDataGetInstrumentIncomeStatementsResponse,
|
|
@@ -1723,6 +1882,7 @@ export declare namespace InstrumentData {
|
|
|
1723
1882
|
type InstrumentDataGetInstrumentAnalystConsensusParams as InstrumentDataGetInstrumentAnalystConsensusParams,
|
|
1724
1883
|
type InstrumentDataGetInstrumentBalanceSheetStatementsParams as InstrumentDataGetInstrumentBalanceSheetStatementsParams,
|
|
1725
1884
|
type InstrumentDataGetInstrumentCashFlowStatementsParams as InstrumentDataGetInstrumentCashFlowStatementsParams,
|
|
1885
|
+
type InstrumentDataGetInstrumentEarningsTranscriptsParams as InstrumentDataGetInstrumentEarningsTranscriptsParams,
|
|
1726
1886
|
type InstrumentDataGetInstrumentEventsParams as InstrumentDataGetInstrumentEventsParams,
|
|
1727
1887
|
type InstrumentDataGetInstrumentIncomeStatementsParams as InstrumentDataGetInstrumentIncomeStatementsParams,
|
|
1728
1888
|
};
|
|
@@ -49,8 +49,8 @@ export class Instruments extends APIResource {
|
|
|
49
49
|
* List options contracts.
|
|
50
50
|
*
|
|
51
51
|
* Returns options contracts with options-specific metadata. Exactly one identifier
|
|
52
|
-
* must be provided: `
|
|
53
|
-
*
|
|
52
|
+
* must be provided: `root`/`underlying_instrument_id` (list all contracts for that
|
|
53
|
+
* underlier) or `contract_ids` (look up specific contracts directly).
|
|
54
54
|
* `expiry`/`contract_type` apply as filters in either case.
|
|
55
55
|
*
|
|
56
56
|
* @example
|
|
@@ -205,6 +205,14 @@ export interface Instrument {
|
|
|
205
205
|
*/
|
|
206
206
|
name?: string | null;
|
|
207
207
|
|
|
208
|
+
/**
|
|
209
|
+
* Why the instrument is `NOT_SHORTABLE`: every reason that applies, using the same
|
|
210
|
+
* codes as the `type` of the equivalent order-preview errors. Omitted unless
|
|
211
|
+
* `shortable_attribute` is `NOT_SHORTABLE`. When a null/undefined value is
|
|
212
|
+
* observed, it indicates it does not apply.
|
|
213
|
+
*/
|
|
214
|
+
not_shortable_reasons?: Array<NotShortableReason> | null;
|
|
215
|
+
|
|
208
216
|
/**
|
|
209
217
|
* Notional average daily volume (ADV multiplied by the cax-adjusted close when
|
|
210
218
|
* present, the raw previous close otherwise). When a null/undefined value is
|
|
@@ -242,6 +250,16 @@ export interface Instrument {
|
|
|
242
250
|
*/
|
|
243
251
|
short_margin_rate?: string | null;
|
|
244
252
|
|
|
253
|
+
/**
|
|
254
|
+
* How readily the instrument can be shorted: `EASY_TO_BORROW`, `HARD_TO_BORROW`,
|
|
255
|
+
* or `NOT_SHORTABLE`. Easy-to-borrow instruments can be shorted without a locate.
|
|
256
|
+
* A hard-to-borrow instrument is not easy to borrow but has locate inventory
|
|
257
|
+
* remaining and supports short selling; anything else is not shortable. Omitted
|
|
258
|
+
* for instruments that are not tradable equities. When a null/undefined value is
|
|
259
|
+
* observed, it indicates it does not apply.
|
|
260
|
+
*/
|
|
261
|
+
shortable_attribute?: ShortableAttribute | null;
|
|
262
|
+
|
|
245
263
|
/**
|
|
246
264
|
* Price bands this instrument quotes on, ascending. Absent when we have no
|
|
247
265
|
* schedule for it, which includes an option whose penny-program status our
|
|
@@ -350,6 +368,14 @@ export interface InstrumentCore {
|
|
|
350
368
|
*/
|
|
351
369
|
name?: string | null;
|
|
352
370
|
|
|
371
|
+
/**
|
|
372
|
+
* Why the instrument is `NOT_SHORTABLE`: every reason that applies, using the same
|
|
373
|
+
* codes as the `type` of the equivalent order-preview errors. Omitted unless
|
|
374
|
+
* `shortable_attribute` is `NOT_SHORTABLE`. When a null/undefined value is
|
|
375
|
+
* observed, it indicates it does not apply.
|
|
376
|
+
*/
|
|
377
|
+
not_shortable_reasons?: Array<NotShortableReason> | null;
|
|
378
|
+
|
|
353
379
|
/**
|
|
354
380
|
* Notional average daily volume (ADV multiplied by the cax-adjusted close when
|
|
355
381
|
* present, the raw previous close otherwise). When a null/undefined value is
|
|
@@ -369,6 +395,16 @@ export interface InstrumentCore {
|
|
|
369
395
|
*/
|
|
370
396
|
short_margin_rate?: string | null;
|
|
371
397
|
|
|
398
|
+
/**
|
|
399
|
+
* How readily the instrument can be shorted: `EASY_TO_BORROW`, `HARD_TO_BORROW`,
|
|
400
|
+
* or `NOT_SHORTABLE`. Easy-to-borrow instruments can be shorted without a locate.
|
|
401
|
+
* A hard-to-borrow instrument is not easy to borrow but has locate inventory
|
|
402
|
+
* remaining and supports short selling; anything else is not shortable. Omitted
|
|
403
|
+
* for instruments that are not tradable equities. When a null/undefined value is
|
|
404
|
+
* observed, it indicates it does not apply.
|
|
405
|
+
*/
|
|
406
|
+
shortable_attribute?: ShortableAttribute | null;
|
|
407
|
+
|
|
372
408
|
/**
|
|
373
409
|
* Price bands this instrument quotes on, ascending. Absent when we have no
|
|
374
410
|
* schedule for it, which includes an option whose penny-program status our
|
|
@@ -384,6 +420,11 @@ export type InstrumentCoreList = Array<InstrumentCore>;
|
|
|
384
420
|
*/
|
|
385
421
|
export type ListingType = 'STANDARD' | 'FLEX' | 'OTC';
|
|
386
422
|
|
|
423
|
+
/**
|
|
424
|
+
* Why an instrument cannot be shorted.
|
|
425
|
+
*/
|
|
426
|
+
export type NotShortableReason = 'INSUFFICIENT_LOCATE_INVENTORY' | 'UNSUPPORTED_SECURITY';
|
|
427
|
+
|
|
387
428
|
/**
|
|
388
429
|
* An options expiry date, annotated with which settlement cycles have listed
|
|
389
430
|
* contracts on it.
|
|
@@ -512,6 +553,11 @@ export interface OptionsContract {
|
|
|
512
553
|
|
|
513
554
|
export type OptionsContractList = Array<OptionsContract>;
|
|
514
555
|
|
|
556
|
+
/**
|
|
557
|
+
* How readily a tradable equity can be shorted.
|
|
558
|
+
*/
|
|
559
|
+
export type ShortableAttribute = 'EASY_TO_BORROW' | 'HARD_TO_BORROW' | 'NOT_SHORTABLE';
|
|
560
|
+
|
|
515
561
|
/**
|
|
516
562
|
* One band of an instrument's tick schedule. A price in the band is valid only if
|
|
517
563
|
* it is a whole multiple of `tick_size`. Bands describe the instrument itself: on
|
|
@@ -621,7 +667,7 @@ export interface InstrumentGetOptionContractsParams {
|
|
|
621
667
|
/**
|
|
622
668
|
* Comma-separated contract instrument IDs (UUID) or OSI option symbols to look up
|
|
623
669
|
* directly, bypassing underlier expansion. Mutually exclusive with
|
|
624
|
-
*
|
|
670
|
+
* root/underlying_instrument_id; up to 100 values.
|
|
625
671
|
*/
|
|
626
672
|
contract_ids?: Array<OrdersAPI.InstrumentIDOrSymbol>;
|
|
627
673
|
|
|
@@ -654,7 +700,13 @@ export interface InstrumentGetOptionContractsParams {
|
|
|
654
700
|
page_token?: string;
|
|
655
701
|
|
|
656
702
|
/**
|
|
657
|
-
*
|
|
703
|
+
* OSI option root symbol (e.g., AAPL, SPXW). Index roots also include their weekly
|
|
704
|
+
* series (e.g., SPX includes SPXW).
|
|
705
|
+
*/
|
|
706
|
+
root?: string;
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* Deprecated: use `root`. If both are sent, the values must match.
|
|
658
710
|
*/
|
|
659
711
|
underlier?: string;
|
|
660
712
|
|
|
@@ -720,9 +772,11 @@ export declare namespace Instruments {
|
|
|
720
772
|
type InstrumentCore as InstrumentCore,
|
|
721
773
|
type InstrumentCoreList as InstrumentCoreList,
|
|
722
774
|
type ListingType as ListingType,
|
|
775
|
+
type NotShortableReason as NotShortableReason,
|
|
723
776
|
type OptionExpiryDate as OptionExpiryDate,
|
|
724
777
|
type OptionsContract as OptionsContract,
|
|
725
778
|
type OptionsContractList as OptionsContractList,
|
|
779
|
+
type ShortableAttribute as ShortableAttribute,
|
|
726
780
|
type TickRule as TickRule,
|
|
727
781
|
type InstrumentGetInstrumentByIDResponse as InstrumentGetInstrumentByIDResponse,
|
|
728
782
|
type InstrumentGetInstrumentsResponse as InstrumentGetInstrumentsResponse,
|
|
@@ -542,7 +542,8 @@ export interface PrefillNewOrderRequest {
|
|
|
542
542
|
* Optional execution strategy. One of `SOR`, `VWAP`, `TWAP`, or `DMA`. Defaults to
|
|
543
543
|
* `SOR`, the only strategy OTC common-stock orders support. `VWAP` and `TWAP` are
|
|
544
544
|
* supported only on `MARKET` and `LIMIT` orders, and `DMA` only on `LIMIT` orders;
|
|
545
|
-
* all three require `DAY` time-in-force.
|
|
545
|
+
* all three require `DAY` time-in-force. `VWAP`, `TWAP`, and `DMA` do not support
|
|
546
|
+
* `extended_hours`.
|
|
546
547
|
*/
|
|
547
548
|
strategy?: OrdersAPI.OrderStrategy | null;
|
|
548
549
|
|
|
@@ -312,7 +312,8 @@ export interface NewOrderRequest {
|
|
|
312
312
|
* Optional execution strategy. One of `SOR`, `VWAP`, `TWAP`, or `DMA`. Defaults to
|
|
313
313
|
* `SOR`, the only strategy OTC common-stock orders support. `VWAP` and `TWAP` are
|
|
314
314
|
* supported only on `MARKET` and `LIMIT` orders, and `DMA` only on `LIMIT` orders;
|
|
315
|
-
* all three require `DAY` time-in-force.
|
|
315
|
+
* all three require `DAY` time-in-force. `VWAP`, `TWAP`, and `DMA` do not support
|
|
316
|
+
* `extended_hours`.
|
|
316
317
|
*/
|
|
317
318
|
strategy?: OrderStrategy | null;
|
|
318
319
|
|
package/src/resources/v1/v1.ts
CHANGED
|
@@ -74,9 +74,11 @@ import {
|
|
|
74
74
|
InstrumentSearchInstrumentsResponse,
|
|
75
75
|
Instruments,
|
|
76
76
|
ListingType,
|
|
77
|
+
NotShortableReason,
|
|
77
78
|
OptionExpiryDate,
|
|
78
79
|
OptionsContract,
|
|
79
80
|
OptionsContractList,
|
|
81
|
+
ShortableAttribute,
|
|
80
82
|
TickRule,
|
|
81
83
|
} from './instruments';
|
|
82
84
|
import * as LocatesAPI from './locates';
|
|
@@ -235,6 +237,7 @@ import {
|
|
|
235
237
|
AnalystDistribution,
|
|
236
238
|
AnalystRating,
|
|
237
239
|
FiscalPeriodType,
|
|
240
|
+
FiscalQuarter,
|
|
238
241
|
InstrumentAllEventsData,
|
|
239
242
|
InstrumentAnalystConsensus,
|
|
240
243
|
InstrumentBalanceSheetStatement,
|
|
@@ -250,6 +253,8 @@ import {
|
|
|
250
253
|
InstrumentDataGetInstrumentBalanceSheetStatementsResponse,
|
|
251
254
|
InstrumentDataGetInstrumentCashFlowStatementsParams,
|
|
252
255
|
InstrumentDataGetInstrumentCashFlowStatementsResponse,
|
|
256
|
+
InstrumentDataGetInstrumentEarningsTranscriptsParams,
|
|
257
|
+
InstrumentDataGetInstrumentEarningsTranscriptsResponse,
|
|
253
258
|
InstrumentDataGetInstrumentEventsParams,
|
|
254
259
|
InstrumentDataGetInstrumentEventsResponse,
|
|
255
260
|
InstrumentDataGetInstrumentFundamentalsResponse,
|
|
@@ -257,6 +262,8 @@ import {
|
|
|
257
262
|
InstrumentDataGetInstrumentIncomeStatementsResponse,
|
|
258
263
|
InstrumentDividendEvent,
|
|
259
264
|
InstrumentEarnings,
|
|
265
|
+
InstrumentEarningsTranscript,
|
|
266
|
+
InstrumentEarningsTranscriptList,
|
|
260
267
|
InstrumentEventEnvelope,
|
|
261
268
|
InstrumentEventIpoItem,
|
|
262
269
|
InstrumentEventsByDate,
|
|
@@ -443,6 +450,7 @@ export declare namespace V1 {
|
|
|
443
450
|
type AnalystDistribution as AnalystDistribution,
|
|
444
451
|
type AnalystRating as AnalystRating,
|
|
445
452
|
type FiscalPeriodType as FiscalPeriodType,
|
|
453
|
+
type FiscalQuarter as FiscalQuarter,
|
|
446
454
|
type InstrumentAllEventsData as InstrumentAllEventsData,
|
|
447
455
|
type InstrumentAnalystConsensus as InstrumentAnalystConsensus,
|
|
448
456
|
type InstrumentBalanceSheetStatement as InstrumentBalanceSheetStatement,
|
|
@@ -451,6 +459,8 @@ export declare namespace V1 {
|
|
|
451
459
|
type InstrumentCashFlowStatementList as InstrumentCashFlowStatementList,
|
|
452
460
|
type InstrumentDividendEvent as InstrumentDividendEvent,
|
|
453
461
|
type InstrumentEarnings as InstrumentEarnings,
|
|
462
|
+
type InstrumentEarningsTranscript as InstrumentEarningsTranscript,
|
|
463
|
+
type InstrumentEarningsTranscriptList as InstrumentEarningsTranscriptList,
|
|
454
464
|
type InstrumentEventEnvelope as InstrumentEventEnvelope,
|
|
455
465
|
type InstrumentEventIpoItem as InstrumentEventIpoItem,
|
|
456
466
|
type InstrumentEventsByDate as InstrumentEventsByDate,
|
|
@@ -466,6 +476,7 @@ export declare namespace V1 {
|
|
|
466
476
|
type InstrumentDataGetInstrumentAnalystConsensusResponse as InstrumentDataGetInstrumentAnalystConsensusResponse,
|
|
467
477
|
type InstrumentDataGetInstrumentBalanceSheetStatementsResponse as InstrumentDataGetInstrumentBalanceSheetStatementsResponse,
|
|
468
478
|
type InstrumentDataGetInstrumentCashFlowStatementsResponse as InstrumentDataGetInstrumentCashFlowStatementsResponse,
|
|
479
|
+
type InstrumentDataGetInstrumentEarningsTranscriptsResponse as InstrumentDataGetInstrumentEarningsTranscriptsResponse,
|
|
469
480
|
type InstrumentDataGetInstrumentEventsResponse as InstrumentDataGetInstrumentEventsResponse,
|
|
470
481
|
type InstrumentDataGetInstrumentFundamentalsResponse as InstrumentDataGetInstrumentFundamentalsResponse,
|
|
471
482
|
type InstrumentDataGetInstrumentIncomeStatementsResponse as InstrumentDataGetInstrumentIncomeStatementsResponse,
|
|
@@ -473,6 +484,7 @@ export declare namespace V1 {
|
|
|
473
484
|
type InstrumentDataGetInstrumentAnalystConsensusParams as InstrumentDataGetInstrumentAnalystConsensusParams,
|
|
474
485
|
type InstrumentDataGetInstrumentBalanceSheetStatementsParams as InstrumentDataGetInstrumentBalanceSheetStatementsParams,
|
|
475
486
|
type InstrumentDataGetInstrumentCashFlowStatementsParams as InstrumentDataGetInstrumentCashFlowStatementsParams,
|
|
487
|
+
type InstrumentDataGetInstrumentEarningsTranscriptsParams as InstrumentDataGetInstrumentEarningsTranscriptsParams,
|
|
476
488
|
type InstrumentDataGetInstrumentEventsParams as InstrumentDataGetInstrumentEventsParams,
|
|
477
489
|
type InstrumentDataGetInstrumentIncomeStatementsParams as InstrumentDataGetInstrumentIncomeStatementsParams,
|
|
478
490
|
};
|
|
@@ -485,9 +497,11 @@ export declare namespace V1 {
|
|
|
485
497
|
type InstrumentCore as InstrumentCore,
|
|
486
498
|
type InstrumentCoreList as InstrumentCoreList,
|
|
487
499
|
type ListingType as ListingType,
|
|
500
|
+
type NotShortableReason as NotShortableReason,
|
|
488
501
|
type OptionExpiryDate as OptionExpiryDate,
|
|
489
502
|
type OptionsContract as OptionsContract,
|
|
490
503
|
type OptionsContractList as OptionsContractList,
|
|
504
|
+
type ShortableAttribute as ShortableAttribute,
|
|
491
505
|
type TickRule as TickRule,
|
|
492
506
|
type InstrumentGetInstrumentByIDResponse as InstrumentGetInstrumentByIDResponse,
|
|
493
507
|
type InstrumentGetInstrumentsResponse as InstrumentGetInstrumentsResponse,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.106.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.106.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.106.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.106.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|