pmxtjs 2.32.4 → 2.33.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.
- package/dist/esm/generated/src/apis/DefaultApi.d.ts +243 -1
- package/dist/esm/generated/src/apis/DefaultApi.js +387 -31
- package/dist/esm/generated/src/models/ArbitrageOpportunity.d.ts +69 -0
- package/dist/esm/generated/src/models/ArbitrageOpportunity.js +68 -0
- package/dist/esm/generated/src/models/CompareMarketPrices200Response.d.ts +46 -0
- package/dist/esm/generated/src/models/CompareMarketPrices200Response.js +47 -0
- package/dist/esm/generated/src/models/CompareMarketPricesRequest.d.ts +40 -0
- package/dist/esm/generated/src/models/CompareMarketPricesRequest.js +47 -0
- package/dist/esm/generated/src/models/EventMatchResult.d.ts +40 -0
- package/dist/esm/generated/src/models/EventMatchResult.js +49 -0
- package/dist/esm/generated/src/models/FetchArbitrage200Response.d.ts +46 -0
- package/dist/esm/generated/src/models/FetchArbitrage200Response.js +47 -0
- package/dist/esm/generated/src/models/FetchArbitrageParams.d.ts +44 -0
- package/dist/esm/generated/src/models/FetchArbitrageParams.js +45 -0
- package/dist/esm/generated/src/models/FetchEventMatches200Response.d.ts +46 -0
- package/dist/esm/generated/src/models/FetchEventMatches200Response.js +47 -0
- package/dist/esm/generated/src/models/FetchEventMatchesParams.d.ts +73 -0
- package/dist/esm/generated/src/models/FetchEventMatchesParams.js +61 -0
- package/dist/esm/generated/src/models/FetchMatches200Response.d.ts +46 -0
- package/dist/esm/generated/src/models/FetchMatches200Response.js +47 -0
- package/dist/esm/generated/src/models/FetchMatchesParams.d.ts +79 -0
- package/dist/esm/generated/src/models/FetchMatchesParams.js +63 -0
- package/dist/esm/generated/src/models/MatchResult.d.ts +74 -0
- package/dist/esm/generated/src/models/MatchResult.js +74 -0
- package/dist/esm/generated/src/models/PriceComparison.d.ts +80 -0
- package/dist/esm/generated/src/models/PriceComparison.js +78 -0
- package/dist/esm/generated/src/models/index.d.ts +12 -0
- package/dist/esm/generated/src/models/index.js +12 -0
- package/dist/generated/src/apis/DefaultApi.d.ts +243 -1
- package/dist/generated/src/apis/DefaultApi.js +388 -31
- package/dist/generated/src/models/ArbitrageOpportunity.d.ts +69 -0
- package/dist/generated/src/models/ArbitrageOpportunity.js +75 -0
- package/dist/generated/src/models/CompareMarketPrices200Response.d.ts +46 -0
- package/dist/generated/src/models/CompareMarketPrices200Response.js +54 -0
- package/dist/generated/src/models/CompareMarketPricesRequest.d.ts +40 -0
- package/dist/generated/src/models/CompareMarketPricesRequest.js +54 -0
- package/dist/generated/src/models/EventMatchResult.d.ts +40 -0
- package/dist/generated/src/models/EventMatchResult.js +56 -0
- package/dist/generated/src/models/FetchArbitrage200Response.d.ts +46 -0
- package/dist/generated/src/models/FetchArbitrage200Response.js +54 -0
- package/dist/generated/src/models/FetchArbitrageParams.d.ts +44 -0
- package/dist/generated/src/models/FetchArbitrageParams.js +52 -0
- package/dist/generated/src/models/FetchEventMatches200Response.d.ts +46 -0
- package/dist/generated/src/models/FetchEventMatches200Response.js +54 -0
- package/dist/generated/src/models/FetchEventMatchesParams.d.ts +73 -0
- package/dist/generated/src/models/FetchEventMatchesParams.js +69 -0
- package/dist/generated/src/models/FetchMatches200Response.d.ts +46 -0
- package/dist/generated/src/models/FetchMatches200Response.js +54 -0
- package/dist/generated/src/models/FetchMatchesParams.d.ts +79 -0
- package/dist/generated/src/models/FetchMatchesParams.js +71 -0
- package/dist/generated/src/models/MatchResult.d.ts +74 -0
- package/dist/generated/src/models/MatchResult.js +82 -0
- package/dist/generated/src/models/PriceComparison.d.ts +80 -0
- package/dist/generated/src/models/PriceComparison.js +86 -0
- package/dist/generated/src/models/index.d.ts +12 -0
- package/dist/generated/src/models/index.js +12 -0
- package/generated/.openapi-generator/FILES +24 -0
- package/generated/docs/ArbitrageOpportunity.md +46 -0
- package/generated/docs/CompareMarketPrices200Response.md +38 -0
- package/generated/docs/CompareMarketPricesRequest.md +36 -0
- package/generated/docs/DefaultApi.md +472 -60
- package/generated/docs/EventMatchResult.md +36 -0
- package/generated/docs/FetchArbitrage200Response.md +38 -0
- package/generated/docs/FetchArbitrageParams.md +38 -0
- package/generated/docs/FetchEventMatches200Response.md +38 -0
- package/generated/docs/FetchEventMatchesParams.md +44 -0
- package/generated/docs/FetchMatches200Response.md +38 -0
- package/generated/docs/FetchMatchesParams.md +46 -0
- package/generated/docs/MatchResult.md +44 -0
- package/generated/docs/PriceComparison.md +46 -0
- package/generated/package.json +1 -1
- package/generated/src/apis/DefaultApi.ts +532 -30
- package/generated/src/models/ArbitrageOpportunity.ts +128 -0
- package/generated/src/models/CompareMarketPrices200Response.ts +96 -0
- package/generated/src/models/CompareMarketPricesRequest.ts +89 -0
- package/generated/src/models/EventMatchResult.ts +90 -0
- package/generated/src/models/FetchArbitrage200Response.ts +96 -0
- package/generated/src/models/FetchArbitrageParams.ts +81 -0
- package/generated/src/models/FetchEventMatches200Response.ts +96 -0
- package/generated/src/models/FetchEventMatchesParams.ts +119 -0
- package/generated/src/models/FetchMatches200Response.ts +96 -0
- package/generated/src/models/FetchMatchesParams.ts +127 -0
- package/generated/src/models/MatchResult.ts +133 -0
- package/generated/src/models/PriceComparison.ts +142 -0
- package/generated/src/models/index.ts +12 -0
- package/package.json +2 -2
|
@@ -0,0 +1,119 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface FetchEventMatchesParams
|
|
20
|
+
*/
|
|
21
|
+
export interface FetchEventMatchesParams {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof FetchEventMatchesParams
|
|
26
|
+
*/
|
|
27
|
+
eventId?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof FetchEventMatchesParams
|
|
32
|
+
*/
|
|
33
|
+
slug?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof FetchEventMatchesParams
|
|
38
|
+
*/
|
|
39
|
+
relation?: FetchEventMatchesParamsRelationEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof FetchEventMatchesParams
|
|
44
|
+
*/
|
|
45
|
+
minConfidence?: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof FetchEventMatchesParams
|
|
50
|
+
*/
|
|
51
|
+
limit?: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof FetchEventMatchesParams
|
|
56
|
+
*/
|
|
57
|
+
includePrices?: boolean;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export const FetchEventMatchesParamsRelationEnum = {
|
|
65
|
+
Identity: 'identity',
|
|
66
|
+
Subset: 'subset',
|
|
67
|
+
Superset: 'superset',
|
|
68
|
+
Overlap: 'overlap',
|
|
69
|
+
Disjoint: 'disjoint'
|
|
70
|
+
} as const;
|
|
71
|
+
export type FetchEventMatchesParamsRelationEnum = typeof FetchEventMatchesParamsRelationEnum[keyof typeof FetchEventMatchesParamsRelationEnum];
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the FetchEventMatchesParams interface.
|
|
76
|
+
*/
|
|
77
|
+
export function instanceOfFetchEventMatchesParams(value: object): value is FetchEventMatchesParams {
|
|
78
|
+
return true;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function FetchEventMatchesParamsFromJSON(json: any): FetchEventMatchesParams {
|
|
82
|
+
return FetchEventMatchesParamsFromJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function FetchEventMatchesParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FetchEventMatchesParams {
|
|
86
|
+
if (json == null) {
|
|
87
|
+
return json;
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'eventId': json['eventId'] == null ? undefined : json['eventId'],
|
|
92
|
+
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
93
|
+
'relation': json['relation'] == null ? undefined : json['relation'],
|
|
94
|
+
'minConfidence': json['minConfidence'] == null ? undefined : json['minConfidence'],
|
|
95
|
+
'limit': json['limit'] == null ? undefined : json['limit'],
|
|
96
|
+
'includePrices': json['includePrices'] == null ? undefined : json['includePrices'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function FetchEventMatchesParamsToJSON(json: any): FetchEventMatchesParams {
|
|
101
|
+
return FetchEventMatchesParamsToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function FetchEventMatchesParamsToJSONTyped(value?: FetchEventMatchesParams | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'eventId': value['eventId'],
|
|
112
|
+
'slug': value['slug'],
|
|
113
|
+
'relation': value['relation'],
|
|
114
|
+
'minConfidence': value['minConfidence'],
|
|
115
|
+
'limit': value['limit'],
|
|
116
|
+
'includePrices': value['includePrices'],
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
@@ -0,0 +1,96 @@
|
|
|
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 { MatchResult } from './MatchResult';
|
|
24
|
+
import {
|
|
25
|
+
MatchResultFromJSON,
|
|
26
|
+
MatchResultFromJSONTyped,
|
|
27
|
+
MatchResultToJSON,
|
|
28
|
+
MatchResultToJSONTyped,
|
|
29
|
+
} from './MatchResult';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface FetchMatches200Response
|
|
35
|
+
*/
|
|
36
|
+
export interface FetchMatches200Response {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof FetchMatches200Response
|
|
41
|
+
*/
|
|
42
|
+
success?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {ErrorDetail}
|
|
46
|
+
* @memberof FetchMatches200Response
|
|
47
|
+
*/
|
|
48
|
+
error?: ErrorDetail;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Array<MatchResult>}
|
|
52
|
+
* @memberof FetchMatches200Response
|
|
53
|
+
*/
|
|
54
|
+
data?: Array<MatchResult>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the FetchMatches200Response interface.
|
|
59
|
+
*/
|
|
60
|
+
export function instanceOfFetchMatches200Response(value: object): value is FetchMatches200Response {
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function FetchMatches200ResponseFromJSON(json: any): FetchMatches200Response {
|
|
65
|
+
return FetchMatches200ResponseFromJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function FetchMatches200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FetchMatches200Response {
|
|
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 : ((json['data'] as Array<any>).map(MatchResultFromJSON)),
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function FetchMatches200ResponseToJSON(json: any): FetchMatches200Response {
|
|
81
|
+
return FetchMatches200ResponseToJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function FetchMatches200ResponseToJSONTyped(value?: FetchMatches200Response | 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 : ((value['data'] as Array<any>).map(MatchResultToJSON)),
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
@@ -0,0 +1,127 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface FetchMatchesParams
|
|
20
|
+
*/
|
|
21
|
+
export interface FetchMatchesParams {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof FetchMatchesParams
|
|
26
|
+
*/
|
|
27
|
+
marketId?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof FetchMatchesParams
|
|
32
|
+
*/
|
|
33
|
+
slug?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof FetchMatchesParams
|
|
38
|
+
*/
|
|
39
|
+
url?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof FetchMatchesParams
|
|
44
|
+
*/
|
|
45
|
+
relation?: FetchMatchesParamsRelationEnum;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof FetchMatchesParams
|
|
50
|
+
*/
|
|
51
|
+
minConfidence?: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof FetchMatchesParams
|
|
56
|
+
*/
|
|
57
|
+
limit?: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {boolean}
|
|
61
|
+
* @memberof FetchMatchesParams
|
|
62
|
+
*/
|
|
63
|
+
includePrices?: boolean;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export const FetchMatchesParamsRelationEnum = {
|
|
71
|
+
Identity: 'identity',
|
|
72
|
+
Subset: 'subset',
|
|
73
|
+
Superset: 'superset',
|
|
74
|
+
Overlap: 'overlap',
|
|
75
|
+
Disjoint: 'disjoint'
|
|
76
|
+
} as const;
|
|
77
|
+
export type FetchMatchesParamsRelationEnum = typeof FetchMatchesParamsRelationEnum[keyof typeof FetchMatchesParamsRelationEnum];
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the FetchMatchesParams interface.
|
|
82
|
+
*/
|
|
83
|
+
export function instanceOfFetchMatchesParams(value: object): value is FetchMatchesParams {
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function FetchMatchesParamsFromJSON(json: any): FetchMatchesParams {
|
|
88
|
+
return FetchMatchesParamsFromJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function FetchMatchesParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FetchMatchesParams {
|
|
92
|
+
if (json == null) {
|
|
93
|
+
return json;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'marketId': json['marketId'] == null ? undefined : json['marketId'],
|
|
98
|
+
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
99
|
+
'url': json['url'] == null ? undefined : json['url'],
|
|
100
|
+
'relation': json['relation'] == null ? undefined : json['relation'],
|
|
101
|
+
'minConfidence': json['minConfidence'] == null ? undefined : json['minConfidence'],
|
|
102
|
+
'limit': json['limit'] == null ? undefined : json['limit'],
|
|
103
|
+
'includePrices': json['includePrices'] == null ? undefined : json['includePrices'],
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function FetchMatchesParamsToJSON(json: any): FetchMatchesParams {
|
|
108
|
+
return FetchMatchesParamsToJSONTyped(json, false);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function FetchMatchesParamsToJSONTyped(value?: FetchMatchesParams | null, ignoreDiscriminator: boolean = false): any {
|
|
112
|
+
if (value == null) {
|
|
113
|
+
return value;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return {
|
|
117
|
+
|
|
118
|
+
'marketId': value['marketId'],
|
|
119
|
+
'slug': value['slug'],
|
|
120
|
+
'url': value['url'],
|
|
121
|
+
'relation': value['relation'],
|
|
122
|
+
'minConfidence': value['minConfidence'],
|
|
123
|
+
'limit': value['limit'],
|
|
124
|
+
'includePrices': value['includePrices'],
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
|
|
@@ -0,0 +1,133 @@
|
|
|
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 { UnifiedMarket } from './UnifiedMarket';
|
|
17
|
+
import {
|
|
18
|
+
UnifiedMarketFromJSON,
|
|
19
|
+
UnifiedMarketFromJSONTyped,
|
|
20
|
+
UnifiedMarketToJSON,
|
|
21
|
+
UnifiedMarketToJSONTyped,
|
|
22
|
+
} from './UnifiedMarket';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface MatchResult
|
|
28
|
+
*/
|
|
29
|
+
export interface MatchResult {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {UnifiedMarket}
|
|
33
|
+
* @memberof MatchResult
|
|
34
|
+
*/
|
|
35
|
+
market: UnifiedMarket;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof MatchResult
|
|
40
|
+
*/
|
|
41
|
+
relation: MatchResultRelationEnum;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof MatchResult
|
|
46
|
+
*/
|
|
47
|
+
confidence: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof MatchResult
|
|
52
|
+
*/
|
|
53
|
+
reasoning: string | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof MatchResult
|
|
58
|
+
*/
|
|
59
|
+
bestBid: number | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof MatchResult
|
|
64
|
+
*/
|
|
65
|
+
bestAsk: number | null;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @export
|
|
71
|
+
*/
|
|
72
|
+
export const MatchResultRelationEnum = {
|
|
73
|
+
Identity: 'identity',
|
|
74
|
+
Subset: 'subset',
|
|
75
|
+
Superset: 'superset',
|
|
76
|
+
Overlap: 'overlap',
|
|
77
|
+
Disjoint: 'disjoint'
|
|
78
|
+
} as const;
|
|
79
|
+
export type MatchResultRelationEnum = typeof MatchResultRelationEnum[keyof typeof MatchResultRelationEnum];
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Check if a given object implements the MatchResult interface.
|
|
84
|
+
*/
|
|
85
|
+
export function instanceOfMatchResult(value: object): value is MatchResult {
|
|
86
|
+
if (!('market' in value) || value['market'] === undefined) return false;
|
|
87
|
+
if (!('relation' in value) || value['relation'] === undefined) return false;
|
|
88
|
+
if (!('confidence' in value) || value['confidence'] === undefined) return false;
|
|
89
|
+
if (!('reasoning' in value) || value['reasoning'] === undefined) return false;
|
|
90
|
+
if (!('bestBid' in value) || value['bestBid'] === undefined) return false;
|
|
91
|
+
if (!('bestAsk' in value) || value['bestAsk'] === undefined) return false;
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function MatchResultFromJSON(json: any): MatchResult {
|
|
96
|
+
return MatchResultFromJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function MatchResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): MatchResult {
|
|
100
|
+
if (json == null) {
|
|
101
|
+
return json;
|
|
102
|
+
}
|
|
103
|
+
return {
|
|
104
|
+
|
|
105
|
+
'market': UnifiedMarketFromJSON(json['market']),
|
|
106
|
+
'relation': json['relation'],
|
|
107
|
+
'confidence': json['confidence'],
|
|
108
|
+
'reasoning': json['reasoning'],
|
|
109
|
+
'bestBid': json['bestBid'],
|
|
110
|
+
'bestAsk': json['bestAsk'],
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function MatchResultToJSON(json: any): MatchResult {
|
|
115
|
+
return MatchResultToJSONTyped(json, false);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function MatchResultToJSONTyped(value?: MatchResult | null, ignoreDiscriminator: boolean = false): any {
|
|
119
|
+
if (value == null) {
|
|
120
|
+
return value;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
return {
|
|
124
|
+
|
|
125
|
+
'market': UnifiedMarketToJSON(value['market']),
|
|
126
|
+
'relation': value['relation'],
|
|
127
|
+
'confidence': value['confidence'],
|
|
128
|
+
'reasoning': value['reasoning'],
|
|
129
|
+
'bestBid': value['bestBid'],
|
|
130
|
+
'bestAsk': value['bestAsk'],
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
|
|
@@ -0,0 +1,142 @@
|
|
|
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 { UnifiedMarket } from './UnifiedMarket';
|
|
17
|
+
import {
|
|
18
|
+
UnifiedMarketFromJSON,
|
|
19
|
+
UnifiedMarketFromJSONTyped,
|
|
20
|
+
UnifiedMarketToJSON,
|
|
21
|
+
UnifiedMarketToJSONTyped,
|
|
22
|
+
} from './UnifiedMarket';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PriceComparison
|
|
28
|
+
*/
|
|
29
|
+
export interface PriceComparison {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {UnifiedMarket}
|
|
33
|
+
* @memberof PriceComparison
|
|
34
|
+
*/
|
|
35
|
+
market: UnifiedMarket;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PriceComparison
|
|
40
|
+
*/
|
|
41
|
+
relation: PriceComparisonRelationEnum;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof PriceComparison
|
|
46
|
+
*/
|
|
47
|
+
confidence: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof PriceComparison
|
|
52
|
+
*/
|
|
53
|
+
reasoning: string | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof PriceComparison
|
|
58
|
+
*/
|
|
59
|
+
bestBid: number | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof PriceComparison
|
|
64
|
+
*/
|
|
65
|
+
bestAsk: number | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof PriceComparison
|
|
70
|
+
*/
|
|
71
|
+
venue: string;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export const PriceComparisonRelationEnum = {
|
|
79
|
+
Identity: 'identity',
|
|
80
|
+
Subset: 'subset',
|
|
81
|
+
Superset: 'superset',
|
|
82
|
+
Overlap: 'overlap',
|
|
83
|
+
Disjoint: 'disjoint'
|
|
84
|
+
} as const;
|
|
85
|
+
export type PriceComparisonRelationEnum = typeof PriceComparisonRelationEnum[keyof typeof PriceComparisonRelationEnum];
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Check if a given object implements the PriceComparison interface.
|
|
90
|
+
*/
|
|
91
|
+
export function instanceOfPriceComparison(value: object): value is PriceComparison {
|
|
92
|
+
if (!('market' in value) || value['market'] === undefined) return false;
|
|
93
|
+
if (!('relation' in value) || value['relation'] === undefined) return false;
|
|
94
|
+
if (!('confidence' in value) || value['confidence'] === undefined) return false;
|
|
95
|
+
if (!('reasoning' in value) || value['reasoning'] === undefined) return false;
|
|
96
|
+
if (!('bestBid' in value) || value['bestBid'] === undefined) return false;
|
|
97
|
+
if (!('bestAsk' in value) || value['bestAsk'] === undefined) return false;
|
|
98
|
+
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function PriceComparisonFromJSON(json: any): PriceComparison {
|
|
103
|
+
return PriceComparisonFromJSONTyped(json, false);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function PriceComparisonFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceComparison {
|
|
107
|
+
if (json == null) {
|
|
108
|
+
return json;
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
|
|
112
|
+
'market': UnifiedMarketFromJSON(json['market']),
|
|
113
|
+
'relation': json['relation'],
|
|
114
|
+
'confidence': json['confidence'],
|
|
115
|
+
'reasoning': json['reasoning'],
|
|
116
|
+
'bestBid': json['bestBid'],
|
|
117
|
+
'bestAsk': json['bestAsk'],
|
|
118
|
+
'venue': json['venue'],
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function PriceComparisonToJSON(json: any): PriceComparison {
|
|
123
|
+
return PriceComparisonToJSONTyped(json, false);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export function PriceComparisonToJSONTyped(value?: PriceComparison | null, ignoreDiscriminator: boolean = false): any {
|
|
127
|
+
if (value == null) {
|
|
128
|
+
return value;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return {
|
|
132
|
+
|
|
133
|
+
'market': UnifiedMarketToJSON(value['market']),
|
|
134
|
+
'relation': value['relation'],
|
|
135
|
+
'confidence': value['confidence'],
|
|
136
|
+
'reasoning': value['reasoning'],
|
|
137
|
+
'bestBid': value['bestBid'],
|
|
138
|
+
'bestAsk': value['bestAsk'],
|
|
139
|
+
'venue': value['venue'],
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export * from './ArbitrageOpportunity';
|
|
3
4
|
export * from './Balance';
|
|
4
5
|
export * from './BaseRequest';
|
|
5
6
|
export * from './BaseResponse';
|
|
@@ -9,6 +10,8 @@ export * from './BuiltOrder';
|
|
|
9
10
|
export * from './BuiltOrderTx';
|
|
10
11
|
export * from './CancelOrderRequest';
|
|
11
12
|
export * from './CloseRequest';
|
|
13
|
+
export * from './CompareMarketPrices200Response';
|
|
14
|
+
export * from './CompareMarketPricesRequest';
|
|
12
15
|
export * from './CreateOrder200Response';
|
|
13
16
|
export * from './CreateOrderParams';
|
|
14
17
|
export * from './CreateOrderRequest';
|
|
@@ -17,15 +20,22 @@ export * from './ErrorResponse';
|
|
|
17
20
|
export * from './EventFetchParams';
|
|
18
21
|
export * from './EventFilterCriteria';
|
|
19
22
|
export * from './EventFilterCriteriaTotalVolume';
|
|
23
|
+
export * from './EventMatchResult';
|
|
20
24
|
export * from './ExchangeCredentials';
|
|
21
25
|
export * from './ExchangeCredentialsSignatureType';
|
|
22
26
|
export * from './ExecutionPriceResult';
|
|
27
|
+
export * from './FetchArbitrage200Response';
|
|
28
|
+
export * from './FetchArbitrageParams';
|
|
23
29
|
export * from './FetchBalance200Response';
|
|
24
30
|
export * from './FetchEvent200Response';
|
|
31
|
+
export * from './FetchEventMatches200Response';
|
|
32
|
+
export * from './FetchEventMatchesParams';
|
|
25
33
|
export * from './FetchEvents200Response';
|
|
26
34
|
export * from './FetchMarket200Response';
|
|
27
35
|
export * from './FetchMarkets200Response';
|
|
28
36
|
export * from './FetchMarketsPaginated200Response';
|
|
37
|
+
export * from './FetchMatches200Response';
|
|
38
|
+
export * from './FetchMatchesParams';
|
|
29
39
|
export * from './FetchMyTrades200Response';
|
|
30
40
|
export * from './FetchOHLCV200Response';
|
|
31
41
|
export * from './FetchOpenOrders200Response';
|
|
@@ -54,6 +64,7 @@ export * from './MarketFilterCriteriaVolume';
|
|
|
54
64
|
export * from './MarketFilterCriteriaVolume24h';
|
|
55
65
|
export * from './MarketFilterParams';
|
|
56
66
|
export * from './MarketOutcome';
|
|
67
|
+
export * from './MatchResult';
|
|
57
68
|
export * from './MyTradesParams';
|
|
58
69
|
export * from './OHLCVParams';
|
|
59
70
|
export * from './Order';
|
|
@@ -63,6 +74,7 @@ export * from './OrderLevel';
|
|
|
63
74
|
export * from './PaginatedMarketsResult';
|
|
64
75
|
export * from './Position';
|
|
65
76
|
export * from './PriceCandle';
|
|
77
|
+
export * from './PriceComparison';
|
|
66
78
|
export * from './SubmitOrderRequest';
|
|
67
79
|
export * from './Trade';
|
|
68
80
|
export * from './TradesParams';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmxtjs",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.33.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.
|
|
46
|
+
"pmxt-core": "2.33.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/jest": "^30.0.0",
|