pmxtjs 2.41.1 → 2.41.3
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.
- package/dist/esm/generated/src/apis/DefaultApi.d.ts +49 -55
- package/dist/esm/generated/src/apis/DefaultApi.js +19 -31
- package/dist/esm/generated/src/models/index.d.ts +0 -6
- package/dist/esm/generated/src/models/index.js +0 -6
- package/dist/esm/pmxt/client.js +5 -1
- package/dist/generated/src/apis/DefaultApi.d.ts +49 -55
- package/dist/generated/src/apis/DefaultApi.js +19 -31
- package/dist/generated/src/models/index.d.ts +0 -6
- package/dist/generated/src/models/index.js +0 -6
- package/dist/pmxt/client.js +5 -1
- package/generated/.openapi-generator/FILES +0 -12
- package/generated/docs/DefaultApi.md +42 -60
- package/generated/package.json +1 -1
- package/generated/src/apis/DefaultApi.ts +48 -90
- package/generated/src/models/index.ts +0 -6
- package/package.json +2 -2
- package/pmxt/client.ts +5 -1
- package/dist/esm/generated/src/models/UnwatchAddressRequest.d.ts +0 -39
- package/dist/esm/generated/src/models/UnwatchAddressRequest.js +0 -44
- package/dist/esm/generated/src/models/UnwatchOrderBookRequest.d.ts +0 -39
- package/dist/esm/generated/src/models/UnwatchOrderBookRequest.js +0 -44
- package/dist/esm/generated/src/models/WatchAddressRequest.d.ts +0 -39
- package/dist/esm/generated/src/models/WatchAddressRequest.js +0 -44
- package/dist/esm/generated/src/models/WatchOrderBookRequest.d.ts +0 -39
- package/dist/esm/generated/src/models/WatchOrderBookRequest.js +0 -44
- package/dist/esm/generated/src/models/WatchOrderBooksRequest.d.ts +0 -39
- package/dist/esm/generated/src/models/WatchOrderBooksRequest.js +0 -44
- package/dist/esm/generated/src/models/WatchTradesRequest.d.ts +0 -39
- package/dist/esm/generated/src/models/WatchTradesRequest.js +0 -44
- package/dist/generated/src/models/UnwatchAddressRequest.d.ts +0 -39
- package/dist/generated/src/models/UnwatchAddressRequest.js +0 -51
- package/dist/generated/src/models/UnwatchOrderBookRequest.d.ts +0 -39
- package/dist/generated/src/models/UnwatchOrderBookRequest.js +0 -51
- package/dist/generated/src/models/WatchAddressRequest.d.ts +0 -39
- package/dist/generated/src/models/WatchAddressRequest.js +0 -51
- package/dist/generated/src/models/WatchOrderBookRequest.d.ts +0 -39
- package/dist/generated/src/models/WatchOrderBookRequest.js +0 -51
- package/dist/generated/src/models/WatchOrderBooksRequest.d.ts +0 -39
- package/dist/generated/src/models/WatchOrderBooksRequest.js +0 -51
- package/dist/generated/src/models/WatchTradesRequest.d.ts +0 -39
- package/dist/generated/src/models/WatchTradesRequest.js +0 -51
- package/generated/docs/UnwatchAddressRequest.md +0 -36
- package/generated/docs/UnwatchOrderBookRequest.md +0 -36
- package/generated/docs/WatchAddressRequest.md +0 -36
- package/generated/docs/WatchOrderBookRequest.md +0 -36
- package/generated/docs/WatchOrderBooksRequest.md +0 -36
- package/generated/docs/WatchTradesRequest.md +0 -36
- package/generated/src/models/UnwatchAddressRequest.ts +0 -81
- package/generated/src/models/UnwatchOrderBookRequest.ts +0 -81
- package/generated/src/models/WatchAddressRequest.ts +0 -81
- package/generated/src/models/WatchOrderBookRequest.ts +0 -81
- package/generated/src/models/WatchOrderBooksRequest.ts +0 -81
- package/generated/src/models/WatchTradesRequest.ts +0 -81
|
@@ -57,14 +57,8 @@ import type {
|
|
|
57
57
|
TestDummyMethodRequest,
|
|
58
58
|
UnifiedEvent,
|
|
59
59
|
UnifiedMarket,
|
|
60
|
-
UnwatchAddressRequest,
|
|
61
|
-
UnwatchOrderBookRequest,
|
|
62
60
|
WatchAddress200Response,
|
|
63
|
-
WatchAddressRequest,
|
|
64
|
-
WatchOrderBookRequest,
|
|
65
61
|
WatchOrderBooks200Response,
|
|
66
|
-
WatchOrderBooksRequest,
|
|
67
|
-
WatchTradesRequest,
|
|
68
62
|
} from '../models/index';
|
|
69
63
|
import {
|
|
70
64
|
BaseResponseFromJSON,
|
|
@@ -151,22 +145,10 @@ import {
|
|
|
151
145
|
UnifiedEventToJSON,
|
|
152
146
|
UnifiedMarketFromJSON,
|
|
153
147
|
UnifiedMarketToJSON,
|
|
154
|
-
UnwatchAddressRequestFromJSON,
|
|
155
|
-
UnwatchAddressRequestToJSON,
|
|
156
|
-
UnwatchOrderBookRequestFromJSON,
|
|
157
|
-
UnwatchOrderBookRequestToJSON,
|
|
158
148
|
WatchAddress200ResponseFromJSON,
|
|
159
149
|
WatchAddress200ResponseToJSON,
|
|
160
|
-
WatchAddressRequestFromJSON,
|
|
161
|
-
WatchAddressRequestToJSON,
|
|
162
|
-
WatchOrderBookRequestFromJSON,
|
|
163
|
-
WatchOrderBookRequestToJSON,
|
|
164
150
|
WatchOrderBooks200ResponseFromJSON,
|
|
165
151
|
WatchOrderBooks200ResponseToJSON,
|
|
166
|
-
WatchOrderBooksRequestFromJSON,
|
|
167
|
-
WatchOrderBooksRequestToJSON,
|
|
168
|
-
WatchTradesRequestFromJSON,
|
|
169
|
-
WatchTradesRequestToJSON,
|
|
170
152
|
} from '../models/index';
|
|
171
153
|
|
|
172
154
|
export interface BuildOrderOperationRequest {
|
|
@@ -461,34 +443,28 @@ export interface TestDummyMethodOperationRequest {
|
|
|
461
443
|
testDummyMethodRequest?: TestDummyMethodRequest;
|
|
462
444
|
}
|
|
463
445
|
|
|
464
|
-
export interface
|
|
465
|
-
exchange:
|
|
466
|
-
unwatchAddressRequest?: UnwatchAddressRequest;
|
|
446
|
+
export interface UnwatchAddressRequest {
|
|
447
|
+
exchange: UnwatchAddressExchangeEnum;
|
|
467
448
|
}
|
|
468
449
|
|
|
469
|
-
export interface
|
|
470
|
-
exchange:
|
|
471
|
-
unwatchOrderBookRequest?: UnwatchOrderBookRequest;
|
|
450
|
+
export interface UnwatchOrderBookRequest {
|
|
451
|
+
exchange: UnwatchOrderBookExchangeEnum;
|
|
472
452
|
}
|
|
473
453
|
|
|
474
|
-
export interface
|
|
475
|
-
exchange:
|
|
476
|
-
watchAddressRequest?: WatchAddressRequest;
|
|
454
|
+
export interface WatchAddressRequest {
|
|
455
|
+
exchange: WatchAddressExchangeEnum;
|
|
477
456
|
}
|
|
478
457
|
|
|
479
|
-
export interface
|
|
480
|
-
exchange:
|
|
481
|
-
watchOrderBookRequest?: WatchOrderBookRequest;
|
|
458
|
+
export interface WatchOrderBookRequest {
|
|
459
|
+
exchange: WatchOrderBookExchangeEnum;
|
|
482
460
|
}
|
|
483
461
|
|
|
484
|
-
export interface
|
|
485
|
-
exchange:
|
|
486
|
-
watchOrderBooksRequest?: WatchOrderBooksRequest;
|
|
462
|
+
export interface WatchOrderBooksRequest {
|
|
463
|
+
exchange: WatchOrderBooksExchangeEnum;
|
|
487
464
|
}
|
|
488
465
|
|
|
489
|
-
export interface
|
|
490
|
-
exchange:
|
|
491
|
-
watchTradesRequest?: WatchTradesRequest;
|
|
466
|
+
export interface WatchTradesRequest {
|
|
467
|
+
exchange: WatchTradesExchangeEnum;
|
|
492
468
|
}
|
|
493
469
|
|
|
494
470
|
/**
|
|
@@ -2508,9 +2484,9 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2508
2484
|
|
|
2509
2485
|
/**
|
|
2510
2486
|
* Stop watching a previously registered wallet address and release its resource updates. **Transport:** WebSocket | Environment | URL | |---|---| | Local sidecar | `ws://localhost:3847/ws` | | Hosted API | `wss://api.pmxt.dev/ws?apiKey=YOUR_KEY` | **Subscribe:** ```json { \"id\": \"req-1\", \"action\": \"subscribe\", \"method\": \"unwatchAddress\", \"args\": [...] } ``` **Server response:** ```json { \"event\": \"data\", \"id\": \"req-1\", \"method\": \"unwatchAddress\", \"symbol\": \"...\", \"data\": { ... } } ``` **Unsubscribe:** ```json { \"id\": \"req-1\", \"action\": \"unsubscribe\" } ```
|
|
2511
|
-
* Unwatch Address
|
|
2487
|
+
* Unwatch Address
|
|
2512
2488
|
*/
|
|
2513
|
-
async unwatchAddressRaw(requestParameters:
|
|
2489
|
+
async unwatchAddressRaw(requestParameters: UnwatchAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BaseResponse>> {
|
|
2514
2490
|
if (requestParameters['exchange'] == null) {
|
|
2515
2491
|
throw new runtime.RequiredError(
|
|
2516
2492
|
'exchange',
|
|
@@ -2522,8 +2498,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2522
2498
|
|
|
2523
2499
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2524
2500
|
|
|
2525
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2526
|
-
|
|
2527
2501
|
|
|
2528
2502
|
let urlPath = `/api/{exchange}/unwatchAddress`;
|
|
2529
2503
|
urlPath = urlPath.replace(`{${"exchange"}}`, encodeURIComponent(String(requestParameters['exchange'])));
|
|
@@ -2533,7 +2507,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2533
2507
|
method: 'POST',
|
|
2534
2508
|
headers: headerParameters,
|
|
2535
2509
|
query: queryParameters,
|
|
2536
|
-
body: UnwatchAddressRequestToJSON(requestParameters['unwatchAddressRequest']),
|
|
2537
2510
|
}, initOverrides);
|
|
2538
2511
|
|
|
2539
2512
|
return new runtime.JSONApiResponse(response, (jsonValue) => BaseResponseFromJSON(jsonValue));
|
|
@@ -2541,18 +2514,18 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2541
2514
|
|
|
2542
2515
|
/**
|
|
2543
2516
|
* Stop watching a previously registered wallet address and release its resource updates. **Transport:** WebSocket | Environment | URL | |---|---| | Local sidecar | `ws://localhost:3847/ws` | | Hosted API | `wss://api.pmxt.dev/ws?apiKey=YOUR_KEY` | **Subscribe:** ```json { \"id\": \"req-1\", \"action\": \"subscribe\", \"method\": \"unwatchAddress\", \"args\": [...] } ``` **Server response:** ```json { \"event\": \"data\", \"id\": \"req-1\", \"method\": \"unwatchAddress\", \"symbol\": \"...\", \"data\": { ... } } ``` **Unsubscribe:** ```json { \"id\": \"req-1\", \"action\": \"unsubscribe\" } ```
|
|
2544
|
-
* Unwatch Address
|
|
2517
|
+
* Unwatch Address
|
|
2545
2518
|
*/
|
|
2546
|
-
async unwatchAddress(requestParameters:
|
|
2519
|
+
async unwatchAddress(requestParameters: UnwatchAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BaseResponse> {
|
|
2547
2520
|
const response = await this.unwatchAddressRaw(requestParameters, initOverrides);
|
|
2548
2521
|
return await response.value();
|
|
2549
2522
|
}
|
|
2550
2523
|
|
|
2551
2524
|
/**
|
|
2552
2525
|
* Unsubscribe from a previously watched order book stream. **Transport:** WebSocket | Environment | URL | |---|---| | Local sidecar | `ws://localhost:3847/ws` | | Hosted API | `wss://api.pmxt.dev/ws?apiKey=YOUR_KEY` | **Subscribe:** ```json { \"id\": \"req-1\", \"action\": \"subscribe\", \"method\": \"unwatchOrderBook\", \"args\": [...] } ``` **Server response:** ```json { \"event\": \"data\", \"id\": \"req-1\", \"method\": \"unwatchOrderBook\", \"symbol\": \"...\", \"data\": { ... } } ``` **Unsubscribe:** ```json { \"id\": \"req-1\", \"action\": \"unsubscribe\" } ```
|
|
2553
|
-
* Unwatch Order Book
|
|
2526
|
+
* Unwatch Order Book
|
|
2554
2527
|
*/
|
|
2555
|
-
async unwatchOrderBookRaw(requestParameters:
|
|
2528
|
+
async unwatchOrderBookRaw(requestParameters: UnwatchOrderBookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BaseResponse>> {
|
|
2556
2529
|
if (requestParameters['exchange'] == null) {
|
|
2557
2530
|
throw new runtime.RequiredError(
|
|
2558
2531
|
'exchange',
|
|
@@ -2564,8 +2537,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2564
2537
|
|
|
2565
2538
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2566
2539
|
|
|
2567
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2568
|
-
|
|
2569
2540
|
|
|
2570
2541
|
let urlPath = `/api/{exchange}/unwatchOrderBook`;
|
|
2571
2542
|
urlPath = urlPath.replace(`{${"exchange"}}`, encodeURIComponent(String(requestParameters['exchange'])));
|
|
@@ -2575,7 +2546,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2575
2546
|
method: 'POST',
|
|
2576
2547
|
headers: headerParameters,
|
|
2577
2548
|
query: queryParameters,
|
|
2578
|
-
body: UnwatchOrderBookRequestToJSON(requestParameters['unwatchOrderBookRequest']),
|
|
2579
2549
|
}, initOverrides);
|
|
2580
2550
|
|
|
2581
2551
|
return new runtime.JSONApiResponse(response, (jsonValue) => BaseResponseFromJSON(jsonValue));
|
|
@@ -2583,18 +2553,18 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2583
2553
|
|
|
2584
2554
|
/**
|
|
2585
2555
|
* Unsubscribe from a previously watched order book stream. **Transport:** WebSocket | Environment | URL | |---|---| | Local sidecar | `ws://localhost:3847/ws` | | Hosted API | `wss://api.pmxt.dev/ws?apiKey=YOUR_KEY` | **Subscribe:** ```json { \"id\": \"req-1\", \"action\": \"subscribe\", \"method\": \"unwatchOrderBook\", \"args\": [...] } ``` **Server response:** ```json { \"event\": \"data\", \"id\": \"req-1\", \"method\": \"unwatchOrderBook\", \"symbol\": \"...\", \"data\": { ... } } ``` **Unsubscribe:** ```json { \"id\": \"req-1\", \"action\": \"unsubscribe\" } ```
|
|
2586
|
-
* Unwatch Order Book
|
|
2556
|
+
* Unwatch Order Book
|
|
2587
2557
|
*/
|
|
2588
|
-
async unwatchOrderBook(requestParameters:
|
|
2558
|
+
async unwatchOrderBook(requestParameters: UnwatchOrderBookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BaseResponse> {
|
|
2589
2559
|
const response = await this.unwatchOrderBookRaw(requestParameters, initOverrides);
|
|
2590
2560
|
return await response.value();
|
|
2591
2561
|
}
|
|
2592
2562
|
|
|
2593
2563
|
/**
|
|
2594
2564
|
* Stream activity for a public wallet address Returns a promise that resolves with the next activity snapshot whenever a change is detected. Call repeatedly in a loop to stream updates (CCXT Pro pattern). **Transport:** WebSocket | Environment | URL | |---|---| | Local sidecar | `ws://localhost:3847/ws` | | Hosted API | `wss://api.pmxt.dev/ws?apiKey=YOUR_KEY` | **Subscribe:** ```json { \"id\": \"req-1\", \"action\": \"subscribe\", \"method\": \"watchAddress\", \"args\": [...] } ``` **Server response:** ```json { \"event\": \"data\", \"id\": \"req-1\", \"method\": \"watchAddress\", \"symbol\": \"...\", \"data\": { ... } } ``` **Unsubscribe:** ```json { \"id\": \"req-1\", \"action\": \"unsubscribe\" } ```
|
|
2595
|
-
* Watch Address
|
|
2565
|
+
* Watch Address
|
|
2596
2566
|
*/
|
|
2597
|
-
async watchAddressRaw(requestParameters:
|
|
2567
|
+
async watchAddressRaw(requestParameters: WatchAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WatchAddress200Response>> {
|
|
2598
2568
|
if (requestParameters['exchange'] == null) {
|
|
2599
2569
|
throw new runtime.RequiredError(
|
|
2600
2570
|
'exchange',
|
|
@@ -2606,8 +2576,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2606
2576
|
|
|
2607
2577
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2608
2578
|
|
|
2609
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2610
|
-
|
|
2611
2579
|
|
|
2612
2580
|
let urlPath = `/api/{exchange}/watchAddress`;
|
|
2613
2581
|
urlPath = urlPath.replace(`{${"exchange"}}`, encodeURIComponent(String(requestParameters['exchange'])));
|
|
@@ -2617,7 +2585,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2617
2585
|
method: 'POST',
|
|
2618
2586
|
headers: headerParameters,
|
|
2619
2587
|
query: queryParameters,
|
|
2620
|
-
body: WatchAddressRequestToJSON(requestParameters['watchAddressRequest']),
|
|
2621
2588
|
}, initOverrides);
|
|
2622
2589
|
|
|
2623
2590
|
return new runtime.JSONApiResponse(response, (jsonValue) => WatchAddress200ResponseFromJSON(jsonValue));
|
|
@@ -2625,18 +2592,18 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2625
2592
|
|
|
2626
2593
|
/**
|
|
2627
2594
|
* Stream activity for a public wallet address Returns a promise that resolves with the next activity snapshot whenever a change is detected. Call repeatedly in a loop to stream updates (CCXT Pro pattern). **Transport:** WebSocket | Environment | URL | |---|---| | Local sidecar | `ws://localhost:3847/ws` | | Hosted API | `wss://api.pmxt.dev/ws?apiKey=YOUR_KEY` | **Subscribe:** ```json { \"id\": \"req-1\", \"action\": \"subscribe\", \"method\": \"watchAddress\", \"args\": [...] } ``` **Server response:** ```json { \"event\": \"data\", \"id\": \"req-1\", \"method\": \"watchAddress\", \"symbol\": \"...\", \"data\": { ... } } ``` **Unsubscribe:** ```json { \"id\": \"req-1\", \"action\": \"unsubscribe\" } ```
|
|
2628
|
-
* Watch Address
|
|
2595
|
+
* Watch Address
|
|
2629
2596
|
*/
|
|
2630
|
-
async watchAddress(requestParameters:
|
|
2597
|
+
async watchAddress(requestParameters: WatchAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WatchAddress200Response> {
|
|
2631
2598
|
const response = await this.watchAddressRaw(requestParameters, initOverrides);
|
|
2632
2599
|
return await response.value();
|
|
2633
2600
|
}
|
|
2634
2601
|
|
|
2635
2602
|
/**
|
|
2636
2603
|
* Watch order book updates in real-time via WebSocket. Returns a promise that resolves with the next order book update. Call repeatedly in a loop to stream updates (CCXT Pro pattern). **Transport:** WebSocket | Environment | URL | |---|---| | Local sidecar | `ws://localhost:3847/ws` | | Hosted API | `wss://api.pmxt.dev/ws?apiKey=YOUR_KEY` | **Subscribe:** ```json { \"id\": \"req-1\", \"action\": \"subscribe\", \"method\": \"watchOrderBook\", \"args\": [...] } ``` **Server response:** ```json { \"event\": \"data\", \"id\": \"req-1\", \"method\": \"watchOrderBook\", \"symbol\": \"...\", \"data\": { ... } } ``` **Unsubscribe:** ```json { \"id\": \"req-1\", \"action\": \"unsubscribe\" } ```
|
|
2637
|
-
* Watch Order Book
|
|
2604
|
+
* Watch Order Book
|
|
2638
2605
|
*/
|
|
2639
|
-
async watchOrderBookRaw(requestParameters:
|
|
2606
|
+
async watchOrderBookRaw(requestParameters: WatchOrderBookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FetchOrderBook200Response>> {
|
|
2640
2607
|
if (requestParameters['exchange'] == null) {
|
|
2641
2608
|
throw new runtime.RequiredError(
|
|
2642
2609
|
'exchange',
|
|
@@ -2648,8 +2615,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2648
2615
|
|
|
2649
2616
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2650
2617
|
|
|
2651
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2652
|
-
|
|
2653
2618
|
|
|
2654
2619
|
let urlPath = `/api/{exchange}/watchOrderBook`;
|
|
2655
2620
|
urlPath = urlPath.replace(`{${"exchange"}}`, encodeURIComponent(String(requestParameters['exchange'])));
|
|
@@ -2659,7 +2624,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2659
2624
|
method: 'POST',
|
|
2660
2625
|
headers: headerParameters,
|
|
2661
2626
|
query: queryParameters,
|
|
2662
|
-
body: WatchOrderBookRequestToJSON(requestParameters['watchOrderBookRequest']),
|
|
2663
2627
|
}, initOverrides);
|
|
2664
2628
|
|
|
2665
2629
|
return new runtime.JSONApiResponse(response, (jsonValue) => FetchOrderBook200ResponseFromJSON(jsonValue));
|
|
@@ -2667,18 +2631,18 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2667
2631
|
|
|
2668
2632
|
/**
|
|
2669
2633
|
* Watch order book updates in real-time via WebSocket. Returns a promise that resolves with the next order book update. Call repeatedly in a loop to stream updates (CCXT Pro pattern). **Transport:** WebSocket | Environment | URL | |---|---| | Local sidecar | `ws://localhost:3847/ws` | | Hosted API | `wss://api.pmxt.dev/ws?apiKey=YOUR_KEY` | **Subscribe:** ```json { \"id\": \"req-1\", \"action\": \"subscribe\", \"method\": \"watchOrderBook\", \"args\": [...] } ``` **Server response:** ```json { \"event\": \"data\", \"id\": \"req-1\", \"method\": \"watchOrderBook\", \"symbol\": \"...\", \"data\": { ... } } ``` **Unsubscribe:** ```json { \"id\": \"req-1\", \"action\": \"unsubscribe\" } ```
|
|
2670
|
-
* Watch Order Book
|
|
2634
|
+
* Watch Order Book
|
|
2671
2635
|
*/
|
|
2672
|
-
async watchOrderBook(requestParameters:
|
|
2636
|
+
async watchOrderBook(requestParameters: WatchOrderBookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FetchOrderBook200Response> {
|
|
2673
2637
|
const response = await this.watchOrderBookRaw(requestParameters, initOverrides);
|
|
2674
2638
|
return await response.value();
|
|
2675
2639
|
}
|
|
2676
2640
|
|
|
2677
2641
|
/**
|
|
2678
2642
|
* Watch multiple order books simultaneously via WebSocket. Returns a promise that resolves with a record of order book snapshots keyed by ID. Exchanges with native batch support (e.g. Kalshi) send a single subscribe message for all tickers; others fall back to individual watchOrderBook calls. **Transport:** WebSocket | Environment | URL | |---|---| | Local sidecar | `ws://localhost:3847/ws` | | Hosted API | `wss://api.pmxt.dev/ws?apiKey=YOUR_KEY` | **Subscribe:** ```json { \"id\": \"req-1\", \"action\": \"subscribe\", \"method\": \"watchOrderBooks\", \"args\": [...] } ``` **Server response:** ```json { \"event\": \"data\", \"id\": \"req-1\", \"method\": \"watchOrderBooks\", \"symbol\": \"...\", \"data\": { ... } } ``` **Unsubscribe:** ```json { \"id\": \"req-1\", \"action\": \"unsubscribe\" } ```
|
|
2679
|
-
* Watch Order Books
|
|
2643
|
+
* Watch Order Books
|
|
2680
2644
|
*/
|
|
2681
|
-
async watchOrderBooksRaw(requestParameters:
|
|
2645
|
+
async watchOrderBooksRaw(requestParameters: WatchOrderBooksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WatchOrderBooks200Response>> {
|
|
2682
2646
|
if (requestParameters['exchange'] == null) {
|
|
2683
2647
|
throw new runtime.RequiredError(
|
|
2684
2648
|
'exchange',
|
|
@@ -2690,8 +2654,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2690
2654
|
|
|
2691
2655
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2692
2656
|
|
|
2693
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2694
|
-
|
|
2695
2657
|
|
|
2696
2658
|
let urlPath = `/api/{exchange}/watchOrderBooks`;
|
|
2697
2659
|
urlPath = urlPath.replace(`{${"exchange"}}`, encodeURIComponent(String(requestParameters['exchange'])));
|
|
@@ -2701,7 +2663,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2701
2663
|
method: 'POST',
|
|
2702
2664
|
headers: headerParameters,
|
|
2703
2665
|
query: queryParameters,
|
|
2704
|
-
body: WatchOrderBooksRequestToJSON(requestParameters['watchOrderBooksRequest']),
|
|
2705
2666
|
}, initOverrides);
|
|
2706
2667
|
|
|
2707
2668
|
return new runtime.JSONApiResponse(response, (jsonValue) => WatchOrderBooks200ResponseFromJSON(jsonValue));
|
|
@@ -2709,18 +2670,18 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2709
2670
|
|
|
2710
2671
|
/**
|
|
2711
2672
|
* Watch multiple order books simultaneously via WebSocket. Returns a promise that resolves with a record of order book snapshots keyed by ID. Exchanges with native batch support (e.g. Kalshi) send a single subscribe message for all tickers; others fall back to individual watchOrderBook calls. **Transport:** WebSocket | Environment | URL | |---|---| | Local sidecar | `ws://localhost:3847/ws` | | Hosted API | `wss://api.pmxt.dev/ws?apiKey=YOUR_KEY` | **Subscribe:** ```json { \"id\": \"req-1\", \"action\": \"subscribe\", \"method\": \"watchOrderBooks\", \"args\": [...] } ``` **Server response:** ```json { \"event\": \"data\", \"id\": \"req-1\", \"method\": \"watchOrderBooks\", \"symbol\": \"...\", \"data\": { ... } } ``` **Unsubscribe:** ```json { \"id\": \"req-1\", \"action\": \"unsubscribe\" } ```
|
|
2712
|
-
* Watch Order Books
|
|
2673
|
+
* Watch Order Books
|
|
2713
2674
|
*/
|
|
2714
|
-
async watchOrderBooks(requestParameters:
|
|
2675
|
+
async watchOrderBooks(requestParameters: WatchOrderBooksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WatchOrderBooks200Response> {
|
|
2715
2676
|
const response = await this.watchOrderBooksRaw(requestParameters, initOverrides);
|
|
2716
2677
|
return await response.value();
|
|
2717
2678
|
}
|
|
2718
2679
|
|
|
2719
2680
|
/**
|
|
2720
2681
|
* Watch trade executions in real-time via WebSocket. Returns a promise that resolves with the next trade(s). Call repeatedly in a loop to stream updates (CCXT Pro pattern). **Transport:** WebSocket | Environment | URL | |---|---| | Local sidecar | `ws://localhost:3847/ws` | | Hosted API | `wss://api.pmxt.dev/ws?apiKey=YOUR_KEY` | **Subscribe:** ```json { \"id\": \"req-1\", \"action\": \"subscribe\", \"method\": \"watchTrades\", \"args\": [...] } ``` **Server response:** ```json { \"event\": \"data\", \"id\": \"req-1\", \"method\": \"watchTrades\", \"symbol\": \"...\", \"data\": { ... } } ``` **Unsubscribe:** ```json { \"id\": \"req-1\", \"action\": \"unsubscribe\" } ```
|
|
2721
|
-
* Watch Trades
|
|
2682
|
+
* Watch Trades
|
|
2722
2683
|
*/
|
|
2723
|
-
async watchTradesRaw(requestParameters:
|
|
2684
|
+
async watchTradesRaw(requestParameters: WatchTradesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FetchTrades200Response>> {
|
|
2724
2685
|
if (requestParameters['exchange'] == null) {
|
|
2725
2686
|
throw new runtime.RequiredError(
|
|
2726
2687
|
'exchange',
|
|
@@ -2732,8 +2693,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2732
2693
|
|
|
2733
2694
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2734
2695
|
|
|
2735
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2736
|
-
|
|
2737
2696
|
|
|
2738
2697
|
let urlPath = `/api/{exchange}/watchTrades`;
|
|
2739
2698
|
urlPath = urlPath.replace(`{${"exchange"}}`, encodeURIComponent(String(requestParameters['exchange'])));
|
|
@@ -2743,7 +2702,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2743
2702
|
method: 'POST',
|
|
2744
2703
|
headers: headerParameters,
|
|
2745
2704
|
query: queryParameters,
|
|
2746
|
-
body: WatchTradesRequestToJSON(requestParameters['watchTradesRequest']),
|
|
2747
2705
|
}, initOverrides);
|
|
2748
2706
|
|
|
2749
2707
|
return new runtime.JSONApiResponse(response, (jsonValue) => FetchTrades200ResponseFromJSON(jsonValue));
|
|
@@ -2751,9 +2709,9 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2751
2709
|
|
|
2752
2710
|
/**
|
|
2753
2711
|
* Watch trade executions in real-time via WebSocket. Returns a promise that resolves with the next trade(s). Call repeatedly in a loop to stream updates (CCXT Pro pattern). **Transport:** WebSocket | Environment | URL | |---|---| | Local sidecar | `ws://localhost:3847/ws` | | Hosted API | `wss://api.pmxt.dev/ws?apiKey=YOUR_KEY` | **Subscribe:** ```json { \"id\": \"req-1\", \"action\": \"subscribe\", \"method\": \"watchTrades\", \"args\": [...] } ``` **Server response:** ```json { \"event\": \"data\", \"id\": \"req-1\", \"method\": \"watchTrades\", \"symbol\": \"...\", \"data\": { ... } } ``` **Unsubscribe:** ```json { \"id\": \"req-1\", \"action\": \"unsubscribe\" } ```
|
|
2754
|
-
* Watch Trades
|
|
2712
|
+
* Watch Trades
|
|
2755
2713
|
*/
|
|
2756
|
-
async watchTrades(requestParameters:
|
|
2714
|
+
async watchTrades(requestParameters: WatchTradesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FetchTrades200Response> {
|
|
2757
2715
|
const response = await this.watchTradesRaw(requestParameters, initOverrides);
|
|
2758
2716
|
return await response.value();
|
|
2759
2717
|
}
|
|
@@ -3521,7 +3479,7 @@ export type TestDummyMethodOperationExchangeEnum = typeof TestDummyMethodOperati
|
|
|
3521
3479
|
/**
|
|
3522
3480
|
* @export
|
|
3523
3481
|
*/
|
|
3524
|
-
export const
|
|
3482
|
+
export const UnwatchAddressExchangeEnum = {
|
|
3525
3483
|
Polymarket: 'polymarket',
|
|
3526
3484
|
Kalshi: 'kalshi',
|
|
3527
3485
|
KalshiDemo: 'kalshi-demo',
|
|
@@ -3535,11 +3493,11 @@ export const UnwatchAddressOperationExchangeEnum = {
|
|
|
3535
3493
|
PolymarketUs: 'polymarket_us',
|
|
3536
3494
|
Router: 'router'
|
|
3537
3495
|
} as const;
|
|
3538
|
-
export type
|
|
3496
|
+
export type UnwatchAddressExchangeEnum = typeof UnwatchAddressExchangeEnum[keyof typeof UnwatchAddressExchangeEnum];
|
|
3539
3497
|
/**
|
|
3540
3498
|
* @export
|
|
3541
3499
|
*/
|
|
3542
|
-
export const
|
|
3500
|
+
export const UnwatchOrderBookExchangeEnum = {
|
|
3543
3501
|
Polymarket: 'polymarket',
|
|
3544
3502
|
Kalshi: 'kalshi',
|
|
3545
3503
|
KalshiDemo: 'kalshi-demo',
|
|
@@ -3553,11 +3511,11 @@ export const UnwatchOrderBookOperationExchangeEnum = {
|
|
|
3553
3511
|
PolymarketUs: 'polymarket_us',
|
|
3554
3512
|
Router: 'router'
|
|
3555
3513
|
} as const;
|
|
3556
|
-
export type
|
|
3514
|
+
export type UnwatchOrderBookExchangeEnum = typeof UnwatchOrderBookExchangeEnum[keyof typeof UnwatchOrderBookExchangeEnum];
|
|
3557
3515
|
/**
|
|
3558
3516
|
* @export
|
|
3559
3517
|
*/
|
|
3560
|
-
export const
|
|
3518
|
+
export const WatchAddressExchangeEnum = {
|
|
3561
3519
|
Polymarket: 'polymarket',
|
|
3562
3520
|
Kalshi: 'kalshi',
|
|
3563
3521
|
KalshiDemo: 'kalshi-demo',
|
|
@@ -3571,11 +3529,11 @@ export const WatchAddressOperationExchangeEnum = {
|
|
|
3571
3529
|
PolymarketUs: 'polymarket_us',
|
|
3572
3530
|
Router: 'router'
|
|
3573
3531
|
} as const;
|
|
3574
|
-
export type
|
|
3532
|
+
export type WatchAddressExchangeEnum = typeof WatchAddressExchangeEnum[keyof typeof WatchAddressExchangeEnum];
|
|
3575
3533
|
/**
|
|
3576
3534
|
* @export
|
|
3577
3535
|
*/
|
|
3578
|
-
export const
|
|
3536
|
+
export const WatchOrderBookExchangeEnum = {
|
|
3579
3537
|
Polymarket: 'polymarket',
|
|
3580
3538
|
Kalshi: 'kalshi',
|
|
3581
3539
|
KalshiDemo: 'kalshi-demo',
|
|
@@ -3589,11 +3547,11 @@ export const WatchOrderBookOperationExchangeEnum = {
|
|
|
3589
3547
|
PolymarketUs: 'polymarket_us',
|
|
3590
3548
|
Router: 'router'
|
|
3591
3549
|
} as const;
|
|
3592
|
-
export type
|
|
3550
|
+
export type WatchOrderBookExchangeEnum = typeof WatchOrderBookExchangeEnum[keyof typeof WatchOrderBookExchangeEnum];
|
|
3593
3551
|
/**
|
|
3594
3552
|
* @export
|
|
3595
3553
|
*/
|
|
3596
|
-
export const
|
|
3554
|
+
export const WatchOrderBooksExchangeEnum = {
|
|
3597
3555
|
Polymarket: 'polymarket',
|
|
3598
3556
|
Kalshi: 'kalshi',
|
|
3599
3557
|
KalshiDemo: 'kalshi-demo',
|
|
@@ -3607,11 +3565,11 @@ export const WatchOrderBooksOperationExchangeEnum = {
|
|
|
3607
3565
|
PolymarketUs: 'polymarket_us',
|
|
3608
3566
|
Router: 'router'
|
|
3609
3567
|
} as const;
|
|
3610
|
-
export type
|
|
3568
|
+
export type WatchOrderBooksExchangeEnum = typeof WatchOrderBooksExchangeEnum[keyof typeof WatchOrderBooksExchangeEnum];
|
|
3611
3569
|
/**
|
|
3612
3570
|
* @export
|
|
3613
3571
|
*/
|
|
3614
|
-
export const
|
|
3572
|
+
export const WatchTradesExchangeEnum = {
|
|
3615
3573
|
Polymarket: 'polymarket',
|
|
3616
3574
|
Kalshi: 'kalshi',
|
|
3617
3575
|
KalshiDemo: 'kalshi-demo',
|
|
@@ -3625,4 +3583,4 @@ export const WatchTradesOperationExchangeEnum = {
|
|
|
3625
3583
|
PolymarketUs: 'polymarket_us',
|
|
3626
3584
|
Router: 'router'
|
|
3627
3585
|
} as const;
|
|
3628
|
-
export type
|
|
3586
|
+
export type WatchTradesExchangeEnum = typeof WatchTradesExchangeEnum[keyof typeof WatchTradesExchangeEnum];
|
|
@@ -87,12 +87,6 @@ export * from './Trade';
|
|
|
87
87
|
export * from './TradesParams';
|
|
88
88
|
export * from './UnifiedEvent';
|
|
89
89
|
export * from './UnifiedMarket';
|
|
90
|
-
export * from './UnwatchAddressRequest';
|
|
91
|
-
export * from './UnwatchOrderBookRequest';
|
|
92
90
|
export * from './UserTrade';
|
|
93
91
|
export * from './WatchAddress200Response';
|
|
94
|
-
export * from './WatchAddressRequest';
|
|
95
|
-
export * from './WatchOrderBookRequest';
|
|
96
92
|
export * from './WatchOrderBooks200Response';
|
|
97
|
-
export * from './WatchOrderBooksRequest';
|
|
98
|
-
export * from './WatchTradesRequest';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmxtjs",
|
|
3
|
-
"version": "2.41.
|
|
3
|
+
"version": "2.41.3",
|
|
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.41.
|
|
46
|
+
"pmxt-core": "2.41.3",
|
|
47
47
|
"ws": "^8.18.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
package/pmxt/client.ts
CHANGED
|
@@ -1916,7 +1916,11 @@ export abstract class Exchange {
|
|
|
1916
1916
|
});
|
|
1917
1917
|
if (!submitRes.ok) throw new PmxtError(`submitOrder failed: ${await submitRes.text()}`);
|
|
1918
1918
|
const submitJson = await submitRes.json();
|
|
1919
|
-
|
|
1919
|
+
const submitData = submitJson.data || submitJson;
|
|
1920
|
+
if (submitData.status === 'failed' && submitData.errors?.length) {
|
|
1921
|
+
throw new PmxtError(submitData.errors[0]);
|
|
1922
|
+
}
|
|
1923
|
+
return convertOrder(submitData);
|
|
1920
1924
|
}
|
|
1921
1925
|
|
|
1922
1926
|
/**
|
|
@@ -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 UnwatchAddressRequest
|
|
17
|
-
*/
|
|
18
|
-
export interface UnwatchAddressRequest {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<string>}
|
|
22
|
-
* @memberof UnwatchAddressRequest
|
|
23
|
-
*/
|
|
24
|
-
args?: Array<string>;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {ExchangeCredentials}
|
|
28
|
-
* @memberof UnwatchAddressRequest
|
|
29
|
-
*/
|
|
30
|
-
credentials?: ExchangeCredentials;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Check if a given object implements the UnwatchAddressRequest interface.
|
|
34
|
-
*/
|
|
35
|
-
export declare function instanceOfUnwatchAddressRequest(value: object): value is UnwatchAddressRequest;
|
|
36
|
-
export declare function UnwatchAddressRequestFromJSON(json: any): UnwatchAddressRequest;
|
|
37
|
-
export declare function UnwatchAddressRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnwatchAddressRequest;
|
|
38
|
-
export declare function UnwatchAddressRequestToJSON(json: any): UnwatchAddressRequest;
|
|
39
|
-
export declare function UnwatchAddressRequestToJSONTyped(value?: UnwatchAddressRequest | 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 UnwatchAddressRequest interface.
|
|
17
|
-
*/
|
|
18
|
-
export function instanceOfUnwatchAddressRequest(value) {
|
|
19
|
-
return true;
|
|
20
|
-
}
|
|
21
|
-
export function UnwatchAddressRequestFromJSON(json) {
|
|
22
|
-
return UnwatchAddressRequestFromJSONTyped(json, false);
|
|
23
|
-
}
|
|
24
|
-
export function UnwatchAddressRequestFromJSONTyped(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 UnwatchAddressRequestToJSON(json) {
|
|
34
|
-
return UnwatchAddressRequestToJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
export function UnwatchAddressRequestToJSONTyped(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,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 UnwatchOrderBookRequest
|
|
17
|
-
*/
|
|
18
|
-
export interface UnwatchOrderBookRequest {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<string>}
|
|
22
|
-
* @memberof UnwatchOrderBookRequest
|
|
23
|
-
*/
|
|
24
|
-
args?: Array<string>;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {ExchangeCredentials}
|
|
28
|
-
* @memberof UnwatchOrderBookRequest
|
|
29
|
-
*/
|
|
30
|
-
credentials?: ExchangeCredentials;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Check if a given object implements the UnwatchOrderBookRequest interface.
|
|
34
|
-
*/
|
|
35
|
-
export declare function instanceOfUnwatchOrderBookRequest(value: object): value is UnwatchOrderBookRequest;
|
|
36
|
-
export declare function UnwatchOrderBookRequestFromJSON(json: any): UnwatchOrderBookRequest;
|
|
37
|
-
export declare function UnwatchOrderBookRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnwatchOrderBookRequest;
|
|
38
|
-
export declare function UnwatchOrderBookRequestToJSON(json: any): UnwatchOrderBookRequest;
|
|
39
|
-
export declare function UnwatchOrderBookRequestToJSONTyped(value?: UnwatchOrderBookRequest | 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 UnwatchOrderBookRequest interface.
|
|
17
|
-
*/
|
|
18
|
-
export function instanceOfUnwatchOrderBookRequest(value) {
|
|
19
|
-
return true;
|
|
20
|
-
}
|
|
21
|
-
export function UnwatchOrderBookRequestFromJSON(json) {
|
|
22
|
-
return UnwatchOrderBookRequestFromJSONTyped(json, false);
|
|
23
|
-
}
|
|
24
|
-
export function UnwatchOrderBookRequestFromJSONTyped(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 UnwatchOrderBookRequestToJSON(json) {
|
|
34
|
-
return UnwatchOrderBookRequestToJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
export function UnwatchOrderBookRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
-
if (value == null) {
|
|
38
|
-
return value;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'args': value['args'],
|
|
42
|
-
'credentials': ExchangeCredentialsToJSON(value['credentials']),
|
|
43
|
-
};
|
|
44
|
-
}
|