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,69 @@
|
|
|
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 { UnifiedMarket } from './UnifiedMarket.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ArbitrageOpportunity
|
|
17
|
+
*/
|
|
18
|
+
export interface ArbitrageOpportunity {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {UnifiedMarket}
|
|
22
|
+
* @memberof ArbitrageOpportunity
|
|
23
|
+
*/
|
|
24
|
+
marketA: UnifiedMarket;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {UnifiedMarket}
|
|
28
|
+
* @memberof ArbitrageOpportunity
|
|
29
|
+
*/
|
|
30
|
+
marketB: UnifiedMarket;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ArbitrageOpportunity
|
|
35
|
+
*/
|
|
36
|
+
spread: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ArbitrageOpportunity
|
|
41
|
+
*/
|
|
42
|
+
buyVenue: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ArbitrageOpportunity
|
|
47
|
+
*/
|
|
48
|
+
sellVenue: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof ArbitrageOpportunity
|
|
53
|
+
*/
|
|
54
|
+
buyPrice: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof ArbitrageOpportunity
|
|
59
|
+
*/
|
|
60
|
+
sellPrice: number;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the ArbitrageOpportunity interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfArbitrageOpportunity(value: object): value is ArbitrageOpportunity;
|
|
66
|
+
export declare function ArbitrageOpportunityFromJSON(json: any): ArbitrageOpportunity;
|
|
67
|
+
export declare function ArbitrageOpportunityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArbitrageOpportunity;
|
|
68
|
+
export declare function ArbitrageOpportunityToJSON(json: any): ArbitrageOpportunity;
|
|
69
|
+
export declare function ArbitrageOpportunityToJSONTyped(value?: ArbitrageOpportunity | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
import { UnifiedMarketFromJSON, UnifiedMarketToJSON, } from './UnifiedMarket.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ArbitrageOpportunity interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfArbitrageOpportunity(value) {
|
|
19
|
+
if (!('marketA' in value) || value['marketA'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('marketB' in value) || value['marketB'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('spread' in value) || value['spread'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('buyVenue' in value) || value['buyVenue'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('sellVenue' in value) || value['sellVenue'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('buyPrice' in value) || value['buyPrice'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('sellPrice' in value) || value['sellPrice'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
export function ArbitrageOpportunityFromJSON(json) {
|
|
36
|
+
return ArbitrageOpportunityFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function ArbitrageOpportunityFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'marketA': UnifiedMarketFromJSON(json['marketA']),
|
|
44
|
+
'marketB': UnifiedMarketFromJSON(json['marketB']),
|
|
45
|
+
'spread': json['spread'],
|
|
46
|
+
'buyVenue': json['buyVenue'],
|
|
47
|
+
'sellVenue': json['sellVenue'],
|
|
48
|
+
'buyPrice': json['buyPrice'],
|
|
49
|
+
'sellPrice': json['sellPrice'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function ArbitrageOpportunityToJSON(json) {
|
|
53
|
+
return ArbitrageOpportunityToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function ArbitrageOpportunityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'marketA': UnifiedMarketToJSON(value['marketA']),
|
|
61
|
+
'marketB': UnifiedMarketToJSON(value['marketB']),
|
|
62
|
+
'spread': value['spread'],
|
|
63
|
+
'buyVenue': value['buyVenue'],
|
|
64
|
+
'sellVenue': value['sellVenue'],
|
|
65
|
+
'buyPrice': value['buyPrice'],
|
|
66
|
+
'sellPrice': value['sellPrice'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.js';
|
|
13
|
+
import type { PriceComparison } from './PriceComparison.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface CompareMarketPrices200Response
|
|
18
|
+
*/
|
|
19
|
+
export interface CompareMarketPrices200Response {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof CompareMarketPrices200Response
|
|
24
|
+
*/
|
|
25
|
+
success?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {ErrorDetail}
|
|
29
|
+
* @memberof CompareMarketPrices200Response
|
|
30
|
+
*/
|
|
31
|
+
error?: ErrorDetail;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Array<PriceComparison>}
|
|
35
|
+
* @memberof CompareMarketPrices200Response
|
|
36
|
+
*/
|
|
37
|
+
data?: Array<PriceComparison>;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the CompareMarketPrices200Response interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfCompareMarketPrices200Response(value: object): value is CompareMarketPrices200Response;
|
|
43
|
+
export declare function CompareMarketPrices200ResponseFromJSON(json: any): CompareMarketPrices200Response;
|
|
44
|
+
export declare function CompareMarketPrices200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CompareMarketPrices200Response;
|
|
45
|
+
export declare function CompareMarketPrices200ResponseToJSON(json: any): CompareMarketPrices200Response;
|
|
46
|
+
export declare function CompareMarketPrices200ResponseToJSONTyped(value?: CompareMarketPrices200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
import { ErrorDetailFromJSON, ErrorDetailToJSON, } from './ErrorDetail.js';
|
|
15
|
+
import { PriceComparisonFromJSON, PriceComparisonToJSON, } from './PriceComparison.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the CompareMarketPrices200Response interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfCompareMarketPrices200Response(value) {
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function CompareMarketPrices200ResponseFromJSON(json) {
|
|
23
|
+
return CompareMarketPrices200ResponseFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function CompareMarketPrices200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'success': json['success'] == null ? undefined : json['success'],
|
|
31
|
+
'error': json['error'] == null ? undefined : ErrorDetailFromJSON(json['error']),
|
|
32
|
+
'data': json['data'] == null ? undefined : (json['data'].map(PriceComparisonFromJSON)),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function CompareMarketPrices200ResponseToJSON(json) {
|
|
36
|
+
return CompareMarketPrices200ResponseToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function CompareMarketPrices200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'success': value['success'],
|
|
44
|
+
'error': ErrorDetailToJSON(value['error']),
|
|
45
|
+
'data': value['data'] == null ? undefined : (value['data'].map(PriceComparisonToJSON)),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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.js';
|
|
13
|
+
import type { FetchMatchesParams } from './FetchMatchesParams.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface CompareMarketPricesRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface CompareMarketPricesRequest {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<FetchMatchesParams>}
|
|
23
|
+
* @memberof CompareMarketPricesRequest
|
|
24
|
+
*/
|
|
25
|
+
args: Array<FetchMatchesParams>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {ExchangeCredentials}
|
|
29
|
+
* @memberof CompareMarketPricesRequest
|
|
30
|
+
*/
|
|
31
|
+
credentials?: ExchangeCredentials;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the CompareMarketPricesRequest interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfCompareMarketPricesRequest(value: object): value is CompareMarketPricesRequest;
|
|
37
|
+
export declare function CompareMarketPricesRequestFromJSON(json: any): CompareMarketPricesRequest;
|
|
38
|
+
export declare function CompareMarketPricesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CompareMarketPricesRequest;
|
|
39
|
+
export declare function CompareMarketPricesRequestToJSON(json: any): CompareMarketPricesRequest;
|
|
40
|
+
export declare function CompareMarketPricesRequestToJSONTyped(value?: CompareMarketPricesRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
import { ExchangeCredentialsFromJSON, ExchangeCredentialsToJSON, } from './ExchangeCredentials.js';
|
|
15
|
+
import { FetchMatchesParamsFromJSON, FetchMatchesParamsToJSON, } from './FetchMatchesParams.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the CompareMarketPricesRequest interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfCompareMarketPricesRequest(value) {
|
|
20
|
+
if (!('args' in value) || value['args'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function CompareMarketPricesRequestFromJSON(json) {
|
|
25
|
+
return CompareMarketPricesRequestFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function CompareMarketPricesRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'args': (json['args'].map(FetchMatchesParamsFromJSON)),
|
|
33
|
+
'credentials': json['credentials'] == null ? undefined : ExchangeCredentialsFromJSON(json['credentials']),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function CompareMarketPricesRequestToJSON(json) {
|
|
37
|
+
return CompareMarketPricesRequestToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function CompareMarketPricesRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'args': (value['args'].map(FetchMatchesParamsToJSON)),
|
|
45
|
+
'credentials': ExchangeCredentialsToJSON(value['credentials']),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { UnifiedEvent } from './UnifiedEvent.js';
|
|
13
|
+
import type { MatchResult } from './MatchResult.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface EventMatchResult
|
|
18
|
+
*/
|
|
19
|
+
export interface EventMatchResult {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {UnifiedEvent}
|
|
23
|
+
* @memberof EventMatchResult
|
|
24
|
+
*/
|
|
25
|
+
event: UnifiedEvent;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<MatchResult>}
|
|
29
|
+
* @memberof EventMatchResult
|
|
30
|
+
*/
|
|
31
|
+
marketMatches: Array<MatchResult>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the EventMatchResult interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfEventMatchResult(value: object): value is EventMatchResult;
|
|
37
|
+
export declare function EventMatchResultFromJSON(json: any): EventMatchResult;
|
|
38
|
+
export declare function EventMatchResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventMatchResult;
|
|
39
|
+
export declare function EventMatchResultToJSON(json: any): EventMatchResult;
|
|
40
|
+
export declare function EventMatchResultToJSONTyped(value?: EventMatchResult | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* PMXT Sidecar API
|
|
5
|
+
* A unified local sidecar API for prediction markets (Polymarket, Kalshi, Limitless). This API acts as a JSON-RPC-style gateway. Each endpoint corresponds to a specific method on the generic exchange implementation.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.4.4
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { UnifiedEventFromJSON, UnifiedEventToJSON, } from './UnifiedEvent.js';
|
|
15
|
+
import { MatchResultFromJSON, MatchResultToJSON, } from './MatchResult.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the EventMatchResult interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfEventMatchResult(value) {
|
|
20
|
+
if (!('event' in value) || value['event'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('marketMatches' in value) || value['marketMatches'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function EventMatchResultFromJSON(json) {
|
|
27
|
+
return EventMatchResultFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function EventMatchResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'event': UnifiedEventFromJSON(json['event']),
|
|
35
|
+
'marketMatches': (json['marketMatches'].map(MatchResultFromJSON)),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function EventMatchResultToJSON(json) {
|
|
39
|
+
return EventMatchResultToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function EventMatchResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'event': UnifiedEventToJSON(value['event']),
|
|
47
|
+
'marketMatches': (value['marketMatches'].map(MatchResultToJSON)),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.js';
|
|
13
|
+
import type { ArbitrageOpportunity } from './ArbitrageOpportunity.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface FetchArbitrage200Response
|
|
18
|
+
*/
|
|
19
|
+
export interface FetchArbitrage200Response {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof FetchArbitrage200Response
|
|
24
|
+
*/
|
|
25
|
+
success?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {ErrorDetail}
|
|
29
|
+
* @memberof FetchArbitrage200Response
|
|
30
|
+
*/
|
|
31
|
+
error?: ErrorDetail;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Array<ArbitrageOpportunity>}
|
|
35
|
+
* @memberof FetchArbitrage200Response
|
|
36
|
+
*/
|
|
37
|
+
data?: Array<ArbitrageOpportunity>;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the FetchArbitrage200Response interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfFetchArbitrage200Response(value: object): value is FetchArbitrage200Response;
|
|
43
|
+
export declare function FetchArbitrage200ResponseFromJSON(json: any): FetchArbitrage200Response;
|
|
44
|
+
export declare function FetchArbitrage200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FetchArbitrage200Response;
|
|
45
|
+
export declare function FetchArbitrage200ResponseToJSON(json: any): FetchArbitrage200Response;
|
|
46
|
+
export declare function FetchArbitrage200ResponseToJSONTyped(value?: FetchArbitrage200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
import { ErrorDetailFromJSON, ErrorDetailToJSON, } from './ErrorDetail.js';
|
|
15
|
+
import { ArbitrageOpportunityFromJSON, ArbitrageOpportunityToJSON, } from './ArbitrageOpportunity.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the FetchArbitrage200Response interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfFetchArbitrage200Response(value) {
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function FetchArbitrage200ResponseFromJSON(json) {
|
|
23
|
+
return FetchArbitrage200ResponseFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function FetchArbitrage200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'success': json['success'] == null ? undefined : json['success'],
|
|
31
|
+
'error': json['error'] == null ? undefined : ErrorDetailFromJSON(json['error']),
|
|
32
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ArbitrageOpportunityFromJSON)),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function FetchArbitrage200ResponseToJSON(json) {
|
|
36
|
+
return FetchArbitrage200ResponseToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function FetchArbitrage200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'success': value['success'],
|
|
44
|
+
'error': ErrorDetailToJSON(value['error']),
|
|
45
|
+
'data': value['data'] == null ? undefined : (value['data'].map(ArbitrageOpportunityToJSON)),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface FetchArbitrageParams
|
|
16
|
+
*/
|
|
17
|
+
export interface FetchArbitrageParams {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof FetchArbitrageParams
|
|
22
|
+
*/
|
|
23
|
+
minSpread?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof FetchArbitrageParams
|
|
28
|
+
*/
|
|
29
|
+
category?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof FetchArbitrageParams
|
|
34
|
+
*/
|
|
35
|
+
limit?: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the FetchArbitrageParams interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfFetchArbitrageParams(value: object): value is FetchArbitrageParams;
|
|
41
|
+
export declare function FetchArbitrageParamsFromJSON(json: any): FetchArbitrageParams;
|
|
42
|
+
export declare function FetchArbitrageParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FetchArbitrageParams;
|
|
43
|
+
export declare function FetchArbitrageParamsToJSON(json: any): FetchArbitrageParams;
|
|
44
|
+
export declare function FetchArbitrageParamsToJSONTyped(value?: FetchArbitrageParams | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
* Check if a given object implements the FetchArbitrageParams interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfFetchArbitrageParams(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function FetchArbitrageParamsFromJSON(json) {
|
|
21
|
+
return FetchArbitrageParamsFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function FetchArbitrageParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'minSpread': json['minSpread'] == null ? undefined : json['minSpread'],
|
|
29
|
+
'category': json['category'] == null ? undefined : json['category'],
|
|
30
|
+
'limit': json['limit'] == null ? undefined : json['limit'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function FetchArbitrageParamsToJSON(json) {
|
|
34
|
+
return FetchArbitrageParamsToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function FetchArbitrageParamsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'minSpread': value['minSpread'],
|
|
42
|
+
'category': value['category'],
|
|
43
|
+
'limit': value['limit'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.js';
|
|
13
|
+
import type { EventMatchResult } from './EventMatchResult.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface FetchEventMatches200Response
|
|
18
|
+
*/
|
|
19
|
+
export interface FetchEventMatches200Response {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof FetchEventMatches200Response
|
|
24
|
+
*/
|
|
25
|
+
success?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {ErrorDetail}
|
|
29
|
+
* @memberof FetchEventMatches200Response
|
|
30
|
+
*/
|
|
31
|
+
error?: ErrorDetail;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Array<EventMatchResult>}
|
|
35
|
+
* @memberof FetchEventMatches200Response
|
|
36
|
+
*/
|
|
37
|
+
data?: Array<EventMatchResult>;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the FetchEventMatches200Response interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfFetchEventMatches200Response(value: object): value is FetchEventMatches200Response;
|
|
43
|
+
export declare function FetchEventMatches200ResponseFromJSON(json: any): FetchEventMatches200Response;
|
|
44
|
+
export declare function FetchEventMatches200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FetchEventMatches200Response;
|
|
45
|
+
export declare function FetchEventMatches200ResponseToJSON(json: any): FetchEventMatches200Response;
|
|
46
|
+
export declare function FetchEventMatches200ResponseToJSONTyped(value?: FetchEventMatches200Response | null, ignoreDiscriminator?: boolean): any;
|