pmxtjs 2.42.7 → 2.43.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 (46) hide show
  1. package/dist/esm/generated/src/apis/DefaultApi.d.ts +120 -4
  2. package/dist/esm/generated/src/apis/DefaultApi.js +136 -5
  3. package/dist/esm/generated/src/models/FetchOrderBooks200Response.d.ts +48 -0
  4. package/dist/esm/generated/src/models/FetchOrderBooks200Response.js +48 -0
  5. package/dist/esm/generated/src/models/FetchOrderBooksRequest.d.ts +39 -0
  6. package/dist/esm/generated/src/models/FetchOrderBooksRequest.js +46 -0
  7. package/dist/esm/generated/src/models/OrderBook.d.ts +6 -0
  8. package/dist/esm/generated/src/models/OrderBook.js +2 -0
  9. package/dist/esm/generated/src/models/index.d.ts +2 -0
  10. package/dist/esm/generated/src/models/index.js +2 -0
  11. package/dist/esm/index.d.ts +5 -2
  12. package/dist/esm/index.js +5 -2
  13. package/dist/esm/pmxt/client.d.ts +45 -3
  14. package/dist/esm/pmxt/client.js +97 -5
  15. package/dist/esm/pmxt/models.d.ts +3 -1
  16. package/dist/generated/src/apis/DefaultApi.d.ts +120 -4
  17. package/dist/generated/src/apis/DefaultApi.js +137 -6
  18. package/dist/generated/src/models/FetchOrderBooks200Response.d.ts +48 -0
  19. package/dist/generated/src/models/FetchOrderBooks200Response.js +55 -0
  20. package/dist/generated/src/models/FetchOrderBooksRequest.d.ts +39 -0
  21. package/dist/generated/src/models/FetchOrderBooksRequest.js +53 -0
  22. package/dist/generated/src/models/OrderBook.d.ts +6 -0
  23. package/dist/generated/src/models/OrderBook.js +2 -0
  24. package/dist/generated/src/models/index.d.ts +2 -0
  25. package/dist/generated/src/models/index.js +2 -0
  26. package/dist/index.d.ts +5 -2
  27. package/dist/index.js +7 -1
  28. package/dist/pmxt/client.d.ts +45 -3
  29. package/dist/pmxt/client.js +101 -6
  30. package/dist/pmxt/models.d.ts +3 -1
  31. package/generated/.openapi-generator/FILES +4 -0
  32. package/generated/docs/DefaultApi.md +130 -59
  33. package/generated/docs/FetchOrderBooks200Response.md +38 -0
  34. package/generated/docs/FetchOrderBooksRequest.md +36 -0
  35. package/generated/docs/GetExecutionPriceRequestArgsInner.md +2 -0
  36. package/generated/docs/OrderBook.md +2 -0
  37. package/generated/package.json +1 -1
  38. package/generated/src/apis/DefaultApi.ts +160 -5
  39. package/generated/src/models/FetchOrderBooks200Response.ts +96 -0
  40. package/generated/src/models/FetchOrderBooksRequest.ts +82 -0
  41. package/generated/src/models/OrderBook.ts +8 -0
  42. package/generated/src/models/index.ts +2 -0
  43. package/index.ts +5 -2
  44. package/package.json +2 -2
  45. package/pmxt/client.ts +105 -11
  46. package/pmxt/models.ts +4 -1
@@ -0,0 +1,38 @@
1
+
2
+ # FetchOrderBooks200Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `success` | boolean
10
+ `error` | [ErrorDetail](ErrorDetail.md)
11
+ `data` | [{ [key: string]: OrderBook; }](OrderBook.md)
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { FetchOrderBooks200Response } from 'pmxtjs'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "success": true,
21
+ "error": null,
22
+ "data": null,
23
+ } satisfies FetchOrderBooks200Response
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as FetchOrderBooks200Response
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -0,0 +1,36 @@
1
+
2
+ # FetchOrderBooksRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `args` | Array<Array<string>>
10
+ `credentials` | [ExchangeCredentials](ExchangeCredentials.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { FetchOrderBooksRequest } from 'pmxtjs'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "args": null,
20
+ "credentials": null,
21
+ } satisfies FetchOrderBooksRequest
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as FetchOrderBooksRequest
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -9,6 +9,7 @@ Name | Type
9
9
  `bids` | [Array<OrderLevel>](OrderLevel.md)
10
10
  `asks` | [Array<OrderLevel>](OrderLevel.md)
11
11
  `timestamp` | number
