@clear-street/clearstreet 0.102.0 → 0.103.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.
Files changed (81) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/client.d.mts +1 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +1 -0
  5. package/client.d.ts.map +1 -1
  6. package/package.json +1 -1
  7. package/resources/shared.d.mts +4 -3
  8. package/resources/shared.d.mts.map +1 -1
  9. package/resources/shared.d.ts +4 -3
  10. package/resources/shared.d.ts.map +1 -1
  11. package/resources/v1/index.d.mts +1 -0
  12. package/resources/v1/index.d.mts.map +1 -1
  13. package/resources/v1/index.d.ts +1 -0
  14. package/resources/v1/index.d.ts.map +1 -1
  15. package/resources/v1/index.js +3 -1
  16. package/resources/v1/index.js.map +1 -1
  17. package/resources/v1/index.mjs +1 -0
  18. package/resources/v1/index.mjs.map +1 -1
  19. package/resources/v1/instrument-data/instrument-data.d.mts +22 -4
  20. package/resources/v1/instrument-data/instrument-data.d.mts.map +1 -1
  21. package/resources/v1/instrument-data/instrument-data.d.ts +22 -4
  22. package/resources/v1/instrument-data/instrument-data.d.ts.map +1 -1
  23. package/resources/v1/instrument-data/instrument-data.js.map +1 -1
  24. package/resources/v1/instrument-data/instrument-data.mjs.map +1 -1
  25. package/resources/v1/instrument-data/market-data.d.mts +19 -2
  26. package/resources/v1/instrument-data/market-data.d.mts.map +1 -1
  27. package/resources/v1/instrument-data/market-data.d.ts +19 -2
  28. package/resources/v1/instrument-data/market-data.d.ts.map +1 -1
  29. package/resources/v1/instrument-data/market-data.js +5 -0
  30. package/resources/v1/instrument-data/market-data.js.map +1 -1
  31. package/resources/v1/instrument-data/market-data.mjs +5 -0
  32. package/resources/v1/instrument-data/market-data.mjs.map +1 -1
  33. package/resources/v1/locates.d.mts +98 -0
  34. package/resources/v1/locates.d.mts.map +1 -0
  35. package/resources/v1/locates.d.ts +98 -0
  36. package/resources/v1/locates.d.ts.map +1 -0
  37. package/resources/v1/locates.js +48 -0
  38. package/resources/v1/locates.js.map +1 -0
  39. package/resources/v1/locates.mjs +44 -0
  40. package/resources/v1/locates.mjs.map +1 -0
  41. package/resources/v1/omni-ai/omni-ai.d.mts +4 -3
  42. package/resources/v1/omni-ai/omni-ai.d.mts.map +1 -1
  43. package/resources/v1/omni-ai/omni-ai.d.ts +4 -3
  44. package/resources/v1/omni-ai/omni-ai.d.ts.map +1 -1
  45. package/resources/v1/omni-ai/omni-ai.js.map +1 -1
  46. package/resources/v1/omni-ai/omni-ai.mjs.map +1 -1
  47. package/resources/v1/omni-ai/threads.d.mts +8 -2
  48. package/resources/v1/omni-ai/threads.d.mts.map +1 -1
  49. package/resources/v1/omni-ai/threads.d.ts +8 -2
  50. package/resources/v1/omni-ai/threads.d.ts.map +1 -1
  51. package/resources/v1/omni-ai/threads.js +4 -2
  52. package/resources/v1/omni-ai/threads.js.map +1 -1
  53. package/resources/v1/omni-ai/threads.mjs +4 -2
  54. package/resources/v1/omni-ai/threads.mjs.map +1 -1
  55. package/resources/v1/orders.d.mts +24 -6
  56. package/resources/v1/orders.d.mts.map +1 -1
  57. package/resources/v1/orders.d.ts +24 -6
  58. package/resources/v1/orders.d.ts.map +1 -1
  59. package/resources/v1/v1.d.mts +4 -0
  60. package/resources/v1/v1.d.mts.map +1 -1
  61. package/resources/v1/v1.d.ts +4 -0
  62. package/resources/v1/v1.d.ts.map +1 -1
  63. package/resources/v1/v1.js +4 -0
  64. package/resources/v1/v1.js.map +1 -1
  65. package/resources/v1/v1.mjs +4 -0
  66. package/resources/v1/v1.mjs.map +1 -1
  67. package/src/client.ts +1 -0
  68. package/src/resources/shared.ts +3 -1
  69. package/src/resources/v1/index.ts +9 -0
  70. package/src/resources/v1/instrument-data/instrument-data.ts +24 -4
  71. package/src/resources/v1/instrument-data/market-data.ts +21 -2
  72. package/src/resources/v1/locates.ts +130 -0
  73. package/src/resources/v1/omni-ai/omni-ai.ts +4 -3
  74. package/src/resources/v1/omni-ai/threads.ts +8 -2
  75. package/src/resources/v1/orders.ts +31 -6
  76. package/src/resources/v1/v1.ts +22 -0
  77. package/src/version.ts +1 -1
  78. package/version.d.mts +1 -1
  79. package/version.d.ts +1 -1
  80. package/version.js +1 -1
  81. package/version.mjs +1 -1
