pmxtjs 2.32.3 → 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.
Files changed (86) hide show
  1. package/dist/esm/generated/src/apis/DefaultApi.d.ts +243 -1
  2. package/dist/esm/generated/src/apis/DefaultApi.js +387 -31
  3. package/dist/esm/generated/src/models/ArbitrageOpportunity.d.ts +69 -0
  4. package/dist/esm/generated/src/models/ArbitrageOpportunity.js +68 -0
  5. package/dist/esm/generated/src/models/CompareMarketPrices200Response.d.ts +46 -0
  6. package/dist/esm/generated/src/models/CompareMarketPrices200Response.js +47 -0
  7. package/dist/esm/generated/src/models/CompareMarketPricesRequest.d.ts +40 -0
  8. package/dist/esm/generated/src/models/CompareMarketPricesRequest.js +47 -0
  9. package/dist/esm/generated/src/models/EventMatchResult.d.ts +40 -0
  10. package/dist/esm/generated/src/models/EventMatchResult.js +49 -0
  11. package/dist/esm/generated/src/models/FetchArbitrage200Response.d.ts +46 -0
  12. package/dist/esm/generated/src/models/FetchArbitrage200Response.js +47 -0
  13. package/dist/esm/generated/src/models/FetchArbitrageParams.d.ts +44 -0
  14. package/dist/esm/generated/src/models/FetchArbitrageParams.js +45 -0
  15. package/dist/esm/generated/src/models/FetchEventMatches200Response.d.ts +46 -0
  16. package/dist/esm/generated/src/models/FetchEventMatches200Response.js +47 -0
  17. package/dist/esm/generated/src/models/FetchEventMatchesParams.d.ts +73 -0
  18. package/dist/esm/generated/src/models/FetchEventMatchesParams.js +61 -0
  19. package/dist/esm/generated/src/models/FetchMatches200Response.d.ts +46 -0
  20. package/dist/esm/generated/src/models/FetchMatches200Response.js +47 -0
  21. package/dist/esm/generated/src/models/FetchMatchesParams.d.ts +79 -0
  22. package/dist/esm/generated/src/models/FetchMatchesParams.js +63 -0
  23. package/dist/esm/generated/src/models/MatchResult.d.ts +74 -0
  24. package/dist/esm/generated/src/models/MatchResult.js +74 -0
  25. package/dist/esm/generated/src/models/PriceComparison.d.ts +80 -0
  26. package/dist/esm/generated/src/models/PriceComparison.js +78 -0
  27. package/dist/esm/generated/src/models/index.d.ts +12 -0
  28. package/dist/esm/generated/src/models/index.js +12 -0
  29. package/dist/generated/src/apis/DefaultApi.d.ts +243 -1
  30. package/dist/generated/src/apis/DefaultApi.js +388 -31
  31. package/dist/generated/src/models/ArbitrageOpportunity.d.ts +69 -0
  32. package/dist/generated/src/models/ArbitrageOpportunity.js +75 -0
  33. package/dist/generated/src/models/CompareMarketPrices200Response.d.ts +46 -0
  34. package/dist/generated/src/models/CompareMarketPrices200Response.js +54 -0
  35. package/dist/generated/src/models/CompareMarketPricesRequest.d.ts +40 -0
  36. package/dist/generated/src/models/CompareMarketPricesRequest.js +54 -0
  37. package/dist/generated/src/models/EventMatchResult.d.ts +40 -0
  38. package/dist/generated/src/models/EventMatchResult.js +56 -0
  39. package/dist/generated/src/models/FetchArbitrage200Response.d.ts +46 -0
  40. package/dist/generated/src/models/FetchArbitrage200Response.js +54 -0
  41. package/dist/generated/src/models/FetchArbitrageParams.d.ts +44 -0
  42. package/dist/generated/src/models/FetchArbitrageParams.js +52 -0
  43. package/dist/generated/src/models/FetchEventMatches200Response.d.ts +46 -0
  44. package/dist/generated/src/models/FetchEventMatches200Response.js +54 -0
  45. package/dist/generated/src/models/FetchEventMatchesParams.d.ts +73 -0
  46. package/dist/generated/src/models/FetchEventMatchesParams.js +69 -0
  47. package/dist/generated/src/models/FetchMatches200Response.d.ts +46 -0
  48. package/dist/generated/src/models/FetchMatches200Response.js +54 -0
  49. package/dist/generated/src/models/FetchMatchesParams.d.ts +79 -0
  50. package/dist/generated/src/models/FetchMatchesParams.js +71 -0
  51. package/dist/generated/src/models/MatchResult.d.ts +74 -0
  52. package/dist/generated/src/models/MatchResult.js +82 -0
  53. package/dist/generated/src/models/PriceComparison.d.ts +80 -0
  54. package/dist/generated/src/models/PriceComparison.js +86 -0
  55. package/dist/generated/src/models/index.d.ts +12 -0
  56. package/dist/generated/src/models/index.js +12 -0
  57. package/generated/.openapi-generator/FILES +24 -0
  58. package/generated/docs/ArbitrageOpportunity.md +46 -0
  59. package/generated/docs/CompareMarketPrices200Response.md +38 -0
  60. package/generated/docs/CompareMarketPricesRequest.md +36 -0
  61. package/generated/docs/DefaultApi.md +472 -60
  62. package/generated/docs/EventMatchResult.md +36 -0
  63. package/generated/docs/FetchArbitrage200Response.md +38 -0
  64. package/generated/docs/FetchArbitrageParams.md +38 -0
  65. package/generated/docs/FetchEventMatches200Response.md +38 -0
  66. package/generated/docs/FetchEventMatchesParams.md +44 -0
  67. package/generated/docs/FetchMatches200Response.md +38 -0
  68. package/generated/docs/FetchMatchesParams.md +46 -0
  69. package/generated/docs/MatchResult.md +44 -0
  70. package/generated/docs/PriceComparison.md +46 -0
  71. package/generated/package.json +1 -1
  72. package/generated/src/apis/DefaultApi.ts +532 -30
  73. package/generated/src/models/ArbitrageOpportunity.ts +128 -0
  74. package/generated/src/models/CompareMarketPrices200Response.ts +96 -0
  75. package/generated/src/models/CompareMarketPricesRequest.ts +89 -0
  76. package/generated/src/models/EventMatchResult.ts +90 -0
  77. package/generated/src/models/FetchArbitrage200Response.ts +96 -0
  78. package/generated/src/models/FetchArbitrageParams.ts +81 -0
  79. package/generated/src/models/FetchEventMatches200Response.ts +96 -0
  80. package/generated/src/models/FetchEventMatchesParams.ts +119 -0
  81. package/generated/src/models/FetchMatches200Response.ts +96 -0
  82. package/generated/src/models/FetchMatchesParams.ts +127 -0
  83. package/generated/src/models/MatchResult.ts +133 -0
  84. package/generated/src/models/PriceComparison.ts +142 -0
  85. package/generated/src/models/index.ts +12 -0
  86. package/package.json +2 -2
