pmxtjs 2.43.10 → 2.43.11

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 (31) hide show
  1. package/dist/esm/generated/src/apis/DefaultApi.d.ts +3 -36
  2. package/dist/esm/generated/src/apis/DefaultApi.js +3 -51
  3. package/dist/esm/generated/src/models/index.d.ts +0 -2
  4. package/dist/esm/generated/src/models/index.js +0 -2
  5. package/dist/esm/pmxt/client.d.ts +0 -1
  6. package/dist/esm/pmxt/client.js +0 -27
  7. package/dist/generated/src/apis/DefaultApi.d.ts +3 -36
  8. package/dist/generated/src/apis/DefaultApi.js +3 -51
  9. package/dist/generated/src/models/index.d.ts +0 -2
  10. package/dist/generated/src/models/index.js +0 -2
  11. package/dist/pmxt/client.d.ts +0 -1
  12. package/dist/pmxt/client.js +0 -27
  13. package/generated/.openapi-generator/FILES +0 -4
  14. package/generated/docs/DefaultApi.md +2 -71
  15. package/generated/package.json +1 -1
  16. package/generated/src/apis/DefaultApi.ts +2 -74
  17. package/generated/src/models/index.ts +0 -2
  18. package/package.json +2 -2
  19. package/pmxt/client.ts +0 -25
  20. package/dist/esm/generated/src/models/TestDummyMethod200Response.d.ts +0 -45
  21. package/dist/esm/generated/src/models/TestDummyMethod200Response.js +0 -46
  22. package/dist/esm/generated/src/models/TestDummyMethodRequest.d.ts +0 -39
  23. package/dist/esm/generated/src/models/TestDummyMethodRequest.js +0 -44
  24. package/dist/generated/src/models/TestDummyMethod200Response.d.ts +0 -45
  25. package/dist/generated/src/models/TestDummyMethod200Response.js +0 -53
  26. package/dist/generated/src/models/TestDummyMethodRequest.d.ts +0 -39
  27. package/dist/generated/src/models/TestDummyMethodRequest.js +0 -51
  28. package/generated/docs/TestDummyMethod200Response.md +0 -38
  29. package/generated/docs/TestDummyMethodRequest.md +0 -36
  30. package/generated/src/models/TestDummyMethod200Response.ts +0 -89
  31. package/generated/src/models/TestDummyMethodRequest.ts +0 -81
@@ -55,8 +55,6 @@ import type {
55
55
  LoadMarketsRequest,
56
56
  MarketFilterCriteria,
57
57
  SubmitOrderRequest,
58
- TestDummyMethod200Response,
59
- TestDummyMethodRequest,
60
58
  UnifiedEvent,
61
59
  UnifiedMarket,
62
60
  } from '../models/index';
