pmxtjs 2.41.0 → 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.
Files changed (73) hide show
  1. package/dist/esm/generated/src/apis/DefaultApi.d.ts +49 -55
  2. package/dist/esm/generated/src/apis/DefaultApi.js +19 -31
  3. package/dist/esm/generated/src/models/index.d.ts +0 -9
  4. package/dist/esm/generated/src/models/index.js +0 -9
  5. package/dist/esm/pmxt/client.d.ts +8 -7
  6. package/dist/esm/pmxt/client.js +83 -11
  7. package/dist/generated/src/apis/DefaultApi.d.ts +49 -55
  8. package/dist/generated/src/apis/DefaultApi.js +19 -31
  9. package/dist/generated/src/models/index.d.ts +0 -9
  10. package/dist/generated/src/models/index.js +0 -9
  11. package/dist/pmxt/client.d.ts +8 -7
  12. package/dist/pmxt/client.js +83 -11
  13. package/generated/.openapi-generator/FILES +0 -18
  14. package/generated/docs/DefaultApi.md +36 -54
  15. package/generated/package.json +1 -1
  16. package/generated/src/apis/DefaultApi.ts +48 -90
  17. package/generated/src/models/index.ts +0 -9
  18. package/package.json +2 -2
  19. package/pmxt/client.ts +82 -11
  20. package/dist/esm/generated/src/models/UnwatchAddressRequest.d.ts +0 -39
  21. package/dist/esm/generated/src/models/UnwatchAddressRequest.js +0 -46
  22. package/dist/esm/generated/src/models/UnwatchOrderBookRequest.d.ts +0 -39
  23. package/dist/esm/generated/src/models/UnwatchOrderBookRequest.js +0 -46
  24. package/dist/esm/generated/src/models/WatchAddressRequest.d.ts +0 -40
  25. package/dist/esm/generated/src/models/WatchAddressRequest.js +0 -47
  26. package/dist/esm/generated/src/models/WatchAddressRequestArgsInner.d.ts +0 -21
  27. package/dist/esm/generated/src/models/WatchAddressRequestArgsInner.js +0 -37
  28. package/dist/esm/generated/src/models/WatchOrderBookRequest.d.ts +0 -40
  29. package/dist/esm/generated/src/models/WatchOrderBookRequest.js +0 -47
  30. package/dist/esm/generated/src/models/WatchOrderBookRequestArgsInner.d.ts +0 -21
  31. package/dist/esm/generated/src/models/WatchOrderBookRequestArgsInner.js +0 -43
  32. package/dist/esm/generated/src/models/WatchOrderBooksRequest.d.ts +0 -40
  33. package/dist/esm/generated/src/models/WatchOrderBooksRequest.js +0 -47
  34. package/dist/esm/generated/src/models/WatchOrderBooksRequestArgsInner.d.ts +0 -21
  35. package/dist/esm/generated/src/models/WatchOrderBooksRequestArgsInner.js +0 -47
  36. package/dist/esm/generated/src/models/WatchTradesRequest.d.ts +0 -40
  37. package/dist/esm/generated/src/models/WatchTradesRequest.js +0 -47
  38. package/dist/generated/src/models/UnwatchAddressRequest.d.ts +0 -39
  39. package/dist/generated/src/models/UnwatchAddressRequest.js +0 -53
  40. package/dist/generated/src/models/UnwatchOrderBookRequest.d.ts +0 -39
  41. package/dist/generated/src/models/UnwatchOrderBookRequest.js +0 -53
  42. package/dist/generated/src/models/WatchAddressRequest.d.ts +0 -40
  43. package/dist/generated/src/models/WatchAddressRequest.js +0 -54
  44. package/dist/generated/src/models/WatchAddressRequestArgsInner.d.ts +0 -21
  45. package/dist/generated/src/models/WatchAddressRequestArgsInner.js +0 -43
  46. package/dist/generated/src/models/WatchOrderBookRequest.d.ts +0 -40
  47. package/dist/generated/src/models/WatchOrderBookRequest.js +0 -54
  48. package/dist/generated/src/models/WatchOrderBookRequestArgsInner.d.ts +0 -21
  49. package/dist/generated/src/models/WatchOrderBookRequestArgsInner.js +0 -49
  50. package/dist/generated/src/models/WatchOrderBooksRequest.d.ts +0 -40
  51. package/dist/generated/src/models/WatchOrderBooksRequest.js +0 -54
  52. package/dist/generated/src/models/WatchOrderBooksRequestArgsInner.d.ts +0 -21
  53. package/dist/generated/src/models/WatchOrderBooksRequestArgsInner.js +0 -53
  54. package/dist/generated/src/models/WatchTradesRequest.d.ts +0 -40
  55. package/dist/generated/src/models/WatchTradesRequest.js +0 -54
  56. package/generated/docs/UnwatchAddressRequest.md +0 -36
  57. package/generated/docs/UnwatchOrderBookRequest.md +0 -36
  58. package/generated/docs/WatchAddressRequest.md +0 -36
  59. package/generated/docs/WatchAddressRequestArgsInner.md +0 -32
  60. package/generated/docs/WatchOrderBookRequest.md +0 -36
  61. package/generated/docs/WatchOrderBookRequestArgsInner.md +0 -32
  62. package/generated/docs/WatchOrderBooksRequest.md +0 -36
  63. package/generated/docs/WatchOrderBooksRequestArgsInner.md +0 -32
  64. package/generated/docs/WatchTradesRequest.md +0 -36
  65. package/generated/src/models/UnwatchAddressRequest.ts +0 -82
  66. package/generated/src/models/UnwatchOrderBookRequest.ts +0 -82
  67. package/generated/src/models/WatchAddressRequest.ts +0 -89
  68. package/generated/src/models/WatchAddressRequestArgsInner.ts +0 -49
  69. package/generated/src/models/WatchOrderBookRequest.ts +0 -89
  70. package/generated/src/models/WatchOrderBookRequestArgsInner.ts +0 -55
  71. package/generated/src/models/WatchOrderBooksRequest.ts +0 -89
  72. package/generated/src/models/WatchOrderBooksRequestArgsInner.ts +0 -59
  73. package/generated/src/models/WatchTradesRequest.ts +0 -89
