@clear-street/clearstreet 0.113.0 → 0.114.1

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 (59) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/package.json +1 -1
  3. package/resources/v1/accounts.d.mts +16 -1
  4. package/resources/v1/accounts.d.mts.map +1 -1
  5. package/resources/v1/accounts.d.ts +16 -1
  6. package/resources/v1/accounts.d.ts.map +1 -1
  7. package/resources/v1/calendar.d.mts +1 -2
  8. package/resources/v1/calendar.d.mts.map +1 -1
  9. package/resources/v1/calendar.d.ts +1 -2
  10. package/resources/v1/calendar.d.ts.map +1 -1
  11. package/resources/v1/index.d.mts +2 -2
  12. package/resources/v1/index.d.mts.map +1 -1
  13. package/resources/v1/index.d.ts +2 -2
  14. package/resources/v1/index.d.ts.map +1 -1
  15. package/resources/v1/index.js.map +1 -1
  16. package/resources/v1/index.mjs.map +1 -1
  17. package/resources/v1/instrument-data/market-data.d.mts +12 -4
  18. package/resources/v1/instrument-data/market-data.d.mts.map +1 -1
  19. package/resources/v1/instrument-data/market-data.d.ts +12 -4
  20. package/resources/v1/instrument-data/market-data.d.ts.map +1 -1
  21. package/resources/v1/instrument-data/market-data.js +2 -4
  22. package/resources/v1/instrument-data/market-data.js.map +1 -1
  23. package/resources/v1/instrument-data/market-data.mjs +2 -4
  24. package/resources/v1/instrument-data/market-data.mjs.map +1 -1
  25. package/resources/v1/instruments.d.mts +536 -6
  26. package/resources/v1/instruments.d.mts.map +1 -1
  27. package/resources/v1/instruments.d.ts +536 -6
  28. package/resources/v1/instruments.d.ts.map +1 -1
  29. package/resources/v1/instruments.js +121 -0
  30. package/resources/v1/instruments.js.map +1 -1
  31. package/resources/v1/instruments.mjs +121 -0
  32. package/resources/v1/instruments.mjs.map +1 -1
  33. package/resources/v1/orders.d.mts +2 -2
  34. package/resources/v1/orders.d.mts.map +1 -1
  35. package/resources/v1/orders.d.ts +2 -2
  36. package/resources/v1/orders.d.ts.map +1 -1
  37. package/resources/v1/positions.d.mts +4 -0
  38. package/resources/v1/positions.d.mts.map +1 -1
  39. package/resources/v1/positions.d.ts +4 -0
  40. package/resources/v1/positions.d.ts.map +1 -1
  41. package/resources/v1/v1.d.mts +5 -5
  42. package/resources/v1/v1.d.mts.map +1 -1
  43. package/resources/v1/v1.d.ts +5 -5
  44. package/resources/v1/v1.d.ts.map +1 -1
  45. package/resources/v1/v1.js.map +1 -1
  46. package/resources/v1/v1.mjs.map +1 -1
  47. package/src/resources/v1/accounts.ts +18 -0
  48. package/src/resources/v1/calendar.ts +1 -2
  49. package/src/resources/v1/index.ts +18 -0
  50. package/src/resources/v1/instrument-data/market-data.ts +13 -4
  51. package/src/resources/v1/instruments.ts +648 -5
  52. package/src/resources/v1/orders.ts +2 -2
  53. package/src/resources/v1/positions.ts +5 -0
  54. package/src/resources/v1/v1.ts +37 -1
  55. package/src/version.ts +1 -1
  56. package/version.d.mts +1 -1
  57. package/version.d.ts +1 -1
  58. package/version.js +1 -1
  59. package/version.mjs +1 -1