12
+ `datetime` | string
12
13
 
13
14
  ## Example
14
15
 
@@ -20,6 +21,7 @@ const example = {
20
21
  "bids": null,
21
22
  "asks": null,
22
23
  "timestamp": null,
24
+ "datetime": null,
23
25
  } satisfies GetExecutionPriceRequestArgsInner
24
26
 
25
27
  console.log(example)
@@ -9,6 +9,7 @@ Name | Type
9
9
  `bids` | [Array<OrderLevel>](OrderLevel.md)
10
10
  `asks` | [Array<OrderLevel>](OrderLevel.md)
11
11
  `timestamp` | number
12
+ `datetime` | string
12
13
 
13
14
  ## Example
14
15
 
@@ -20,6 +21,7 @@ const example = {
20
21
  "bids": null,
21
22
  "asks": null,
22
23
  "timestamp": null,
24
+ "datetime": null,
23
25
  } satisfies OrderBook
24
26
 
25
27
  console.log(example)
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmxtjs",
3
- "version": "2.42.7",
3
+ "version": "2.43.0",
4
4
  "description": "OpenAPI client for pmxtjs",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -40,6 +40,8 @@ import type {
40
40
  FetchOHLCV200Response,
41
41
  FetchOpenOrders200Response,
42
42
  FetchOrderBook200Response,
43
+ FetchOrderBooks200Response,
44
+ FetchOrderBooksRequest,
43
45
  FetchPositions200Response,
44
46
  FetchTrades200Response,
45
47
  FilterEventsRequest,
@@ -109,6 +111,10 @@ import {
109
111
  FetchOpenOrders200ResponseToJSON,
110
112
  FetchOrderBook200ResponseFromJSON,
111
113
  FetchOrderBook200ResponseToJSON,
114
+ FetchOrderBooks200ResponseFromJSON,
115
+ FetchOrderBooks200ResponseToJSON,
116
+ FetchOrderBooksRequestFromJSON,
117
+ FetchOrderBooksRequestToJSON,
112
118
  FetchPositions200ResponseFromJSON,
113
119
  FetchPositions200ResponseToJSON,
114
120
  FetchTrades200ResponseFromJSON,
@@ -370,7 +376,12 @@ export interface FetchOrderRequest {
370
376
  export interface FetchOrderBookRequest {
371
377
  exchange: FetchOrderBookExchangeEnum;
372
378
  outcomeId: string;
373
- side?: string;
379
+ limit?: number;
380
+ }
381
+
382
+ export interface FetchOrderBooksOperationRequest {
383
+ exchange: FetchOrderBooksOperationExchangeEnum;
384
+ fetchOrderBooksRequest?: FetchOrderBooksRequest;
374
385
  }
375
386
 
376
387
  export interface FetchPositionsRequest {
@@ -1884,7 +1895,7 @@ export class DefaultApi extends runtime.BaseAPI {
1884
1895
  }
1885
1896
 
1886
1897
  /**
1887
- * Fetch the current order book (bids/asks) for a specific outcome. Essential for calculating spread, depth, and execution prices.
1898
+ * Fetch the order book (bids/asks) for a specific outcome.
1888
1899
  * Fetch Order Book
1889
1900
  */
1890
1901
  async fetchOrderBookRaw(requestParameters: FetchOrderBookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FetchOrderBook200Response>> {
@@ -1908,8 +1919,8 @@ export class DefaultApi extends runtime.BaseAPI {
1908
1919
  queryParameters['outcomeId'] = requestParameters['outcomeId'];
1909
1920
  }
1910
1921
 
1911
- if (requestParameters['side'] != null) {
1912
- queryParameters['side'] = requestParameters['side'];
1922
+ if (requestParameters['limit'] != null) {
1923
+ queryParameters['limit'] = requestParameters['limit'];
1913
1924
  }
1914
1925
 
1915
1926
  const headerParameters: runtime.HTTPHeaders = {};
@@ -1929,7 +1940,7 @@ export class DefaultApi extends runtime.BaseAPI {
1929
1940
  }
1930
1941
 
1931
1942
  /**
1932
- * Fetch the current order book (bids/asks) for a specific outcome. Essential for calculating spread, depth, and execution prices.
1943
+ * Fetch the order book (bids/asks) for a specific outcome.
1933
1944
  * Fetch Order Book
1934
1945
  */
1935
1946
  async fetchOrderBook(requestParameters: FetchOrderBookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FetchOrderBook200Response> {
@@ -1937,6 +1948,48 @@ export class DefaultApi extends runtime.BaseAPI {
1937
1948
  return await response.value();
1938
1949
  }
1939
1950
 
1951
+ /**
1952
+ * Batch variant of {@link fetchOrderBook}. Fetches order books for multiple outcomes in a single request where the exchange supports it.
1953
+ * Fetch Order Books
1954
+ */
1955
+ async fetchOrderBooksRaw(requestParameters: FetchOrderBooksOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FetchOrderBooks200Response>> {
1956
+ if (requestParameters['exchange'] == null) {
1957
+ throw new runtime.RequiredError(
1958
+ 'exchange',
1959
+ 'Required parameter "exchange" was null or undefined when calling fetchOrderBooks().'
1960
+ );
1961
+ }
1962
+
1963
+ const queryParameters: any = {};
1964
+
1965
+ const headerParameters: runtime.HTTPHeaders = {};
1966
+
1967
+ headerParameters['Content-Type'] = 'application/json';
1968
+
1969
+
1970
+ let urlPath = `/api/{exchange}/fetchOrderBooks`;
1971
+ urlPath = urlPath.replace(`{${"exchange"}}`, encodeURIComponent(String(requestParameters['exchange'])));
1972
+
1973
+ const response = await this.request({
1974
+ path: urlPath,
1975
+ method: 'POST',
1976
+ headers: headerParameters,
1977
+ query: queryParameters,
1978
+ body: FetchOrderBooksRequestToJSON(requestParameters['fetchOrderBooksRequest']),
1979
+ }, initOverrides);
1980
+
1981
+ return new runtime.JSONApiResponse(response, (jsonValue) => FetchOrderBooks200ResponseFromJSON(jsonValue));
1982
+ }
1983
+
1984
+ /**
1985
+ * Batch variant of {@link fetchOrderBook}. Fetches order books for multiple outcomes in a single request where the exchange supports it.
1986
+ * Fetch Order Books
1987
+ */
1988
+ async fetchOrderBooks(requestParameters: FetchOrderBooksOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FetchOrderBooks200Response> {
1989
+ const response = await this.fetchOrderBooksRaw(requestParameters, initOverrides);
1990
+ return await response.value();
1991
+ }
1992
+
1940
1993
  /**
1941
1994
  * Fetch current user positions across all markets.
1942
1995
  * Fetch Positions
@@ -2469,6 +2522,9 @@ export const BuildOrderOperationExchangeEnum = {
2469
2522
  Metaculus: 'metaculus',
2470
2523
  Smarkets: 'smarkets',
2471
2524
  PolymarketUs: 'polymarket_us',
2525
+ GeminiTitan: 'gemini-titan',
2526
+ Hyperliquid: 'hyperliquid',
2527
+ Mock: 'mock',
2472
2528
  Router: 'router'
2473
2529
  } as const;
2474
2530
  export type BuildOrderOperationExchangeEnum = typeof BuildOrderOperationExchangeEnum[keyof typeof BuildOrderOperationExchangeEnum];
@@ -2487,6 +2543,9 @@ export const CancelOrderOperationExchangeEnum = {
2487
2543
  Metaculus: 'metaculus',
2488
2544
  Smarkets: 'smarkets',
2489
2545
  PolymarketUs: 'polymarket_us',
2546
+ GeminiTitan: 'gemini-titan',
2547
+ Hyperliquid: 'hyperliquid',
2548
+ Mock: 'mock',
2490
2549
  Router: 'router'
2491
2550
  } as const;
2492
2551
  export type CancelOrderOperationExchangeEnum = typeof CancelOrderOperationExchangeEnum[keyof typeof CancelOrderOperationExchangeEnum];
@@ -2505,6 +2564,9 @@ export const CloseOperationExchangeEnum = {
2505
2564
  Metaculus: 'metaculus',
2506
2565
  Smarkets: 'smarkets',
2507
2566
  PolymarketUs: 'polymarket_us',
2567
+ GeminiTitan: 'gemini-titan',
2568
+ Hyperliquid: 'hyperliquid',
2569
+ Mock: 'mock',
2508
2570
  Router: 'router'
2509
2571
  } as const;
2510
2572
  export type CloseOperationExchangeEnum = typeof CloseOperationExchangeEnum[keyof typeof CloseOperationExchangeEnum];
@@ -2530,6 +2592,9 @@ export const CreateOrderOperationExchangeEnum = {
2530
2592
  Metaculus: 'metaculus',
2531
2593
  Smarkets: 'smarkets',
2532
2594
  PolymarketUs: 'polymarket_us',
2595
+ GeminiTitan: 'gemini-titan',
2596
+ Hyperliquid: 'hyperliquid',
2597
+ Mock: 'mock',
2533
2598
  Router: 'router'
2534
2599
  } as const;
2535
2600
  export type CreateOrderOperationExchangeEnum = typeof CreateOrderOperationExchangeEnum[keyof typeof CreateOrderOperationExchangeEnum];
@@ -2548,6 +2613,9 @@ export const FetchAllOrdersExchangeEnum = {
2548
2613
  Metaculus: 'metaculus',
2549
2614
  Smarkets: 'smarkets',
2550
2615
  PolymarketUs: 'polymarket_us',
2616
+ GeminiTitan: 'gemini-titan',
2617
+ Hyperliquid: 'hyperliquid',
2618
+ Mock: 'mock',
2551
2619
  Router: 'router'
2552
2620
  } as const;
2553
2621
  export type FetchAllOrdersExchangeEnum = typeof FetchAllOrdersExchangeEnum[keyof typeof FetchAllOrdersExchangeEnum];
@@ -2584,6 +2652,9 @@ export const FetchBalanceExchangeEnum = {
2584
2652
  Metaculus: 'metaculus',
2585
2653
  Smarkets: 'smarkets',
2586
2654
  PolymarketUs: 'polymarket_us',
2655
+ GeminiTitan: 'gemini-titan',
2656
+ Hyperliquid: 'hyperliquid',
2657
+ Mock: 'mock',
2587
2658
  Router: 'router'
2588
2659
  } as const;
2589
2660
  export type FetchBalanceExchangeEnum = typeof FetchBalanceExchangeEnum[keyof typeof FetchBalanceExchangeEnum];
@@ -2602,6 +2673,9 @@ export const FetchClosedOrdersExchangeEnum = {
2602
2673
  Metaculus: 'metaculus',
2603
2674
  Smarkets: 'smarkets',
2604
2675
  PolymarketUs: 'polymarket_us',
2676
+ GeminiTitan: 'gemini-titan',
2677
+ Hyperliquid: 'hyperliquid',
2678
+ Mock: 'mock',
2605
2679
  Router: 'router'
2606
2680
  } as const;
2607
2681
  export type FetchClosedOrdersExchangeEnum = typeof FetchClosedOrdersExchangeEnum[keyof typeof FetchClosedOrdersExchangeEnum];
@@ -2620,6 +2694,9 @@ export const FetchEventExchangeEnum = {
2620
2694
  Metaculus: 'metaculus',
2621
2695
  Smarkets: 'smarkets',
2622
2696
  PolymarketUs: 'polymarket_us',
2697
+ GeminiTitan: 'gemini-titan',
2698
+ Hyperliquid: 'hyperliquid',
2699
+ Mock: 'mock',
2623
2700
  Router: 'router'
2624
2701
  } as const;
2625
2702
  export type FetchEventExchangeEnum = typeof FetchEventExchangeEnum[keyof typeof FetchEventExchangeEnum];
@@ -2684,6 +2761,9 @@ export const FetchEventsExchangeEnum = {
2684
2761
  Metaculus: 'metaculus',
2685
2762
  Smarkets: 'smarkets',
2686
2763
  PolymarketUs: 'polymarket_us',
2764
+ GeminiTitan: 'gemini-titan',
2765
+ Hyperliquid: 'hyperliquid',
2766
+ Mock: 'mock',
2687
2767
  Router: 'router'
2688
2768
  } as const;
2689
2769
  export type FetchEventsExchangeEnum = typeof FetchEventsExchangeEnum[keyof typeof FetchEventsExchangeEnum];
@@ -2730,6 +2810,9 @@ export const FetchEventsPaginatedExchangeEnum = {
2730
2810
  Metaculus: 'metaculus',
2731
2811
  Smarkets: 'smarkets',
2732
2812
  PolymarketUs: 'polymarket_us',
2813
+ GeminiTitan: 'gemini-titan',
2814
+ Hyperliquid: 'hyperliquid',
2815
+ Mock: 'mock',
2733
2816
  Router: 'router'
2734
2817
  } as const;
2735
2818
  export type FetchEventsPaginatedExchangeEnum = typeof FetchEventsPaginatedExchangeEnum[keyof typeof FetchEventsPaginatedExchangeEnum];
@@ -2775,6 +2858,9 @@ export const FetchMarketExchangeEnum = {
2775
2858
  Metaculus: 'metaculus',
2776
2859
  Smarkets: 'smarkets',
2777
2860
  PolymarketUs: 'polymarket_us',
2861
+ GeminiTitan: 'gemini-titan',
2862
+ Hyperliquid: 'hyperliquid',
2863
+ Mock: 'mock',
2778
2864
  Router: 'router'
2779
2865
  } as const;
2780
2866
  export type FetchMarketExchangeEnum = typeof FetchMarketExchangeEnum[keyof typeof FetchMarketExchangeEnum];
@@ -2848,6 +2934,9 @@ export const FetchMarketsExchangeEnum = {
2848
2934
  Metaculus: 'metaculus',
2849
2935
  Smarkets: 'smarkets',
2850
2936
  PolymarketUs: 'polymarket_us',
2937
+ GeminiTitan: 'gemini-titan',
2938
+ Hyperliquid: 'hyperliquid',
2939
+ Mock: 'mock',
2851
2940
  Router: 'router'
2852
2941
  } as const;
2853
2942
  export type FetchMarketsExchangeEnum = typeof FetchMarketsExchangeEnum[keyof typeof FetchMarketsExchangeEnum];
@@ -2894,6 +2983,9 @@ export const FetchMarketsPaginatedExchangeEnum = {
2894
2983
  Metaculus: 'metaculus',
2895
2984
  Smarkets: 'smarkets',
2896
2985
  PolymarketUs: 'polymarket_us',
2986
+ GeminiTitan: 'gemini-titan',
2987
+ Hyperliquid: 'hyperliquid',
2988
+ Mock: 'mock',
2897
2989
  Router: 'router'
2898
2990
  } as const;
2899
2991
  export type FetchMarketsPaginatedExchangeEnum = typeof FetchMarketsPaginatedExchangeEnum[keyof typeof FetchMarketsPaginatedExchangeEnum];
@@ -2948,6 +3040,9 @@ export const FetchMyTradesExchangeEnum = {
2948
3040
  Metaculus: 'metaculus',
2949
3041
  Smarkets: 'smarkets',
2950
3042
  PolymarketUs: 'polymarket_us',
3043
+ GeminiTitan: 'gemini-titan',
3044
+ Hyperliquid: 'hyperliquid',
3045
+ Mock: 'mock',
2951
3046
  Router: 'router'
2952
3047
  } as const;
2953
3048
  export type FetchMyTradesExchangeEnum = typeof FetchMyTradesExchangeEnum[keyof typeof FetchMyTradesExchangeEnum];
@@ -2966,6 +3061,9 @@ export const FetchOHLCVExchangeEnum = {
2966
3061
  Metaculus: 'metaculus',
2967
3062
  Smarkets: 'smarkets',
2968
3063
  PolymarketUs: 'polymarket_us',
3064
+ GeminiTitan: 'gemini-titan',
3065
+ Hyperliquid: 'hyperliquid',
3066
+ Mock: 'mock',
2969
3067
  Router: 'router'
2970
3068
  } as const;
2971
3069
  export type FetchOHLCVExchangeEnum = typeof FetchOHLCVExchangeEnum[keyof typeof FetchOHLCVExchangeEnum];
@@ -2984,6 +3082,9 @@ export const FetchOpenOrdersExchangeEnum = {
2984
3082
  Metaculus: 'metaculus',
2985
3083
  Smarkets: 'smarkets',
2986
3084
  PolymarketUs: 'polymarket_us',
3085
+ GeminiTitan: 'gemini-titan',
3086
+ Hyperliquid: 'hyperliquid',
3087
+ Mock: 'mock',
2987
3088
  Router: 'router'
2988
3089
  } as const;
2989
3090
  export type FetchOpenOrdersExchangeEnum = typeof FetchOpenOrdersExchangeEnum[keyof typeof FetchOpenOrdersExchangeEnum];
@@ -3002,6 +3103,9 @@ export const FetchOrderExchangeEnum = {
3002
3103
  Metaculus: 'metaculus',
3003
3104
  Smarkets: 'smarkets',
3004
3105
  PolymarketUs: 'polymarket_us',
3106
+ GeminiTitan: 'gemini-titan',
3107
+ Hyperliquid: 'hyperliquid',
3108
+ Mock: 'mock',
3005
3109
  Router: 'router'
3006
3110
  } as const;
3007
3111
  export type FetchOrderExchangeEnum = typeof FetchOrderExchangeEnum[keyof typeof FetchOrderExchangeEnum];
@@ -3020,9 +3124,33 @@ export const FetchOrderBookExchangeEnum = {
3020
3124
  Metaculus: 'metaculus',
3021
3125
  Smarkets: 'smarkets',
3022
3126
  PolymarketUs: 'polymarket_us',
3127
+ GeminiTitan: 'gemini-titan',
3128
+ Hyperliquid: 'hyperliquid',
3129
+ Mock: 'mock',
3023
3130
  Router: 'router'
3024
3131
  } as const;
3025
3132
  export type FetchOrderBookExchangeEnum = typeof FetchOrderBookExchangeEnum[keyof typeof FetchOrderBookExchangeEnum];
3133
+ /**
3134
+ * @export
3135
+ */
3136
+ export const FetchOrderBooksOperationExchangeEnum = {
3137
+ Polymarket: 'polymarket',
3138
+ Kalshi: 'kalshi',
3139
+ KalshiDemo: 'kalshi-demo',
3140
+ Limitless: 'limitless',
3141
+ Probable: 'probable',
3142
+ Baozi: 'baozi',
3143
+ Myriad: 'myriad',
3144
+ Opinion: 'opinion',
3145
+ Metaculus: 'metaculus',
3146
+ Smarkets: 'smarkets',
3147
+ PolymarketUs: 'polymarket_us',
3148
+ GeminiTitan: 'gemini-titan',
3149
+ Hyperliquid: 'hyperliquid',
3150
+ Mock: 'mock',
3151
+ Router: 'router'
3152
+ } as const;
3153
+ export type FetchOrderBooksOperationExchangeEnum = typeof FetchOrderBooksOperationExchangeEnum[keyof typeof FetchOrderBooksOperationExchangeEnum];
3026
3154
  /**
3027
3155
  * @export
3028
3156
  */
@@ -3038,6 +3166,9 @@ export const FetchPositionsExchangeEnum = {
3038
3166
  Metaculus: 'metaculus',
3039
3167
  Smarkets: 'smarkets',
3040
3168
  PolymarketUs: 'polymarket_us',
3169
+ GeminiTitan: 'gemini-titan',
3170
+ Hyperliquid: 'hyperliquid',
3171
+ Mock: 'mock',
3041
3172
  Router: 'router'
3042
3173
  } as const;
3043
3174
  export type FetchPositionsExchangeEnum = typeof FetchPositionsExchangeEnum[keyof typeof FetchPositionsExchangeEnum];
@@ -3083,6 +3214,9 @@ export const FetchTradesExchangeEnum = {
3083
3214
  Metaculus: 'metaculus',
3084
3215
  Smarkets: 'smarkets',
3085
3216
  PolymarketUs: 'polymarket_us',
3217
+ GeminiTitan: 'gemini-titan',
3218
+ Hyperliquid: 'hyperliquid',
3219
+ Mock: 'mock',
3086
3220
  Router: 'router'
3087
3221
  } as const;
3088
3222
  export type FetchTradesExchangeEnum = typeof FetchTradesExchangeEnum[keyof typeof FetchTradesExchangeEnum];
@@ -3101,6 +3235,9 @@ export const FilterEventsOperationExchangeEnum = {
3101
3235
  Metaculus: 'metaculus',
3102
3236
  Smarkets: 'smarkets',
3103
3237
  PolymarketUs: 'polymarket_us',
3238
+ GeminiTitan: 'gemini-titan',
3239
+ Hyperliquid: 'hyperliquid',
3240
+ Mock: 'mock',
3104
3241
  Router: 'router'
3105
3242
  } as const;
3106
3243
  export type FilterEventsOperationExchangeEnum = typeof FilterEventsOperationExchangeEnum[keyof typeof FilterEventsOperationExchangeEnum];
@@ -3119,6 +3256,9 @@ export const FilterMarketsOperationExchangeEnum = {
3119
3256
  Metaculus: 'metaculus',
3120
3257
  Smarkets: 'smarkets',
3121
3258
  PolymarketUs: 'polymarket_us',
3259
+ GeminiTitan: 'gemini-titan',
3260
+ Hyperliquid: 'hyperliquid',
3261
+ Mock: 'mock',
3122
3262
  Router: 'router'
3123
3263
  } as const;
3124
3264
  export type FilterMarketsOperationExchangeEnum = typeof FilterMarketsOperationExchangeEnum[keyof typeof FilterMarketsOperationExchangeEnum];
@@ -3137,6 +3277,9 @@ export const GetExecutionPriceOperationExchangeEnum = {
3137
3277
  Metaculus: 'metaculus',
3138
3278
  Smarkets: 'smarkets',
3139
3279
  PolymarketUs: 'polymarket_us',
3280
+ GeminiTitan: 'gemini-titan',
3281
+ Hyperliquid: 'hyperliquid',
3282
+ Mock: 'mock',
3140
3283
  Router: 'router'
3141
3284
  } as const;
3142
3285
  export type GetExecutionPriceOperationExchangeEnum = typeof GetExecutionPriceOperationExchangeEnum[keyof typeof GetExecutionPriceOperationExchangeEnum];
@@ -3155,6 +3298,9 @@ export const GetExecutionPriceDetailedOperationExchangeEnum = {
3155
3298
  Metaculus: 'metaculus',
3156
3299
  Smarkets: 'smarkets',
3157
3300
  PolymarketUs: 'polymarket_us',
3301
+ GeminiTitan: 'gemini-titan',
3302
+ Hyperliquid: 'hyperliquid',
3303
+ Mock: 'mock',
3158
3304
  Router: 'router'
3159
3305
  } as const;
3160
3306
  export type GetExecutionPriceDetailedOperationExchangeEnum = typeof GetExecutionPriceDetailedOperationExchangeEnum[keyof typeof GetExecutionPriceDetailedOperationExchangeEnum];
@@ -3173,6 +3319,9 @@ export const LoadMarketsOperationExchangeEnum = {
3173
3319
  Metaculus: 'metaculus',
3174
3320
  Smarkets: 'smarkets',
3175
3321
  PolymarketUs: 'polymarket_us',
3322
+ GeminiTitan: 'gemini-titan',
3323
+ Hyperliquid: 'hyperliquid',
3324
+ Mock: 'mock',
3176
3325
  Router: 'router'
3177
3326
  } as const;
3178
3327
  export type LoadMarketsOperationExchangeEnum = typeof LoadMarketsOperationExchangeEnum[keyof typeof LoadMarketsOperationExchangeEnum];
@@ -3191,6 +3340,9 @@ export const SubmitOrderOperationExchangeEnum = {
3191
3340
  Metaculus: 'metaculus',
3192
3341
  Smarkets: 'smarkets',
3193
3342
  PolymarketUs: 'polymarket_us',
3343
+ GeminiTitan: 'gemini-titan',
3344
+ Hyperliquid: 'hyperliquid',
3345
+ Mock: 'mock',
3194
3346
  Router: 'router'
3195
3347
  } as const;
3196
3348
  export type SubmitOrderOperationExchangeEnum = typeof SubmitOrderOperationExchangeEnum[keyof typeof SubmitOrderOperationExchangeEnum];
@@ -3209,6 +3361,9 @@ export const TestDummyMethodOperationExchangeEnum = {
3209
3361
  Metaculus: 'metaculus',
3210
3362
  Smarkets: 'smarkets',
3211
3363
  PolymarketUs: 'polymarket_us',
3364
+ GeminiTitan: 'gemini-titan',
3365
+ Hyperliquid: 'hyperliquid',
3366
+ Mock: 'mock',
3212
3367
  Router: 'router'
3213
3368
  } as const;
3214
3369
  export type TestDummyMethodOperationExchangeEnum = typeof TestDummyMethodOperationExchangeEnum[keyof typeof TestDummyMethodOperationExchangeEnum];
@@ -0,0 +1,96 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * PMXT Sidecar API
5
+ * A unified local sidecar API for prediction markets (Polymarket, Kalshi, Limitless). This API acts as a JSON-RPC-style gateway. Each endpoint corresponds to a specific method on the generic exchange implementation.
6
+ *
7
+ * The version of the OpenAPI document: 0.4.4
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { ErrorDetail } from './ErrorDetail';
17
+ import {
18
+ ErrorDetailFromJSON,
19
+ ErrorDetailFromJSONTyped,
20
+ ErrorDetailToJSON,
21
+ ErrorDetailToJSONTyped,
22
+ } from './ErrorDetail';
23
+ import type { OrderBook } from './OrderBook';
24
+ import {
25
+ OrderBookFromJSON,
26
+ OrderBookFromJSONTyped,
27
+ OrderBookToJSON,
28
+ OrderBookToJSONTyped,
29
+ } from './OrderBook';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface FetchOrderBooks200Response
35
+ */
36
+ export interface FetchOrderBooks200Response {
37
+ /**
38
+ *
39
+ * @type {boolean}
40
+ * @memberof FetchOrderBooks200Response
41
+ */
42
+ success?: boolean;
43
+ /**
44
+ *
45
+ * @type {ErrorDetail}
46
+ * @memberof FetchOrderBooks200Response
47
+ */
48
+ error?: ErrorDetail;
49
+ /**
50
+ *
51
+ * @type {{ [key: string]: OrderBook; }}
52
+ * @memberof FetchOrderBooks200Response
53
+ */
54
+ data?: { [key: string]: OrderBook; };
55
+ }
56
+
57
+ /**
58
+ * Check if a given object implements the FetchOrderBooks200Response interface.
59
+ */
60
+ export function instanceOfFetchOrderBooks200Response(value: object): value is FetchOrderBooks200Response {
61
+ return true;
62
+ }
63
+
64
+ export function FetchOrderBooks200ResponseFromJSON(json: any): FetchOrderBooks200Response {
65
+ return FetchOrderBooks200ResponseFromJSONTyped(json, false);
66
+ }
67
+
68
+ export function FetchOrderBooks200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FetchOrderBooks200Response {
69
+ if (json == null) {
70
+ return json;
71
+ }
72
+ return {
73
+
74
+ 'success': json['success'] == null ? undefined : json['success'],
75
+ 'error': json['error'] == null ? undefined : ErrorDetailFromJSON(json['error']),
76
+ 'data': json['data'] == null ? undefined : (mapValues(json['data'], OrderBookFromJSON)),
77
+ };
78
+ }
79
+
80
+ export function FetchOrderBooks200ResponseToJSON(json: any): FetchOrderBooks200Response {
81
+ return FetchOrderBooks200ResponseToJSONTyped(json, false);
82
+ }
83
+
84
+ export function FetchOrderBooks200ResponseToJSONTyped(value?: FetchOrderBooks200Response | null, ignoreDiscriminator: boolean = false): any {
85
+ if (value == null) {
86
+ return value;
87
+ }
88
+
89
+ return {
90
+
91
+ 'success': value['success'],
92
+ 'error': ErrorDetailToJSON(value['error']),
93
+ 'data': value['data'] == null ? undefined : (mapValues(value['data'], OrderBookToJSON)),
94
+ };
95
+ }
96
+
@@ -0,0 +1,82 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * PMXT Sidecar API
5
+ * A unified local sidecar API for prediction markets (Polymarket, Kalshi, Limitless). This API acts as a JSON-RPC-style gateway. Each endpoint corresponds to a specific method on the generic exchange implementation.
6
+ *
7
+ * The version of the OpenAPI document: 0.4.4
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { ExchangeCredentials } from './ExchangeCredentials';
17
+ import {
18
+ ExchangeCredentialsFromJSON,
19
+ ExchangeCredentialsFromJSONTyped,
20
+ ExchangeCredentialsToJSON,
21
+ ExchangeCredentialsToJSONTyped,
22
+ } from './ExchangeCredentials';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface FetchOrderBooksRequest
28
+ */
29
+ export interface FetchOrderBooksRequest {
30
+ /**
31
+ *
32
+ * @type {Array<Array<string>>}
33
+ * @memberof FetchOrderBooksRequest
34
+ */
35
+ args: Array<Array<string>>;
36
+ /**
37
+ *
38
+ * @type {ExchangeCredentials}
39
+ * @memberof FetchOrderBooksRequest
40
+ */
41
+ credentials?: ExchangeCredentials;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the FetchOrderBooksRequest interface.
46
+ */
47
+ export function instanceOfFetchOrderBooksRequest(value: object): value is FetchOrderBooksRequest {
48
+ if (!('args' in value) || value['args'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function FetchOrderBooksRequestFromJSON(json: any): FetchOrderBooksRequest {
53
+ return FetchOrderBooksRequestFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function FetchOrderBooksRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FetchOrderBooksRequest {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'args': json['args'],
63
+ 'credentials': json['credentials'] == null ? undefined : ExchangeCredentialsFromJSON(json['credentials']),
64
+ };
65
+ }
66
+
67
+ export function FetchOrderBooksRequestToJSON(json: any): FetchOrderBooksRequest {
68
+ return FetchOrderBooksRequestToJSONTyped(json, false);
69
+ }
70
+
71
+ export function FetchOrderBooksRequestToJSONTyped(value?: FetchOrderBooksRequest | null, ignoreDiscriminator: boolean = false): any {
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+
76
+ return {
77
+
78
+ 'args': value['args'],
79
+ 'credentials': ExchangeCredentialsToJSON(value['credentials']),
80
+ };
81
+ }
82
+