@@ -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 { EventMatchResultFromJSON, EventMatchResultToJSON, } from './EventMatchResult.js';
16
+ /**
17
+ * Check if a given object implements the FetchEventMatches200Response interface.
18
+ */
19
+ export function instanceOfFetchEventMatches200Response(value) {
20
+ return true;
21
+ }
22
+ export function FetchEventMatches200ResponseFromJSON(json) {
23
+ return FetchEventMatches200ResponseFromJSONTyped(json, false);
24
+ }
25
+ export function FetchEventMatches200ResponseFromJSONTyped(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(EventMatchResultFromJSON)),
33
+ };
34
+ }
35
+ export function FetchEventMatches200ResponseToJSON(json) {
36
+ return FetchEventMatches200ResponseToJSONTyped(json, false);
37
+ }
38
+ export function FetchEventMatches200ResponseToJSONTyped(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(EventMatchResultToJSON)),
46
+ };
47
+ }
@@ -0,0 +1,73 @@
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 FetchEventMatchesParams
16
+ */
17
+ export interface FetchEventMatchesParams {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof FetchEventMatchesParams
22
+ */
23
+ eventId?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof FetchEventMatchesParams
28
+ */
29
+ slug?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof FetchEventMatchesParams
34
+ */
35
+ relation?: FetchEventMatchesParamsRelationEnum;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof FetchEventMatchesParams
40
+ */
41
+ minConfidence?: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof FetchEventMatchesParams
46
+ */
47
+ limit?: number;
48
+ /**
49
+ *
50
+ * @type {boolean}
51
+ * @memberof FetchEventMatchesParams
52
+ */
53
+ includePrices?: boolean;
54
+ }
55
+ /**
56
+ * @export
57
+ */
58
+ export declare const FetchEventMatchesParamsRelationEnum: {
59
+ readonly Identity: "identity";
60
+ readonly Subset: "subset";
61
+ readonly Superset: "superset";
62
+ readonly Overlap: "overlap";
63
+ readonly Disjoint: "disjoint";
64
+ };
65
+ export type FetchEventMatchesParamsRelationEnum = typeof FetchEventMatchesParamsRelationEnum[keyof typeof FetchEventMatchesParamsRelationEnum];
66
+ /**
67
+ * Check if a given object implements the FetchEventMatchesParams interface.
68
+ */
69
+ export declare function instanceOfFetchEventMatchesParams(value: object): value is FetchEventMatchesParams;
70
+ export declare function FetchEventMatchesParamsFromJSON(json: any): FetchEventMatchesParams;
71
+ export declare function FetchEventMatchesParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FetchEventMatchesParams;
72
+ export declare function FetchEventMatchesParamsToJSON(json: any): FetchEventMatchesParams;
73
+ export declare function FetchEventMatchesParamsToJSONTyped(value?: FetchEventMatchesParams | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,61 @@
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
+ * @export
16
+ */
17
+ export const FetchEventMatchesParamsRelationEnum = {
18
+ Identity: 'identity',
19
+ Subset: 'subset',
20
+ Superset: 'superset',
21
+ Overlap: 'overlap',
22
+ Disjoint: 'disjoint'
23
+ };
24
+ /**
25
+ * Check if a given object implements the FetchEventMatchesParams interface.
26
+ */
27
+ export function instanceOfFetchEventMatchesParams(value) {
28
+ return true;
29
+ }
30
+ export function FetchEventMatchesParamsFromJSON(json) {
31
+ return FetchEventMatchesParamsFromJSONTyped(json, false);
32
+ }
33
+ export function FetchEventMatchesParamsFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'eventId': json['eventId'] == null ? undefined : json['eventId'],
39
+ 'slug': json['slug'] == null ? undefined : json['slug'],
40
+ 'relation': json['relation'] == null ? undefined : json['relation'],
41
+ 'minConfidence': json['minConfidence'] == null ? undefined : json['minConfidence'],
42
+ 'limit': json['limit'] == null ? undefined : json['limit'],
43
+ 'includePrices': json['includePrices'] == null ? undefined : json['includePrices'],
44
+ };
45
+ }
46
+ export function FetchEventMatchesParamsToJSON(json) {
47
+ return FetchEventMatchesParamsToJSONTyped(json, false);
48
+ }
49
+ export function FetchEventMatchesParamsToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'eventId': value['eventId'],
55
+ 'slug': value['slug'],
56
+ 'relation': value['relation'],
57
+ 'minConfidence': value['minConfidence'],
58
+ 'limit': value['limit'],
59
+ 'includePrices': value['includePrices'],
60
+ };
61
+ }
@@ -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 { MatchResult } from './MatchResult.js';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface FetchMatches200Response
18
+ */
19
+ export interface FetchMatches200Response {
20
+ /**
21
+ *
22
+ * @type {boolean}
23
+ * @memberof FetchMatches200Response
24
+ */
25
+ success?: boolean;
26
+ /**
27
+ *
28
+ * @type {ErrorDetail}
29
+ * @memberof FetchMatches200Response
30
+ */
31
+ error?: ErrorDetail;
32
+ /**
33
+ *
34
+ * @type {Array<MatchResult>}
35
+ * @memberof FetchMatches200Response
36
+ */
37
+ data?: Array<MatchResult>;
38
+ }
39
+ /**
40
+ * Check if a given object implements the FetchMatches200Response interface.
41
+ */
42
+ export declare function instanceOfFetchMatches200Response(value: object): value is FetchMatches200Response;
43
+ export declare function FetchMatches200ResponseFromJSON(json: any): FetchMatches200Response;
44
+ export declare function FetchMatches200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FetchMatches200Response;
45
+ export declare function FetchMatches200ResponseToJSON(json: any): FetchMatches200Response;
46
+ export declare function FetchMatches200ResponseToJSONTyped(value?: FetchMatches200Response | 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 { MatchResultFromJSON, MatchResultToJSON, } from './MatchResult.js';
16
+ /**
17
+ * Check if a given object implements the FetchMatches200Response interface.
18
+ */
19
+ export function instanceOfFetchMatches200Response(value) {
20
+ return true;
21
+ }
22
+ export function FetchMatches200ResponseFromJSON(json) {
23
+ return FetchMatches200ResponseFromJSONTyped(json, false);
24
+ }
25
+ export function FetchMatches200ResponseFromJSONTyped(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(MatchResultFromJSON)),
33
+ };
34
+ }
35
+ export function FetchMatches200ResponseToJSON(json) {
36
+ return FetchMatches200ResponseToJSONTyped(json, false);
37
+ }
38
+ export function FetchMatches200ResponseToJSONTyped(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(MatchResultToJSON)),
46
+ };
47
+ }
@@ -0,0 +1,79 @@
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 FetchMatchesParams
16
+ */
17
+ export interface FetchMatchesParams {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof FetchMatchesParams
22
+ */
23
+ marketId?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof FetchMatchesParams
28
+ */
29
+ slug?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof FetchMatchesParams
34
+ */
35
+ url?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof FetchMatchesParams
40
+ */
41
+ relation?: FetchMatchesParamsRelationEnum;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof FetchMatchesParams
46
+ */
47
+ minConfidence?: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof FetchMatchesParams
52
+ */
53
+ limit?: number;
54
+ /**
55
+ *
56
+ * @type {boolean}
57
+ * @memberof FetchMatchesParams
58
+ */
59
+ includePrices?: boolean;
60
+ }
61
+ /**
62
+ * @export
63
+ */
64
+ export declare const FetchMatchesParamsRelationEnum: {
65
+ readonly Identity: "identity";
66
+ readonly Subset: "subset";
67
+ readonly Superset: "superset";
68
+ readonly Overlap: "overlap";
69
+ readonly Disjoint: "disjoint";
70
+ };
71
+ export type FetchMatchesParamsRelationEnum = typeof FetchMatchesParamsRelationEnum[keyof typeof FetchMatchesParamsRelationEnum];
72
+ /**
73
+ * Check if a given object implements the FetchMatchesParams interface.
74
+ */
75
+ export declare function instanceOfFetchMatchesParams(value: object): value is FetchMatchesParams;
76
+ export declare function FetchMatchesParamsFromJSON(json: any): FetchMatchesParams;
77
+ export declare function FetchMatchesParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FetchMatchesParams;
78
+ export declare function FetchMatchesParamsToJSON(json: any): FetchMatchesParams;
79
+ export declare function FetchMatchesParamsToJSONTyped(value?: FetchMatchesParams | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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
+ * @export
16
+ */
17
+ export const FetchMatchesParamsRelationEnum = {
18
+ Identity: 'identity',
19
+ Subset: 'subset',
20
+ Superset: 'superset',
21
+ Overlap: 'overlap',
22
+ Disjoint: 'disjoint'
23
+ };
24
+ /**
25
+ * Check if a given object implements the FetchMatchesParams interface.
26
+ */
27
+ export function instanceOfFetchMatchesParams(value) {
28
+ return true;
29
+ }
30
+ export function FetchMatchesParamsFromJSON(json) {
31
+ return FetchMatchesParamsFromJSONTyped(json, false);
32
+ }
33
+ export function FetchMatchesParamsFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'marketId': json['marketId'] == null ? undefined : json['marketId'],
39
+ 'slug': json['slug'] == null ? undefined : json['slug'],
40
+ 'url': json['url'] == null ? undefined : json['url'],
41
+ 'relation': json['relation'] == null ? undefined : json['relation'],
42
+ 'minConfidence': json['minConfidence'] == null ? undefined : json['minConfidence'],
43
+ 'limit': json['limit'] == null ? undefined : json['limit'],
44
+ 'includePrices': json['includePrices'] == null ? undefined : json['includePrices'],
45
+ };
46
+ }
47
+ export function FetchMatchesParamsToJSON(json) {
48
+ return FetchMatchesParamsToJSONTyped(json, false);
49
+ }
50
+ export function FetchMatchesParamsToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'marketId': value['marketId'],
56
+ 'slug': value['slug'],
57
+ 'url': value['url'],
58
+ 'relation': value['relation'],
59
+ 'minConfidence': value['minConfidence'],
60
+ 'limit': value['limit'],
61
+ 'includePrices': value['includePrices'],
62
+ };
63
+ }
@@ -0,0 +1,74 @@
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 MatchResult
17
+ */
18
+ export interface MatchResult {
19
+ /**
20
+ *
21
+ * @type {UnifiedMarket}
22
+ * @memberof MatchResult
23
+ */
24
+ market: UnifiedMarket;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof MatchResult
29
+ */
30
+ relation: MatchResultRelationEnum;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof MatchResult
35
+ */
36
+ confidence: number;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof MatchResult
41
+ */
42
+ reasoning: string | null;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof MatchResult
47
+ */
48
+ bestBid: number | null;
49
+ /**
50
+ *
51
+ * @type {number}
52
+ * @memberof MatchResult
53
+ */
54
+ bestAsk: number | null;
55
+ }
56
+ /**
57
+ * @export
58
+ */
59
+ export declare const MatchResultRelationEnum: {
60
+ readonly Identity: "identity";
61
+ readonly Subset: "subset";
62
+ readonly Superset: "superset";
63
+ readonly Overlap: "overlap";
64
+ readonly Disjoint: "disjoint";
65
+ };
66
+ export type MatchResultRelationEnum = typeof MatchResultRelationEnum[keyof typeof MatchResultRelationEnum];
67
+ /**
68
+ * Check if a given object implements the MatchResult interface.
69
+ */
70
+ export declare function instanceOfMatchResult(value: object): value is MatchResult;
71
+ export declare function MatchResultFromJSON(json: any): MatchResult;
72
+ export declare function MatchResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): MatchResult;
73
+ export declare function MatchResultToJSON(json: any): MatchResult;
74
+ export declare function MatchResultToJSONTyped(value?: MatchResult | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
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
+ * @export
17
+ */
18
+ export const MatchResultRelationEnum = {
19
+ Identity: 'identity',
20
+ Subset: 'subset',
21
+ Superset: 'superset',
22
+ Overlap: 'overlap',
23
+ Disjoint: 'disjoint'
24
+ };
25
+ /**
26
+ * Check if a given object implements the MatchResult interface.
27
+ */
28
+ export function instanceOfMatchResult(value) {
29
+ if (!('market' in value) || value['market'] === undefined)
30
+ return false;
31
+ if (!('relation' in value) || value['relation'] === undefined)
32
+ return false;
33
+ if (!('confidence' in value) || value['confidence'] === undefined)
34
+ return false;
35
+ if (!('reasoning' in value) || value['reasoning'] === undefined)
36
+ return false;
37
+ if (!('bestBid' in value) || value['bestBid'] === undefined)
38
+ return false;
39
+ if (!('bestAsk' in value) || value['bestAsk'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ export function MatchResultFromJSON(json) {
44
+ return MatchResultFromJSONTyped(json, false);
45
+ }
46
+ export function MatchResultFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'market': UnifiedMarketFromJSON(json['market']),
52
+ 'relation': json['relation'],
53
+ 'confidence': json['confidence'],
54
+ 'reasoning': json['reasoning'],
55
+ 'bestBid': json['bestBid'],
56
+ 'bestAsk': json['bestAsk'],
57
+ };
58
+ }
59
+ export function MatchResultToJSON(json) {
60
+ return MatchResultToJSONTyped(json, false);
61
+ }
62
+ export function MatchResultToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'market': UnifiedMarketToJSON(value['market']),
68
+ 'relation': value['relation'],
69
+ 'confidence': value['confidence'],
70
+ 'reasoning': value['reasoning'],
71
+ 'bestBid': value['bestBid'],
72
+ 'bestAsk': value['bestAsk'],
73
+ };
74
+ }
@@ -0,0 +1,80 @@
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 PriceComparison
17
+ */
18
+ export interface PriceComparison {
19
+ /**
20
+ *
21
+ * @type {UnifiedMarket}
22
+ * @memberof PriceComparison
23
+ */
24
+ market: UnifiedMarket;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof PriceComparison
29
+ */
30
+ relation: PriceComparisonRelationEnum;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof PriceComparison
35
+ */
36
+ confidence: number;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof PriceComparison
41
+ */
42
+ reasoning: string | null;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof PriceComparison
47
+ */
48
+ bestBid: number | null;
49
+ /**
50
+ *
51
+ * @type {number}
52
+ * @memberof PriceComparison
53
+ */
54
+ bestAsk: number | null;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof PriceComparison
59
+ */
60
+ venue: string;
61
+ }
62
+ /**
63
+ * @export
64
+ */
65
+ export declare const PriceComparisonRelationEnum: {
66
+ readonly Identity: "identity";
67
+ readonly Subset: "subset";
68
+ readonly Superset: "superset";
69
+ readonly Overlap: "overlap";
70
+ readonly Disjoint: "disjoint";
71
+ };
72
+ export type PriceComparisonRelationEnum = typeof PriceComparisonRelationEnum[keyof typeof PriceComparisonRelationEnum];
73
+ /**
74
+ * Check if a given object implements the PriceComparison interface.
75
+ */
76
+ export declare function instanceOfPriceComparison(value: object): value is PriceComparison;
77
+ export declare function PriceComparisonFromJSON(json: any): PriceComparison;
78
+ export declare function PriceComparisonFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceComparison;
79
+ export declare function PriceComparisonToJSON(json: any): PriceComparison;
80
+ export declare function PriceComparisonToJSONTyped(value?: PriceComparison | null, ignoreDiscriminator?: boolean): any;