@@ -1118,7 +1118,7 @@ export interface OrderCancelAllOpenOrdersParams {
1118
1118
  /**
1119
1119
  * Filter by instrument type (e.g., COMMON_STOCK, OPTION)
1120
1120
  */
1121
- instrument_type?: 'COMMON_STOCK' | 'INDEX' | 'OPTION' | 'CASH';
1121
+ instrument_type?: 'COMMON_STOCK' | 'INDEX' | 'OPTION' | 'CASH' | 'EVENT_CONTRACT';
1122
1122
 
1123
1123
  /**
1124
1124
  * Filter by order side (BUY or SELL)
@@ -1204,7 +1204,7 @@ export interface OrderGetOrdersParams {
1204
1204
  /**
1205
1205
  * Instrument type filter (e.g., COMMON_STOCK, OPTION)
1206
1206
  */
1207
- instrument_type?: 'COMMON_STOCK' | 'INDEX' | 'OPTION' | 'CASH';
1207
+ instrument_type?: 'COMMON_STOCK' | 'INDEX' | 'OPTION' | 'CASH' | 'EVENT_CONTRACT';
1208
1208
 
1209
1209
  /**
1210
1210
  * Comma-separated list of order identifiers. Each value may be an order's `id` or
@@ -536,6 +536,11 @@ export interface PositionGetPositionsParams {
536
536
  */
537
537
  instrument_ids?: Array<string>;
538
538
 
539
+ /**
540
+ * Instrument type filter (e.g., COMMON_STOCK, OPTION)
541
+ */
542
+ instrument_type?: 'COMMON_STOCK' | 'INDEX' | 'OPTION' | 'CASH' | 'EVENT_CONTRACT';
543
+
539
544
  /**
540
545
  * The number of items to return per page. Only used when page_token is not
541
546
  * provided.
@@ -32,6 +32,7 @@ import {
32
32
  MarginType,
33
33
  PortfolioHistoryResponse,
34
34
  PortfolioHistorySegment,
35
+ PredictionMarketBalances,
35
36
  RiskSettings,
36
37
  } from './accounts';
37
38
  import * as APIVersionAPI from './api-version';
@@ -71,6 +72,13 @@ import {
71
72
  InstrumentGetInstrumentsResponse,
72
73
  InstrumentGetOptionContractsParams,
73
74
  InstrumentGetOptionContractsResponse,
75
+ InstrumentGetPredictionCategoriesResponse,
76
+ InstrumentGetPredictionEventsParams,
77
+ InstrumentGetPredictionEventsResponse,
78
+ InstrumentGetPredictionMarketsParams,
79
+ InstrumentGetPredictionMarketsResponse,
80
+ InstrumentGetPredictionSeriesParams,
81
+ InstrumentGetPredictionSeriesResponse,
74
82
  InstrumentSearchInstrumentsParams,
75
83
  InstrumentSearchInstrumentsResponse,
76
84
  Instruments,
@@ -79,6 +87,16 @@ import {
79
87
  OptionExpiryDate,
80
88
  OptionsContract,
81
89
  OptionsContractList,
90
+ PredictionCategories,
91
+ PredictionEvent,
92
+ PredictionEvents,
93
+ PredictionMarket,
94
+ PredictionMarketOutcome,
95
+ PredictionMarketStatus,
96
+ PredictionMarketSummary,
97
+ PredictionMarkets,
98
+ PredictionSeries,
99
+ PredictionSeriesList,
82
100
  ShortableAttribute,
83
101
  TickRule,
84
102
  } from './instruments';
@@ -371,7 +389,7 @@ export class V1 extends APIResource {
371
389
  /**
372
390
  * Security type
373
391
  */
374
- export type SecurityType = 'COMMON_STOCK' | 'INDEX' | 'OPTION' | 'CASH';
392
+ export type SecurityType = 'COMMON_STOCK' | 'INDEX' | 'OPTION' | 'CASH' | 'EVENT_CONTRACT';
375
393
 
376
394
  /**
377
395
  * Sort direction for sorted results
@@ -416,6 +434,7 @@ export declare namespace V1 {
416
434
  type MarginType as MarginType,
417
435
  type PortfolioHistoryResponse as PortfolioHistoryResponse,
418
436
  type PortfolioHistorySegment as PortfolioHistorySegment,
437
+ type PredictionMarketBalances as PredictionMarketBalances,
419
438
  type RiskSettings as RiskSettings,
420
439
  type AccountGetAccountBalancesResponse as AccountGetAccountBalancesResponse,
421
440
  type AccountGetAccountByIDResponse as AccountGetAccountByIDResponse,
@@ -513,15 +532,32 @@ export declare namespace V1 {
513
532
  type OptionExpiryDate as OptionExpiryDate,
514
533
  type OptionsContract as OptionsContract,
515
534
  type OptionsContractList as OptionsContractList,
535
+ type PredictionCategories as PredictionCategories,
536
+ type PredictionEvent as PredictionEvent,
537
+ type PredictionEvents as PredictionEvents,
538
+ type PredictionMarket as PredictionMarket,
539
+ type PredictionMarketOutcome as PredictionMarketOutcome,
540
+ type PredictionMarketStatus as PredictionMarketStatus,
541
+ type PredictionMarketSummary as PredictionMarketSummary,
542
+ type PredictionMarkets as PredictionMarkets,
543
+ type PredictionSeries as PredictionSeries,
544
+ type PredictionSeriesList as PredictionSeriesList,
516
545
  type ShortableAttribute as ShortableAttribute,
517
546
  type TickRule as TickRule,
518
547
  type InstrumentGetInstrumentByIDResponse as InstrumentGetInstrumentByIDResponse,
519
548
  type InstrumentGetInstrumentsResponse as InstrumentGetInstrumentsResponse,
520
549
  type InstrumentGetOptionContractsResponse as InstrumentGetOptionContractsResponse,
550
+ type InstrumentGetPredictionCategoriesResponse as InstrumentGetPredictionCategoriesResponse,
551
+ type InstrumentGetPredictionEventsResponse as InstrumentGetPredictionEventsResponse,
552
+ type InstrumentGetPredictionMarketsResponse as InstrumentGetPredictionMarketsResponse,
553
+ type InstrumentGetPredictionSeriesResponse as InstrumentGetPredictionSeriesResponse,
521
554
  type InstrumentSearchInstrumentsResponse as InstrumentSearchInstrumentsResponse,
522
555
  type InstrumentGetInstrumentByIDParams as InstrumentGetInstrumentByIDParams,
523
556
  type InstrumentGetInstrumentsParams as InstrumentGetInstrumentsParams,
524
557
  type InstrumentGetOptionContractsParams as InstrumentGetOptionContractsParams,
558
+ type InstrumentGetPredictionEventsParams as InstrumentGetPredictionEventsParams,
559
+ type InstrumentGetPredictionMarketsParams as InstrumentGetPredictionMarketsParams,
560
+ type InstrumentGetPredictionSeriesParams as InstrumentGetPredictionSeriesParams,
525
561
  type InstrumentSearchInstrumentsParams as InstrumentSearchInstrumentsParams,
526
562
  };
527
563
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.113.0'; // x-release-please-version
1
+ export const VERSION = '0.114.1'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.113.0";
1
+ export declare const VERSION = "0.114.1";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.113.0";
1
+ export declare const VERSION = "0.114.1";
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.113.0'; // x-release-please-version
4
+ exports.VERSION = '0.114.1'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.113.0'; // x-release-please-version
1
+ export const VERSION = '0.114.1'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map