pmxtjs 2.41.1 → 2.41.4
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 +1 -193
- package/dist/esm/generated/src/apis/DefaultApi.js +1 -283
- package/dist/esm/generated/src/models/index.d.ts +0 -8
- package/dist/esm/generated/src/models/index.js +0 -8
- package/dist/esm/pmxt/client.js +5 -1
- package/dist/generated/src/apis/DefaultApi.d.ts +1 -193
- package/dist/generated/src/apis/DefaultApi.js +1 -283
- package/dist/generated/src/models/index.d.ts +0 -8
- package/dist/generated/src/models/index.js +0 -8
- package/dist/pmxt/client.js +5 -1
- package/generated/.openapi-generator/FILES +0 -16
- package/generated/docs/DefaultApi.md +0 -426
- package/generated/package.json +1 -1
- package/generated/src/apis/DefaultApi.ts +0 -414
- package/generated/src/models/index.ts +0 -8
- package/package.json +3 -3
- 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/WatchAddress200Response.d.ts +0 -45
- package/dist/esm/generated/src/models/WatchAddress200Response.js +0 -46
- 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/WatchOrderBooks200Response.d.ts +0 -48
- package/dist/esm/generated/src/models/WatchOrderBooks200Response.js +0 -48
- 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/WatchAddress200Response.d.ts +0 -45
- package/dist/generated/src/models/WatchAddress200Response.js +0 -53
- 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/WatchOrderBooks200Response.d.ts +0 -48
- package/dist/generated/src/models/WatchOrderBooks200Response.js +0 -55
- 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/WatchAddress200Response.md +0 -38
- package/generated/docs/WatchAddressRequest.md +0 -36
- package/generated/docs/WatchOrderBookRequest.md +0 -36
- package/generated/docs/WatchOrderBooks200Response.md +0 -38
- 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/WatchAddress200Response.ts +0 -89
- package/generated/src/models/WatchAddressRequest.ts +0 -81
- package/generated/src/models/WatchOrderBookRequest.ts +0 -81
- package/generated/src/models/WatchOrderBooks200Response.ts +0 -96
- package/generated/src/models/WatchOrderBooksRequest.ts +0 -81
- package/generated/src/models/WatchTradesRequest.ts +0 -81
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# UnwatchOrderBookRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`args` | Array<string>
|
|
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,38 +0,0 @@
|
|
|
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
|
-
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# WatchAddressRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`args` | Array<string>
|
|
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,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# WatchOrderBookRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`args` | Array<string>
|
|
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,38 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# WatchOrderBooks200Response
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`success` | boolean
|
|
10
|
-
`error` | [ErrorDetail](ErrorDetail.md)
|
|
11
|
-
`data` | [{ [key: string]: OrderBook; }](OrderBook.md)
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import type { WatchOrderBooks200Response } 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 WatchOrderBooks200Response
|
|
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 WatchOrderBooks200Response
|
|
33
|
-
console.log(exampleParsed)
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
-
|
|
38
|
-
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# WatchOrderBooksRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`args` | Array<string>
|
|
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,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# WatchTradesRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`args` | Array<string>
|
|
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,81 +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
|
-
return true;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function UnwatchAddressRequestFromJSON(json: any): UnwatchAddressRequest {
|
|
52
|
-
return UnwatchAddressRequestFromJSONTyped(json, false);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function UnwatchAddressRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnwatchAddressRequest {
|
|
56
|
-
if (json == null) {
|
|
57
|
-
return json;
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
|
|
61
|
-
'args': json['args'] == null ? undefined : json['args'],
|
|
62
|
-
'credentials': json['credentials'] == null ? undefined : ExchangeCredentialsFromJSON(json['credentials']),
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export function UnwatchAddressRequestToJSON(json: any): UnwatchAddressRequest {
|
|
67
|
-
return UnwatchAddressRequestToJSONTyped(json, false);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export function UnwatchAddressRequestToJSONTyped(value?: UnwatchAddressRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
-
if (value == null) {
|
|
72
|
-
return value;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
return {
|
|
76
|
-
|
|
77
|
-
'args': value['args'],
|
|
78
|
-
'credentials': ExchangeCredentialsToJSON(value['credentials']),
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
|
|
@@ -1,81 +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
|
-
return true;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function UnwatchOrderBookRequestFromJSON(json: any): UnwatchOrderBookRequest {
|
|
52
|
-
return UnwatchOrderBookRequestFromJSONTyped(json, false);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function UnwatchOrderBookRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnwatchOrderBookRequest {
|
|
56
|
-
if (json == null) {
|
|
57
|
-
return json;
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
|
|
61
|
-
'args': json['args'] == null ? undefined : json['args'],
|
|
62
|
-
'credentials': json['credentials'] == null ? undefined : ExchangeCredentialsFromJSON(json['credentials']),
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export function UnwatchOrderBookRequestToJSON(json: any): UnwatchOrderBookRequest {
|
|
67
|
-
return UnwatchOrderBookRequestToJSONTyped(json, false);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export function UnwatchOrderBookRequestToJSONTyped(value?: UnwatchOrderBookRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
-
if (value == null) {
|
|
72
|
-
return value;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
return {
|
|
76
|
-
|
|
77
|
-
'args': value['args'],
|
|
78
|
-
'credentials': ExchangeCredentialsToJSON(value['credentials']),
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
|
|
@@ -1,89 +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 { 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
|
-
|
|
@@ -1,81 +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 WatchAddressRequest
|
|
28
|
-
*/
|
|
29
|
-
export interface WatchAddressRequest {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<string>}
|
|
33
|
-
* @memberof WatchAddressRequest
|
|
34
|
-
*/
|
|
35
|
-
args?: Array<string>;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {ExchangeCredentials}
|
|
39
|
-
* @memberof WatchAddressRequest
|
|
40
|
-
*/
|
|
41
|
-
credentials?: ExchangeCredentials;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Check if a given object implements the WatchAddressRequest interface.
|
|
46
|
-
*/
|
|
47
|
-
export function instanceOfWatchAddressRequest(value: object): value is WatchAddressRequest {
|
|
48
|
-
return true;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function WatchAddressRequestFromJSON(json: any): WatchAddressRequest {
|
|
52
|
-
return WatchAddressRequestFromJSONTyped(json, false);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function WatchAddressRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WatchAddressRequest {
|
|
56
|
-
if (json == null) {
|
|
57
|
-
return json;
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
|
|
61
|
-
'args': json['args'] == null ? undefined : json['args'],
|
|
62
|
-
'credentials': json['credentials'] == null ? undefined : ExchangeCredentialsFromJSON(json['credentials']),
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export function WatchAddressRequestToJSON(json: any): WatchAddressRequest {
|
|
67
|
-
return WatchAddressRequestToJSONTyped(json, false);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export function WatchAddressRequestToJSONTyped(value?: WatchAddressRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
-
if (value == null) {
|
|
72
|
-
return value;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
return {
|
|
76
|
-
|
|
77
|
-
'args': value['args'],
|
|
78
|
-
'credentials': ExchangeCredentialsToJSON(value['credentials']),
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
|
|
@@ -1,81 +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 WatchOrderBookRequest
|
|
28
|
-
*/
|
|
29
|
-
export interface WatchOrderBookRequest {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<string>}
|
|
33
|
-
* @memberof WatchOrderBookRequest
|
|
34
|
-
*/
|
|
35
|
-
args?: Array<string>;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {ExchangeCredentials}
|
|
39
|
-
* @memberof WatchOrderBookRequest
|
|
40
|
-
*/
|
|
41
|
-
credentials?: ExchangeCredentials;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Check if a given object implements the WatchOrderBookRequest interface.
|
|
46
|
-
*/
|
|
47
|
-
export function instanceOfWatchOrderBookRequest(value: object): value is WatchOrderBookRequest {
|
|
48
|
-
return true;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function WatchOrderBookRequestFromJSON(json: any): WatchOrderBookRequest {
|
|
52
|
-
return WatchOrderBookRequestFromJSONTyped(json, false);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function WatchOrderBookRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WatchOrderBookRequest {
|
|
56
|
-
if (json == null) {
|
|
57
|
-
return json;
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
|
|
61
|
-
'args': json['args'] == null ? undefined : json['args'],
|
|
62
|
-
'credentials': json['credentials'] == null ? undefined : ExchangeCredentialsFromJSON(json['credentials']),
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export function WatchOrderBookRequestToJSON(json: any): WatchOrderBookRequest {
|
|
67
|
-
return WatchOrderBookRequestToJSONTyped(json, false);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export function WatchOrderBookRequestToJSONTyped(value?: WatchOrderBookRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
-
if (value == null) {
|
|
72
|
-
return value;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
return {
|
|
76
|
-
|
|
77
|
-
'args': value['args'],
|
|
78
|
-
'credentials': ExchangeCredentialsToJSON(value['credentials']),
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
|