pmxtjs 2.41.3 → 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 -187
- package/dist/esm/generated/src/apis/DefaultApi.js +1 -271
- package/dist/esm/generated/src/models/index.d.ts +0 -2
- package/dist/esm/generated/src/models/index.js +0 -2
- package/dist/generated/src/apis/DefaultApi.d.ts +1 -187
- package/dist/generated/src/apis/DefaultApi.js +1 -271
- package/dist/generated/src/models/index.d.ts +0 -2
- package/dist/generated/src/models/index.js +0 -2
- package/generated/.openapi-generator/FILES +0 -4
- package/generated/docs/DefaultApi.md +0 -408
- package/generated/package.json +1 -1
- package/generated/src/apis/DefaultApi.ts +0 -372
- package/generated/src/models/index.ts +0 -2
- package/package.json +3 -3
- 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/WatchOrderBooks200Response.d.ts +0 -48
- package/dist/esm/generated/src/models/WatchOrderBooks200Response.js +0 -48
- package/dist/generated/src/models/WatchAddress200Response.d.ts +0 -45
- package/dist/generated/src/models/WatchAddress200Response.js +0 -53
- package/dist/generated/src/models/WatchOrderBooks200Response.d.ts +0 -48
- package/dist/generated/src/models/WatchOrderBooks200Response.js +0 -55
- package/generated/docs/WatchAddress200Response.md +0 -38
- package/generated/docs/WatchOrderBooks200Response.md +0 -38
- package/generated/src/models/WatchAddress200Response.ts +0 -89
- package/generated/src/models/WatchOrderBooks200Response.ts +0 -96
|
@@ -1,45 +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 { ErrorDetail } from './ErrorDetail';
|
|
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;
|
|
@@ -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.instanceOfWatchAddress200Response = instanceOfWatchAddress200Response;
|
|
17
|
-
exports.WatchAddress200ResponseFromJSON = WatchAddress200ResponseFromJSON;
|
|
18
|
-
exports.WatchAddress200ResponseFromJSONTyped = WatchAddress200ResponseFromJSONTyped;
|
|
19
|
-
exports.WatchAddress200ResponseToJSON = WatchAddress200ResponseToJSON;
|
|
20
|
-
exports.WatchAddress200ResponseToJSONTyped = WatchAddress200ResponseToJSONTyped;
|
|
21
|
-
const ErrorDetail_1 = require("./ErrorDetail");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the WatchAddress200Response interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfWatchAddress200Response(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function WatchAddress200ResponseFromJSON(json) {
|
|
29
|
-
return WatchAddress200ResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function WatchAddress200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'success': json['success'] == null ? undefined : json['success'],
|
|
37
|
-
'error': json['error'] == null ? undefined : (0, ErrorDetail_1.ErrorDetailFromJSON)(json['error']),
|
|
38
|
-
'data': json['data'] == null ? undefined : json['data'],
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
function WatchAddress200ResponseToJSON(json) {
|
|
42
|
-
return WatchAddress200ResponseToJSONTyped(json, false);
|
|
43
|
-
}
|
|
44
|
-
function WatchAddress200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
-
if (value == null) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
'success': value['success'],
|
|
50
|
-
'error': (0, ErrorDetail_1.ErrorDetailToJSON)(value['error']),
|
|
51
|
-
'data': value['data'],
|
|
52
|
-
};
|
|
53
|
-
}
|
|
@@ -1,48 +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 { ErrorDetail } from './ErrorDetail';
|
|
13
|
-
import type { OrderBook } from './OrderBook';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface WatchOrderBooks200Response
|
|
18
|
-
*/
|
|
19
|
-
export interface WatchOrderBooks200Response {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {boolean}
|
|
23
|
-
* @memberof WatchOrderBooks200Response
|
|
24
|
-
*/
|
|
25
|
-
success?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {ErrorDetail}
|
|
29
|
-
* @memberof WatchOrderBooks200Response
|
|
30
|
-
*/
|
|
31
|
-
error?: ErrorDetail;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {{ [key: string]: OrderBook; }}
|
|
35
|
-
* @memberof WatchOrderBooks200Response
|
|
36
|
-
*/
|
|
37
|
-
data?: {
|
|
38
|
-
[key: string]: OrderBook;
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Check if a given object implements the WatchOrderBooks200Response interface.
|
|
43
|
-
*/
|
|
44
|
-
export declare function instanceOfWatchOrderBooks200Response(value: object): value is WatchOrderBooks200Response;
|
|
45
|
-
export declare function WatchOrderBooks200ResponseFromJSON(json: any): WatchOrderBooks200Response;
|
|
46
|
-
export declare function WatchOrderBooks200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WatchOrderBooks200Response;
|
|
47
|
-
export declare function WatchOrderBooks200ResponseToJSON(json: any): WatchOrderBooks200Response;
|
|
48
|
-
export declare function WatchOrderBooks200ResponseToJSONTyped(value?: WatchOrderBooks200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,55 +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.instanceOfWatchOrderBooks200Response = instanceOfWatchOrderBooks200Response;
|
|
17
|
-
exports.WatchOrderBooks200ResponseFromJSON = WatchOrderBooks200ResponseFromJSON;
|
|
18
|
-
exports.WatchOrderBooks200ResponseFromJSONTyped = WatchOrderBooks200ResponseFromJSONTyped;
|
|
19
|
-
exports.WatchOrderBooks200ResponseToJSON = WatchOrderBooks200ResponseToJSON;
|
|
20
|
-
exports.WatchOrderBooks200ResponseToJSONTyped = WatchOrderBooks200ResponseToJSONTyped;
|
|
21
|
-
const runtime_1 = require("../runtime");
|
|
22
|
-
const ErrorDetail_1 = require("./ErrorDetail");
|
|
23
|
-
const OrderBook_1 = require("./OrderBook");
|
|
24
|
-
/**
|
|
25
|
-
* Check if a given object implements the WatchOrderBooks200Response interface.
|
|
26
|
-
*/
|
|
27
|
-
function instanceOfWatchOrderBooks200Response(value) {
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
function WatchOrderBooks200ResponseFromJSON(json) {
|
|
31
|
-
return WatchOrderBooks200ResponseFromJSONTyped(json, false);
|
|
32
|
-
}
|
|
33
|
-
function WatchOrderBooks200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
-
if (json == null) {
|
|
35
|
-
return json;
|
|
36
|
-
}
|
|
37
|
-
return {
|
|
38
|
-
'success': json['success'] == null ? undefined : json['success'],
|
|
39
|
-
'error': json['error'] == null ? undefined : (0, ErrorDetail_1.ErrorDetailFromJSON)(json['error']),
|
|
40
|
-
'data': json['data'] == null ? undefined : ((0, runtime_1.mapValues)(json['data'], OrderBook_1.OrderBookFromJSON)),
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
function WatchOrderBooks200ResponseToJSON(json) {
|
|
44
|
-
return WatchOrderBooks200ResponseToJSONTyped(json, false);
|
|
45
|
-
}
|
|
46
|
-
function WatchOrderBooks200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
-
if (value == null) {
|
|
48
|
-
return value;
|
|
49
|
-
}
|
|
50
|
-
return {
|
|
51
|
-
'success': value['success'],
|
|
52
|
-
'error': (0, ErrorDetail_1.ErrorDetailToJSON)(value['error']),
|
|
53
|
-
'data': value['data'] == null ? undefined : ((0, runtime_1.mapValues)(value['data'], OrderBook_1.OrderBookToJSON)),
|
|
54
|
-
};
|
|
55
|
-
}
|
|
@@ -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,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,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,96 +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
|
-
import type { OrderBook } from './OrderBook';
|
|
24
|
-
import {
|
|
25
|
-
OrderBookFromJSON,
|
|
26
|
-
OrderBookFromJSONTyped,
|
|
27
|
-
OrderBookToJSON,
|
|
28
|
-
OrderBookToJSONTyped,
|
|
29
|
-
} from './OrderBook';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface WatchOrderBooks200Response
|
|
35
|
-
*/
|
|
36
|
-
export interface WatchOrderBooks200Response {
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {boolean}
|
|
40
|
-
* @memberof WatchOrderBooks200Response
|
|
41
|
-
*/
|
|
42
|
-
success?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {ErrorDetail}
|
|
46
|
-
* @memberof WatchOrderBooks200Response
|
|
47
|
-
*/
|
|
48
|
-
error?: ErrorDetail;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {{ [key: string]: OrderBook; }}
|
|
52
|
-
* @memberof WatchOrderBooks200Response
|
|
53
|
-
*/
|
|
54
|
-
data?: { [key: string]: OrderBook; };
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Check if a given object implements the WatchOrderBooks200Response interface.
|
|
59
|
-
*/
|
|
60
|
-
export function instanceOfWatchOrderBooks200Response(value: object): value is WatchOrderBooks200Response {
|
|
61
|
-
return true;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function WatchOrderBooks200ResponseFromJSON(json: any): WatchOrderBooks200Response {
|
|
65
|
-
return WatchOrderBooks200ResponseFromJSONTyped(json, false);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export function WatchOrderBooks200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WatchOrderBooks200Response {
|
|
69
|
-
if (json == null) {
|
|
70
|
-
return json;
|
|
71
|
-
}
|
|
72
|
-
return {
|
|
73
|
-
|
|
74
|
-
'success': json['success'] == null ? undefined : json['success'],
|
|
75
|
-
'error': json['error'] == null ? undefined : ErrorDetailFromJSON(json['error']),
|
|
76
|
-
'data': json['data'] == null ? undefined : (mapValues(json['data'], OrderBookFromJSON)),
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export function WatchOrderBooks200ResponseToJSON(json: any): WatchOrderBooks200Response {
|
|
81
|
-
return WatchOrderBooks200ResponseToJSONTyped(json, false);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export function WatchOrderBooks200ResponseToJSONTyped(value?: WatchOrderBooks200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
85
|
-
if (value == null) {
|
|
86
|
-
return value;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
return {
|
|
90
|
-
|
|
91
|
-
'success': value['success'],
|
|
92
|
-
'error': ErrorDetailToJSON(value['error']),
|
|
93
|
-
'data': value['data'] == null ? undefined : (mapValues(value['data'], OrderBookToJSON)),
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
|