@@ -1,21 +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
- /**
13
- * @type WatchOrderBooksRequestArgsInner
14
- *
15
- * @export
16
- */
17
- export type WatchOrderBooksRequestArgsInner = Array<string> | number;
18
- export declare function WatchOrderBooksRequestArgsInnerFromJSON(json: any): WatchOrderBooksRequestArgsInner;
19
- export declare function WatchOrderBooksRequestArgsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): WatchOrderBooksRequestArgsInner;
20
- export declare function WatchOrderBooksRequestArgsInnerToJSON(json: any): any;
21
- export declare function WatchOrderBooksRequestArgsInnerToJSONTyped(value?: WatchOrderBooksRequestArgsInner | null, ignoreDiscriminator?: boolean): any;
@@ -1,53 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * PMXT Sidecar API
6
- * A unified local sidecar API for prediction markets (Polymarket, Kalshi, Limitless). This API acts as a JSON-RPC-style gateway. Each endpoint corresponds to a specific method on the generic exchange implementation.
7
- *
8
- * The version of the OpenAPI document: 0.4.4
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.WatchOrderBooksRequestArgsInnerFromJSON = WatchOrderBooksRequestArgsInnerFromJSON;
17
- exports.WatchOrderBooksRequestArgsInnerFromJSONTyped = WatchOrderBooksRequestArgsInnerFromJSONTyped;
18
- exports.WatchOrderBooksRequestArgsInnerToJSON = WatchOrderBooksRequestArgsInnerToJSON;
19
- exports.WatchOrderBooksRequestArgsInnerToJSONTyped = WatchOrderBooksRequestArgsInnerToJSONTyped;
20
- function WatchOrderBooksRequestArgsInnerFromJSON(json) {
21
- return WatchOrderBooksRequestArgsInnerFromJSONTyped(json, false);
22
- }
23
- function WatchOrderBooksRequestArgsInnerFromJSONTyped(json, ignoreDiscriminator) {
24
- if (json == null) {
25
- return json;
26
- }
27
- if (typeof json === 'number') {
28
- return json;
29
- }
30
- if (Array.isArray(json)) {
31
- if (json.every(item => typeof item === 'string')) {
32
- return json;
33
- }
34
- }
35
- return {};
36
- }
37
- function WatchOrderBooksRequestArgsInnerToJSON(json) {
38
- return WatchOrderBooksRequestArgsInnerToJSONTyped(json, false);
39
- }
40
- function WatchOrderBooksRequestArgsInnerToJSONTyped(value, ignoreDiscriminator = false) {
41
- if (value == null) {
42
- return value;
43
- }
44
- if (typeof value === 'number') {
45
- return value;
46
- }
47
- if (Array.isArray(value)) {
48
- if (value.every(item => typeof item === 'string')) {
49
- return value;
50
- }
51
- }
52
- return {};
53
- }
@@ -1,40 +0,0 @@
1
- /**
2
- * PMXT Sidecar API
3
- * A unified local sidecar API for prediction markets (Polymarket, Kalshi, Limitless). This API acts as a JSON-RPC-style gateway. Each endpoint corresponds to a specific method on the generic exchange implementation.
4
- *
5
- * The version of the OpenAPI document: 0.4.4
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { ExchangeCredentials } from './ExchangeCredentials';
13
- import type { WatchOrderBookRequestArgsInner } from './WatchOrderBookRequestArgsInner';
14
- /**
15
- *
16
- * @export
17
- * @interface WatchTradesRequest
18
- */
19
- export interface WatchTradesRequest {
20
- /**
21
- *
22
- * @type {Array<WatchOrderBookRequestArgsInner>}
23
- * @memberof WatchTradesRequest
24
- */
25
- args: Array<WatchOrderBookRequestArgsInner>;
26
- /**
27
- *
28
- * @type {ExchangeCredentials}
29
- * @memberof WatchTradesRequest
30
- */
31
- credentials?: ExchangeCredentials;
32
- }
33
- /**
34
- * Check if a given object implements the WatchTradesRequest interface.
35
- */
36
- export declare function instanceOfWatchTradesRequest(value: object): value is WatchTradesRequest;
37
- export declare function WatchTradesRequestFromJSON(json: any): WatchTradesRequest;
38
- export declare function WatchTradesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WatchTradesRequest;
39
- export declare function WatchTradesRequestToJSON(json: any): WatchTradesRequest;
40
- export declare function WatchTradesRequestToJSONTyped(value?: WatchTradesRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,54 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * PMXT Sidecar API
6
- * A unified local sidecar API for prediction markets (Polymarket, Kalshi, Limitless). This API acts as a JSON-RPC-style gateway. Each endpoint corresponds to a specific method on the generic exchange implementation.
7
- *
8
- * The version of the OpenAPI document: 0.4.4
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfWatchTradesRequest = instanceOfWatchTradesRequest;
17
- exports.WatchTradesRequestFromJSON = WatchTradesRequestFromJSON;
18
- exports.WatchTradesRequestFromJSONTyped = WatchTradesRequestFromJSONTyped;
19
- exports.WatchTradesRequestToJSON = WatchTradesRequestToJSON;
20
- exports.WatchTradesRequestToJSONTyped = WatchTradesRequestToJSONTyped;
21
- const ExchangeCredentials_1 = require("./ExchangeCredentials");
22
- const WatchOrderBookRequestArgsInner_1 = require("./WatchOrderBookRequestArgsInner");
23
- /**
24
- * Check if a given object implements the WatchTradesRequest interface.
25
- */
26
- function instanceOfWatchTradesRequest(value) {
27
- if (!('args' in value) || value['args'] === undefined)
28
- return false;
29
- return true;
30
- }
31
- function WatchTradesRequestFromJSON(json) {
32
- return WatchTradesRequestFromJSONTyped(json, false);
33
- }
34
- function WatchTradesRequestFromJSONTyped(json, ignoreDiscriminator) {
35
- if (json == null) {
36
- return json;
37
- }
38
- return {
39
- 'args': (json['args'].map(WatchOrderBookRequestArgsInner_1.WatchOrderBookRequestArgsInnerFromJSON)),
40
- 'credentials': json['credentials'] == null ? undefined : (0, ExchangeCredentials_1.ExchangeCredentialsFromJSON)(json['credentials']),
41
- };
42
- }
43
- function WatchTradesRequestToJSON(json) {
44
- return WatchTradesRequestToJSONTyped(json, false);
45
- }
46
- function WatchTradesRequestToJSONTyped(value, ignoreDiscriminator = false) {
47
- if (value == null) {
48
- return value;
49
- }
50
- return {
51
- 'args': (value['args'].map(WatchOrderBookRequestArgsInner_1.WatchOrderBookRequestArgsInnerToJSON)),
52
- 'credentials': (0, ExchangeCredentials_1.ExchangeCredentialsToJSON)(value['credentials']),
53
- };
54
- }
@@ -1,36 +0,0 @@
1
-
2
- # UnwatchAddressRequest
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `args` | Array&lt;string&gt;
10
- `credentials` | [ExchangeCredentials](ExchangeCredentials.md)
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import type { UnwatchAddressRequest } from 'pmxtjs'
16
-
17
- // TODO: Update the object below with actual values
18
- const example = {
19
- "args": null,
20
- "credentials": null,
21
- } satisfies UnwatchAddressRequest
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 UnwatchAddressRequest
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
-
@@ -1,36 +0,0 @@
1
-
2
- # UnwatchOrderBookRequest
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `args` | Array&lt;string&gt;
10
- `credentials` | [ExchangeCredentials](ExchangeCredentials.md)
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import type { UnwatchOrderBookRequest } from 'pmxtjs'
16
-
17
- // TODO: Update the object below with actual values
18
- const example = {
19
- "args": null,
20
- "credentials": null,
21
- } satisfies UnwatchOrderBookRequest
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 UnwatchOrderBookRequest
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
-
@@ -1,36 +0,0 @@
1
-
2
- # WatchAddressRequest
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `args` | [Array&lt;WatchAddressRequestArgsInner&gt;](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
-
@@ -1,32 +0,0 @@
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,36 +0,0 @@
1
-
2
- # WatchOrderBookRequest
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `args` | [Array&lt;WatchOrderBookRequestArgsInner&gt;](WatchOrderBookRequestArgsInner.md)
10
- `credentials` | [ExchangeCredentials](ExchangeCredentials.md)
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import type { WatchOrderBookRequest } from 'pmxtjs'
16
-
17
- // TODO: Update the object below with actual values
18
- const example = {
19
- "args": null,
20
- "credentials": null,
21
- } satisfies WatchOrderBookRequest
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 WatchOrderBookRequest
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
-
@@ -1,32 +0,0 @@
1
-
2
- # WatchOrderBookRequestArgsInner
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
-
10
- ## Example
11
-
12
- ```typescript
13
- import type { WatchOrderBookRequestArgsInner } from 'pmxtjs'
14
-
15
- // TODO: Update the object below with actual values
16
- const example = {
17
- } satisfies WatchOrderBookRequestArgsInner
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 WatchOrderBookRequestArgsInner
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,36 +0,0 @@
1
-
2
- # WatchOrderBooksRequest
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `args` | [Array&lt;WatchOrderBooksRequestArgsInner&gt;](WatchOrderBooksRequestArgsInner.md)
10
- `credentials` | [ExchangeCredentials](ExchangeCredentials.md)
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import type { WatchOrderBooksRequest } from 'pmxtjs'
16
-
17
- // TODO: Update the object below with actual values
18
- const example = {
19
- "args": null,
20
- "credentials": null,
21
- } satisfies WatchOrderBooksRequest
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 WatchOrderBooksRequest
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
-
@@ -1,32 +0,0 @@
1
-
2
- # WatchOrderBooksRequestArgsInner
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
-
10
- ## Example
11
-
12
- ```typescript
13
- import type { WatchOrderBooksRequestArgsInner } from 'pmxtjs'
14
-
15
- // TODO: Update the object below with actual values
16
- const example = {
17
- } satisfies WatchOrderBooksRequestArgsInner
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 WatchOrderBooksRequestArgsInner
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,36 +0,0 @@
1
-
2
- # WatchTradesRequest
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `args` | [Array&lt;WatchOrderBookRequestArgsInner&gt;](WatchOrderBookRequestArgsInner.md)
10
- `credentials` | [ExchangeCredentials](ExchangeCredentials.md)
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import type { WatchTradesRequest } from 'pmxtjs'
16
-
17
- // TODO: Update the object below with actual values
18
- const example = {
19
- "args": null,
20
- "credentials": null,
21
- } satisfies WatchTradesRequest
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 WatchTradesRequest
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
-
@@ -1,82 +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
-
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
-
@@ -1,82 +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
-
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 UnwatchOrderBookRequest
28
- */
29
- export interface UnwatchOrderBookRequest {
30
- /**
31
- *
32
- * @type {Array<string>}
33
- * @memberof UnwatchOrderBookRequest
34
- */
35
- args: Array<string>;
36
- /**
37
- *
38
- * @type {ExchangeCredentials}
39
- * @memberof UnwatchOrderBookRequest
40
- */
41
- credentials?: ExchangeCredentials;
42
- }
43
-
44
- /**
45
- * Check if a given object implements the UnwatchOrderBookRequest interface.
46
- */
47
- export function instanceOfUnwatchOrderBookRequest(value: object): value is UnwatchOrderBookRequest {
48
- if (!('args' in value) || value['args'] === undefined) return false;
49
- return true;
50
- }
51
-
52
- export function UnwatchOrderBookRequestFromJSON(json: any): UnwatchOrderBookRequest {
53
- return UnwatchOrderBookRequestFromJSONTyped(json, false);
54
- }
55
-
56
- export function UnwatchOrderBookRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnwatchOrderBookRequest {
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 UnwatchOrderBookRequestToJSON(json: any): UnwatchOrderBookRequest {
68
- return UnwatchOrderBookRequestToJSONTyped(json, false);
69
- }
70
-
71
- export function UnwatchOrderBookRequestToJSONTyped(value?: UnwatchOrderBookRequest | 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
-