pmxtjs 2.19.6 → 2.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/esm/generated/src/apis/DefaultApi.d.ts +53 -1
  2. package/dist/esm/generated/src/apis/DefaultApi.js +83 -1
  3. package/dist/esm/generated/src/models/FetchBalanceRequest.d.ts +2 -2
  4. package/dist/esm/generated/src/models/FetchPositionsRequest.d.ts +2 -2
  5. package/dist/esm/generated/src/models/UnwatchAddressRequest.d.ts +39 -0
  6. package/dist/esm/generated/src/models/UnwatchAddressRequest.js +46 -0
  7. package/dist/esm/generated/src/models/WatchAddress200Response.d.ts +45 -0
  8. package/dist/esm/generated/src/models/WatchAddress200Response.js +46 -0
  9. package/dist/esm/generated/src/models/WatchAddressRequest.d.ts +40 -0
  10. package/dist/esm/generated/src/models/WatchAddressRequest.js +47 -0
  11. package/dist/esm/generated/src/models/WatchAddressRequestArgsInner.d.ts +21 -0
  12. package/dist/esm/generated/src/models/WatchAddressRequestArgsInner.js +37 -0
  13. package/dist/esm/generated/src/models/index.d.ts +4 -0
  14. package/dist/esm/generated/src/models/index.js +4 -0
  15. package/dist/esm/pmxt/args.d.ts +1 -0
  16. package/dist/esm/pmxt/args.js +3 -0
  17. package/dist/esm/pmxt/client.d.ts +94 -6
  18. package/dist/esm/pmxt/client.js +217 -55
  19. package/dist/esm/pmxt/models.d.ts +45 -0
  20. package/dist/generated/src/apis/DefaultApi.d.ts +53 -1
  21. package/dist/generated/src/apis/DefaultApi.js +83 -1
  22. package/dist/generated/src/models/FetchBalanceRequest.d.ts +2 -2
  23. package/dist/generated/src/models/FetchPositionsRequest.d.ts +2 -2
  24. package/dist/generated/src/models/UnwatchAddressRequest.d.ts +39 -0
  25. package/dist/generated/src/models/UnwatchAddressRequest.js +53 -0
  26. package/dist/generated/src/models/WatchAddress200Response.d.ts +45 -0
  27. package/dist/generated/src/models/WatchAddress200Response.js +53 -0
  28. package/dist/generated/src/models/WatchAddressRequest.d.ts +40 -0
  29. package/dist/generated/src/models/WatchAddressRequest.js +54 -0
  30. package/dist/generated/src/models/WatchAddressRequestArgsInner.d.ts +21 -0
  31. package/dist/generated/src/models/WatchAddressRequestArgsInner.js +43 -0
  32. package/dist/generated/src/models/index.d.ts +4 -0
  33. package/dist/generated/src/models/index.js +4 -0
  34. package/dist/pmxt/args.d.ts +1 -0
  35. package/dist/pmxt/args.js +6 -0
  36. package/dist/pmxt/client.d.ts +94 -6
  37. package/dist/pmxt/client.js +216 -54
  38. package/dist/pmxt/models.d.ts +45 -0
  39. package/generated/.openapi-generator/FILES +8 -0
  40. package/generated/docs/DefaultApi.md +142 -0
  41. package/generated/docs/FetchBalanceRequest.md +1 -1
  42. package/generated/docs/FetchPositionsRequest.md +1 -1
  43. package/generated/docs/UnwatchAddressRequest.md +36 -0
  44. package/generated/docs/WatchAddress200Response.md +38 -0
  45. package/generated/docs/WatchAddressRequest.md +36 -0
  46. package/generated/docs/WatchAddressRequestArgsInner.md +32 -0
  47. package/generated/package.json +1 -1
  48. package/generated/src/apis/DefaultApi.ts +127 -0
  49. package/generated/src/models/FetchBalanceRequest.ts +2 -2
  50. package/generated/src/models/FetchPositionsRequest.ts +2 -2
  51. package/generated/src/models/UnwatchAddressRequest.ts +82 -0
  52. package/generated/src/models/WatchAddress200Response.ts +89 -0
  53. package/generated/src/models/WatchAddressRequest.ts +89 -0
  54. package/generated/src/models/WatchAddressRequestArgsInner.ts +49 -0
  55. package/generated/src/models/index.ts +4 -0
  56. package/package.json +2 -2
  57. package/pmxt/args.ts +3 -0
  58. package/pmxt/client.ts +262 -60
  59. package/pmxt/models.ts +55 -1
