pmxtjs 1.3.3 → 1.4.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 (52) hide show
  1. package/dist/esm/generated/src/apis/DefaultApi.d.ts +41 -1
  2. package/dist/esm/generated/src/apis/DefaultApi.js +71 -1
  3. package/dist/esm/generated/src/models/ExecutionPriceResult.d.ts +44 -0
  4. package/dist/esm/generated/src/models/ExecutionPriceResult.js +45 -0
  5. package/dist/esm/generated/src/models/GetExecutionPrice200Response.d.ts +45 -0
  6. package/dist/esm/generated/src/models/GetExecutionPrice200Response.js +46 -0
  7. package/dist/esm/generated/src/models/GetExecutionPriceDetailed200Response.d.ts +46 -0
  8. package/dist/esm/generated/src/models/GetExecutionPriceDetailed200Response.js +47 -0
  9. package/dist/esm/generated/src/models/GetExecutionPriceRequest.d.ts +40 -0
  10. package/dist/esm/generated/src/models/GetExecutionPriceRequest.js +47 -0
  11. package/dist/esm/generated/src/models/GetExecutionPriceRequestArgsInner.d.ts +22 -0
  12. package/dist/esm/generated/src/models/GetExecutionPriceRequestArgsInner.js +56 -0
  13. package/dist/esm/generated/src/models/index.d.ts +5 -0
  14. package/dist/esm/generated/src/models/index.js +5 -0
  15. package/dist/esm/pmxt/client.d.ts +36 -2
  16. package/dist/esm/pmxt/client.js +134 -4
  17. package/dist/esm/pmxt/models.d.ts +42 -0
  18. package/dist/generated/src/apis/DefaultApi.d.ts +41 -1
  19. package/dist/generated/src/apis/DefaultApi.js +71 -1
  20. package/dist/generated/src/models/ExecutionPriceResult.d.ts +44 -0
  21. package/dist/generated/src/models/ExecutionPriceResult.js +52 -0
  22. package/dist/generated/src/models/GetExecutionPrice200Response.d.ts +45 -0
  23. package/dist/generated/src/models/GetExecutionPrice200Response.js +53 -0
  24. package/dist/generated/src/models/GetExecutionPriceDetailed200Response.d.ts +46 -0
  25. package/dist/generated/src/models/GetExecutionPriceDetailed200Response.js +54 -0
  26. package/dist/generated/src/models/GetExecutionPriceRequest.d.ts +40 -0
  27. package/dist/generated/src/models/GetExecutionPriceRequest.js +54 -0
  28. package/dist/generated/src/models/GetExecutionPriceRequestArgsInner.d.ts +22 -0
  29. package/dist/generated/src/models/GetExecutionPriceRequestArgsInner.js +62 -0
  30. package/dist/generated/src/models/index.d.ts +5 -0
  31. package/dist/generated/src/models/index.js +5 -0
  32. package/dist/pmxt/client.d.ts +36 -2
  33. package/dist/pmxt/client.js +134 -4
  34. package/dist/pmxt/models.d.ts +42 -0
  35. package/generated/.openapi-generator/FILES +10 -0
  36. package/generated/docs/DefaultApi.md +138 -0
  37. package/generated/docs/ExecutionPriceResult.md +38 -0
  38. package/generated/docs/GetExecutionPrice200Response.md +38 -0
  39. package/generated/docs/GetExecutionPriceDetailed200Response.md +38 -0
  40. package/generated/docs/GetExecutionPriceRequest.md +36 -0
  41. package/generated/docs/GetExecutionPriceRequestArgsInner.md +38 -0
  42. package/generated/package.json +1 -1
  43. package/generated/src/apis/DefaultApi.ts +115 -0
  44. package/generated/src/models/ExecutionPriceResult.ts +81 -0
  45. package/generated/src/models/GetExecutionPrice200Response.ts +89 -0
  46. package/generated/src/models/GetExecutionPriceDetailed200Response.ts +96 -0
  47. package/generated/src/models/GetExecutionPriceRequest.ts +89 -0
  48. package/generated/src/models/GetExecutionPriceRequestArgsInner.ts +75 -0
  49. package/generated/src/models/index.ts +5 -0
  50. package/package.json +2 -2
  51. package/pmxt/client.ts +156 -4
  52. package/pmxt/models.ts +54 -0
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
- import type { CancelOrderRequest, CreateOrder200Response, CreateOrderRequest, FetchBalance200Response, FetchMarkets200Response, FetchMarketsRequest, FetchOHLCV200Response, FetchOHLCVRequest, FetchOpenOrders200Response, FetchOpenOrdersRequest, FetchOrderBook200Response, FetchOrderBookRequest, FetchPositions200Response, FetchPositionsRequest, FetchTrades200Response, FetchTradesRequest, GetMarketsBySlugRequest, HealthCheck200Response, SearchEvents200Response, SearchEventsRequest, SearchMarketsRequest, WatchOrderBookRequest, WatchTradesRequest } from '../models/index.js';
13
+ import type { CancelOrderRequest, CreateOrder200Response, CreateOrderRequest, FetchBalance200Response, FetchMarkets200Response, FetchMarketsRequest, FetchOHLCV200Response, FetchOHLCVRequest, FetchOpenOrders200Response, FetchOpenOrdersRequest, FetchOrderBook200Response, FetchOrderBookRequest, FetchPositions200Response, FetchPositionsRequest, FetchTrades200Response, FetchTradesRequest, GetExecutionPrice200Response, GetExecutionPriceDetailed200Response, GetExecutionPriceRequest, GetMarketsBySlugRequest, HealthCheck200Response, SearchEvents200Response, SearchEventsRequest, SearchMarketsRequest, WatchOrderBookRequest, WatchTradesRequest } from '../models/index.js';
14
14
  export interface CancelOrderOperationRequest {
15
15
  exchange: CancelOrderOperationExchangeEnum;
16
16
  cancelOrderRequest?: CancelOrderRequest;
@@ -51,6 +51,14 @@ export interface FetchTradesOperationRequest {
51
51
  exchange: FetchTradesOperationExchangeEnum;
52
52
  fetchTradesRequest?: FetchTradesRequest;
53
53
  }
54
+ export interface GetExecutionPriceOperationRequest {
55
+ exchange: GetExecutionPriceOperationExchangeEnum;
56
+ getExecutionPriceRequest?: GetExecutionPriceRequest;
57
+ }
58
+ export interface GetExecutionPriceDetailedRequest {
59
+ exchange: GetExecutionPriceDetailedExchangeEnum;
60
+ getExecutionPriceRequest?: GetExecutionPriceRequest;
61
+ }
54
62
  export interface GetMarketsBySlugOperationRequest {
55
63
  exchange: GetMarketsBySlugOperationExchangeEnum;
56
64
  getMarketsBySlugRequest?: GetMarketsBySlugRequest;
@@ -155,6 +163,22 @@ export declare class DefaultApi extends runtime.BaseAPI {
155
163
  * Fetch Trades
156
164
  */
157
165
  fetchTrades(requestParameters: FetchTradesOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FetchTrades200Response>;
166
+ /**
167
+ * Get Execution Price
168
+ */
169
+ getExecutionPriceRaw(requestParameters: GetExecutionPriceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetExecutionPrice200Response>>;
170
+ /**
171
+ * Get Execution Price
172
+ */
173
+ getExecutionPrice(requestParameters: GetExecutionPriceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetExecutionPrice200Response>;
174
+ /**
175
+ * Get Detailed Execution Price
176
+ */
177
+ getExecutionPriceDetailedRaw(requestParameters: GetExecutionPriceDetailedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetExecutionPriceDetailed200Response>>;
178
+ /**
179
+ * Get Detailed Execution Price
180
+ */
181
+ getExecutionPriceDetailed(requestParameters: GetExecutionPriceDetailedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetExecutionPriceDetailed200Response>;
158
182
  /**
159
183
  * Get Market by Slug
160
184
  */
@@ -292,6 +316,22 @@ export declare const FetchTradesOperationExchangeEnum: {
292
316
  readonly Kalshi: "kalshi";
293
317
  };
294
318
  export type FetchTradesOperationExchangeEnum = typeof FetchTradesOperationExchangeEnum[keyof typeof FetchTradesOperationExchangeEnum];
319
+ /**
320
+ * @export
321
+ */
322
+ export declare const GetExecutionPriceOperationExchangeEnum: {
323
+ readonly Polymarket: "polymarket";
324
+ readonly Kalshi: "kalshi";
325
+ };
326
+ export type GetExecutionPriceOperationExchangeEnum = typeof GetExecutionPriceOperationExchangeEnum[keyof typeof GetExecutionPriceOperationExchangeEnum];
327
+ /**
328
+ * @export
329
+ */
330
+ export declare const GetExecutionPriceDetailedExchangeEnum: {
331
+ readonly Polymarket: "polymarket";
332
+ readonly Kalshi: "kalshi";
333
+ };
334
+ export type GetExecutionPriceDetailedExchangeEnum = typeof GetExecutionPriceDetailedExchangeEnum[keyof typeof GetExecutionPriceDetailedExchangeEnum];
295
335
  /**
296
336
  * @export
297
337
  */
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import * as runtime from '../runtime.js';
15
- import { CancelOrderRequestToJSON, CreateOrder200ResponseFromJSON, CreateOrderRequestToJSON, FetchBalance200ResponseFromJSON, FetchMarkets200ResponseFromJSON, FetchMarketsRequestToJSON, FetchOHLCV200ResponseFromJSON, FetchOHLCVRequestToJSON, FetchOpenOrders200ResponseFromJSON, FetchOpenOrdersRequestToJSON, FetchOrderBook200ResponseFromJSON, FetchOrderBookRequestToJSON, FetchPositions200ResponseFromJSON, FetchPositionsRequestToJSON, FetchTrades200ResponseFromJSON, FetchTradesRequestToJSON, GetMarketsBySlugRequestToJSON, HealthCheck200ResponseFromJSON, SearchEvents200ResponseFromJSON, SearchEventsRequestToJSON, SearchMarketsRequestToJSON, WatchOrderBookRequestToJSON, WatchTradesRequestToJSON, } from '../models/index.js';
15
+ import { CancelOrderRequestToJSON, CreateOrder200ResponseFromJSON, CreateOrderRequestToJSON, FetchBalance200ResponseFromJSON, FetchMarkets200ResponseFromJSON, FetchMarketsRequestToJSON, FetchOHLCV200ResponseFromJSON, FetchOHLCVRequestToJSON, FetchOpenOrders200ResponseFromJSON, FetchOpenOrdersRequestToJSON, FetchOrderBook200ResponseFromJSON, FetchOrderBookRequestToJSON, FetchPositions200ResponseFromJSON, FetchPositionsRequestToJSON, FetchTrades200ResponseFromJSON, FetchTradesRequestToJSON, GetExecutionPrice200ResponseFromJSON, GetExecutionPriceDetailed200ResponseFromJSON, GetExecutionPriceRequestToJSON, GetMarketsBySlugRequestToJSON, HealthCheck200ResponseFromJSON, SearchEvents200ResponseFromJSON, SearchEventsRequestToJSON, SearchMarketsRequestToJSON, WatchOrderBookRequestToJSON, WatchTradesRequestToJSON, } from '../models/index.js';
16
16
  /**
17
17
  *
18
18
  */
@@ -297,6 +297,62 @@ export class DefaultApi extends runtime.BaseAPI {
297
297
  const response = await this.fetchTradesRaw(requestParameters, initOverrides);
298
298
  return await response.value();
299
299
  }
300
+ /**
301
+ * Get Execution Price
302
+ */
303
+ async getExecutionPriceRaw(requestParameters, initOverrides) {
304
+ if (requestParameters['exchange'] == null) {
305
+ throw new runtime.RequiredError('exchange', 'Required parameter "exchange" was null or undefined when calling getExecutionPrice().');
306
+ }
307
+ const queryParameters = {};
308
+ const headerParameters = {};
309
+ headerParameters['Content-Type'] = 'application/json';
310
+ let urlPath = `/api/{exchange}/getExecutionPrice`;
311
+ urlPath = urlPath.replace(`{${"exchange"}}`, encodeURIComponent(String(requestParameters['exchange'])));
312
+ const response = await this.request({
313
+ path: urlPath,
314
+ method: 'POST',
315
+ headers: headerParameters,
316
+ query: queryParameters,
317
+ body: GetExecutionPriceRequestToJSON(requestParameters['getExecutionPriceRequest']),
318
+ }, initOverrides);
319
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetExecutionPrice200ResponseFromJSON(jsonValue));
320
+ }
321
+ /**
322
+ * Get Execution Price
323
+ */
324
+ async getExecutionPrice(requestParameters, initOverrides) {
325
+ const response = await this.getExecutionPriceRaw(requestParameters, initOverrides);
326
+ return await response.value();
327
+ }
328
+ /**
329
+ * Get Detailed Execution Price
330
+ */
331
+ async getExecutionPriceDetailedRaw(requestParameters, initOverrides) {
332
+ if (requestParameters['exchange'] == null) {
333
+ throw new runtime.RequiredError('exchange', 'Required parameter "exchange" was null or undefined when calling getExecutionPriceDetailed().');
334
+ }
335
+ const queryParameters = {};
336
+ const headerParameters = {};
337
+ headerParameters['Content-Type'] = 'application/json';
338
+ let urlPath = `/api/{exchange}/getExecutionPriceDetailed`;
339
+ urlPath = urlPath.replace(`{${"exchange"}}`, encodeURIComponent(String(requestParameters['exchange'])));
340
+ const response = await this.request({
341
+ path: urlPath,
342
+ method: 'POST',
343
+ headers: headerParameters,
344
+ query: queryParameters,
345
+ body: GetExecutionPriceRequestToJSON(requestParameters['getExecutionPriceRequest']),
346
+ }, initOverrides);
347
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetExecutionPriceDetailed200ResponseFromJSON(jsonValue));
348
+ }
349
+ /**
350
+ * Get Detailed Execution Price
351
+ */
352
+ async getExecutionPriceDetailed(requestParameters, initOverrides) {
353
+ const response = await this.getExecutionPriceDetailedRaw(requestParameters, initOverrides);
354
+ return await response.value();
355
+ }
300
356
  /**
301
357
  * Get Market by Slug
302
358
  */
@@ -538,6 +594,20 @@ export const FetchTradesOperationExchangeEnum = {
538
594
  Polymarket: 'polymarket',
539
595
  Kalshi: 'kalshi'
540
596
  };
597
+ /**
598
+ * @export
599
+ */
600
+ export const GetExecutionPriceOperationExchangeEnum = {
601
+ Polymarket: 'polymarket',
602
+ Kalshi: 'kalshi'
603
+ };
604
+ /**
605
+ * @export
606
+ */
607
+ export const GetExecutionPriceDetailedExchangeEnum = {
608
+ Polymarket: 'polymarket',
609
+ Kalshi: 'kalshi'
610
+ };
541
611
  /**
542
612
  * @export
543
613
  */
@@ -0,0 +1,44 @@
1
+ /**
2
+ * PMXT Sidecar API
3
+ * A unified local sidecar API for prediction markets (Polymarket, Kalshi). This API acts as a JSON-RPC-style gateway. Each endpoint corresponds to a specific method on the generic exchange implementation.
4
+ *
5
+ * The version of the OpenAPI document: 0.4.4
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ExecutionPriceResult
16
+ */
17
+ export interface ExecutionPriceResult {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof ExecutionPriceResult
22
+ */
23
+ price?: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof ExecutionPriceResult
28
+ */
29
+ filledAmount?: number;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof ExecutionPriceResult
34
+ */
35
+ fullyFilled?: boolean;
36
+ }
37
+ /**
38
+ * Check if a given object implements the ExecutionPriceResult interface.
39
+ */
40
+ export declare function instanceOfExecutionPriceResult(value: object): value is ExecutionPriceResult;
41
+ export declare function ExecutionPriceResultFromJSON(json: any): ExecutionPriceResult;
42
+ export declare function ExecutionPriceResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExecutionPriceResult;
43
+ export declare function ExecutionPriceResultToJSON(json: any): ExecutionPriceResult;
44
+ export declare function ExecutionPriceResultToJSONTyped(value?: ExecutionPriceResult | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,45 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * PMXT Sidecar API
5
+ * A unified local sidecar API for prediction markets (Polymarket, Kalshi). 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
+ * Check if a given object implements the ExecutionPriceResult interface.
16
+ */
17
+ export function instanceOfExecutionPriceResult(value) {
18
+ return true;
19
+ }
20
+ export function ExecutionPriceResultFromJSON(json) {
21
+ return ExecutionPriceResultFromJSONTyped(json, false);
22
+ }
23
+ export function ExecutionPriceResultFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'price': json['price'] == null ? undefined : json['price'],
29
+ 'filledAmount': json['filledAmount'] == null ? undefined : json['filledAmount'],
30
+ 'fullyFilled': json['fullyFilled'] == null ? undefined : json['fullyFilled'],
31
+ };
32
+ }
33
+ export function ExecutionPriceResultToJSON(json) {
34
+ return ExecutionPriceResultToJSONTyped(json, false);
35
+ }
36
+ export function ExecutionPriceResultToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'price': value['price'],
42
+ 'filledAmount': value['filledAmount'],
43
+ 'fullyFilled': value['fullyFilled'],
44
+ };
45
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * PMXT Sidecar API
3
+ * A unified local sidecar API for prediction markets (Polymarket, Kalshi). This API acts as a JSON-RPC-style gateway. Each endpoint corresponds to a specific method on the generic exchange implementation.
4
+ *
5
+ * The version of the OpenAPI document: 0.4.4
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ErrorDetail } from './ErrorDetail.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetExecutionPrice200Response
17
+ */
18
+ export interface GetExecutionPrice200Response {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof GetExecutionPrice200Response
23
+ */
24
+ success?: boolean;
25
+ /**
26
+ *
27
+ * @type {ErrorDetail}
28
+ * @memberof GetExecutionPrice200Response
29
+ */
30
+ error?: ErrorDetail;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof GetExecutionPrice200Response
35
+ */
36
+ data?: number;
37
+ }
38
+ /**
39
+ * Check if a given object implements the GetExecutionPrice200Response interface.
40
+ */
41
+ export declare function instanceOfGetExecutionPrice200Response(value: object): value is GetExecutionPrice200Response;
42
+ export declare function GetExecutionPrice200ResponseFromJSON(json: any): GetExecutionPrice200Response;
43
+ export declare function GetExecutionPrice200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetExecutionPrice200Response;
44
+ export declare function GetExecutionPrice200ResponseToJSON(json: any): GetExecutionPrice200Response;
45
+ export declare function GetExecutionPrice200ResponseToJSONTyped(value?: GetExecutionPrice200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,46 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * PMXT Sidecar API
5
+ * A unified local sidecar API for prediction markets (Polymarket, Kalshi). 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
+ import { ErrorDetailFromJSON, ErrorDetailToJSON, } from './ErrorDetail.js';
15
+ /**
16
+ * Check if a given object implements the GetExecutionPrice200Response interface.
17
+ */
18
+ export function instanceOfGetExecutionPrice200Response(value) {
19
+ return true;
20
+ }
21
+ export function GetExecutionPrice200ResponseFromJSON(json) {
22
+ return GetExecutionPrice200ResponseFromJSONTyped(json, false);
23
+ }
24
+ export function GetExecutionPrice200ResponseFromJSONTyped(json, ignoreDiscriminator) {
25
+ if (json == null) {
26
+ return json;
27
+ }
28
+ return {
29
+ 'success': json['success'] == null ? undefined : json['success'],
30
+ 'error': json['error'] == null ? undefined : ErrorDetailFromJSON(json['error']),
31
+ 'data': json['data'] == null ? undefined : json['data'],
32
+ };
33
+ }
34
+ export function GetExecutionPrice200ResponseToJSON(json) {
35
+ return GetExecutionPrice200ResponseToJSONTyped(json, false);
36
+ }
37
+ export function GetExecutionPrice200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'success': value['success'],
43
+ 'error': ErrorDetailToJSON(value['error']),
44
+ 'data': value['data'],
45
+ };
46
+ }
@@ -0,0 +1,46 @@
1
+ /**
2
+ * PMXT Sidecar API
3
+ * A unified local sidecar API for prediction markets (Polymarket, Kalshi). This API acts as a JSON-RPC-style gateway. Each endpoint corresponds to a specific method on the generic exchange implementation.
4
+ *
5
+ * The version of the OpenAPI document: 0.4.4
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ErrorDetail } from './ErrorDetail.js';
13
+ import type { ExecutionPriceResult } from './ExecutionPriceResult.js';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface GetExecutionPriceDetailed200Response
18
+ */
19
+ export interface GetExecutionPriceDetailed200Response {
20
+ /**
21
+ *
22
+ * @type {boolean}
23
+ * @memberof GetExecutionPriceDetailed200Response
24
+ */
25
+ success?: boolean;
26
+ /**
27
+ *
28
+ * @type {ErrorDetail}
29
+ * @memberof GetExecutionPriceDetailed200Response
30
+ */
31
+ error?: ErrorDetail;
32
+ /**
33
+ *
34
+ * @type {ExecutionPriceResult}
35
+ * @memberof GetExecutionPriceDetailed200Response
36
+ */
37
+ data?: ExecutionPriceResult;
38
+ }
39
+ /**
40
+ * Check if a given object implements the GetExecutionPriceDetailed200Response interface.
41
+ */
42
+ export declare function instanceOfGetExecutionPriceDetailed200Response(value: object): value is GetExecutionPriceDetailed200Response;
43
+ export declare function GetExecutionPriceDetailed200ResponseFromJSON(json: any): GetExecutionPriceDetailed200Response;
44
+ export declare function GetExecutionPriceDetailed200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetExecutionPriceDetailed200Response;
45
+ export declare function GetExecutionPriceDetailed200ResponseToJSON(json: any): GetExecutionPriceDetailed200Response;
46
+ export declare function GetExecutionPriceDetailed200ResponseToJSONTyped(value?: GetExecutionPriceDetailed200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * PMXT Sidecar API
5
+ * A unified local sidecar API for prediction markets (Polymarket, Kalshi). 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
+ import { ErrorDetailFromJSON, ErrorDetailToJSON, } from './ErrorDetail.js';
15
+ import { ExecutionPriceResultFromJSON, ExecutionPriceResultToJSON, } from './ExecutionPriceResult.js';
16
+ /**
17
+ * Check if a given object implements the GetExecutionPriceDetailed200Response interface.
18
+ */
19
+ export function instanceOfGetExecutionPriceDetailed200Response(value) {
20
+ return true;
21
+ }
22
+ export function GetExecutionPriceDetailed200ResponseFromJSON(json) {
23
+ return GetExecutionPriceDetailed200ResponseFromJSONTyped(json, false);
24
+ }
25
+ export function GetExecutionPriceDetailed200ResponseFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'success': json['success'] == null ? undefined : json['success'],
31
+ 'error': json['error'] == null ? undefined : ErrorDetailFromJSON(json['error']),
32
+ 'data': json['data'] == null ? undefined : ExecutionPriceResultFromJSON(json['data']),
33
+ };
34
+ }
35
+ export function GetExecutionPriceDetailed200ResponseToJSON(json) {
36
+ return GetExecutionPriceDetailed200ResponseToJSONTyped(json, false);
37
+ }
38
+ export function GetExecutionPriceDetailed200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
39
+ if (value == null) {
40
+ return value;
41
+ }
42
+ return {
43
+ 'success': value['success'],
44
+ 'error': ErrorDetailToJSON(value['error']),
45
+ 'data': ExecutionPriceResultToJSON(value['data']),
46
+ };
47
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * PMXT Sidecar API
3
+ * A unified local sidecar API for prediction markets (Polymarket, Kalshi). This API acts as a JSON-RPC-style gateway. Each endpoint corresponds to a specific method on the generic exchange implementation.
4
+ *
5
+ * The version of the OpenAPI document: 0.4.4
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { GetExecutionPriceRequestArgsInner } from './GetExecutionPriceRequestArgsInner.js';
13
+ import type { ExchangeCredentials } from './ExchangeCredentials.js';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface GetExecutionPriceRequest
18
+ */
19
+ export interface GetExecutionPriceRequest {
20
+ /**
21
+ * [orderBook, side, amount]
22
+ * @type {Array<GetExecutionPriceRequestArgsInner>}
23
+ * @memberof GetExecutionPriceRequest
24
+ */
25
+ args: Array<GetExecutionPriceRequestArgsInner>;
26
+ /**
27
+ *
28
+ * @type {ExchangeCredentials}
29
+ * @memberof GetExecutionPriceRequest
30
+ */
31
+ credentials?: ExchangeCredentials;
32
+ }
33
+ /**
34
+ * Check if a given object implements the GetExecutionPriceRequest interface.
35
+ */
36
+ export declare function instanceOfGetExecutionPriceRequest(value: object): value is GetExecutionPriceRequest;
37
+ export declare function GetExecutionPriceRequestFromJSON(json: any): GetExecutionPriceRequest;
38
+ export declare function GetExecutionPriceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetExecutionPriceRequest;
39
+ export declare function GetExecutionPriceRequestToJSON(json: any): GetExecutionPriceRequest;
40
+ export declare function GetExecutionPriceRequestToJSONTyped(value?: GetExecutionPriceRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * PMXT Sidecar API
5
+ * A unified local sidecar API for prediction markets (Polymarket, Kalshi). 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
+ import { GetExecutionPriceRequestArgsInnerFromJSON, GetExecutionPriceRequestArgsInnerToJSON, } from './GetExecutionPriceRequestArgsInner.js';
15
+ import { ExchangeCredentialsFromJSON, ExchangeCredentialsToJSON, } from './ExchangeCredentials.js';
16
+ /**
17
+ * Check if a given object implements the GetExecutionPriceRequest interface.
18
+ */
19
+ export function instanceOfGetExecutionPriceRequest(value) {
20
+ if (!('args' in value) || value['args'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function GetExecutionPriceRequestFromJSON(json) {
25
+ return GetExecutionPriceRequestFromJSONTyped(json, false);
26
+ }
27
+ export function GetExecutionPriceRequestFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'args': (json['args'].map(GetExecutionPriceRequestArgsInnerFromJSON)),
33
+ 'credentials': json['credentials'] == null ? undefined : ExchangeCredentialsFromJSON(json['credentials']),
34
+ };
35
+ }
36
+ export function GetExecutionPriceRequestToJSON(json) {
37
+ return GetExecutionPriceRequestToJSONTyped(json, false);
38
+ }
39
+ export function GetExecutionPriceRequestToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'args': (value['args'].map(GetExecutionPriceRequestArgsInnerToJSON)),
45
+ 'credentials': ExchangeCredentialsToJSON(value['credentials']),
46
+ };
47
+ }
@@ -0,0 +1,22 @@
1
+ /**
2
+ * PMXT Sidecar API
3
+ * A unified local sidecar API for prediction markets (Polymarket, Kalshi). This API acts as a JSON-RPC-style gateway. Each endpoint corresponds to a specific method on the generic exchange implementation.
4
+ *
5
+ * The version of the OpenAPI document: 0.4.4
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { OrderBook } from './OrderBook.js';
13
+ /**
14
+ * @type GetExecutionPriceRequestArgsInner
15
+ *
16
+ * @export
17
+ */
18
+ export type GetExecutionPriceRequestArgsInner = OrderBook | number | string;
19
+ export declare function GetExecutionPriceRequestArgsInnerFromJSON(json: any): GetExecutionPriceRequestArgsInner;
20
+ export declare function GetExecutionPriceRequestArgsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetExecutionPriceRequestArgsInner;
21
+ export declare function GetExecutionPriceRequestArgsInnerToJSON(json: any): any;
22
+ export declare function GetExecutionPriceRequestArgsInnerToJSONTyped(value?: GetExecutionPriceRequestArgsInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * PMXT Sidecar API
5
+ * A unified local sidecar API for prediction markets (Polymarket, Kalshi). 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
+ import { instanceOfOrderBook, OrderBookFromJSONTyped, OrderBookToJSON, } from './OrderBook.js';
15
+ export function GetExecutionPriceRequestArgsInnerFromJSON(json) {
16
+ return GetExecutionPriceRequestArgsInnerFromJSONTyped(json, false);
17
+ }
18
+ export function GetExecutionPriceRequestArgsInnerFromJSONTyped(json, ignoreDiscriminator) {
19
+ if (json == null) {
20
+ return json;
21
+ }
22
+ if (typeof json !== 'object') {
23
+ return json;
24
+ }
25
+ if (instanceOfOrderBook(json)) {
26
+ return OrderBookFromJSONTyped(json, true);
27
+ }
28
+ if (typeof json === 'number') {
29
+ return json;
30
+ }
31
+ if (typeof json === 'string' && (json === 'buy' || json === 'sell')) {
32
+ return json;
33
+ }
34
+ return {};
35
+ }
36
+ export function GetExecutionPriceRequestArgsInnerToJSON(json) {
37
+ return GetExecutionPriceRequestArgsInnerToJSONTyped(json, false);
38
+ }
39
+ export function GetExecutionPriceRequestArgsInnerToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ if (typeof value !== 'object') {
44
+ return value;
45
+ }
46
+ if (instanceOfOrderBook(value)) {
47
+ return OrderBookToJSON(value);
48
+ }
49
+ if (typeof value === 'number') {
50
+ return value;
51
+ }
52
+ if (typeof value === 'string' && (value === 'buy' || value === 'sell')) {
53
+ return value;
54
+ }
55
+ return {};
56
+ }
@@ -8,6 +8,7 @@ export * from './CreateOrderRequest.js';
8
8
  export * from './ErrorDetail.js';
9
9
  export * from './ErrorResponse.js';
10
10
  export * from './ExchangeCredentials.js';
11
+ export * from './ExecutionPriceResult.js';
11
12
  export * from './FetchBalance200Response.js';
12
13
  export * from './FetchMarkets200Response.js';
13
14
  export * from './FetchMarketsRequest.js';
@@ -22,6 +23,10 @@ export * from './FetchPositions200Response.js';
22
23
  export * from './FetchPositionsRequest.js';
23
24
  export * from './FetchTrades200Response.js';
24
25
  export * from './FetchTradesRequest.js';
26
+ export * from './GetExecutionPrice200Response.js';
27
+ export * from './GetExecutionPriceDetailed200Response.js';
28
+ export * from './GetExecutionPriceRequest.js';
29
+ export * from './GetExecutionPriceRequestArgsInner.js';
25
30
  export * from './GetMarketsBySlugRequest.js';
26
31
  export * from './HealthCheck200Response.js';
27
32
  export * from './HistoryFilterParams.js';
@@ -10,6 +10,7 @@ export * from './CreateOrderRequest.js';
10
10
  export * from './ErrorDetail.js';
11
11
  export * from './ErrorResponse.js';
12
12
  export * from './ExchangeCredentials.js';
13
+ export * from './ExecutionPriceResult.js';
13
14
  export * from './FetchBalance200Response.js';
14
15
  export * from './FetchMarkets200Response.js';
15
16
  export * from './FetchMarketsRequest.js';
@@ -24,6 +25,10 @@ export * from './FetchPositions200Response.js';
24
25
  export * from './FetchPositionsRequest.js';
25
26
  export * from './FetchTrades200Response.js';
26
27
  export * from './FetchTradesRequest.js';
28
+ export * from './GetExecutionPrice200Response.js';
29
+ export * from './GetExecutionPriceDetailed200Response.js';
30
+ export * from './GetExecutionPriceRequest.js';
31
+ export * from './GetExecutionPriceRequestArgsInner.js';
27
32
  export * from './GetMarketsBySlugRequest.js';
28
33
  export * from './HealthCheck200Response.js';
29
34
  export * from './HistoryFilterParams.js';