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
@@ -0,0 +1,38 @@
1
+
2
+ # WatchAddress200Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `success` | boolean
10
+ `error` | [ErrorDetail](ErrorDetail.md)
11
+ `data` | object
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { WatchAddress200Response } 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 WatchAddress200Response
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 WatchAddress200Response
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -0,0 +1,36 @@
1
+
2
+ # WatchAddressRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `args` | [Array<WatchAddressRequestArgsInner>](WatchAddressRequestArgsInner.md)
10
+ `credentials` | [ExchangeCredentials](ExchangeCredentials.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { WatchAddressRequest } from 'pmxtjs'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "args": null,
20
+ "credentials": null,
21
+ } satisfies WatchAddressRequest
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 WatchAddressRequest
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
+
@@ -0,0 +1,32 @@
1
+
2
+ # WatchAddressRequestArgsInner
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import type { WatchAddressRequestArgsInner } from 'pmxtjs'
14
+
15
+ // TODO: Update the object below with actual values
16
+ const example = {
17
+ } satisfies WatchAddressRequestArgsInner
18
+
19
+ console.log(example)
20
+
21
+ // Convert the instance to a JSON string
22
+ const exampleJSON: string = JSON.stringify(example)
23
+ console.log(exampleJSON)
24
+
25
+ // Parse the JSON string back to an object
26
+ const exampleParsed = JSON.parse(exampleJSON) as WatchAddressRequestArgsInner
27
+ console.log(exampleParsed)
28
+ ```
29
+
30
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
31
+
32
+
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmxtjs",
3
- "version": "2.19.6",
3
+ "version": "2.20.1",
4
4
  "description": "OpenAPI client for pmxtjs",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -59,6 +59,9 @@ import type {
59
59
  LoadMarkets200Response,
60
60
  LoadMarketsRequest,
61
61
  SubmitOrderRequest,
62
+ UnwatchAddressRequest,
63
+ WatchAddress200Response,
64
+ WatchAddressRequest,
62
65
  WatchOrderBookRequest,
63
66
  WatchTradesRequest,
64
67
  } from '../models/index';
@@ -151,6 +154,12 @@ import {
151
154
  LoadMarketsRequestToJSON,
152
155
  SubmitOrderRequestFromJSON,
153
156
  SubmitOrderRequestToJSON,
157
+ UnwatchAddressRequestFromJSON,
158
+ UnwatchAddressRequestToJSON,
159
+ WatchAddress200ResponseFromJSON,
160
+ WatchAddress200ResponseToJSON,
161
+ WatchAddressRequestFromJSON,
162
+ WatchAddressRequestToJSON,
154
163
  WatchOrderBookRequestFromJSON,
155
164
  WatchOrderBookRequestToJSON,
156
165
  WatchTradesRequestFromJSON,
@@ -282,6 +291,16 @@ export interface SubmitOrderOperationRequest {
282
291
  submitOrderRequest?: SubmitOrderRequest;
283
292
  }
284
293
 
294
+ export interface UnwatchAddressOperationRequest {
295
+ exchange: UnwatchAddressOperationExchangeEnum;
296
+ unwatchAddressRequest?: UnwatchAddressRequest;
297
+ }
298
+
299
+ export interface WatchAddressOperationRequest {
300
+ exchange: WatchAddressOperationExchangeEnum;
301
+ watchAddressRequest?: WatchAddressRequest;
302
+ }
303
+
285
304
  export interface WatchOrderBookOperationRequest {
286
305
  exchange: WatchOrderBookOperationExchangeEnum;
287
306
  watchOrderBookRequest?: WatchOrderBookRequest;
@@ -1370,6 +1389,90 @@ export class DefaultApi extends runtime.BaseAPI {
1370
1389
  return await response.value();
1371
1390
  }
1372
1391
 
1392
+ /**
1393
+ * Stop watching a previously registered wallet address and release its resource updates.
1394
+ * Unwatch Address
1395
+ */
1396
+ async unwatchAddressRaw(requestParameters: UnwatchAddressOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BaseResponse>> {
1397
+ if (requestParameters['exchange'] == null) {
1398
+ throw new runtime.RequiredError(
1399
+ 'exchange',
1400
+ 'Required parameter "exchange" was null or undefined when calling unwatchAddress().'
1401
+ );
1402
+ }
1403
+
1404
+ const queryParameters: any = {};
1405
+
1406
+ const headerParameters: runtime.HTTPHeaders = {};
1407
+
1408
+ headerParameters['Content-Type'] = 'application/json';
1409
+
1410
+
1411
+ let urlPath = `/api/{exchange}/unwatchAddress`;
1412
+ urlPath = urlPath.replace(`{${"exchange"}}`, encodeURIComponent(String(requestParameters['exchange'])));
1413
+
1414
+ const response = await this.request({
1415
+ path: urlPath,
1416
+ method: 'POST',
1417
+ headers: headerParameters,
1418
+ query: queryParameters,
1419
+ body: UnwatchAddressRequestToJSON(requestParameters['unwatchAddressRequest']),
1420
+ }, initOverrides);
1421
+
1422
+ return new runtime.JSONApiResponse(response, (jsonValue) => BaseResponseFromJSON(jsonValue));
1423
+ }
1424
+
1425
+ /**
1426
+ * Stop watching a previously registered wallet address and release its resource updates.
1427
+ * Unwatch Address
1428
+ */
1429
+ async unwatchAddress(requestParameters: UnwatchAddressOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BaseResponse> {
1430
+ const response = await this.unwatchAddressRaw(requestParameters, initOverrides);
1431
+ return await response.value();
1432
+ }
1433
+
1434
+ /**
1435
+ * 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).
1436
+ * Watch Address
1437
+ */
1438
+ async watchAddressRaw(requestParameters: WatchAddressOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WatchAddress200Response>> {
1439
+ if (requestParameters['exchange'] == null) {
1440
+ throw new runtime.RequiredError(
1441
+ 'exchange',
1442
+ 'Required parameter "exchange" was null or undefined when calling watchAddress().'
1443
+ );
1444
+ }
1445
+
1446
+ const queryParameters: any = {};
1447
+
1448
+ const headerParameters: runtime.HTTPHeaders = {};
1449
+
1450
+ headerParameters['Content-Type'] = 'application/json';
1451
+
1452
+
1453
+ let urlPath = `/api/{exchange}/watchAddress`;
1454
+ urlPath = urlPath.replace(`{${"exchange"}}`, encodeURIComponent(String(requestParameters['exchange'])));
1455
+
1456
+ const response = await this.request({
1457
+ path: urlPath,
1458
+ method: 'POST',
1459
+ headers: headerParameters,
1460
+ query: queryParameters,
1461
+ body: WatchAddressRequestToJSON(requestParameters['watchAddressRequest']),
1462
+ }, initOverrides);
1463
+
1464
+ return new runtime.JSONApiResponse(response, (jsonValue) => WatchAddress200ResponseFromJSON(jsonValue));
1465
+ }
1466
+
1467
+ /**
1468
+ * 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).
1469
+ * Watch Address
1470
+ */
1471
+ async watchAddress(requestParameters: WatchAddressOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WatchAddress200Response> {
1472
+ const response = await this.watchAddressRaw(requestParameters, initOverrides);
1473
+ return await response.value();
1474
+ }
1475
+
1373
1476
  /**
1374
1477
  * 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).
1375
1478
  * Watch Order Book
@@ -1756,6 +1859,30 @@ export const SubmitOrderOperationExchangeEnum = {
1756
1859
  Myriad: 'myriad'
1757
1860
  } as const;
1758
1861
  export type SubmitOrderOperationExchangeEnum = typeof SubmitOrderOperationExchangeEnum[keyof typeof SubmitOrderOperationExchangeEnum];
1862
+ /**
1863
+ * @export
1864
+ */
1865
+ export const UnwatchAddressOperationExchangeEnum = {
1866
+ Polymarket: 'polymarket',
1867
+ Kalshi: 'kalshi',
1868
+ Limitless: 'limitless',
1869
+ Probable: 'probable',
1870
+ Baozi: 'baozi',
1871
+ Myriad: 'myriad'
1872
+ } as const;
1873
+ export type UnwatchAddressOperationExchangeEnum = typeof UnwatchAddressOperationExchangeEnum[keyof typeof UnwatchAddressOperationExchangeEnum];
1874
+ /**
1875
+ * @export
1876
+ */
1877
+ export const WatchAddressOperationExchangeEnum = {
1878
+ Polymarket: 'polymarket',
1879
+ Kalshi: 'kalshi',
1880
+ Limitless: 'limitless',
1881
+ Probable: 'probable',
1882
+ Baozi: 'baozi',
1883
+ Myriad: 'myriad'
1884
+ } as const;
1885
+ export type WatchAddressOperationExchangeEnum = typeof WatchAddressOperationExchangeEnum[keyof typeof WatchAddressOperationExchangeEnum];
1759
1886
  /**
1760
1887
  * @export
1761
1888
  */
@@ -29,10 +29,10 @@ import {
29
29
  export interface FetchBalanceRequest {
30
30
  /**
31
31
  *
32
- * @type {Array<any>}
32
+ * @type {Array<string>}
33
33
  * @memberof FetchBalanceRequest
34
34
  */
35
- args?: Array<any>;
35
+ args?: Array<string>;
36
36
  /**
37
37
  *
38
38
  * @type {ExchangeCredentials}
@@ -29,10 +29,10 @@ import {
29
29
  export interface FetchPositionsRequest {
30
30
  /**
31
31
  *
32
- * @type {Array<any>}
32
+ * @type {Array<string>}
33
33
  * @memberof FetchPositionsRequest
34
34
  */
35
- args?: Array<any>;
35
+ args?: Array<string>;
36
36
  /**
37
37
  *
38
38
  * @type {ExchangeCredentials}
@@ -0,0 +1,82 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * PMXT Sidecar API
5
+ * A unified local sidecar API for prediction markets (Polymarket, Kalshi, Limitless). This API acts as a JSON-RPC-style gateway. Each endpoint corresponds to a specific method on the generic exchange implementation.
6
+ *
7
+ * The version of the OpenAPI document: 0.4.4
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { ExchangeCredentials } from './ExchangeCredentials';
17
+ import {
18
+ ExchangeCredentialsFromJSON,
19
+ ExchangeCredentialsFromJSONTyped,
20
+ ExchangeCredentialsToJSON,
21
+ ExchangeCredentialsToJSONTyped,
22
+ } from './ExchangeCredentials';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface UnwatchAddressRequest
28
+ */
29
+ export interface UnwatchAddressRequest {
30
+ /**
31
+ *
32
+ * @type {Array<string>}
33
+ * @memberof UnwatchAddressRequest
34
+ */
35
+ args: Array<string>;
36
+ /**
37
+ *
38
+ * @type {ExchangeCredentials}
39
+ * @memberof UnwatchAddressRequest
40
+ */
41
+ credentials?: ExchangeCredentials;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the UnwatchAddressRequest interface.
46
+ */
47
+ export function instanceOfUnwatchAddressRequest(value: object): value is UnwatchAddressRequest {
48
+ if (!('args' in value) || value['args'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function UnwatchAddressRequestFromJSON(json: any): UnwatchAddressRequest {
53
+ return UnwatchAddressRequestFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function UnwatchAddressRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnwatchAddressRequest {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'args': json['args'],
63
+ 'credentials': json['credentials'] == null ? undefined : ExchangeCredentialsFromJSON(json['credentials']),
64
+ };
65
+ }
66
+
67
+ export function UnwatchAddressRequestToJSON(json: any): UnwatchAddressRequest {
68
+ return UnwatchAddressRequestToJSONTyped(json, false);
69
+ }
70
+
71
+ export function UnwatchAddressRequestToJSONTyped(value?: UnwatchAddressRequest | null, ignoreDiscriminator: boolean = false): any {
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+
76
+ return {
77
+
78
+ 'args': value['args'],
79
+ 'credentials': ExchangeCredentialsToJSON(value['credentials']),
80
+ };
81
+ }
82
+
@@ -0,0 +1,89 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * PMXT Sidecar API
5
+ * A unified local sidecar API for prediction markets (Polymarket, Kalshi, Limitless). This API acts as a JSON-RPC-style gateway. Each endpoint corresponds to a specific method on the generic exchange implementation.
6
+ *
7
+ * The version of the OpenAPI document: 0.4.4
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { ErrorDetail } from './ErrorDetail';
17
+ import {
18
+ ErrorDetailFromJSON,
19
+ ErrorDetailFromJSONTyped,
20
+ ErrorDetailToJSON,
21
+ ErrorDetailToJSONTyped,
22
+ } from './ErrorDetail';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface WatchAddress200Response
28
+ */
29
+ export interface WatchAddress200Response {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof WatchAddress200Response
34
+ */
35
+ success?: boolean;
36
+ /**
37
+ *
38
+ * @type {ErrorDetail}
39
+ * @memberof WatchAddress200Response
40
+ */
41
+ error?: ErrorDetail;
42
+ /**
43
+ *
44
+ * @type {object}
45
+ * @memberof WatchAddress200Response
46
+ */
47
+ data?: object;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the WatchAddress200Response interface.
52
+ */
53
+ export function instanceOfWatchAddress200Response(value: object): value is WatchAddress200Response {
54
+ return true;
55
+ }
56
+
57
+ export function WatchAddress200ResponseFromJSON(json: any): WatchAddress200Response {
58
+ return WatchAddress200ResponseFromJSONTyped(json, false);
59
+ }
60
+
61
+ export function WatchAddress200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WatchAddress200Response {
62
+ if (json == null) {
63
+ return json;
64
+ }
65
+ return {
66
+
67
+ 'success': json['success'] == null ? undefined : json['success'],
68
+ 'error': json['error'] == null ? undefined : ErrorDetailFromJSON(json['error']),
69
+ 'data': json['data'] == null ? undefined : json['data'],
70
+ };
71
+ }
72
+
73
+ export function WatchAddress200ResponseToJSON(json: any): WatchAddress200Response {
74
+ return WatchAddress200ResponseToJSONTyped(json, false);
75
+ }
76
+
77
+ export function WatchAddress200ResponseToJSONTyped(value?: WatchAddress200Response | null, ignoreDiscriminator: boolean = false): any {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+
82
+ return {
83
+
84
+ 'success': value['success'],
85
+ 'error': ErrorDetailToJSON(value['error']),
86
+ 'data': value['data'],
87
+ };
88
+ }
89
+
@@ -0,0 +1,89 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * PMXT Sidecar API
5
+ * A unified local sidecar API for prediction markets (Polymarket, Kalshi, Limitless). This API acts as a JSON-RPC-style gateway. Each endpoint corresponds to a specific method on the generic exchange implementation.
6
+ *
7
+ * The version of the OpenAPI document: 0.4.4
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { WatchAddressRequestArgsInner } from './WatchAddressRequestArgsInner';
17
+ import {
18
+ WatchAddressRequestArgsInnerFromJSON,
19
+ WatchAddressRequestArgsInnerFromJSONTyped,
20
+ WatchAddressRequestArgsInnerToJSON,
21
+ WatchAddressRequestArgsInnerToJSONTyped,
22
+ } from './WatchAddressRequestArgsInner';
23
+ import type { ExchangeCredentials } from './ExchangeCredentials';
24
+ import {
25
+ ExchangeCredentialsFromJSON,
26
+ ExchangeCredentialsFromJSONTyped,
27
+ ExchangeCredentialsToJSON,
28
+ ExchangeCredentialsToJSONTyped,
29
+ } from './ExchangeCredentials';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface WatchAddressRequest
35
+ */
36
+ export interface WatchAddressRequest {
37
+ /**
38
+ *
39
+ * @type {Array<WatchAddressRequestArgsInner>}
40
+ * @memberof WatchAddressRequest
41
+ */
42
+ args: Array<WatchAddressRequestArgsInner>;
43
+ /**
44
+ *
45
+ * @type {ExchangeCredentials}
46
+ * @memberof WatchAddressRequest
47
+ */
48
+ credentials?: ExchangeCredentials;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the WatchAddressRequest interface.
53
+ */
54
+ export function instanceOfWatchAddressRequest(value: object): value is WatchAddressRequest {
55
+ if (!('args' in value) || value['args'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function WatchAddressRequestFromJSON(json: any): WatchAddressRequest {
60
+ return WatchAddressRequestFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function WatchAddressRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WatchAddressRequest {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'args': ((json['args'] as Array<any>).map(WatchAddressRequestArgsInnerFromJSON)),
70
+ 'credentials': json['credentials'] == null ? undefined : ExchangeCredentialsFromJSON(json['credentials']),
71
+ };
72
+ }
73
+
74
+ export function WatchAddressRequestToJSON(json: any): WatchAddressRequest {
75
+ return WatchAddressRequestToJSONTyped(json, false);
76
+ }
77
+
78
+ export function WatchAddressRequestToJSONTyped(value?: WatchAddressRequest | null, ignoreDiscriminator: boolean = false): any {
79
+ if (value == null) {
80
+ return value;
81
+ }
82
+
83
+ return {
84
+
85
+ 'args': ((value['args'] as Array<any>).map(WatchAddressRequestArgsInnerToJSON)),
86
+ 'credentials': ExchangeCredentialsToJSON(value['credentials']),
87
+ };
88
+ }
89
+
@@ -0,0 +1,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * PMXT Sidecar API
5
+ * A unified local sidecar API for prediction markets (Polymarket, Kalshi, Limitless). This API acts as a JSON-RPC-style gateway. Each endpoint corresponds to a specific method on the generic exchange implementation.
6
+ *
7
+ * The version of the OpenAPI document: 0.4.4
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ /**
16
+ * @type WatchAddressRequestArgsInner
17
+ *
18
+ * @export
19
+ */
20
+ export type WatchAddressRequestArgsInner = Array<object> | string;
21
+
22
+ export function WatchAddressRequestArgsInnerFromJSON(json: any): WatchAddressRequestArgsInner {
23
+ return WatchAddressRequestArgsInnerFromJSONTyped(json, false);
24
+ }
25
+
26
+ export function WatchAddressRequestArgsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): WatchAddressRequestArgsInner {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ if (typeof json === 'string') {
31
+ return json;
32
+ }
33
+ return {} as any;
34
+ }
35
+
36
+ export function WatchAddressRequestArgsInnerToJSON(json: any): any {
37
+ return WatchAddressRequestArgsInnerToJSONTyped(json, false);
38
+ }
39
+
40
+ export function WatchAddressRequestArgsInnerToJSONTyped(value?: WatchAddressRequestArgsInner | null, ignoreDiscriminator: boolean = false): any {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ if (typeof value === 'string') {
45
+ return value;
46
+ }
47
+ return {};
48
+ }
49
+
@@ -79,7 +79,11 @@ export * from './Trade';
79
79
  export * from './TradesParams';
80
80
  export * from './UnifiedEvent';
81
81
  export * from './UnifiedMarket';
82
+ export * from './UnwatchAddressRequest';
82
83
  export * from './UserTrade';
84
+ export * from './WatchAddress200Response';
85
+ export * from './WatchAddressRequest';
86
+ export * from './WatchAddressRequestArgsInner';
83
87
  export * from './WatchOrderBookRequest';
84
88
  export * from './WatchOrderBookRequestArgsInner';
85
89
  export * from './WatchTradesRequest';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmxtjs",
3
- "version": "2.19.6",
3
+ "version": "2.20.1",
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.19.6"
46
+ "pmxt-core": "2.20.1"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/jest": "^30.0.0",
package/pmxt/args.ts ADDED
@@ -0,0 +1,3 @@
1
+ export function buildArgsWithOptionalOptions(primary?: any): any[] {
2
+ return primary !== undefined ? [primary] : [];
3
+ }