pmxtjs 2.32.4 → 2.33.2
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
|
@@ -20,15 +20,20 @@ import type {
|
|
|
20
20
|
BuildOrderRequest,
|
|
21
21
|
CancelOrderRequest,
|
|
22
22
|
CloseRequest,
|
|
23
|
+
CompareMarketPrices200Response,
|
|
24
|
+
CompareMarketPricesRequest,
|
|
23
25
|
CreateOrder200Response,
|
|
24
26
|
CreateOrderRequest,
|
|
25
27
|
EventFilterCriteria,
|
|
28
|
+
FetchArbitrage200Response,
|
|
26
29
|
FetchBalance200Response,
|
|
27
30
|
FetchEvent200Response,
|
|
31
|
+
FetchEventMatches200Response,
|
|
28
32
|
FetchEvents200Response,
|
|
29
33
|
FetchMarket200Response,
|
|
30
34
|
FetchMarkets200Response,
|
|
31
35
|
FetchMarketsPaginated200Response,
|
|
36
|
+
FetchMatches200Response,
|
|
32
37
|
FetchMyTrades200Response,
|
|
33
38
|
FetchOHLCV200Response,
|
|
34
39
|
FetchOpenOrders200Response,
|
|
@@ -64,16 +69,24 @@ import {
|
|
|
64
69
|
CancelOrderRequestToJSON,
|
|
65
70
|
CloseRequestFromJSON,
|
|
66
71
|
CloseRequestToJSON,
|
|
72
|
+
CompareMarketPrices200ResponseFromJSON,
|
|
73
|
+
CompareMarketPrices200ResponseToJSON,
|
|
74
|
+
CompareMarketPricesRequestFromJSON,
|
|
75
|
+
CompareMarketPricesRequestToJSON,
|
|
67
76
|
CreateOrder200ResponseFromJSON,
|
|
68
77
|
CreateOrder200ResponseToJSON,
|
|
69
78
|
CreateOrderRequestFromJSON,
|
|
70
79
|
CreateOrderRequestToJSON,
|
|
71
80
|
EventFilterCriteriaFromJSON,
|
|
72
81
|
EventFilterCriteriaToJSON,
|
|
82
|
+
FetchArbitrage200ResponseFromJSON,
|
|
83
|
+
FetchArbitrage200ResponseToJSON,
|
|
73
84
|
FetchBalance200ResponseFromJSON,
|
|
74
85
|
FetchBalance200ResponseToJSON,
|
|
75
86
|
FetchEvent200ResponseFromJSON,
|
|
76
87
|
FetchEvent200ResponseToJSON,
|
|
88
|
+
FetchEventMatches200ResponseFromJSON,
|
|
89
|
+
FetchEventMatches200ResponseToJSON,
|
|
77
90
|
FetchEvents200ResponseFromJSON,
|
|
78
91
|
FetchEvents200ResponseToJSON,
|
|
79
92
|
FetchMarket200ResponseFromJSON,
|
|
@@ -82,6 +95,8 @@ import {
|
|
|
82
95
|
FetchMarkets200ResponseToJSON,
|
|
83
96
|
FetchMarketsPaginated200ResponseFromJSON,
|
|
84
97
|
FetchMarketsPaginated200ResponseToJSON,
|
|
98
|
+
FetchMatches200ResponseFromJSON,
|
|
99
|
+
FetchMatches200ResponseToJSON,
|
|
85
100
|
FetchMyTrades200ResponseFromJSON,
|
|
86
101
|
FetchMyTrades200ResponseToJSON,
|
|
87
102
|
FetchOHLCV200ResponseFromJSON,
|
|
@@ -145,6 +160,11 @@ export interface CloseOperationRequest {
|
|
|
145
160
|
closeRequest?: CloseRequest;
|
|
146
161
|
}
|
|
147
162
|
|
|
163
|
+
export interface CompareMarketPricesOperationRequest {
|
|
164
|
+
exchange: CompareMarketPricesOperationExchangeEnum;
|
|
165
|
+
compareMarketPricesRequest?: CompareMarketPricesRequest;
|
|
166
|
+
}
|
|
167
|
+
|
|
148
168
|
export interface CreateOrderOperationRequest {
|
|
149
169
|
exchange: CreateOrderOperationExchangeEnum;
|
|
150
170
|
createOrderRequest?: CreateOrderRequest;
|
|
@@ -159,6 +179,13 @@ export interface FetchAllOrdersRequest {
|
|
|
159
179
|
cursor?: string;
|
|
160
180
|
}
|
|
161
181
|
|
|
182
|
+
export interface FetchArbitrageRequest {
|
|
183
|
+
exchange: FetchArbitrageExchangeEnum;
|
|
184
|
+
minSpread?: number;
|
|
185
|
+
category?: string;
|
|
186
|
+
limit?: number;
|
|
187
|
+
}
|
|
188
|
+
|
|
162
189
|
export interface FetchBalanceRequest {
|
|
163
190
|
exchange: FetchBalanceExchangeEnum;
|
|
164
191
|
address?: string;
|
|
@@ -188,6 +215,16 @@ export interface FetchEventRequest {
|
|
|
188
215
|
tags?: Array<string>;
|
|
189
216
|
}
|
|
190
217
|
|
|
218
|
+
export interface FetchEventMatchesRequest {
|
|
219
|
+
exchange: FetchEventMatchesExchangeEnum;
|
|
220
|
+
eventId?: string;
|
|
221
|
+
slug?: string;
|
|
222
|
+
relation?: FetchEventMatchesRelationEnum;
|
|
223
|
+
minConfidence?: number;
|
|
224
|
+
limit?: number;
|
|
225
|
+
includePrices?: boolean;
|
|
226
|
+
}
|
|
227
|
+
|
|
191
228
|
export interface FetchEventsRequest {
|
|
192
229
|
exchange: FetchEventsExchangeEnum;
|
|
193
230
|
query?: string;
|
|
@@ -203,6 +240,17 @@ export interface FetchEventsRequest {
|
|
|
203
240
|
tags?: Array<string>;
|
|
204
241
|
}
|
|
205
242
|
|
|
243
|
+
export interface FetchHedgesRequest {
|
|
244
|
+
exchange: FetchHedgesExchangeEnum;
|
|
245
|
+
marketId?: string;
|
|
246
|
+
slug?: string;
|
|
247
|
+
url?: string;
|
|
248
|
+
relation?: FetchHedgesRelationEnum;
|
|
249
|
+
minConfidence?: number;
|
|
250
|
+
limit?: number;
|
|
251
|
+
includePrices?: boolean;
|
|
252
|
+
}
|
|
253
|
+
|
|
206
254
|
export interface FetchMarketRequest {
|
|
207
255
|
exchange: FetchMarketExchangeEnum;
|
|
208
256
|
limit?: number;
|
|
@@ -242,6 +290,17 @@ export interface FetchMarketsPaginatedRequest {
|
|
|
242
290
|
filter?: MarketFilterCriteria;
|
|
243
291
|
}
|
|
244
292
|
|
|
293
|
+
export interface FetchMatchesRequest {
|
|
294
|
+
exchange: FetchMatchesExchangeEnum;
|
|
295
|
+
marketId?: string;
|
|
296
|
+
slug?: string;
|
|
297
|
+
url?: string;
|
|
298
|
+
relation?: FetchMatchesRelationEnum;
|
|
299
|
+
minConfidence?: number;
|
|
300
|
+
limit?: number;
|
|
301
|
+
includePrices?: boolean;
|
|
302
|
+
}
|
|
303
|
+
|
|
245
304
|
export interface FetchMyTradesRequest {
|
|
246
305
|
exchange: FetchMyTradesExchangeEnum;
|
|
247
306
|
outcomeId?: string;
|
|
@@ -475,6 +534,48 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
475
534
|
return await response.value();
|
|
476
535
|
}
|
|
477
536
|
|
|
537
|
+
/**
|
|
538
|
+
* Compare prices across venues for identity matches of a market.
|
|
539
|
+
* Compare Market Prices
|
|
540
|
+
*/
|
|
541
|
+
async compareMarketPricesRaw(requestParameters: CompareMarketPricesOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompareMarketPrices200Response>> {
|
|
542
|
+
if (requestParameters['exchange'] == null) {
|
|
543
|
+
throw new runtime.RequiredError(
|
|
544
|
+
'exchange',
|
|
545
|
+
'Required parameter "exchange" was null or undefined when calling compareMarketPrices().'
|
|
546
|
+
);
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
const queryParameters: any = {};
|
|
550
|
+
|
|
551
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
552
|
+
|
|
553
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
let urlPath = `/api/{exchange}/compareMarketPrices`;
|
|
557
|
+
urlPath = urlPath.replace(`{${"exchange"}}`, encodeURIComponent(String(requestParameters['exchange'])));
|
|
558
|
+
|
|
559
|
+
const response = await this.request({
|
|
560
|
+
path: urlPath,
|
|
561
|
+
method: 'POST',
|
|
562
|
+
headers: headerParameters,
|
|
563
|
+
query: queryParameters,
|
|
564
|
+
body: CompareMarketPricesRequestToJSON(requestParameters['compareMarketPricesRequest']),
|
|
565
|
+
}, initOverrides);
|
|
566
|
+
|
|
567
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CompareMarketPrices200ResponseFromJSON(jsonValue));
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* Compare prices across venues for identity matches of a market.
|
|
572
|
+
* Compare Market Prices
|
|
573
|
+
*/
|
|
574
|
+
async compareMarketPrices(requestParameters: CompareMarketPricesOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompareMarketPrices200Response> {
|
|
575
|
+
const response = await this.compareMarketPricesRaw(requestParameters, initOverrides);
|
|
576
|
+
return await response.value();
|
|
577
|
+
}
|
|
578
|
+
|
|
478
579
|
/**
|
|
479
580
|
* Place a new order on the exchange.
|
|
480
581
|
* Create Order
|
|
@@ -574,6 +675,57 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
574
675
|
return await response.value();
|
|
575
676
|
}
|
|
576
677
|
|
|
678
|
+
/**
|
|
679
|
+
* Scan for arbitrage opportunities across identity matches.
|
|
680
|
+
* Fetch Arbitrage
|
|
681
|
+
*/
|
|
682
|
+
async fetchArbitrageRaw(requestParameters: FetchArbitrageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FetchArbitrage200Response>> {
|
|
683
|
+
if (requestParameters['exchange'] == null) {
|
|
684
|
+
throw new runtime.RequiredError(
|
|
685
|
+
'exchange',
|
|
686
|
+
'Required parameter "exchange" was null or undefined when calling fetchArbitrage().'
|
|
687
|
+
);
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
const queryParameters: any = {};
|
|
691
|
+
|
|
692
|
+
if (requestParameters['minSpread'] != null) {
|
|
693
|
+
queryParameters['minSpread'] = requestParameters['minSpread'];
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
if (requestParameters['category'] != null) {
|
|
697
|
+
queryParameters['category'] = requestParameters['category'];
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
if (requestParameters['limit'] != null) {
|
|
701
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
let urlPath = `/api/{exchange}/fetchArbitrage`;
|
|
708
|
+
urlPath = urlPath.replace(`{${"exchange"}}`, encodeURIComponent(String(requestParameters['exchange'])));
|
|
709
|
+
|
|
710
|
+
const response = await this.request({
|
|
711
|
+
path: urlPath,
|
|
712
|
+
method: 'GET',
|
|
713
|
+
headers: headerParameters,
|
|
714
|
+
query: queryParameters,
|
|
715
|
+
}, initOverrides);
|
|
716
|
+
|
|
717
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FetchArbitrage200ResponseFromJSON(jsonValue));
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* Scan for arbitrage opportunities across identity matches.
|
|
722
|
+
* Fetch Arbitrage
|
|
723
|
+
*/
|
|
724
|
+
async fetchArbitrage(requestParameters: FetchArbitrageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FetchArbitrage200Response> {
|
|
725
|
+
const response = await this.fetchArbitrageRaw(requestParameters, initOverrides);
|
|
726
|
+
return await response.value();
|
|
727
|
+
}
|
|
728
|
+
|
|
577
729
|
/**
|
|
578
730
|
* Fetch account balances.
|
|
579
731
|
* Fetch Balance
|
|
@@ -757,6 +909,69 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
757
909
|
return await response.value();
|
|
758
910
|
}
|
|
759
911
|
|
|
912
|
+
/**
|
|
913
|
+
* Fetch cross-venue matches for a given event.
|
|
914
|
+
* Fetch Event Matches
|
|
915
|
+
*/
|
|
916
|
+
async fetchEventMatchesRaw(requestParameters: FetchEventMatchesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FetchEventMatches200Response>> {
|
|
917
|
+
if (requestParameters['exchange'] == null) {
|
|
918
|
+
throw new runtime.RequiredError(
|
|
919
|
+
'exchange',
|
|
920
|
+
'Required parameter "exchange" was null or undefined when calling fetchEventMatches().'
|
|
921
|
+
);
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
const queryParameters: any = {};
|
|
925
|
+
|
|
926
|
+
if (requestParameters['eventId'] != null) {
|
|
927
|
+
queryParameters['eventId'] = requestParameters['eventId'];
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
if (requestParameters['slug'] != null) {
|
|
931
|
+
queryParameters['slug'] = requestParameters['slug'];
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
if (requestParameters['relation'] != null) {
|
|
935
|
+
queryParameters['relation'] = requestParameters['relation'];
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
if (requestParameters['minConfidence'] != null) {
|
|
939
|
+
queryParameters['minConfidence'] = requestParameters['minConfidence'];
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
if (requestParameters['limit'] != null) {
|
|
943
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
if (requestParameters['includePrices'] != null) {
|
|
947
|
+
queryParameters['includePrices'] = requestParameters['includePrices'];
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
951
|
+
|
|
952
|
+
|
|
953
|
+
let urlPath = `/api/{exchange}/fetchEventMatches`;
|
|
954
|
+
urlPath = urlPath.replace(`{${"exchange"}}`, encodeURIComponent(String(requestParameters['exchange'])));
|
|
955
|
+
|
|
956
|
+
const response = await this.request({
|
|
957
|
+
path: urlPath,
|
|
958
|
+
method: 'GET',
|
|
959
|
+
headers: headerParameters,
|
|
960
|
+
query: queryParameters,
|
|
961
|
+
}, initOverrides);
|
|
962
|
+
|
|
963
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FetchEventMatches200ResponseFromJSON(jsonValue));
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
/**
|
|
967
|
+
* Fetch cross-venue matches for a given event.
|
|
968
|
+
* Fetch Event Matches
|
|
969
|
+
*/
|
|
970
|
+
async fetchEventMatches(requestParameters: FetchEventMatchesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FetchEventMatches200Response> {
|
|
971
|
+
const response = await this.fetchEventMatchesRaw(requestParameters, initOverrides);
|
|
972
|
+
return await response.value();
|
|
973
|
+
}
|
|
974
|
+
|
|
760
975
|
/**
|
|
761
976
|
* Fetch events with optional keyword search. Events group related markets together (e.g., \"Who will be Fed Chair?\" contains multiple candidate markets).
|
|
762
977
|
* Fetch Events
|
|
@@ -840,6 +1055,73 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
840
1055
|
return await response.value();
|
|
841
1056
|
}
|
|
842
1057
|
|
|
1058
|
+
/**
|
|
1059
|
+
* Find hedging opportunities via subset/superset matches across venues.
|
|
1060
|
+
* Fetch Hedges
|
|
1061
|
+
*/
|
|
1062
|
+
async fetchHedgesRaw(requestParameters: FetchHedgesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CompareMarketPrices200Response>> {
|
|
1063
|
+
if (requestParameters['exchange'] == null) {
|
|
1064
|
+
throw new runtime.RequiredError(
|
|
1065
|
+
'exchange',
|
|
1066
|
+
'Required parameter "exchange" was null or undefined when calling fetchHedges().'
|
|
1067
|
+
);
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
const queryParameters: any = {};
|
|
1071
|
+
|
|
1072
|
+
if (requestParameters['marketId'] != null) {
|
|
1073
|
+
queryParameters['marketId'] = requestParameters['marketId'];
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
if (requestParameters['slug'] != null) {
|
|
1077
|
+
queryParameters['slug'] = requestParameters['slug'];
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
if (requestParameters['url'] != null) {
|
|
1081
|
+
queryParameters['url'] = requestParameters['url'];
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
if (requestParameters['relation'] != null) {
|
|
1085
|
+
queryParameters['relation'] = requestParameters['relation'];
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
if (requestParameters['minConfidence'] != null) {
|
|
1089
|
+
queryParameters['minConfidence'] = requestParameters['minConfidence'];
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
if (requestParameters['limit'] != null) {
|
|
1093
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
if (requestParameters['includePrices'] != null) {
|
|
1097
|
+
queryParameters['includePrices'] = requestParameters['includePrices'];
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
let urlPath = `/api/{exchange}/fetchHedges`;
|
|
1104
|
+
urlPath = urlPath.replace(`{${"exchange"}}`, encodeURIComponent(String(requestParameters['exchange'])));
|
|
1105
|
+
|
|
1106
|
+
const response = await this.request({
|
|
1107
|
+
path: urlPath,
|
|
1108
|
+
method: 'GET',
|
|
1109
|
+
headers: headerParameters,
|
|
1110
|
+
query: queryParameters,
|
|
1111
|
+
}, initOverrides);
|
|
1112
|
+
|
|
1113
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CompareMarketPrices200ResponseFromJSON(jsonValue));
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
/**
|
|
1117
|
+
* Find hedging opportunities via subset/superset matches across venues.
|
|
1118
|
+
* Fetch Hedges
|
|
1119
|
+
*/
|
|
1120
|
+
async fetchHedges(requestParameters: FetchHedgesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CompareMarketPrices200Response> {
|
|
1121
|
+
const response = await this.fetchHedgesRaw(requestParameters, initOverrides);
|
|
1122
|
+
return await response.value();
|
|
1123
|
+
}
|
|
1124
|
+
|
|
843
1125
|
/**
|
|
844
1126
|
* Fetch a single market by lookup parameters. Convenience wrapper around fetchMarkets() that returns a single result or throws MarketNotFound.
|
|
845
1127
|
* Fetch Market
|
|
@@ -1065,6 +1347,73 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
1065
1347
|
return await response.value();
|
|
1066
1348
|
}
|
|
1067
1349
|
|
|
1350
|
+
/**
|
|
1351
|
+
* Fetch cross-venue matches for a given market.
|
|
1352
|
+
* Fetch Matches
|
|
1353
|
+
*/
|
|
1354
|
+
async fetchMatchesRaw(requestParameters: FetchMatchesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FetchMatches200Response>> {
|
|
1355
|
+
if (requestParameters['exchange'] == null) {
|
|
1356
|
+
throw new runtime.RequiredError(
|
|
1357
|
+
'exchange',
|
|
1358
|
+
'Required parameter "exchange" was null or undefined when calling fetchMatches().'
|
|
1359
|
+
);
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
const queryParameters: any = {};
|
|
1363
|
+
|
|
1364
|
+
if (requestParameters['marketId'] != null) {
|
|
1365
|
+
queryParameters['marketId'] = requestParameters['marketId'];
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
if (requestParameters['slug'] != null) {
|
|
1369
|
+
queryParameters['slug'] = requestParameters['slug'];
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
if (requestParameters['url'] != null) {
|
|
1373
|
+
queryParameters['url'] = requestParameters['url'];
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
if (requestParameters['relation'] != null) {
|
|
1377
|
+
queryParameters['relation'] = requestParameters['relation'];
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
if (requestParameters['minConfidence'] != null) {
|
|
1381
|
+
queryParameters['minConfidence'] = requestParameters['minConfidence'];
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
if (requestParameters['limit'] != null) {
|
|
1385
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
if (requestParameters['includePrices'] != null) {
|
|
1389
|
+
queryParameters['includePrices'] = requestParameters['includePrices'];
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1393
|
+
|
|
1394
|
+
|
|
1395
|
+
let urlPath = `/api/{exchange}/fetchMatches`;
|
|
1396
|
+
urlPath = urlPath.replace(`{${"exchange"}}`, encodeURIComponent(String(requestParameters['exchange'])));
|
|
1397
|
+
|
|
1398
|
+
const response = await this.request({
|
|
1399
|
+
path: urlPath,
|
|
1400
|
+
method: 'GET',
|
|
1401
|
+
headers: headerParameters,
|
|
1402
|
+
query: queryParameters,
|
|
1403
|
+
}, initOverrides);
|
|
1404
|
+
|
|
1405
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FetchMatches200ResponseFromJSON(jsonValue));
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
/**
|
|
1409
|
+
* Fetch cross-venue matches for a given market.
|
|
1410
|
+
* Fetch Matches
|
|
1411
|
+
*/
|
|
1412
|
+
async fetchMatches(requestParameters: FetchMatchesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FetchMatches200Response> {
|
|
1413
|
+
const response = await this.fetchMatchesRaw(requestParameters, initOverrides);
|
|
1414
|
+
return await response.value();
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1068
1417
|
/**
|
|
1069
1418
|
* Fetch My Trades
|
|
1070
1419
|
*/
|
|
@@ -1947,7 +2296,8 @@ export const BuildOrderOperationExchangeEnum = {
|
|
|
1947
2296
|
Opinion: 'opinion',
|
|
1948
2297
|
Metaculus: 'metaculus',
|
|
1949
2298
|
Smarkets: 'smarkets',
|
|
1950
|
-
PolymarketUs: 'polymarket_us'
|
|
2299
|
+
PolymarketUs: 'polymarket_us',
|
|
2300
|
+
Router: 'router'
|
|
1951
2301
|
} as const;
|
|
1952
2302
|
export type BuildOrderOperationExchangeEnum = typeof BuildOrderOperationExchangeEnum[keyof typeof BuildOrderOperationExchangeEnum];
|
|
1953
2303
|
/**
|
|
@@ -1964,7 +2314,8 @@ export const CancelOrderOperationExchangeEnum = {
|
|
|
1964
2314
|
Opinion: 'opinion',
|
|
1965
2315
|
Metaculus: 'metaculus',
|
|
1966
2316
|
Smarkets: 'smarkets',
|
|
1967
|
-
PolymarketUs: 'polymarket_us'
|
|
2317
|
+
PolymarketUs: 'polymarket_us',
|
|
2318
|
+
Router: 'router'
|
|
1968
2319
|
} as const;
|
|
1969
2320
|
export type CancelOrderOperationExchangeEnum = typeof CancelOrderOperationExchangeEnum[keyof typeof CancelOrderOperationExchangeEnum];
|
|
1970
2321
|
/**
|
|
@@ -1981,9 +2332,28 @@ export const CloseOperationExchangeEnum = {
|
|
|
1981
2332
|
Opinion: 'opinion',
|
|
1982
2333
|
Metaculus: 'metaculus',
|
|
1983
2334
|
Smarkets: 'smarkets',
|
|
1984
|
-
PolymarketUs: 'polymarket_us'
|
|
2335
|
+
PolymarketUs: 'polymarket_us',
|
|
2336
|
+
Router: 'router'
|
|
1985
2337
|
} as const;
|
|
1986
2338
|
export type CloseOperationExchangeEnum = typeof CloseOperationExchangeEnum[keyof typeof CloseOperationExchangeEnum];
|
|
2339
|
+
/**
|
|
2340
|
+
* @export
|
|
2341
|
+
*/
|
|
2342
|
+
export const CompareMarketPricesOperationExchangeEnum = {
|
|
2343
|
+
Polymarket: 'polymarket',
|
|
2344
|
+
Kalshi: 'kalshi',
|
|
2345
|
+
KalshiDemo: 'kalshi-demo',
|
|
2346
|
+
Limitless: 'limitless',
|
|
2347
|
+
Probable: 'probable',
|
|
2348
|
+
Baozi: 'baozi',
|
|
2349
|
+
Myriad: 'myriad',
|
|
2350
|
+
Opinion: 'opinion',
|
|
2351
|
+
Metaculus: 'metaculus',
|
|
2352
|
+
Smarkets: 'smarkets',
|
|
2353
|
+
PolymarketUs: 'polymarket_us',
|
|
2354
|
+
Router: 'router'
|
|
2355
|
+
} as const;
|
|
2356
|
+
export type CompareMarketPricesOperationExchangeEnum = typeof CompareMarketPricesOperationExchangeEnum[keyof typeof CompareMarketPricesOperationExchangeEnum];
|
|
1987
2357
|
/**
|
|
1988
2358
|
* @export
|
|
1989
2359
|
*/
|
|
@@ -1998,7 +2368,8 @@ export const CreateOrderOperationExchangeEnum = {
|
|
|
1998
2368
|
Opinion: 'opinion',
|
|
1999
2369
|
Metaculus: 'metaculus',
|
|
2000
2370
|
Smarkets: 'smarkets',
|
|
2001
|
-
PolymarketUs: 'polymarket_us'
|
|
2371
|
+
PolymarketUs: 'polymarket_us',
|
|
2372
|
+
Router: 'router'
|
|
2002
2373
|
} as const;
|
|
2003
2374
|
export type CreateOrderOperationExchangeEnum = typeof CreateOrderOperationExchangeEnum[keyof typeof CreateOrderOperationExchangeEnum];
|
|
2004
2375
|
/**
|
|
@@ -2015,9 +2386,28 @@ export const FetchAllOrdersExchangeEnum = {
|
|
|
2015
2386
|
Opinion: 'opinion',
|
|
2016
2387
|
Metaculus: 'metaculus',
|
|
2017
2388
|
Smarkets: 'smarkets',
|
|
2018
|
-
PolymarketUs: 'polymarket_us'
|
|
2389
|
+
PolymarketUs: 'polymarket_us',
|
|
2390
|
+
Router: 'router'
|
|
2019
2391
|
} as const;
|
|
2020
2392
|
export type FetchAllOrdersExchangeEnum = typeof FetchAllOrdersExchangeEnum[keyof typeof FetchAllOrdersExchangeEnum];
|
|
2393
|
+
/**
|
|
2394
|
+
* @export
|
|
2395
|
+
*/
|
|
2396
|
+
export const FetchArbitrageExchangeEnum = {
|
|
2397
|
+
Polymarket: 'polymarket',
|
|
2398
|
+
Kalshi: 'kalshi',
|
|
2399
|
+
KalshiDemo: 'kalshi-demo',
|
|
2400
|
+
Limitless: 'limitless',
|
|
2401
|
+
Probable: 'probable',
|
|
2402
|
+
Baozi: 'baozi',
|
|
2403
|
+
Myriad: 'myriad',
|
|
2404
|
+
Opinion: 'opinion',
|
|
2405
|
+
Metaculus: 'metaculus',
|
|
2406
|
+
Smarkets: 'smarkets',
|
|
2407
|
+
PolymarketUs: 'polymarket_us',
|
|
2408
|
+
Router: 'router'
|
|
2409
|
+
} as const;
|
|
2410
|
+
export type FetchArbitrageExchangeEnum = typeof FetchArbitrageExchangeEnum[keyof typeof FetchArbitrageExchangeEnum];
|
|
2021
2411
|
/**
|
|
2022
2412
|
* @export
|
|
2023
2413
|
*/
|
|
@@ -2032,7 +2422,8 @@ export const FetchBalanceExchangeEnum = {
|
|
|
2032
2422
|
Opinion: 'opinion',
|
|
2033
2423
|
Metaculus: 'metaculus',
|
|
2034
2424
|
Smarkets: 'smarkets',
|
|
2035
|
-
PolymarketUs: 'polymarket_us'
|
|
2425
|
+
PolymarketUs: 'polymarket_us',
|
|
2426
|
+
Router: 'router'
|
|
2036
2427
|
} as const;
|
|
2037
2428
|
export type FetchBalanceExchangeEnum = typeof FetchBalanceExchangeEnum[keyof typeof FetchBalanceExchangeEnum];
|
|
2038
2429
|
/**
|
|
@@ -2049,7 +2440,8 @@ export const FetchClosedOrdersExchangeEnum = {
|
|
|
2049
2440
|
Opinion: 'opinion',
|
|
2050
2441
|
Metaculus: 'metaculus',
|
|
2051
2442
|
Smarkets: 'smarkets',
|
|
2052
|
-
PolymarketUs: 'polymarket_us'
|
|
2443
|
+
PolymarketUs: 'polymarket_us',
|
|
2444
|
+
Router: 'router'
|
|
2053
2445
|
} as const;
|
|
2054
2446
|
export type FetchClosedOrdersExchangeEnum = typeof FetchClosedOrdersExchangeEnum[keyof typeof FetchClosedOrdersExchangeEnum];
|
|
2055
2447
|
/**
|
|
@@ -2066,7 +2458,8 @@ export const FetchEventExchangeEnum = {
|
|
|
2066
2458
|
Opinion: 'opinion',
|
|
2067
2459
|
Metaculus: 'metaculus',
|
|
2068
2460
|
Smarkets: 'smarkets',
|
|
2069
|
-
PolymarketUs: 'polymarket_us'
|
|
2461
|
+
PolymarketUs: 'polymarket_us',
|
|
2462
|
+
Router: 'router'
|
|
2070
2463
|
} as const;
|
|
2071
2464
|
export type FetchEventExchangeEnum = typeof FetchEventExchangeEnum[keyof typeof FetchEventExchangeEnum];
|
|
2072
2465
|
/**
|
|
@@ -2097,6 +2490,35 @@ export const FetchEventSearchInEnum = {
|
|
|
2097
2490
|
Both: 'both'
|
|
2098
2491
|
} as const;
|
|
2099
2492
|
export type FetchEventSearchInEnum = typeof FetchEventSearchInEnum[keyof typeof FetchEventSearchInEnum];
|
|
2493
|
+
/**
|
|
2494
|
+
* @export
|
|
2495
|
+
*/
|
|
2496
|
+
export const FetchEventMatchesExchangeEnum = {
|
|
2497
|
+
Polymarket: 'polymarket',
|
|
2498
|
+
Kalshi: 'kalshi',
|
|
2499
|
+
KalshiDemo: 'kalshi-demo',
|
|
2500
|
+
Limitless: 'limitless',
|
|
2501
|
+
Probable: 'probable',
|
|
2502
|
+
Baozi: 'baozi',
|
|
2503
|
+
Myriad: 'myriad',
|
|
2504
|
+
Opinion: 'opinion',
|
|
2505
|
+
Metaculus: 'metaculus',
|
|
2506
|
+
Smarkets: 'smarkets',
|
|
2507
|
+
PolymarketUs: 'polymarket_us',
|
|
2508
|
+
Router: 'router'
|
|
2509
|
+
} as const;
|
|
2510
|
+
export type FetchEventMatchesExchangeEnum = typeof FetchEventMatchesExchangeEnum[keyof typeof FetchEventMatchesExchangeEnum];
|
|
2511
|
+
/**
|
|
2512
|
+
* @export
|
|
2513
|
+
*/
|
|
2514
|
+
export const FetchEventMatchesRelationEnum = {
|
|
2515
|
+
Identity: 'identity',
|
|
2516
|
+
Subset: 'subset',
|
|
2517
|
+
Superset: 'superset',
|
|
2518
|
+
Overlap: 'overlap',
|
|
2519
|
+
Disjoint: 'disjoint'
|
|
2520
|
+
} as const;
|
|
2521
|
+
export type FetchEventMatchesRelationEnum = typeof FetchEventMatchesRelationEnum[keyof typeof FetchEventMatchesRelationEnum];
|
|
2100
2522
|
/**
|
|
2101
2523
|
* @export
|
|
2102
2524
|
*/
|
|
@@ -2111,7 +2533,8 @@ export const FetchEventsExchangeEnum = {
|
|
|
2111
2533
|
Opinion: 'opinion',
|
|
2112
2534
|
Metaculus: 'metaculus',
|
|
2113
2535
|
Smarkets: 'smarkets',
|
|
2114
|
-
PolymarketUs: 'polymarket_us'
|
|
2536
|
+
PolymarketUs: 'polymarket_us',
|
|
2537
|
+
Router: 'router'
|
|
2115
2538
|
} as const;
|
|
2116
2539
|
export type FetchEventsExchangeEnum = typeof FetchEventsExchangeEnum[keyof typeof FetchEventsExchangeEnum];
|
|
2117
2540
|
/**
|
|
@@ -2142,6 +2565,35 @@ export const FetchEventsSearchInEnum = {
|
|
|
2142
2565
|
Both: 'both'
|
|
2143
2566
|
} as const;
|
|
2144
2567
|
export type FetchEventsSearchInEnum = typeof FetchEventsSearchInEnum[keyof typeof FetchEventsSearchInEnum];
|
|
2568
|
+
/**
|
|
2569
|
+
* @export
|
|
2570
|
+
*/
|
|
2571
|
+
export const FetchHedgesExchangeEnum = {
|
|
2572
|
+
Polymarket: 'polymarket',
|
|
2573
|
+
Kalshi: 'kalshi',
|
|
2574
|
+
KalshiDemo: 'kalshi-demo',
|
|
2575
|
+
Limitless: 'limitless',
|
|
2576
|
+
Probable: 'probable',
|
|
2577
|
+
Baozi: 'baozi',
|
|
2578
|
+
Myriad: 'myriad',
|
|
2579
|
+
Opinion: 'opinion',
|
|
2580
|
+
Metaculus: 'metaculus',
|
|
2581
|
+
Smarkets: 'smarkets',
|
|
2582
|
+
PolymarketUs: 'polymarket_us',
|
|
2583
|
+
Router: 'router'
|
|
2584
|
+
} as const;
|
|
2585
|
+
export type FetchHedgesExchangeEnum = typeof FetchHedgesExchangeEnum[keyof typeof FetchHedgesExchangeEnum];
|
|
2586
|
+
/**
|
|
2587
|
+
* @export
|
|
2588
|
+
*/
|
|
2589
|
+
export const FetchHedgesRelationEnum = {
|
|
2590
|
+
Identity: 'identity',
|
|
2591
|
+
Subset: 'subset',
|
|
2592
|
+
Superset: 'superset',
|
|
2593
|
+
Overlap: 'overlap',
|
|
2594
|
+
Disjoint: 'disjoint'
|
|
2595
|
+
} as const;
|
|
2596
|
+
export type FetchHedgesRelationEnum = typeof FetchHedgesRelationEnum[keyof typeof FetchHedgesRelationEnum];
|
|
2145
2597
|
/**
|
|
2146
2598
|
* @export
|
|
2147
2599
|
*/
|
|
@@ -2156,7 +2608,8 @@ export const FetchMarketExchangeEnum = {
|
|
|
2156
2608
|
Opinion: 'opinion',
|
|
2157
2609
|
Metaculus: 'metaculus',
|
|
2158
2610
|
Smarkets: 'smarkets',
|
|
2159
|
-
PolymarketUs: 'polymarket_us'
|
|
2611
|
+
PolymarketUs: 'polymarket_us',
|
|
2612
|
+
Router: 'router'
|
|
2160
2613
|
} as const;
|
|
2161
2614
|
export type FetchMarketExchangeEnum = typeof FetchMarketExchangeEnum[keyof typeof FetchMarketExchangeEnum];
|
|
2162
2615
|
/**
|
|
@@ -2201,7 +2654,8 @@ export const FetchMarketsExchangeEnum = {
|
|
|
2201
2654
|
Opinion: 'opinion',
|
|
2202
2655
|
Metaculus: 'metaculus',
|
|
2203
2656
|
Smarkets: 'smarkets',
|
|
2204
|
-
PolymarketUs: 'polymarket_us'
|
|
2657
|
+
PolymarketUs: 'polymarket_us',
|
|
2658
|
+
Router: 'router'
|
|
2205
2659
|
} as const;
|
|
2206
2660
|
export type FetchMarketsExchangeEnum = typeof FetchMarketsExchangeEnum[keyof typeof FetchMarketsExchangeEnum];
|
|
2207
2661
|
/**
|
|
@@ -2246,9 +2700,39 @@ export const FetchMarketsPaginatedExchangeEnum = {
|
|
|
2246
2700
|
Opinion: 'opinion',
|
|
2247
2701
|
Metaculus: 'metaculus',
|
|
2248
2702
|
Smarkets: 'smarkets',
|
|
2249
|
-
PolymarketUs: 'polymarket_us'
|
|
2703
|
+
PolymarketUs: 'polymarket_us',
|
|
2704
|
+
Router: 'router'
|
|
2250
2705
|
} as const;
|
|
2251
2706
|
export type FetchMarketsPaginatedExchangeEnum = typeof FetchMarketsPaginatedExchangeEnum[keyof typeof FetchMarketsPaginatedExchangeEnum];
|
|
2707
|
+
/**
|
|
2708
|
+
* @export
|
|
2709
|
+
*/
|
|
2710
|
+
export const FetchMatchesExchangeEnum = {
|
|
2711
|
+
Polymarket: 'polymarket',
|
|
2712
|
+
Kalshi: 'kalshi',
|
|
2713
|
+
KalshiDemo: 'kalshi-demo',
|
|
2714
|
+
Limitless: 'limitless',
|
|
2715
|
+
Probable: 'probable',
|
|
2716
|
+
Baozi: 'baozi',
|
|
2717
|
+
Myriad: 'myriad',
|
|
2718
|
+
Opinion: 'opinion',
|
|
2719
|
+
Metaculus: 'metaculus',
|
|
2720
|
+
Smarkets: 'smarkets',
|
|
2721
|
+
PolymarketUs: 'polymarket_us',
|
|
2722
|
+
Router: 'router'
|
|
2723
|
+
} as const;
|
|
2724
|
+
export type FetchMatchesExchangeEnum = typeof FetchMatchesExchangeEnum[keyof typeof FetchMatchesExchangeEnum];
|
|
2725
|
+
/**
|
|
2726
|
+
* @export
|
|
2727
|
+
*/
|
|
2728
|
+
export const FetchMatchesRelationEnum = {
|
|
2729
|
+
Identity: 'identity',
|
|
2730
|
+
Subset: 'subset',
|
|
2731
|
+
Superset: 'superset',
|
|
2732
|
+
Overlap: 'overlap',
|
|
2733
|
+
Disjoint: 'disjoint'
|
|
2734
|
+
} as const;
|
|
2735
|
+
export type FetchMatchesRelationEnum = typeof FetchMatchesRelationEnum[keyof typeof FetchMatchesRelationEnum];
|
|
2252
2736
|
/**
|
|
2253
2737
|
* @export
|
|
2254
2738
|
*/
|
|
@@ -2263,7 +2747,8 @@ export const FetchMyTradesExchangeEnum = {
|
|
|
2263
2747
|
Opinion: 'opinion',
|
|
2264
2748
|
Metaculus: 'metaculus',
|
|
2265
2749
|
Smarkets: 'smarkets',
|
|
2266
|
-
PolymarketUs: 'polymarket_us'
|
|
2750
|
+
PolymarketUs: 'polymarket_us',
|
|
2751
|
+
Router: 'router'
|
|
2267
2752
|
} as const;
|
|
2268
2753
|
export type FetchMyTradesExchangeEnum = typeof FetchMyTradesExchangeEnum[keyof typeof FetchMyTradesExchangeEnum];
|
|
2269
2754
|
/**
|
|
@@ -2280,7 +2765,8 @@ export const FetchOHLCVExchangeEnum = {
|
|
|
2280
2765
|
Opinion: 'opinion',
|
|
2281
2766
|
Metaculus: 'metaculus',
|
|
2282
2767
|
Smarkets: 'smarkets',
|
|
2283
|
-
PolymarketUs: 'polymarket_us'
|
|
2768
|
+
PolymarketUs: 'polymarket_us',
|
|
2769
|
+
Router: 'router'
|
|
2284
2770
|
} as const;
|
|
2285
2771
|
export type FetchOHLCVExchangeEnum = typeof FetchOHLCVExchangeEnum[keyof typeof FetchOHLCVExchangeEnum];
|
|
2286
2772
|
/**
|
|
@@ -2309,7 +2795,8 @@ export const FetchOpenOrdersExchangeEnum = {
|
|
|
2309
2795
|
Opinion: 'opinion',
|
|
2310
2796
|
Metaculus: 'metaculus',
|
|
2311
2797
|
Smarkets: 'smarkets',
|
|
2312
|
-
PolymarketUs: 'polymarket_us'
|
|
2798
|
+
PolymarketUs: 'polymarket_us',
|
|
2799
|
+
Router: 'router'
|
|
2313
2800
|
} as const;
|
|
2314
2801
|
export type FetchOpenOrdersExchangeEnum = typeof FetchOpenOrdersExchangeEnum[keyof typeof FetchOpenOrdersExchangeEnum];
|
|
2315
2802
|
/**
|
|
@@ -2326,7 +2813,8 @@ export const FetchOrderExchangeEnum = {
|
|
|
2326
2813
|
Opinion: 'opinion',
|
|
2327
2814
|
Metaculus: 'metaculus',
|
|
2328
2815
|
Smarkets: 'smarkets',
|
|
2329
|
-
PolymarketUs: 'polymarket_us'
|
|
2816
|
+
PolymarketUs: 'polymarket_us',
|
|
2817
|
+
Router: 'router'
|
|
2330
2818
|
} as const;
|
|
2331
2819
|
export type FetchOrderExchangeEnum = typeof FetchOrderExchangeEnum[keyof typeof FetchOrderExchangeEnum];
|
|
2332
2820
|
/**
|
|
@@ -2343,7 +2831,8 @@ export const FetchOrderBookExchangeEnum = {
|
|
|
2343
2831
|
Opinion: 'opinion',
|
|
2344
2832
|
Metaculus: 'metaculus',
|
|
2345
2833
|
Smarkets: 'smarkets',
|
|
2346
|
-
PolymarketUs: 'polymarket_us'
|
|
2834
|
+
PolymarketUs: 'polymarket_us',
|
|
2835
|
+
Router: 'router'
|
|
2347
2836
|
} as const;
|
|
2348
2837
|
export type FetchOrderBookExchangeEnum = typeof FetchOrderBookExchangeEnum[keyof typeof FetchOrderBookExchangeEnum];
|
|
2349
2838
|
/**
|
|
@@ -2360,7 +2849,8 @@ export const FetchPositionsExchangeEnum = {
|
|
|
2360
2849
|
Opinion: 'opinion',
|
|
2361
2850
|
Metaculus: 'metaculus',
|
|
2362
2851
|
Smarkets: 'smarkets',
|
|
2363
|
-
PolymarketUs: 'polymarket_us'
|
|
2852
|
+
PolymarketUs: 'polymarket_us',
|
|
2853
|
+
Router: 'router'
|
|
2364
2854
|
} as const;
|
|
2365
2855
|
export type FetchPositionsExchangeEnum = typeof FetchPositionsExchangeEnum[keyof typeof FetchPositionsExchangeEnum];
|
|
2366
2856
|
/**
|
|
@@ -2377,7 +2867,8 @@ export const FetchTradesExchangeEnum = {
|
|
|
2377
2867
|
Opinion: 'opinion',
|
|
2378
2868
|
Metaculus: 'metaculus',
|
|
2379
2869
|
Smarkets: 'smarkets',
|
|
2380
|
-
PolymarketUs: 'polymarket_us'
|
|
2870
|
+
PolymarketUs: 'polymarket_us',
|
|
2871
|
+
Router: 'router'
|
|
2381
2872
|
} as const;
|
|
2382
2873
|
export type FetchTradesExchangeEnum = typeof FetchTradesExchangeEnum[keyof typeof FetchTradesExchangeEnum];
|
|
2383
2874
|
/**
|
|
@@ -2394,7 +2885,8 @@ export const FilterEventsOperationExchangeEnum = {
|
|
|
2394
2885
|
Opinion: 'opinion',
|
|
2395
2886
|
Metaculus: 'metaculus',
|
|
2396
2887
|
Smarkets: 'smarkets',
|
|
2397
|
-
PolymarketUs: 'polymarket_us'
|
|
2888
|
+
PolymarketUs: 'polymarket_us',
|
|
2889
|
+
Router: 'router'
|
|
2398
2890
|
} as const;
|
|
2399
2891
|
export type FilterEventsOperationExchangeEnum = typeof FilterEventsOperationExchangeEnum[keyof typeof FilterEventsOperationExchangeEnum];
|
|
2400
2892
|
/**
|
|
@@ -2411,7 +2903,8 @@ export const FilterMarketsOperationExchangeEnum = {
|
|
|
2411
2903
|
Opinion: 'opinion',
|
|
2412
2904
|
Metaculus: 'metaculus',
|
|
2413
2905
|
Smarkets: 'smarkets',
|
|
2414
|
-
PolymarketUs: 'polymarket_us'
|
|
2906
|
+
PolymarketUs: 'polymarket_us',
|
|
2907
|
+
Router: 'router'
|
|
2415
2908
|
} as const;
|
|
2416
2909
|
export type FilterMarketsOperationExchangeEnum = typeof FilterMarketsOperationExchangeEnum[keyof typeof FilterMarketsOperationExchangeEnum];
|
|
2417
2910
|
/**
|
|
@@ -2428,7 +2921,8 @@ export const GetExecutionPriceOperationExchangeEnum = {
|
|
|
2428
2921
|
Opinion: 'opinion',
|
|
2429
2922
|
Metaculus: 'metaculus',
|
|
2430
2923
|
Smarkets: 'smarkets',
|
|
2431
|
-
PolymarketUs: 'polymarket_us'
|
|
2924
|
+
PolymarketUs: 'polymarket_us',
|
|
2925
|
+
Router: 'router'
|
|
2432
2926
|
} as const;
|
|
2433
2927
|
export type GetExecutionPriceOperationExchangeEnum = typeof GetExecutionPriceOperationExchangeEnum[keyof typeof GetExecutionPriceOperationExchangeEnum];
|
|
2434
2928
|
/**
|
|
@@ -2445,7 +2939,8 @@ export const GetExecutionPriceDetailedOperationExchangeEnum = {
|
|
|
2445
2939
|
Opinion: 'opinion',
|
|
2446
2940
|
Metaculus: 'metaculus',
|
|
2447
2941
|
Smarkets: 'smarkets',
|
|
2448
|
-
PolymarketUs: 'polymarket_us'
|
|
2942
|
+
PolymarketUs: 'polymarket_us',
|
|
2943
|
+
Router: 'router'
|
|
2449
2944
|
} as const;
|
|
2450
2945
|
export type GetExecutionPriceDetailedOperationExchangeEnum = typeof GetExecutionPriceDetailedOperationExchangeEnum[keyof typeof GetExecutionPriceDetailedOperationExchangeEnum];
|
|
2451
2946
|
/**
|
|
@@ -2462,7 +2957,8 @@ export const LoadMarketsOperationExchangeEnum = {
|
|
|
2462
2957
|
Opinion: 'opinion',
|
|
2463
2958
|
Metaculus: 'metaculus',
|
|
2464
2959
|
Smarkets: 'smarkets',
|
|
2465
|
-
PolymarketUs: 'polymarket_us'
|
|
2960
|
+
PolymarketUs: 'polymarket_us',
|
|
2961
|
+
Router: 'router'
|
|
2466
2962
|
} as const;
|
|
2467
2963
|
export type LoadMarketsOperationExchangeEnum = typeof LoadMarketsOperationExchangeEnum[keyof typeof LoadMarketsOperationExchangeEnum];
|
|
2468
2964
|
/**
|
|
@@ -2479,7 +2975,8 @@ export const SubmitOrderOperationExchangeEnum = {
|
|
|
2479
2975
|
Opinion: 'opinion',
|
|
2480
2976
|
Metaculus: 'metaculus',
|
|
2481
2977
|
Smarkets: 'smarkets',
|
|
2482
|
-
PolymarketUs: 'polymarket_us'
|
|
2978
|
+
PolymarketUs: 'polymarket_us',
|
|
2979
|
+
Router: 'router'
|
|
2483
2980
|
} as const;
|
|
2484
2981
|
export type SubmitOrderOperationExchangeEnum = typeof SubmitOrderOperationExchangeEnum[keyof typeof SubmitOrderOperationExchangeEnum];
|
|
2485
2982
|
/**
|
|
@@ -2496,7 +2993,8 @@ export const UnwatchAddressOperationExchangeEnum = {
|
|
|
2496
2993
|
Opinion: 'opinion',
|
|
2497
2994
|
Metaculus: 'metaculus',
|
|
2498
2995
|
Smarkets: 'smarkets',
|
|
2499
|
-
PolymarketUs: 'polymarket_us'
|
|
2996
|
+
PolymarketUs: 'polymarket_us',
|
|
2997
|
+
Router: 'router'
|
|
2500
2998
|
} as const;
|
|
2501
2999
|
export type UnwatchAddressOperationExchangeEnum = typeof UnwatchAddressOperationExchangeEnum[keyof typeof UnwatchAddressOperationExchangeEnum];
|
|
2502
3000
|
/**
|
|
@@ -2513,7 +3011,8 @@ export const UnwatchOrderBookOperationExchangeEnum = {
|
|
|
2513
3011
|
Opinion: 'opinion',
|
|
2514
3012
|
Metaculus: 'metaculus',
|
|
2515
3013
|
Smarkets: 'smarkets',
|
|
2516
|
-
PolymarketUs: 'polymarket_us'
|
|
3014
|
+
PolymarketUs: 'polymarket_us',
|
|
3015
|
+
Router: 'router'
|
|
2517
3016
|
} as const;
|
|
2518
3017
|
export type UnwatchOrderBookOperationExchangeEnum = typeof UnwatchOrderBookOperationExchangeEnum[keyof typeof UnwatchOrderBookOperationExchangeEnum];
|
|
2519
3018
|
/**
|
|
@@ -2530,7 +3029,8 @@ export const WatchAddressOperationExchangeEnum = {
|
|
|
2530
3029
|
Opinion: 'opinion',
|
|
2531
3030
|
Metaculus: 'metaculus',
|
|
2532
3031
|
Smarkets: 'smarkets',
|
|
2533
|
-
PolymarketUs: 'polymarket_us'
|
|
3032
|
+
PolymarketUs: 'polymarket_us',
|
|
3033
|
+
Router: 'router'
|
|
2534
3034
|
} as const;
|
|
2535
3035
|
export type WatchAddressOperationExchangeEnum = typeof WatchAddressOperationExchangeEnum[keyof typeof WatchAddressOperationExchangeEnum];
|
|
2536
3036
|
/**
|
|
@@ -2547,7 +3047,8 @@ export const WatchOrderBookOperationExchangeEnum = {
|
|
|
2547
3047
|
Opinion: 'opinion',
|
|
2548
3048
|
Metaculus: 'metaculus',
|
|
2549
3049
|
Smarkets: 'smarkets',
|
|
2550
|
-
PolymarketUs: 'polymarket_us'
|
|
3050
|
+
PolymarketUs: 'polymarket_us',
|
|
3051
|
+
Router: 'router'
|
|
2551
3052
|
} as const;
|
|
2552
3053
|
export type WatchOrderBookOperationExchangeEnum = typeof WatchOrderBookOperationExchangeEnum[keyof typeof WatchOrderBookOperationExchangeEnum];
|
|
2553
3054
|
/**
|
|
@@ -2564,6 +3065,7 @@ export const WatchTradesOperationExchangeEnum = {
|
|
|
2564
3065
|
Opinion: 'opinion',
|
|
2565
3066
|
Metaculus: 'metaculus',
|
|
2566
3067
|
Smarkets: 'smarkets',
|
|
2567
|
-
PolymarketUs: 'polymarket_us'
|
|
3068
|
+
PolymarketUs: 'polymarket_us',
|
|
3069
|
+
Router: 'router'
|
|
2568
3070
|
} as const;
|
|
2569
3071
|
export type WatchTradesOperationExchangeEnum = typeof WatchTradesOperationExchangeEnum[keyof typeof WatchTradesOperationExchangeEnum];
|