@@ -141,10 +139,6 @@ import {
141
139
  MarketFilterCriteriaToJSON,
142
140
  SubmitOrderRequestFromJSON,
143
141
  SubmitOrderRequestToJSON,
144
- TestDummyMethod200ResponseFromJSON,
145
- TestDummyMethod200ResponseToJSON,
146
- TestDummyMethodRequestFromJSON,
147
- TestDummyMethodRequestToJSON,
148
142
  UnifiedEventFromJSON,
149
143
  UnifiedEventToJSON,
150
144
  UnifiedMarketFromJSON,
@@ -446,11 +440,6 @@ export interface SubmitOrderOperationRequest {
446
440
  submitOrderRequest?: SubmitOrderRequest;
447
441
  }
448
442
 
449
- export interface TestDummyMethodOperationRequest {
450
- exchange: TestDummyMethodOperationExchangeEnum;
451
- testDummyMethodRequest?: TestDummyMethodRequest;
452
- }
453
-
454
443
  /**
455
444
  *
456
445
  */
@@ -541,6 +530,7 @@ export class DefaultApi extends runtime.BaseAPI {
541
530
  }
542
531
 
543
532
  /**
533
+ * Close all WebSocket connections and clean up resources. Call this when you\'re done streaming to properly release connections.
544
534
  * Close
545
535
  */
546
536
  async closeRaw(requestParameters: CloseOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BaseResponse>> {
@@ -573,6 +563,7 @@ export class DefaultApi extends runtime.BaseAPI {
573
563
  }
574
564
 
575
565
  /**
566
+ * Close all WebSocket connections and clean up resources. Call this when you\'re done streaming to properly release connections.
576
567
  * Close
577
568
  */
578
569
  async close(requestParameters: CloseOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BaseResponse> {
@@ -2478,48 +2469,6 @@ export class DefaultApi extends runtime.BaseAPI {
2478
2469
  return await response.value();
2479
2470
  }
2480
2471
 
2481
- /**
2482
- * Test method for auto-generation verification.
2483
- * Test Dummy Method
2484
- */
2485
- async testDummyMethodRaw(requestParameters: TestDummyMethodOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TestDummyMethod200Response>> {
2486
- if (requestParameters['exchange'] == null) {
2487
- throw new runtime.RequiredError(
2488
- 'exchange',
2489
- 'Required parameter "exchange" was null or undefined when calling testDummyMethod().'
2490
- );
2491
- }
2492
-
2493
- const queryParameters: any = {};
2494
-
2495
- const headerParameters: runtime.HTTPHeaders = {};
2496
-
2497
- headerParameters['Content-Type'] = 'application/json';
2498
-
2499
-
2500
- let urlPath = `/api/{exchange}/testDummyMethod`;
2501
- urlPath = urlPath.replace(`{${"exchange"}}`, encodeURIComponent(String(requestParameters['exchange'])));
2502
-
2503
- const response = await this.request({
2504
- path: urlPath,
2505
- method: 'POST',
2506
- headers: headerParameters,
2507
- query: queryParameters,
2508
- body: TestDummyMethodRequestToJSON(requestParameters['testDummyMethodRequest']),
2509
- }, initOverrides);
2510
-
2511
- return new runtime.JSONApiResponse(response, (jsonValue) => TestDummyMethod200ResponseFromJSON(jsonValue));
2512
- }
2513
-
2514
- /**
2515
- * Test method for auto-generation verification.
2516
- * Test Dummy Method
2517
- */
2518
- async testDummyMethod(requestParameters: TestDummyMethodOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TestDummyMethod200Response> {
2519
- const response = await this.testDummyMethodRaw(requestParameters, initOverrides);
2520
- return await response.value();
2521
- }
2522
-
2523
2472
  }
2524
2473
 
2525
2474
  /**
@@ -3369,24 +3318,3 @@ export const SubmitOrderOperationExchangeEnum = {
3369
3318
  Router: 'router'
3370
3319
  } as const;
3371
3320
  export type SubmitOrderOperationExchangeEnum = typeof SubmitOrderOperationExchangeEnum[keyof typeof SubmitOrderOperationExchangeEnum];
3372
- /**
3373
- * @export
3374
- */
3375
- export const TestDummyMethodOperationExchangeEnum = {
3376
- Polymarket: 'polymarket',
3377
- Kalshi: 'kalshi',
3378
- KalshiDemo: 'kalshi-demo',
3379
- Limitless: 'limitless',
3380
- Probable: 'probable',
3381
- Baozi: 'baozi',
3382
- Myriad: 'myriad',
3383
- Opinion: 'opinion',
3384
- Metaculus: 'metaculus',
3385
- Smarkets: 'smarkets',
3386
- PolymarketUs: 'polymarket_us',
3387
- GeminiTitan: 'gemini-titan',
3388
- Hyperliquid: 'hyperliquid',
3389
- Mock: 'mock',
3390
- Router: 'router'
3391
- } as const;
3392
- export type TestDummyMethodOperationExchangeEnum = typeof TestDummyMethodOperationExchangeEnum[keyof typeof TestDummyMethodOperationExchangeEnum];
@@ -97,8 +97,6 @@ export * from './Position';
97
97
  export * from './PriceCandle';
98
98
  export * from './PriceComparison';
99
99
  export * from './SubmitOrderRequest';
100
- export * from './TestDummyMethod200Response';
101
- export * from './TestDummyMethodRequest';
102
100
  export * from './Trade';
103
101
  export * from './TradesParams';
104
102
  export * from './UnifiedEvent';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmxtjs",
3
- "version": "2.43.10",
3
+ "version": "2.43.11",
4
4
  "description": "Unified prediction market data API - The ccxt for prediction markets",
5
5
  "author": "PMXT Contributors",
6
6
  "repository": {
@@ -43,7 +43,7 @@
43
43
  "unified"
44
44
  ],
45
45
  "dependencies": {
46
- "pmxt-core": "2.43.10",
46
+ "pmxt-core": "2.43.11",
47
47
  "ws": "^8.18.0"
48
48
  },
49
49
  "devDependencies": {
package/pmxt/client.ts CHANGED
@@ -1115,31 +1115,6 @@ export abstract class Exchange {
1115
1115
  }
1116
1116
  }
1117
1117
 
1118
- async testDummyMethod(param?: string): Promise<string> {
1119
- await this.initPromise;
1120
- try {
1121
- const args: any[] = [];
1122
- if (param !== undefined) args.push(param);
1123
- const response = await this.fetchWithRetry(`${this.resolveBaseUrl()}/api/${this.exchangeName}/testDummyMethod`, {
1124
- method: 'POST',
1125
- headers: { 'Content-Type': 'application/json', ...this.getAuthHeaders() },
1126
- body: JSON.stringify({ args, credentials: this.getCredentials() }),
1127
- });
1128
- if (!response.ok) {
1129
- const body = await response.json().catch(() => ({}));
1130
- if (body.error && typeof body.error === "object") {
1131
- throw fromServerError(body.error);
1132
- }
1133
- throw new PmxtError(body.error?.message || response.statusText);
1134
- }
1135
- const json = await response.json();
1136
- return this.handleResponse(json);
1137
- } catch (error) {
1138
- if (error instanceof PmxtError) throw error;
1139
- throw new PmxtError(`Failed to testDummyMethod: ${error}`);
1140
- }
1141
- }
1142
-
1143
1118
  async close(): Promise<void> {
1144
1119
  await this.initPromise;
1145
1120
  try {
@@ -1,45 +0,0 @@
1
- /**
2
- * PMXT Sidecar API
3
- * 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.
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 TestDummyMethod200Response
17
- */
18
- export interface TestDummyMethod200Response {
19
- /**
20
- *
21
- * @type {boolean}
22
- * @memberof TestDummyMethod200Response
23
- */
24
- success?: boolean;
25
- /**
26
- *
27
- * @type {ErrorDetail}
28
- * @memberof TestDummyMethod200Response
29
- */
30
- error?: ErrorDetail;
31
- /**
32
- *
33
- * @type {string}
34
- * @memberof TestDummyMethod200Response
35
- */
36
- data?: string;
37
- }
38
- /**
39
- * Check if a given object implements the TestDummyMethod200Response interface.
40
- */
41
- export declare function instanceOfTestDummyMethod200Response(value: object): value is TestDummyMethod200Response;
42
- export declare function TestDummyMethod200ResponseFromJSON(json: any): TestDummyMethod200Response;
43
- export declare function TestDummyMethod200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TestDummyMethod200Response;
44
- export declare function TestDummyMethod200ResponseToJSON(json: any): TestDummyMethod200Response;
45
- export declare function TestDummyMethod200ResponseToJSONTyped(value?: TestDummyMethod200Response | null, ignoreDiscriminator?: boolean): any;
@@ -1,46 +0,0 @@
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
- import { ErrorDetailFromJSON, ErrorDetailToJSON, } from './ErrorDetail.js';
15
- /**
16
- * Check if a given object implements the TestDummyMethod200Response interface.
17
- */
18
- export function instanceOfTestDummyMethod200Response(value) {
19
- return true;
20
- }
21
- export function TestDummyMethod200ResponseFromJSON(json) {
22
- return TestDummyMethod200ResponseFromJSONTyped(json, false);
23
- }
24
- export function TestDummyMethod200ResponseFromJSONTyped(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 TestDummyMethod200ResponseToJSON(json) {
35
- return TestDummyMethod200ResponseToJSONTyped(json, false);
36
- }
37
- export function TestDummyMethod200ResponseToJSONTyped(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
- }
@@ -1,39 +0,0 @@
1
- /**
2
- * PMXT Sidecar API
3
- * 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.
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 { ExchangeCredentials } from './ExchangeCredentials.js';
13
- /**
14
- *
15
- * @export
16
- * @interface TestDummyMethodRequest
17
- */
18
- export interface TestDummyMethodRequest {
19
- /**
20
- *
21
- * @type {Array<string>}
22
- * @memberof TestDummyMethodRequest
23
- */
24
- args?: Array<string>;
25
- /**
26
- *
27
- * @type {ExchangeCredentials}
28
- * @memberof TestDummyMethodRequest
29
- */
30
- credentials?: ExchangeCredentials;
31
- }
32
- /**
33
- * Check if a given object implements the TestDummyMethodRequest interface.
34
- */
35
- export declare function instanceOfTestDummyMethodRequest(value: object): value is TestDummyMethodRequest;
36
- export declare function TestDummyMethodRequestFromJSON(json: any): TestDummyMethodRequest;
37
- export declare function TestDummyMethodRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TestDummyMethodRequest;
38
- export declare function TestDummyMethodRequestToJSON(json: any): TestDummyMethodRequest;
39
- export declare function TestDummyMethodRequestToJSONTyped(value?: TestDummyMethodRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,44 +0,0 @@
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
- import { ExchangeCredentialsFromJSON, ExchangeCredentialsToJSON, } from './ExchangeCredentials.js';
15
- /**
16
- * Check if a given object implements the TestDummyMethodRequest interface.
17
- */
18
- export function instanceOfTestDummyMethodRequest(value) {
19
- return true;
20
- }
21
- export function TestDummyMethodRequestFromJSON(json) {
22
- return TestDummyMethodRequestFromJSONTyped(json, false);
23
- }
24
- export function TestDummyMethodRequestFromJSONTyped(json, ignoreDiscriminator) {
25
- if (json == null) {
26
- return json;
27
- }
28
- return {
29
- 'args': json['args'] == null ? undefined : json['args'],
30
- 'credentials': json['credentials'] == null ? undefined : ExchangeCredentialsFromJSON(json['credentials']),
31
- };
32
- }
33
- export function TestDummyMethodRequestToJSON(json) {
34
- return TestDummyMethodRequestToJSONTyped(json, false);
35
- }
36
- export function TestDummyMethodRequestToJSONTyped(value, ignoreDiscriminator = false) {
37
- if (value == null) {
38
- return value;
39
- }
40
- return {
41
- 'args': value['args'],
42
- 'credentials': ExchangeCredentialsToJSON(value['credentials']),
43
- };
44
- }
@@ -1,45 +0,0 @@
1
- /**
2
- * PMXT Sidecar API
3
- * 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.
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';
13
- /**
14
- *
15
- * @export
16
- * @interface TestDummyMethod200Response
17
- */
18
- export interface TestDummyMethod200Response {
19
- /**
20
- *
21
- * @type {boolean}
22
- * @memberof TestDummyMethod200Response
23
- */
24
- success?: boolean;
25
- /**
26
- *
27
- * @type {ErrorDetail}
28
- * @memberof TestDummyMethod200Response
29
- */
30
- error?: ErrorDetail;
31
- /**
32
- *
33
- * @type {string}
34
- * @memberof TestDummyMethod200Response
35
- */
36
- data?: string;
37
- }
38
- /**
39
- * Check if a given object implements the TestDummyMethod200Response interface.
40
- */
41
- export declare function instanceOfTestDummyMethod200Response(value: object): value is TestDummyMethod200Response;
42
- export declare function TestDummyMethod200ResponseFromJSON(json: any): TestDummyMethod200Response;
43
- export declare function TestDummyMethod200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TestDummyMethod200Response;
44
- export declare function TestDummyMethod200ResponseToJSON(json: any): TestDummyMethod200Response;
45
- export declare function TestDummyMethod200ResponseToJSONTyped(value?: TestDummyMethod200Response | null, ignoreDiscriminator?: boolean): any;
@@ -1,53 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * PMXT Sidecar API
6
- * 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.
7
- *
8
- * The version of the OpenAPI document: 0.4.4
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfTestDummyMethod200Response = instanceOfTestDummyMethod200Response;
17
- exports.TestDummyMethod200ResponseFromJSON = TestDummyMethod200ResponseFromJSON;
18
- exports.TestDummyMethod200ResponseFromJSONTyped = TestDummyMethod200ResponseFromJSONTyped;
19
- exports.TestDummyMethod200ResponseToJSON = TestDummyMethod200ResponseToJSON;
20
- exports.TestDummyMethod200ResponseToJSONTyped = TestDummyMethod200ResponseToJSONTyped;
21
- const ErrorDetail_1 = require("./ErrorDetail");
22
- /**
23
- * Check if a given object implements the TestDummyMethod200Response interface.
24
- */
25
- function instanceOfTestDummyMethod200Response(value) {
26
- return true;
27
- }
28
- function TestDummyMethod200ResponseFromJSON(json) {
29
- return TestDummyMethod200ResponseFromJSONTyped(json, false);
30
- }
31
- function TestDummyMethod200ResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'success': json['success'] == null ? undefined : json['success'],
37
- 'error': json['error'] == null ? undefined : (0, ErrorDetail_1.ErrorDetailFromJSON)(json['error']),
38
- 'data': json['data'] == null ? undefined : json['data'],
39
- };
40
- }
41
- function TestDummyMethod200ResponseToJSON(json) {
42
- return TestDummyMethod200ResponseToJSONTyped(json, false);
43
- }
44
- function TestDummyMethod200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
- if (value == null) {
46
- return value;
47
- }
48
- return {
49
- 'success': value['success'],
50
- 'error': (0, ErrorDetail_1.ErrorDetailToJSON)(value['error']),
51
- 'data': value['data'],
52
- };
53
- }
@@ -1,39 +0,0 @@
1
- /**
2
- * PMXT Sidecar API
3
- * 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.
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 { ExchangeCredentials } from './ExchangeCredentials';
13
- /**
14
- *
15
- * @export
16
- * @interface TestDummyMethodRequest
17
- */
18
- export interface TestDummyMethodRequest {
19
- /**
20
- *
21
- * @type {Array<string>}
22
- * @memberof TestDummyMethodRequest
23
- */
24
- args?: Array<string>;
25
- /**
26
- *
27
- * @type {ExchangeCredentials}
28
- * @memberof TestDummyMethodRequest
29
- */
30
- credentials?: ExchangeCredentials;
31
- }
32
- /**
33
- * Check if a given object implements the TestDummyMethodRequest interface.
34
- */
35
- export declare function instanceOfTestDummyMethodRequest(value: object): value is TestDummyMethodRequest;
36
- export declare function TestDummyMethodRequestFromJSON(json: any): TestDummyMethodRequest;
37
- export declare function TestDummyMethodRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TestDummyMethodRequest;
38
- export declare function TestDummyMethodRequestToJSON(json: any): TestDummyMethodRequest;
39
- export declare function TestDummyMethodRequestToJSONTyped(value?: TestDummyMethodRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,51 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * PMXT Sidecar API
6
- * 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.
7
- *
8
- * The version of the OpenAPI document: 0.4.4
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfTestDummyMethodRequest = instanceOfTestDummyMethodRequest;
17
- exports.TestDummyMethodRequestFromJSON = TestDummyMethodRequestFromJSON;
18
- exports.TestDummyMethodRequestFromJSONTyped = TestDummyMethodRequestFromJSONTyped;
19
- exports.TestDummyMethodRequestToJSON = TestDummyMethodRequestToJSON;
20
- exports.TestDummyMethodRequestToJSONTyped = TestDummyMethodRequestToJSONTyped;
21
- const ExchangeCredentials_1 = require("./ExchangeCredentials");
22
- /**
23
- * Check if a given object implements the TestDummyMethodRequest interface.
24
- */
25
- function instanceOfTestDummyMethodRequest(value) {
26
- return true;
27
- }
28
- function TestDummyMethodRequestFromJSON(json) {
29
- return TestDummyMethodRequestFromJSONTyped(json, false);
30
- }
31
- function TestDummyMethodRequestFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'args': json['args'] == null ? undefined : json['args'],
37
- 'credentials': json['credentials'] == null ? undefined : (0, ExchangeCredentials_1.ExchangeCredentialsFromJSON)(json['credentials']),
38
- };
39
- }
40
- function TestDummyMethodRequestToJSON(json) {
41
- return TestDummyMethodRequestToJSONTyped(json, false);
42
- }
43
- function TestDummyMethodRequestToJSONTyped(value, ignoreDiscriminator = false) {
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- 'args': value['args'],
49
- 'credentials': (0, ExchangeCredentials_1.ExchangeCredentialsToJSON)(value['credentials']),
50
- };
51
- }
@@ -1,38 +0,0 @@
1
-
2
- # TestDummyMethod200Response
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `success` | boolean
10
- `error` | [ErrorDetail](ErrorDetail.md)
11
- `data` | string
12
-
13
- ## Example
14
-
15
- ```typescript
16
- import type { TestDummyMethod200Response } 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 TestDummyMethod200Response
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 TestDummyMethod200Response
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
-
@@ -1,36 +0,0 @@
1
-
2
- # TestDummyMethodRequest
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `args` | Array&lt;string&gt;
10
- `credentials` | [ExchangeCredentials](ExchangeCredentials.md)
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import type { TestDummyMethodRequest } from 'pmxtjs'
16
-
17
- // TODO: Update the object below with actual values
18
- const example = {
19
- "args": null,
20
- "credentials": null,
21
- } satisfies TestDummyMethodRequest
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 TestDummyMethodRequest
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
-