@@ -12,6 +12,8 @@ const CalendarAPI = tslib_1.__importStar(require("./calendar.js"));
12
12
  const calendar_1 = require("./calendar.js");
13
13
  const InstrumentsAPI = tslib_1.__importStar(require("./instruments.js"));
14
14
  const instruments_1 = require("./instruments.js");
15
+ const LocatesAPI = tslib_1.__importStar(require("./locates.js"));
16
+ const locates_1 = require("./locates.js");
15
17
  const OmniFeedAPI = tslib_1.__importStar(require("./omni-feed.js"));
16
18
  const omni_feed_1 = require("./omni-feed.js");
17
19
  const OrdersAPI = tslib_1.__importStar(require("./orders.js"));
@@ -36,6 +38,7 @@ class V1 extends resource_1.APIResource {
36
38
  this.calendar = new CalendarAPI.Calendar(this._client);
37
39
  this.instrumentData = new InstrumentDataAPI.InstrumentData(this._client);
38
40
  this.instruments = new InstrumentsAPI.Instruments(this._client);
41
+ this.locates = new LocatesAPI.Locates(this._client);
39
42
  this.omniAI = new OmniAIAPI.OmniAI(this._client);
40
43
  this.omniFeed = new OmniFeedAPI.OmniFeed(this._client);
41
44
  this.orders = new OrdersAPI.Orders(this._client);
@@ -51,6 +54,7 @@ V1.APIVersion = api_version_1.APIVersion;
51
54
  V1.Calendar = calendar_1.Calendar;
52
55
  V1.InstrumentData = instrument_data_1.InstrumentData;
53
56
  V1.Instruments = instruments_1.Instruments;
57
+ V1.Locates = locates_1.Locates;
54
58
  V1.OmniAI = omni_ai_1.OmniAI;
55
59
  V1.OmniFeed = omni_feed_1.OmniFeed;
56
60
  V1.Orders = orders_1.Orders;
@@ -1 +1 @@
1
- {"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,mE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BAAQ,CAAC;AACvB,EAAE,CAAC,cAAc,GAAG,gCAAc,CAAC;AACnC,EAAE,CAAC,WAAW,GAAG,yBAAW,CAAC;AAC7B,EAAE,CAAC,OAAO,GAAG,iBAAO,CAAC;AACrB,EAAE,CAAC,MAAM,GAAG,gBAAM,CAAC;AACnB,EAAE,CAAC,QAAQ,GAAG,oBAAQ,CAAC;AACvB,EAAE,CAAC,MAAM,GAAG,eAAM,CAAC;AACnB,EAAE,CAAC,SAAS,GAAG,qBAAS,CAAC;AACzB,EAAE,CAAC,cAAc,GAAG,gCAAc,CAAC;AACnC,EAAE,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AACvB,EAAE,CAAC,SAAS,GAAG,qBAAS,CAAC"}
@@ -8,6 +8,8 @@ import * as CalendarAPI from "./calendar.mjs";
8
8
  import { Calendar, } from "./calendar.mjs";
9
9
  import * as InstrumentsAPI from "./instruments.mjs";
10
10
  import { Instruments, } from "./instruments.mjs";
11
+ import * as LocatesAPI from "./locates.mjs";
12
+ import { Locates, } from "./locates.mjs";
11
13
  import * as OmniFeedAPI from "./omni-feed.mjs";
12
14
  import { OmniFeed, } from "./omni-feed.mjs";
13
15
  import * as OrdersAPI from "./orders.mjs";
@@ -32,6 +34,7 @@ export class V1 extends APIResource {
32
34
  this.calendar = new CalendarAPI.Calendar(this._client);
33
35
  this.instrumentData = new InstrumentDataAPI.InstrumentData(this._client);
34
36
  this.instruments = new InstrumentsAPI.Instruments(this._client);
37
+ this.locates = new LocatesAPI.Locates(this._client);
35
38
  this.omniAI = new OmniAIAPI.OmniAI(this._client);
36
39
  this.omniFeed = new OmniFeedAPI.OmniFeed(this._client);
37
40
  this.orders = new OrdersAPI.Orders(this._client);
@@ -46,6 +49,7 @@ V1.APIVersion = APIVersion;
46
49
  V1.Calendar = Calendar;
47
50
  V1.InstrumentData = InstrumentData;
48
51
  V1.Instruments = Instruments;
52
+ V1.Locates = Locates;
49
53
  V1.OmniAI = OmniAI;
50
54
  V1.OmniFeed =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AAQ,CAAC;AACvB,EAAE,CAAC,cAAc,GAAG,cAAc,CAAC;AACnC,EAAE,CAAC,WAAW,GAAG,WAAW,CAAC;AAC7B,EAAE,CAAC,OAAO,GAAG,OAAO,CAAC;AACrB,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC;AACnB,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACvB,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC;AACnB,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC;AACzB,EAAE,CAAC,cAAc,GAAG,cAAc,CAAC;AACnC,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACvB,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC"}
package/src/client.ts CHANGED
@@ -773,5 +773,6 @@ export declare namespace ClearStreet {
773
773
 
774
774
  export type APIError = API.APIError;
775
775
  export type BaseResponse = API.BaseResponse;
776
+ export type ErrorDetails = API.ErrorDetails;
776
777
  export type ResponseMetadata = API.ResponseMetadata;
777
778
  }
@@ -19,7 +19,7 @@ export interface APIError {
19
19
  * Additional error details, if any. This can include structured information such
20
20
  * as field violations or error metadata.
21
21
  */
22
- details?: Array<{ [key: string]: unknown }>;
22
+ details?: ErrorDetails;
23
23
  }
24
24
 
25
25
  export interface BaseResponse {
@@ -34,6 +34,8 @@ export interface BaseResponse {
34
34
  error?: APIError | null;
35
35
  }
36
36
 
37
+ export type ErrorDetails = Array<{ [key: string]: unknown }>;
38
+
37
39
  /**
38
40
  * Metadata for the response. This will always contain a request ID which can be
39
41
  * used to identify the request to Clear Street for tracing, and optionally may
@@ -113,6 +113,15 @@ export {
113
113
  type InstrumentGetOptionContractsParams,
114
114
  type InstrumentSearchInstrumentsParams,
115
115
  } from './instruments';
116
+ export {
117
+ Locates,
118
+ type LocateRate,
119
+ type LocateRateResult,
120
+ type LocateRateResultList,
121
+ type LocateGetLocateRateByIDResponse,
122
+ type LocateGetLocateRatesResponse,
123
+ type LocateGetLocateRatesParams,
124
+ } from './locates';
116
125
  export {
117
126
  OmniAI,
118
127
  type ActionButton,
@@ -1021,11 +1021,21 @@ export interface InstrumentEventIpoItem {
1021
1021
  exchange?: string | null;
1022
1022
 
1023
1023
  /**
1024
- * IPO market cap. When a null/undefined value is observed, it indicates that there
1025
- * is no available data.
1024
+ * @deprecated Deprecated: use `offering_amount`, which carries the same value.
1025
+ * This is not a market capitalization. When a null/undefined value is observed, it
1026
+ * indicates that there is no available data.
1026
1027
  */
1027
1028
  market_cap?: string | null;
1028
1029
 
1030
+ /**
1031
+ * IPO maximum aggregate offering value: all offered shares, including
1032
+ * over-allotment (greenshoe) shares, at the top of the price range. This is an
1033
+ * upper bound. It assumes full exercise of the over-allotment option and pricing
1034
+ * at the top of the range. When a null/undefined value is observed, it indicates
1035
+ * that there is no available data.
1036
+ */
1037
+ offering_amount?: string | null;
1038
+
1029
1039
  /**
1030
1040
  * IPO price range. When a null/undefined value is observed, it indicates that
1031
1041
  * there is no available data.
@@ -1412,11 +1422,21 @@ export interface InstrumentIpoEvent {
1412
1422
  exchange?: string | null;
1413
1423
 
1414
1424
  /**
1415
- * IPO market cap. When a null/undefined value is observed, it indicates that there
1416
- * is no available data.
1425
+ * @deprecated Deprecated: use `offering_amount`, which carries the same value.
1426
+ * This is not a market capitalization. When a null/undefined value is observed, it
1427
+ * indicates that there is no available data.
1417
1428
  */
1418
1429
  market_cap?: string | null;
1419
1430
 
1431
+ /**
1432
+ * IPO maximum aggregate offering value: all offered shares, including
1433
+ * over-allotment (greenshoe) shares, at the top of the price range. This is an
1434
+ * upper bound. It assumes full exercise of the over-allotment option and pricing
1435
+ * at the top of the range. When a null/undefined value is observed, it indicates
1436
+ * that there is no available data.
1437
+ */
1438
+ offering_amount?: string | null;
1439
+
1420
1440
  /**
1421
1441
  * IPO price range. When a null/undefined value is observed, it indicates that
1422
1442
  * there is no available data.
@@ -36,6 +36,11 @@ export class MarketData extends APIResource {
36
36
  /**
37
37
  * Get market data snapshots for one or more securities.
38
38
  *
39
+ * Two targeting modes, mutually exclusive: `instrument_ids` (1-100 ids), or
40
+ * `underlying_instrument_id` + `expiry` together, which resolves the underlier's
41
+ * option chain for that expiry and returns a snapshot for every contract in it
42
+ * (uncapped).
43
+ *
39
44
  * @example
40
45
  * ```ts
41
46
  * const response =
@@ -456,12 +461,26 @@ export interface MarketDataGetDailySummariesParams {
456
461
  }
457
462
 
458
463
  export interface MarketDataGetSnapshotsParams {
464
+ /**
465
+ * Filter the option chain to contracts expiring on this date (YYYY-MM-DD). Must be
466
+ * provided together with `underlying_instrument_id`.
467
+ */
468
+ expiry?: string;
469
+
459
470
  /**
460
471
  * Comma-separated instrument IDs (UUID) or symbols (equity tickers or OSI option
461
- * symbols). Required; accepts 1 to 100 IDs. Duplicate resolved ids collapse to a
462
- * single row.
472
+ * symbols). Accepts 1 to 100 IDs; duplicate resolved ids collapse to a single row.
473
+ * Required unless `underlying_instrument_id` and `expiry` are provided; mutually
474
+ * exclusive with that pair.
463
475
  */
464
476
  instrument_ids?: Array<OrdersAPI.InstrumentIDOrSymbol>;
477
+
478
+ /**
479
+ * Instrument identifier or symbol of the underlying equity/index for an option
480
+ * chain. Must be provided together with `expiry`; mutually exclusive with
481
+ * `instrument_ids`.
482
+ */
483
+ underlying_instrument_id?: string;
465
484
  }
466
485
 
467
486
  export declare namespace MarketData {
@@ -0,0 +1,130 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import * as Shared from '../shared';
5
+ import * as OrdersAPI from './orders';
6
+ import { APIPromise } from '../../core/api-promise';
7
+ import { RequestOptions } from '../../internal/request-options';
8
+ import { path } from '../../internal/utils/path';
9
+
10
+ /**
11
+ * Query locate requests, granted locates, and cached locate borrow rates.
12
+ */
13
+ export class Locates extends APIResource {
14
+ /**
15
+ * > **Beta** — this endpoint may change before general availability.
16
+ *
17
+ * Fetch the cached locate borrow rate for one instrument. Rates refresh
18
+ * periodically; `404` means no rate is currently cached for the instrument.
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * const response = await client.v1.locates.getLocateRateByID(
23
+ * 'x',
24
+ * );
25
+ * ```
26
+ */
27
+ getLocateRateByID(
28
+ instrumentID: OrdersAPI.InstrumentIDOrSymbol,
29
+ options?: RequestOptions,
30
+ ): APIPromise<LocateGetLocateRateByIDResponse> {
31
+ return this._client.get(path`/v1/locates/rates/${instrumentID}`, options);
32
+ }
33
+
34
+ /**
35
+ * > **Beta** — this endpoint may change before general availability.
36
+ *
37
+ * Fetch the cached locate borrow rates for up to 1,000 instruments. The response
38
+ * returns one row per requested instrument, in request order. Each row carries
39
+ * either the `rate` or an `error` — a `404` when the instrument is unknown or has
40
+ * no cached rate. The status is `207` when any row has an error, `200` when every
41
+ * instrument resolved to a rate.
42
+ *
43
+ * @example
44
+ * ```ts
45
+ * const response = await client.v1.locates.getLocateRates({
46
+ * instrument_ids: ['x'],
47
+ * });
48
+ * ```
49
+ */
50
+ getLocateRates(
51
+ query: LocateGetLocateRatesParams,
52
+ options?: RequestOptions,
53
+ ): APIPromise<LocateGetLocateRatesResponse> {
54
+ return this._client.get('/v1/locates/rates', { query, ...options });
55
+ }
56
+ }
57
+
58
+ /**
59
+ * A locate borrow rate for an instrument.
60
+ */
61
+ export interface LocateRate {
62
+ /**
63
+ * Instrument id the rate applies to.
64
+ */
65
+ instrument_id: string;
66
+
67
+ /**
68
+ * Borrow rate, expressed as a decimal (e.g. 0.037012 for 3.7012%).
69
+ */
70
+ rate: string;
71
+
72
+ /**
73
+ * When the rate was requested from the locates venue.
74
+ */
75
+ as_of?: string | null;
76
+ }
77
+
78
+ /**
79
+ * A requested instrument with either its cached borrow rate or an error.
80
+ */
81
+ export interface LocateRateResult {
82
+ /**
83
+ * The instrument id (UUID) or symbol, echoed exactly as requested, so each result
84
+ * maps back to its request.
85
+ */
86
+ instrument: OrdersAPI.InstrumentIDOrSymbol;
87
+
88
+ /**
89
+ * Why no rate is present — a `404` when the instrument is unknown or has no cached
90
+ * rate. Omitted when `rate` is present.
91
+ */
92
+ error?: Shared.APIError | null;
93
+
94
+ /**
95
+ * The cached borrow rate. Present when a rate was found; omitted when `error` is
96
+ * present.
97
+ */
98
+ rate?: LocateRate | null;
99
+ }
100
+
101
+ export type LocateRateResultList = Array<LocateRateResult>;
102
+
103
+ export interface LocateGetLocateRateByIDResponse extends Shared.BaseResponse {
104
+ /**
105
+ * A locate borrow rate for an instrument.
106
+ */
107
+ data: LocateRate;
108
+ }
109
+
110
+ export interface LocateGetLocateRatesResponse extends Shared.BaseResponse {
111
+ data: LocateRateResultList;
112
+ }
113
+
114
+ export interface LocateGetLocateRatesParams {
115
+ /**
116
+ * Comma-separated instrument IDs (UUID) or symbols; at least one, at most 1,000.
117
+ */
118
+ instrument_ids: Array<OrdersAPI.InstrumentIDOrSymbol>;
119
+ }
120
+
121
+ export declare namespace Locates {
122
+ export {
123
+ type LocateRate as LocateRate,
124
+ type LocateRateResult as LocateRateResult,
125
+ type LocateRateResultList as LocateRateResultList,
126
+ type LocateGetLocateRateByIDResponse as LocateGetLocateRateByIDResponse,
127
+ type LocateGetLocateRatesResponse as LocateGetLocateRatesResponse,
128
+ type LocateGetLocateRatesParams as LocateGetLocateRatesParams,
129
+ };
130
+ }
@@ -533,9 +533,10 @@ export interface PrefillNewOrderRequest {
533
533
  stop_price?: string | null;
534
534
 
535
535
  /**
536
- * Optional execution strategy. One of `SOR`, `VWAP`, or `TWAP`. Defaults to `SOR`.
537
- * `VWAP` and `TWAP` are supported only on `MARKET` and `LIMIT` orders with `DAY`
538
- * time-in-force, and are not supported on OTC common-stock orders.
536
+ * Optional execution strategy. One of `SOR`, `VWAP`, `TWAP`, or `DMA`. Defaults to
537
+ * `SOR`, the only strategy OTC common-stock orders support. `VWAP` and `TWAP` are
538
+ * supported only on `MARKET` and `LIMIT` orders, and `DMA` only on `LIMIT` orders;
539
+ * all three require `DAY` time-in-force.
539
540
  */
540
541
  strategy?: OrdersAPI.OrderStrategy | null;
541
542
 
@@ -138,8 +138,10 @@ export class Threads extends APIResource {
138
138
  }
139
139
 
140
140
  /**
141
- * List authorized conversation metadata, newest first. Use `page_size` and
142
- * `page_token` for pagination, and the messages endpoint for conversation history.
141
+ * List authorized conversation metadata, most recently active first (by
142
+ * `updated_at`, which a new message moves). Use `page_size` and `page_token` for
143
+ * pagination, and the messages endpoint for conversation history. A thread that
144
+ * gets a message while you page moves to the first page.
143
145
  *
144
146
  * With `account_id`, list only conversations linked to that account and require
145
147
  * current account access. Without it, list only conversations with no linked
@@ -323,6 +325,10 @@ export interface Thread {
323
325
 
324
326
  title: string;
325
327
 
328
+ /**
329
+ * Time of the last activity: a new message in the thread or a change to the
330
+ * thread.
331
+ */
326
332
  updated_at: string;
327
333
  }
328
334
 
@@ -309,9 +309,10 @@ export interface NewOrderRequest {
309
309
  stop_price?: string | null;
310
310
 
311
311
  /**
312
- * Optional execution strategy. One of `SOR`, `VWAP`, or `TWAP`. Defaults to `SOR`.
313
- * `VWAP` and `TWAP` are supported only on `MARKET` and `LIMIT` orders with `DAY`
314
- * time-in-force, and are not supported on OTC common-stock orders.
312
+ * Optional execution strategy. One of `SOR`, `VWAP`, `TWAP`, or `DMA`. Defaults to
313
+ * `SOR`, the only strategy OTC common-stock orders support. `VWAP` and `TWAP` are
314
+ * supported only on `MARKET` and `LIMIT` orders, and `DMA` only on `LIMIT` orders;
315
+ * all three require `DAY` time-in-force.
315
316
  */
316
317
  strategy?: OrderStrategy | null;
317
318
 
@@ -553,7 +554,12 @@ export namespace Order {
553
554
  /**
554
555
  * Execution strategy type.
555
556
  */
556
- type: string;
557
+ type: 'SOR' | 'VWAP' | 'TWAP' | 'DMA';
558
+
559
+ /**
560
+ * Venue code the order is routed to. DMA only.
561
+ */
562
+ destination?: string;
557
563
 
558
564
  /**
559
565
  * UTC timestamp (RFC 3339) at which execution ends.
@@ -595,9 +601,13 @@ export type OrderStatus =
595
601
 
596
602
  /**
597
603
  * Optional execution strategy controlling how the order is worked in the market.
598
- * Omit to use standard routing. One of `SOR`, `VWAP`, or `TWAP`.
604
+ * Omit to use standard routing. One of `SOR`, `VWAP`, `TWAP`, or `DMA`.
599
605
  */
600
- export type OrderStrategy = OrderStrategy.Type | OrderStrategy.UnionMember1 | OrderStrategy.UnionMember2;
606
+ export type OrderStrategy =
607
+ | OrderStrategy.Type
608
+ | OrderStrategy.UnionMember1
609
+ | OrderStrategy.UnionMember2
610
+ | OrderStrategy.UnionMember3;
601
611
 
602
612
  export namespace OrderStrategy {
603
613
  /**
@@ -655,6 +665,21 @@ export namespace OrderStrategy {
655
665
  */
656
666
  start_at?: string;
657
667
  }
668
+
669
+ /**
670
+ * Direct Market Access. Routes the order straight to the named venue.
671
+ */
672
+ export interface UnionMember3 {
673
+ /**
674
+ * Venue code the order is routed to.
675
+ */
676
+ destination: string;
677
+
678
+ /**
679
+ * Execution strategy type.
680
+ */
681
+ type: 'DMA';
682
+ }
658
683
  }
659
684
 
660
685
  /**
@@ -79,6 +79,16 @@ import {
79
79
  OptionsContractList,
80
80
  TickRule,
81
81
  } from './instruments';
82
+ import * as LocatesAPI from './locates';
83
+ import {
84
+ LocateGetLocateRateByIDResponse,
85
+ LocateGetLocateRatesParams,
86
+ LocateGetLocateRatesResponse,
87
+ LocateRate,
88
+ LocateRateResult,
89
+ LocateRateResultList,
90
+ Locates,
91
+ } from './locates';
82
92
  import * as OmniFeedAPI from './omni-feed';
83
93
  import {
84
94
  FeedItem,
@@ -305,6 +315,7 @@ export class V1 extends APIResource {
305
315
  calendar: CalendarAPI.Calendar = new CalendarAPI.Calendar(this._client);
306
316
  instrumentData: InstrumentDataAPI.InstrumentData = new InstrumentDataAPI.InstrumentData(this._client);
307
317
  instruments: InstrumentsAPI.Instruments = new InstrumentsAPI.Instruments(this._client);
318
+ locates: LocatesAPI.Locates = new LocatesAPI.Locates(this._client);
308
319
  omniAI: OmniAIAPI.OmniAI = new OmniAIAPI.OmniAI(this._client);
309
320
  omniFeed: OmniFeedAPI.OmniFeed = new OmniFeedAPI.OmniFeed(this._client);
310
321
  orders: OrdersAPI.Orders = new OrdersAPI.Orders(this._client);
@@ -329,6 +340,7 @@ V1.APIVersion = APIVersion;
329
340
  V1.Calendar = Calendar;
330
341
  V1.InstrumentData = InstrumentData;
331
342
  V1.Instruments = Instruments;
343
+ V1.Locates = Locates;
332
344
  V1.OmniAI = OmniAI;
333
345
  V1.OmniFeed = OmniFeed;
334
346
  V1.Orders = Orders;
@@ -462,6 +474,16 @@ export declare namespace V1 {
462
474
  type InstrumentSearchInstrumentsParams as InstrumentSearchInstrumentsParams,
463
475
  };
464
476
 
477
+ export {
478
+ Locates as Locates,
479
+ type LocateRate as LocateRate,
480
+ type LocateRateResult as LocateRateResult,
481
+ type LocateRateResultList as LocateRateResultList,
482
+ type LocateGetLocateRateByIDResponse as LocateGetLocateRateByIDResponse,
483
+ type LocateGetLocateRatesResponse as LocateGetLocateRatesResponse,
484
+ type LocateGetLocateRatesParams as LocateGetLocateRatesParams,
485
+ };
486
+
465
487
  export {
466
488
  OmniAI as OmniAI,
467
489
  type ActionButton as ActionButton,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.102.0'; // x-release-please-version
1
+ export const VERSION = '0.103.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.102.0";
1
+ export declare const VERSION = "0.103.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.102.0";
1
+ export declare const VERSION = "0.103.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.102.0'; // x-release-please-version
4
+ exports.VERSION = '0.103.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.102.0'; // x-release-please-version
1
+ export const VERSION = '0.103.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map