@@ -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 { BaseResponse, BuildOrder200Response, BuildOrderRequest, CancelOrderRequest, CloseRequest, CreateOrder200Response, CreateOrderRequest, FetchAllOrdersRequest, FetchBalance200Response, FetchBalanceRequest, FetchClosedOrdersRequest, FetchEvent200Response, FetchEventRequest, FetchEvents200Response, FetchEventsRequest, FetchMarket200Response, FetchMarketRequest, FetchMarkets200Response, FetchMarketsPaginated200Response, FetchMarketsPaginatedRequest, FetchMarketsRequest, FetchMyTrades200Response, FetchMyTradesRequest, FetchOHLCV200Response, FetchOHLCVRequest, FetchOpenOrders200Response, FetchOpenOrdersRequest, FetchOrderBook200Response, FetchOrderBookRequest, FetchOrderRequest, FetchPositions200Response, FetchPositionsRequest, FetchTrades200Response, FetchTradesRequest, FilterEventsRequest, FilterMarketsRequest, GetExecutionPrice200Response, GetExecutionPriceDetailed200Response, GetExecutionPriceDetailedRequest, GetExecutionPriceRequest, HealthCheck200Response, LoadMarkets200Response, LoadMarketsRequest, SubmitOrderRequest, WatchOrderBookRequest, WatchTradesRequest } from '../models/index.js';
13
+ import type { BaseResponse, BuildOrder200Response, BuildOrderRequest, CancelOrderRequest, CloseRequest, CreateOrder200Response, CreateOrderRequest, FetchAllOrdersRequest, FetchBalance200Response, FetchBalanceRequest, FetchClosedOrdersRequest, FetchEvent200Response, FetchEventRequest, FetchEvents200Response, FetchEventsRequest, FetchMarket200Response, FetchMarketRequest, FetchMarkets200Response, FetchMarketsPaginated200Response, FetchMarketsPaginatedRequest, FetchMarketsRequest, FetchMyTrades200Response, FetchMyTradesRequest, FetchOHLCV200Response, FetchOHLCVRequest, FetchOpenOrders200Response, FetchOpenOrdersRequest, FetchOrderBook200Response, FetchOrderBookRequest, FetchOrderRequest, FetchPositions200Response, FetchPositionsRequest, FetchTrades200Response, FetchTradesRequest, FilterEventsRequest, FilterMarketsRequest, GetExecutionPrice200Response, GetExecutionPriceDetailed200Response, GetExecutionPriceDetailedRequest, GetExecutionPriceRequest, HealthCheck200Response, LoadMarkets200Response, LoadMarketsRequest, SubmitOrderRequest, UnwatchAddressRequest, WatchAddress200Response, WatchAddressRequest, WatchOrderBookRequest, WatchTradesRequest } from '../models/index.js';
14
14
  export interface BuildOrderOperationRequest {
15
15
  exchange: BuildOrderOperationExchangeEnum;
16
16
  buildOrderRequest?: BuildOrderRequest;
@@ -111,6 +111,14 @@ export interface SubmitOrderOperationRequest {
111
111
  exchange: SubmitOrderOperationExchangeEnum;
112
112
  submitOrderRequest?: SubmitOrderRequest;
113
113
  }
114
+ export interface UnwatchAddressOperationRequest {
115
+ exchange: UnwatchAddressOperationExchangeEnum;
116
+ unwatchAddressRequest?: UnwatchAddressRequest;
117
+ }
118
+ export interface WatchAddressOperationRequest {
119
+ exchange: WatchAddressOperationExchangeEnum;
120
+ watchAddressRequest?: WatchAddressRequest;
121
+ }
114
122
  export interface WatchOrderBookOperationRequest {
115
123
  exchange: WatchOrderBookOperationExchangeEnum;
116
124
  watchOrderBookRequest?: WatchOrderBookRequest;
@@ -375,6 +383,26 @@ export declare class DefaultApi extends runtime.BaseAPI {
375
383
  * Submit Order
376
384
  */
377
385
  submitOrder(requestParameters: SubmitOrderOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateOrder200Response>;
386
+ /**
387
+ * Stop watching a previously registered wallet address and release its resource updates.
388
+ * Unwatch Address
389
+ */
390
+ unwatchAddressRaw(requestParameters: UnwatchAddressOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BaseResponse>>;
391
+ /**
392
+ * Stop watching a previously registered wallet address and release its resource updates.
393
+ * Unwatch Address
394
+ */
395
+ unwatchAddress(requestParameters: UnwatchAddressOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BaseResponse>;
396
+ /**
397
+ * 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).
398
+ * Watch Address
399
+ */
400
+ watchAddressRaw(requestParameters: WatchAddressOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WatchAddress200Response>>;
401
+ /**
402
+ * 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).
403
+ * Watch Address
404
+ */
405
+ watchAddress(requestParameters: WatchAddressOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WatchAddress200Response>;
378
406
  /**
379
407
  * 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).
380
408
  * Watch Order Book
@@ -696,6 +724,30 @@ export declare const SubmitOrderOperationExchangeEnum: {
696
724
  readonly Myriad: "myriad";
697
725
  };
698
726
  export type SubmitOrderOperationExchangeEnum = typeof SubmitOrderOperationExchangeEnum[keyof typeof SubmitOrderOperationExchangeEnum];
727
+ /**
728
+ * @export
729
+ */
730
+ export declare const UnwatchAddressOperationExchangeEnum: {
731
+ readonly Polymarket: "polymarket";
732
+ readonly Kalshi: "kalshi";
733
+ readonly Limitless: "limitless";
734
+ readonly Probable: "probable";
735
+ readonly Baozi: "baozi";
736
+ readonly Myriad: "myriad";
737
+ };
738
+ export type UnwatchAddressOperationExchangeEnum = typeof UnwatchAddressOperationExchangeEnum[keyof typeof UnwatchAddressOperationExchangeEnum];
739
+ /**
740
+ * @export
741
+ */
742
+ export declare const WatchAddressOperationExchangeEnum: {
743
+ readonly Polymarket: "polymarket";
744
+ readonly Kalshi: "kalshi";
745
+ readonly Limitless: "limitless";
746
+ readonly Probable: "probable";
747
+ readonly Baozi: "baozi";
748
+ readonly Myriad: "myriad";
749
+ };
750
+ export type WatchAddressOperationExchangeEnum = typeof WatchAddressOperationExchangeEnum[keyof typeof WatchAddressOperationExchangeEnum];
699
751
  /**
700
752
  * @export
701
753
  */
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import * as runtime from '../runtime.js';
15
- import { BaseResponseFromJSON, BuildOrder200ResponseFromJSON, BuildOrderRequestToJSON, CancelOrderRequestToJSON, CloseRequestToJSON, CreateOrder200ResponseFromJSON, CreateOrderRequestToJSON, FetchAllOrdersRequestToJSON, FetchBalance200ResponseFromJSON, FetchBalanceRequestToJSON, FetchClosedOrdersRequestToJSON, FetchEvent200ResponseFromJSON, FetchEventRequestToJSON, FetchEvents200ResponseFromJSON, FetchEventsRequestToJSON, FetchMarket200ResponseFromJSON, FetchMarketRequestToJSON, FetchMarkets200ResponseFromJSON, FetchMarketsPaginated200ResponseFromJSON, FetchMarketsPaginatedRequestToJSON, FetchMarketsRequestToJSON, FetchMyTrades200ResponseFromJSON, FetchMyTradesRequestToJSON, FetchOHLCV200ResponseFromJSON, FetchOHLCVRequestToJSON, FetchOpenOrders200ResponseFromJSON, FetchOpenOrdersRequestToJSON, FetchOrderBook200ResponseFromJSON, FetchOrderBookRequestToJSON, FetchOrderRequestToJSON, FetchPositions200ResponseFromJSON, FetchPositionsRequestToJSON, FetchTrades200ResponseFromJSON, FetchTradesRequestToJSON, FilterEventsRequestToJSON, FilterMarketsRequestToJSON, GetExecutionPrice200ResponseFromJSON, GetExecutionPriceDetailed200ResponseFromJSON, GetExecutionPriceDetailedRequestToJSON, GetExecutionPriceRequestToJSON, HealthCheck200ResponseFromJSON, LoadMarkets200ResponseFromJSON, LoadMarketsRequestToJSON, SubmitOrderRequestToJSON, WatchOrderBookRequestToJSON, WatchTradesRequestToJSON, } from '../models/index.js';
15
+ import { BaseResponseFromJSON, BuildOrder200ResponseFromJSON, BuildOrderRequestToJSON, CancelOrderRequestToJSON, CloseRequestToJSON, CreateOrder200ResponseFromJSON, CreateOrderRequestToJSON, FetchAllOrdersRequestToJSON, FetchBalance200ResponseFromJSON, FetchBalanceRequestToJSON, FetchClosedOrdersRequestToJSON, FetchEvent200ResponseFromJSON, FetchEventRequestToJSON, FetchEvents200ResponseFromJSON, FetchEventsRequestToJSON, FetchMarket200ResponseFromJSON, FetchMarketRequestToJSON, FetchMarkets200ResponseFromJSON, FetchMarketsPaginated200ResponseFromJSON, FetchMarketsPaginatedRequestToJSON, FetchMarketsRequestToJSON, FetchMyTrades200ResponseFromJSON, FetchMyTradesRequestToJSON, FetchOHLCV200ResponseFromJSON, FetchOHLCVRequestToJSON, FetchOpenOrders200ResponseFromJSON, FetchOpenOrdersRequestToJSON, FetchOrderBook200ResponseFromJSON, FetchOrderBookRequestToJSON, FetchOrderRequestToJSON, FetchPositions200ResponseFromJSON, FetchPositionsRequestToJSON, FetchTrades200ResponseFromJSON, FetchTradesRequestToJSON, FilterEventsRequestToJSON, FilterMarketsRequestToJSON, GetExecutionPrice200ResponseFromJSON, GetExecutionPriceDetailed200ResponseFromJSON, GetExecutionPriceDetailedRequestToJSON, GetExecutionPriceRequestToJSON, HealthCheck200ResponseFromJSON, LoadMarkets200ResponseFromJSON, LoadMarketsRequestToJSON, SubmitOrderRequestToJSON, UnwatchAddressRequestToJSON, WatchAddress200ResponseFromJSON, WatchAddressRequestToJSON, WatchOrderBookRequestToJSON, WatchTradesRequestToJSON, } from '../models/index.js';
16
16
  /**
17
17
  *
18
18
  */
@@ -783,6 +783,66 @@ export class DefaultApi extends runtime.BaseAPI {
783
783
  const response = await this.submitOrderRaw(requestParameters, initOverrides);
784
784
  return await response.value();
785
785
  }
786
+ /**
787
+ * Stop watching a previously registered wallet address and release its resource updates.
788
+ * Unwatch Address
789
+ */
790
+ async unwatchAddressRaw(requestParameters, initOverrides) {
791
+ if (requestParameters['exchange'] == null) {
792
+ throw new runtime.RequiredError('exchange', 'Required parameter "exchange" was null or undefined when calling unwatchAddress().');
793
+ }
794
+ const queryParameters = {};
795
+ const headerParameters = {};
796
+ headerParameters['Content-Type'] = 'application/json';
797
+ let urlPath = `/api/{exchange}/unwatchAddress`;
798
+ urlPath = urlPath.replace(`{${"exchange"}}`, encodeURIComponent(String(requestParameters['exchange'])));
799
+ const response = await this.request({
800
+ path: urlPath,
801
+ method: 'POST',
802
+ headers: headerParameters,
803
+ query: queryParameters,
804
+ body: UnwatchAddressRequestToJSON(requestParameters['unwatchAddressRequest']),
805
+ }, initOverrides);
806
+ return new runtime.JSONApiResponse(response, (jsonValue) => BaseResponseFromJSON(jsonValue));
807
+ }
808
+ /**
809
+ * Stop watching a previously registered wallet address and release its resource updates.
810
+ * Unwatch Address
811
+ */
812
+ async unwatchAddress(requestParameters, initOverrides) {
813
+ const response = await this.unwatchAddressRaw(requestParameters, initOverrides);
814
+ return await response.value();
815
+ }
816
+ /**
817
+ * 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).
818
+ * Watch Address
819
+ */
820
+ async watchAddressRaw(requestParameters, initOverrides) {
821
+ if (requestParameters['exchange'] == null) {
822
+ throw new runtime.RequiredError('exchange', 'Required parameter "exchange" was null or undefined when calling watchAddress().');
823
+ }
824
+ const queryParameters = {};
825
+ const headerParameters = {};
826
+ headerParameters['Content-Type'] = 'application/json';
827
+ let urlPath = `/api/{exchange}/watchAddress`;
828
+ urlPath = urlPath.replace(`{${"exchange"}}`, encodeURIComponent(String(requestParameters['exchange'])));
829
+ const response = await this.request({
830
+ path: urlPath,
831
+ method: 'POST',
832
+ headers: headerParameters,
833
+ query: queryParameters,
834
+ body: WatchAddressRequestToJSON(requestParameters['watchAddressRequest']),
835
+ }, initOverrides);
836
+ return new runtime.JSONApiResponse(response, (jsonValue) => WatchAddress200ResponseFromJSON(jsonValue));
837
+ }
838
+ /**
839
+ * 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).
840
+ * Watch Address
841
+ */
842
+ async watchAddress(requestParameters, initOverrides) {
843
+ const response = await this.watchAddressRaw(requestParameters, initOverrides);
844
+ return await response.value();
845
+ }
786
846
  /**
787
847
  * 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).
788
848
  * Watch Order Book
@@ -1119,6 +1179,28 @@ export const SubmitOrderOperationExchangeEnum = {
1119
1179
  Baozi: 'baozi',
1120
1180
  Myriad: 'myriad'
1121
1181
  };
1182
+ /**
1183
+ * @export
1184
+ */
1185
+ export const UnwatchAddressOperationExchangeEnum = {
1186
+ Polymarket: 'polymarket',
1187
+ Kalshi: 'kalshi',
1188
+ Limitless: 'limitless',
1189
+ Probable: 'probable',
1190
+ Baozi: 'baozi',
1191
+ Myriad: 'myriad'
1192
+ };
1193
+ /**
1194
+ * @export
1195
+ */
1196
+ export const WatchAddressOperationExchangeEnum = {
1197
+ Polymarket: 'polymarket',
1198
+ Kalshi: 'kalshi',
1199
+ Limitless: 'limitless',
1200
+ Probable: 'probable',
1201
+ Baozi: 'baozi',
1202
+ Myriad: 'myriad'
1203
+ };
1122
1204
  /**
1123
1205
  * @export
1124
1206
  */
@@ -18,10 +18,10 @@ import type { ExchangeCredentials } from './ExchangeCredentials.js';
18
18
  export interface FetchBalanceRequest {
19
19
  /**
20
20
  *
21
- * @type {Array<any>}
21
+ * @type {Array<string>}
22
22
  * @memberof FetchBalanceRequest
23
23
  */
24
- args?: Array<any>;
24
+ args?: Array<string>;
25
25
  /**
26
26
  *
27
27
  * @type {ExchangeCredentials}
@@ -18,10 +18,10 @@ import type { ExchangeCredentials } from './ExchangeCredentials.js';
18
18
  export interface FetchPositionsRequest {
19
19
  /**
20
20
  *
21
- * @type {Array<any>}
21
+ * @type {Array<string>}
22
22
  * @memberof FetchPositionsRequest
23
23
  */
24
- args?: Array<any>;
24
+ args?: Array<string>;
25
25
  /**
26
26
  *
27
27
  * @type {ExchangeCredentials}
@@ -0,0 +1,39 @@
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;
@@ -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, 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
+ if (!('args' in value) || value['args'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function UnwatchAddressRequestFromJSON(json) {
24
+ return UnwatchAddressRequestFromJSONTyped(json, false);
25
+ }
26
+ export function UnwatchAddressRequestFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'args': json['args'],
32
+ 'credentials': json['credentials'] == null ? undefined : ExchangeCredentialsFromJSON(json['credentials']),
33
+ };
34
+ }
35
+ export function UnwatchAddressRequestToJSON(json) {
36
+ return UnwatchAddressRequestToJSONTyped(json, false);
37
+ }
38
+ export function UnwatchAddressRequestToJSONTyped(value, ignoreDiscriminator = false) {
39
+ if (value == null) {
40
+ return value;
41
+ }
42
+ return {
43
+ 'args': value['args'],
44
+ 'credentials': ExchangeCredentialsToJSON(value['credentials']),
45
+ };
46
+ }
@@ -0,0 +1,45 @@
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 WatchAddress200Response
17
+ */
18
+ export interface WatchAddress200Response {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof WatchAddress200Response
23
+ */
24
+ success?: boolean;
25
+ /**
26
+ *
27
+ * @type {ErrorDetail}
28
+ * @memberof WatchAddress200Response
29
+ */
30
+ error?: ErrorDetail;
31
+ /**
32
+ *
33
+ * @type {object}
34
+ * @memberof WatchAddress200Response
35
+ */
36
+ data?: object;
37
+ }
38
+ /**
39
+ * Check if a given object implements the WatchAddress200Response interface.
40
+ */
41
+ export declare function instanceOfWatchAddress200Response(value: object): value is WatchAddress200Response;
42
+ export declare function WatchAddress200ResponseFromJSON(json: any): WatchAddress200Response;
43
+ export declare function WatchAddress200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WatchAddress200Response;
44
+ export declare function WatchAddress200ResponseToJSON(json: any): WatchAddress200Response;
45
+ export declare function WatchAddress200ResponseToJSONTyped(value?: WatchAddress200Response | 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, 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 WatchAddress200Response interface.
17
+ */
18
+ export function instanceOfWatchAddress200Response(value) {
19
+ return true;
20
+ }
21
+ export function WatchAddress200ResponseFromJSON(json) {
22
+ return WatchAddress200ResponseFromJSONTyped(json, false);
23
+ }
24
+ export function WatchAddress200ResponseFromJSONTyped(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 WatchAddress200ResponseToJSON(json) {
35
+ return WatchAddress200ResponseToJSONTyped(json, false);
36
+ }
37
+ export function WatchAddress200ResponseToJSONTyped(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,40 @@
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 { WatchAddressRequestArgsInner } from './WatchAddressRequestArgsInner.js';
13
+ import type { ExchangeCredentials } from './ExchangeCredentials.js';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface WatchAddressRequest
18
+ */
19
+ export interface WatchAddressRequest {
20
+ /**
21
+ *
22
+ * @type {Array<WatchAddressRequestArgsInner>}
23
+ * @memberof WatchAddressRequest
24
+ */
25
+ args: Array<WatchAddressRequestArgsInner>;
26
+ /**
27
+ *
28
+ * @type {ExchangeCredentials}
29
+ * @memberof WatchAddressRequest
30
+ */
31
+ credentials?: ExchangeCredentials;
32
+ }
33
+ /**
34
+ * Check if a given object implements the WatchAddressRequest interface.
35
+ */
36
+ export declare function instanceOfWatchAddressRequest(value: object): value is WatchAddressRequest;
37
+ export declare function WatchAddressRequestFromJSON(json: any): WatchAddressRequest;
38
+ export declare function WatchAddressRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WatchAddressRequest;
39
+ export declare function WatchAddressRequestToJSON(json: any): WatchAddressRequest;
40
+ export declare function WatchAddressRequestToJSONTyped(value?: WatchAddressRequest | 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, 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 { WatchAddressRequestArgsInnerFromJSON, WatchAddressRequestArgsInnerToJSON, } from './WatchAddressRequestArgsInner.js';
15
+ import { ExchangeCredentialsFromJSON, ExchangeCredentialsToJSON, } from './ExchangeCredentials.js';
16
+ /**
17
+ * Check if a given object implements the WatchAddressRequest interface.
18
+ */
19
+ export function instanceOfWatchAddressRequest(value) {
20
+ if (!('args' in value) || value['args'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function WatchAddressRequestFromJSON(json) {
25
+ return WatchAddressRequestFromJSONTyped(json, false);
26
+ }
27
+ export function WatchAddressRequestFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'args': (json['args'].map(WatchAddressRequestArgsInnerFromJSON)),
33
+ 'credentials': json['credentials'] == null ? undefined : ExchangeCredentialsFromJSON(json['credentials']),
34
+ };
35
+ }
36
+ export function WatchAddressRequestToJSON(json) {
37
+ return WatchAddressRequestToJSONTyped(json, false);
38
+ }
39
+ export function WatchAddressRequestToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'args': (value['args'].map(WatchAddressRequestArgsInnerToJSON)),
45
+ 'credentials': ExchangeCredentialsToJSON(value['credentials']),
46
+ };
47
+ }
@@ -0,0 +1,21 @@
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
+ /**
13
+ * @type WatchAddressRequestArgsInner
14
+ *
15
+ * @export
16
+ */
17
+ export type WatchAddressRequestArgsInner = Array<object> | string;
18
+ export declare function WatchAddressRequestArgsInnerFromJSON(json: any): WatchAddressRequestArgsInner;
19
+ export declare function WatchAddressRequestArgsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): WatchAddressRequestArgsInner;
20
+ export declare function WatchAddressRequestArgsInnerToJSON(json: any): any;
21
+ export declare function WatchAddressRequestArgsInnerToJSONTyped(value?: WatchAddressRequestArgsInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,37 @@
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
+ export function WatchAddressRequestArgsInnerFromJSON(json) {
15
+ return WatchAddressRequestArgsInnerFromJSONTyped(json, false);
16
+ }
17
+ export function WatchAddressRequestArgsInnerFromJSONTyped(json, ignoreDiscriminator) {
18
+ if (json == null) {
19
+ return json;
20
+ }
21
+ if (typeof json === 'string') {
22
+ return json;
23
+ }
24
+ return {};
25
+ }
26
+ export function WatchAddressRequestArgsInnerToJSON(json) {
27
+ return WatchAddressRequestArgsInnerToJSONTyped(json, false);
28
+ }
29
+ export function WatchAddressRequestArgsInnerToJSONTyped(value, ignoreDiscriminator = false) {
30
+ if (value == null) {
31
+ return value;
32
+ }
33
+ if (typeof value === 'string') {
34
+ return value;
35
+ }
36
+ return {};
37
+ }
@@ -77,7 +77,11 @@ export * from './Trade.js';
77
77
  export * from './TradesParams.js';
78
78
  export * from './UnifiedEvent.js';
79
79
  export * from './UnifiedMarket.js';
80
+ export * from './UnwatchAddressRequest.js';
80
81
  export * from './UserTrade.js';
82
+ export * from './WatchAddress200Response.js';
83
+ export * from './WatchAddressRequest.js';
84
+ export * from './WatchAddressRequestArgsInner.js';
81
85
  export * from './WatchOrderBookRequest.js';
82
86
  export * from './WatchOrderBookRequestArgsInner.js';
83
87
  export * from './WatchTradesRequest.js';
@@ -79,7 +79,11 @@ export * from './Trade.js';
79
79
  export * from './TradesParams.js';
80
80
  export * from './UnifiedEvent.js';
81
81
  export * from './UnifiedMarket.js';
82
+ export * from './UnwatchAddressRequest.js';
82
83
  export * from './UserTrade.js';
84
+ export * from './WatchAddress200Response.js';
85
+ export * from './WatchAddressRequest.js';
86
+ export * from './WatchAddressRequestArgsInner.js';
83
87
  export * from './WatchOrderBookRequest.js';
84
88
  export * from './WatchOrderBookRequestArgsInner.js';
85
89
  export * from './WatchTradesRequest.js';
@@ -0,0 +1 @@
1
+ export declare function buildArgsWithOptionalOptions(primary?: any): any[];
@@ -0,0 +1,3 @@
1
+ export function buildArgsWithOptionalOptions(primary) {
2
+ return primary !== undefined ? [primary] : [];
3
+ }