pmxtjs 2.37.9 → 2.37.12
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 +33 -91
- package/dist/esm/generated/src/apis/DefaultApi.js +48 -91
- package/dist/esm/generated/src/models/ExchangeCredentials.d.ts +6 -0
- package/dist/esm/generated/src/models/ExchangeCredentials.js +2 -0
- package/dist/esm/generated/src/models/TestDummyMethod200Response.d.ts +45 -0
- package/dist/esm/generated/src/models/TestDummyMethod200Response.js +46 -0
- package/dist/esm/generated/src/models/TestDummyMethodRequest.d.ts +39 -0
- package/dist/esm/generated/src/models/TestDummyMethodRequest.js +44 -0
- package/dist/esm/generated/src/models/index.d.ts +2 -0
- package/dist/esm/generated/src/models/index.js +2 -0
- package/dist/esm/pmxt/router.js +1 -1
- package/dist/generated/src/apis/DefaultApi.d.ts +33 -91
- package/dist/generated/src/apis/DefaultApi.js +48 -91
- package/dist/generated/src/models/ExchangeCredentials.d.ts +6 -0
- package/dist/generated/src/models/ExchangeCredentials.js +2 -0
- package/dist/generated/src/models/TestDummyMethod200Response.d.ts +45 -0
- package/dist/generated/src/models/TestDummyMethod200Response.js +53 -0
- package/dist/generated/src/models/TestDummyMethodRequest.d.ts +39 -0
- package/dist/generated/src/models/TestDummyMethodRequest.js +51 -0
- package/dist/generated/src/models/index.d.ts +2 -0
- package/dist/generated/src/models/index.js +2 -0
- package/dist/pmxt/router.js +1 -1
- package/generated/.openapi-generator/FILES +4 -0
- package/generated/docs/DefaultApi.md +87 -18
- package/generated/docs/ExchangeCredentials.md +2 -0
- package/generated/docs/TestDummyMethod200Response.md +38 -0
- package/generated/docs/TestDummyMethodRequest.md +36 -0
- package/generated/package.json +1 -1
- package/generated/src/apis/DefaultApi.ts +71 -90
- package/generated/src/models/ExchangeCredentials.ts +8 -0
- package/generated/src/models/TestDummyMethod200Response.ts +89 -0
- package/generated/src/models/TestDummyMethodRequest.ts +81 -0
- package/generated/src/models/index.ts +2 -0
- package/package.json +2 -2
- package/pmxt/router.ts +1 -1
package/dist/esm/pmxt/router.js
CHANGED
|
@@ -118,7 +118,7 @@ export class Router extends Exchange {
|
|
|
118
118
|
if (params.includePrices)
|
|
119
119
|
query.includePrices = true;
|
|
120
120
|
try {
|
|
121
|
-
const json = await this.sidecarReadRequest('
|
|
121
|
+
const json = await this.sidecarReadRequest('fetchMarketMatches', query, [query]);
|
|
122
122
|
const data = this.handleResponse(json);
|
|
123
123
|
if (!data)
|
|
124
124
|
return [];
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BaseResponse, BuildOrder200Response, BuildOrderRequest, CancelOrderRequest, CloseRequest, CompareMarketPrices200Response, CompareMarketPricesRequest, CreateOrder200Response, CreateOrderRequest, EventFilterCriteria, FetchArbitrage200Response, FetchBalance200Response, FetchEvent200Response, FetchEventMatches200Response, FetchEvents200Response, FetchEventsPaginated200Response, FetchMarket200Response, FetchMarketMatches200Response, FetchMarkets200Response, FetchMarketsPaginated200Response, FetchMatchedMarkets200Response, FetchMyTrades200Response, FetchOHLCV200Response, FetchOpenOrders200Response, FetchOrderBook200Response, FetchPositions200Response, FetchTrades200Response, FilterEventsRequest, FilterMarketsRequest, GetExecutionPrice200Response, GetExecutionPriceDetailed200Response, GetExecutionPriceDetailedRequest, GetExecutionPriceRequest, HealthCheck200Response, LoadMarkets200Response, LoadMarketsRequest, MarketFilterCriteria, SubmitOrderRequest, UnifiedEvent, UnifiedMarket, UnwatchAddressRequest, UnwatchOrderBookRequest, WatchAddress200Response, WatchAddressRequest, WatchOrderBookRequest, WatchOrderBooks200Response, WatchOrderBooksRequest, WatchTradesRequest } from '../models/index';
|
|
13
|
+
import type { BaseResponse, BuildOrder200Response, BuildOrderRequest, CancelOrderRequest, CloseRequest, CompareMarketPrices200Response, CompareMarketPricesRequest, CreateOrder200Response, CreateOrderRequest, EventFilterCriteria, FetchArbitrage200Response, FetchBalance200Response, FetchEvent200Response, FetchEventMatches200Response, FetchEvents200Response, FetchEventsPaginated200Response, FetchMarket200Response, FetchMarketMatches200Response, FetchMarkets200Response, FetchMarketsPaginated200Response, FetchMatchedMarkets200Response, FetchMyTrades200Response, FetchOHLCV200Response, FetchOpenOrders200Response, FetchOrderBook200Response, FetchPositions200Response, FetchTrades200Response, FilterEventsRequest, FilterMarketsRequest, GetExecutionPrice200Response, GetExecutionPriceDetailed200Response, GetExecutionPriceDetailedRequest, GetExecutionPriceRequest, HealthCheck200Response, LoadMarkets200Response, LoadMarketsRequest, MarketFilterCriteria, SubmitOrderRequest, TestDummyMethod200Response, TestDummyMethodRequest, UnifiedEvent, UnifiedMarket, UnwatchAddressRequest, UnwatchOrderBookRequest, WatchAddress200Response, WatchAddressRequest, WatchOrderBookRequest, WatchOrderBooks200Response, WatchOrderBooksRequest, WatchTradesRequest } from '../models/index';
|
|
14
14
|
export interface BuildOrderOperationRequest {
|
|
15
15
|
exchange: BuildOrderOperationExchangeEnum;
|
|
16
16
|
buildOrderRequest?: BuildOrderRequest;
|
|
@@ -264,6 +264,10 @@ export interface SubmitOrderOperationRequest {
|
|
|
264
264
|
exchange: SubmitOrderOperationExchangeEnum;
|
|
265
265
|
submitOrderRequest?: SubmitOrderRequest;
|
|
266
266
|
}
|
|
267
|
+
export interface TestDummyMethodOperationRequest {
|
|
268
|
+
exchange: TestDummyMethodOperationExchangeEnum;
|
|
269
|
+
testDummyMethodRequest?: TestDummyMethodRequest;
|
|
270
|
+
}
|
|
267
271
|
export interface UnwatchAddressOperationRequest {
|
|
268
272
|
exchange: UnwatchAddressOperationExchangeEnum;
|
|
269
273
|
unwatchAddressRequest?: UnwatchAddressRequest;
|
|
@@ -313,12 +317,10 @@ export declare class DefaultApi extends runtime.BaseAPI {
|
|
|
313
317
|
*/
|
|
314
318
|
cancelOrder(requestParameters: CancelOrderOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateOrder200Response>;
|
|
315
319
|
/**
|
|
316
|
-
* Close all WebSocket connections and clean up resources. Call this when you\'re done streaming to properly release connections.
|
|
317
320
|
* Close
|
|
318
321
|
*/
|
|
319
322
|
closeRaw(requestParameters: CloseOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BaseResponse>>;
|
|
320
323
|
/**
|
|
321
|
-
* Close all WebSocket connections and clean up resources. Call this when you\'re done streaming to properly release connections.
|
|
322
324
|
* Close
|
|
323
325
|
*/
|
|
324
326
|
close(requestParameters: CloseOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BaseResponse>;
|
|
@@ -634,6 +636,16 @@ export declare class DefaultApi extends runtime.BaseAPI {
|
|
|
634
636
|
* Submit Order
|
|
635
637
|
*/
|
|
636
638
|
submitOrder(requestParameters: SubmitOrderOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateOrder200Response>;
|
|
639
|
+
/**
|
|
640
|
+
* Test method for auto-generation verification.
|
|
641
|
+
* Test Dummy Method
|
|
642
|
+
*/
|
|
643
|
+
testDummyMethodRaw(requestParameters: TestDummyMethodOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TestDummyMethod200Response>>;
|
|
644
|
+
/**
|
|
645
|
+
* Test method for auto-generation verification.
|
|
646
|
+
* Test Dummy Method
|
|
647
|
+
*/
|
|
648
|
+
testDummyMethod(requestParameters: TestDummyMethodOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TestDummyMethod200Response>;
|
|
637
649
|
/**
|
|
638
650
|
* Stop watching a previously registered wallet address and release its resource updates.
|
|
639
651
|
* Unwatch Address
|
|
@@ -753,17 +765,6 @@ export type CloseOperationExchangeEnum = typeof CloseOperationExchangeEnum[keyof
|
|
|
753
765
|
* @export
|
|
754
766
|
*/
|
|
755
767
|
export declare const CompareMarketPricesOperationExchangeEnum: {
|
|
756
|
-
readonly Polymarket: "polymarket";
|
|
757
|
-
readonly Kalshi: "kalshi";
|
|
758
|
-
readonly KalshiDemo: "kalshi-demo";
|
|
759
|
-
readonly Limitless: "limitless";
|
|
760
|
-
readonly Probable: "probable";
|
|
761
|
-
readonly Baozi: "baozi";
|
|
762
|
-
readonly Myriad: "myriad";
|
|
763
|
-
readonly Opinion: "opinion";
|
|
764
|
-
readonly Metaculus: "metaculus";
|
|
765
|
-
readonly Smarkets: "smarkets";
|
|
766
|
-
readonly PolymarketUs: "polymarket_us";
|
|
767
768
|
readonly Router: "router";
|
|
768
769
|
};
|
|
769
770
|
export type CompareMarketPricesOperationExchangeEnum = typeof CompareMarketPricesOperationExchangeEnum[keyof typeof CompareMarketPricesOperationExchangeEnum];
|
|
@@ -807,17 +808,6 @@ export type FetchAllOrdersExchangeEnum = typeof FetchAllOrdersExchangeEnum[keyof
|
|
|
807
808
|
* @export
|
|
808
809
|
*/
|
|
809
810
|
export declare const FetchArbitrageExchangeEnum: {
|
|
810
|
-
readonly Polymarket: "polymarket";
|
|
811
|
-
readonly Kalshi: "kalshi";
|
|
812
|
-
readonly KalshiDemo: "kalshi-demo";
|
|
813
|
-
readonly Limitless: "limitless";
|
|
814
|
-
readonly Probable: "probable";
|
|
815
|
-
readonly Baozi: "baozi";
|
|
816
|
-
readonly Myriad: "myriad";
|
|
817
|
-
readonly Opinion: "opinion";
|
|
818
|
-
readonly Metaculus: "metaculus";
|
|
819
|
-
readonly Smarkets: "smarkets";
|
|
820
|
-
readonly PolymarketUs: "polymarket_us";
|
|
821
811
|
readonly Router: "router";
|
|
822
812
|
};
|
|
823
813
|
export type FetchArbitrageExchangeEnum = typeof FetchArbitrageExchangeEnum[keyof typeof FetchArbitrageExchangeEnum];
|
|
@@ -918,17 +908,6 @@ export type FetchEventSearchInEnum = typeof FetchEventSearchInEnum[keyof typeof
|
|
|
918
908
|
* @export
|
|
919
909
|
*/
|
|
920
910
|
export declare const FetchEventMatchesExchangeEnum: {
|
|
921
|
-
readonly Polymarket: "polymarket";
|
|
922
|
-
readonly Kalshi: "kalshi";
|
|
923
|
-
readonly KalshiDemo: "kalshi-demo";
|
|
924
|
-
readonly Limitless: "limitless";
|
|
925
|
-
readonly Probable: "probable";
|
|
926
|
-
readonly Baozi: "baozi";
|
|
927
|
-
readonly Myriad: "myriad";
|
|
928
|
-
readonly Opinion: "opinion";
|
|
929
|
-
readonly Metaculus: "metaculus";
|
|
930
|
-
readonly Smarkets: "smarkets";
|
|
931
|
-
readonly PolymarketUs: "polymarket_us";
|
|
932
911
|
readonly Router: "router";
|
|
933
912
|
};
|
|
934
913
|
export type FetchEventMatchesExchangeEnum = typeof FetchEventMatchesExchangeEnum[keyof typeof FetchEventMatchesExchangeEnum];
|
|
@@ -1011,17 +990,6 @@ export type FetchEventsPaginatedExchangeEnum = typeof FetchEventsPaginatedExchan
|
|
|
1011
990
|
* @export
|
|
1012
991
|
*/
|
|
1013
992
|
export declare const FetchHedgesExchangeEnum: {
|
|
1014
|
-
readonly Polymarket: "polymarket";
|
|
1015
|
-
readonly Kalshi: "kalshi";
|
|
1016
|
-
readonly KalshiDemo: "kalshi-demo";
|
|
1017
|
-
readonly Limitless: "limitless";
|
|
1018
|
-
readonly Probable: "probable";
|
|
1019
|
-
readonly Baozi: "baozi";
|
|
1020
|
-
readonly Myriad: "myriad";
|
|
1021
|
-
readonly Opinion: "opinion";
|
|
1022
|
-
readonly Metaculus: "metaculus";
|
|
1023
|
-
readonly Smarkets: "smarkets";
|
|
1024
|
-
readonly PolymarketUs: "polymarket_us";
|
|
1025
993
|
readonly Router: "router";
|
|
1026
994
|
};
|
|
1027
995
|
export type FetchHedgesExchangeEnum = typeof FetchHedgesExchangeEnum[keyof typeof FetchHedgesExchangeEnum];
|
|
@@ -1095,17 +1063,6 @@ export type FetchMarketSearchInEnum = typeof FetchMarketSearchInEnum[keyof typeo
|
|
|
1095
1063
|
* @export
|
|
1096
1064
|
*/
|
|
1097
1065
|
export declare const FetchMarketMatchesExchangeEnum: {
|
|
1098
|
-
readonly Polymarket: "polymarket";
|
|
1099
|
-
readonly Kalshi: "kalshi";
|
|
1100
|
-
readonly KalshiDemo: "kalshi-demo";
|
|
1101
|
-
readonly Limitless: "limitless";
|
|
1102
|
-
readonly Probable: "probable";
|
|
1103
|
-
readonly Baozi: "baozi";
|
|
1104
|
-
readonly Myriad: "myriad";
|
|
1105
|
-
readonly Opinion: "opinion";
|
|
1106
|
-
readonly Metaculus: "metaculus";
|
|
1107
|
-
readonly Smarkets: "smarkets";
|
|
1108
|
-
readonly PolymarketUs: "polymarket_us";
|
|
1109
1066
|
readonly Router: "router";
|
|
1110
1067
|
};
|
|
1111
1068
|
export type FetchMarketMatchesExchangeEnum = typeof FetchMarketMatchesExchangeEnum[keyof typeof FetchMarketMatchesExchangeEnum];
|
|
@@ -1197,17 +1154,6 @@ export type FetchMarketsPaginatedExchangeEnum = typeof FetchMarketsPaginatedExch
|
|
|
1197
1154
|
* @export
|
|
1198
1155
|
*/
|
|
1199
1156
|
export declare const FetchMatchedMarketsExchangeEnum: {
|
|
1200
|
-
readonly Polymarket: "polymarket";
|
|
1201
|
-
readonly Kalshi: "kalshi";
|
|
1202
|
-
readonly KalshiDemo: "kalshi-demo";
|
|
1203
|
-
readonly Limitless: "limitless";
|
|
1204
|
-
readonly Probable: "probable";
|
|
1205
|
-
readonly Baozi: "baozi";
|
|
1206
|
-
readonly Myriad: "myriad";
|
|
1207
|
-
readonly Opinion: "opinion";
|
|
1208
|
-
readonly Metaculus: "metaculus";
|
|
1209
|
-
readonly Smarkets: "smarkets";
|
|
1210
|
-
readonly PolymarketUs: "polymarket_us";
|
|
1211
1157
|
readonly Router: "router";
|
|
1212
1158
|
};
|
|
1213
1159
|
export type FetchMatchedMarketsExchangeEnum = typeof FetchMatchedMarketsExchangeEnum[keyof typeof FetchMatchedMarketsExchangeEnum];
|
|
@@ -1226,17 +1172,6 @@ export type FetchMatchedMarketsRelationsEnum = typeof FetchMatchedMarketsRelatio
|
|
|
1226
1172
|
* @export
|
|
1227
1173
|
*/
|
|
1228
1174
|
export declare const FetchMatchedPricesExchangeEnum: {
|
|
1229
|
-
readonly Polymarket: "polymarket";
|
|
1230
|
-
readonly Kalshi: "kalshi";
|
|
1231
|
-
readonly KalshiDemo: "kalshi-demo";
|
|
1232
|
-
readonly Limitless: "limitless";
|
|
1233
|
-
readonly Probable: "probable";
|
|
1234
|
-
readonly Baozi: "baozi";
|
|
1235
|
-
readonly Myriad: "myriad";
|
|
1236
|
-
readonly Opinion: "opinion";
|
|
1237
|
-
readonly Metaculus: "metaculus";
|
|
1238
|
-
readonly Smarkets: "smarkets";
|
|
1239
|
-
readonly PolymarketUs: "polymarket_us";
|
|
1240
1175
|
readonly Router: "router";
|
|
1241
1176
|
};
|
|
1242
1177
|
export type FetchMatchedPricesExchangeEnum = typeof FetchMatchedPricesExchangeEnum[keyof typeof FetchMatchedPricesExchangeEnum];
|
|
@@ -1363,17 +1298,6 @@ export type FetchPositionsExchangeEnum = typeof FetchPositionsExchangeEnum[keyof
|
|
|
1363
1298
|
* @export
|
|
1364
1299
|
*/
|
|
1365
1300
|
export declare const FetchRelatedMarketsExchangeEnum: {
|
|
1366
|
-
readonly Polymarket: "polymarket";
|
|
1367
|
-
readonly Kalshi: "kalshi";
|
|
1368
|
-
readonly KalshiDemo: "kalshi-demo";
|
|
1369
|
-
readonly Limitless: "limitless";
|
|
1370
|
-
readonly Probable: "probable";
|
|
1371
|
-
readonly Baozi: "baozi";
|
|
1372
|
-
readonly Myriad: "myriad";
|
|
1373
|
-
readonly Opinion: "opinion";
|
|
1374
|
-
readonly Metaculus: "metaculus";
|
|
1375
|
-
readonly Smarkets: "smarkets";
|
|
1376
|
-
readonly PolymarketUs: "polymarket_us";
|
|
1377
1301
|
readonly Router: "router";
|
|
1378
1302
|
};
|
|
1379
1303
|
export type FetchRelatedMarketsExchangeEnum = typeof FetchRelatedMarketsExchangeEnum[keyof typeof FetchRelatedMarketsExchangeEnum];
|
|
@@ -1523,6 +1447,24 @@ export declare const SubmitOrderOperationExchangeEnum: {
|
|
|
1523
1447
|
readonly Router: "router";
|
|
1524
1448
|
};
|
|
1525
1449
|
export type SubmitOrderOperationExchangeEnum = typeof SubmitOrderOperationExchangeEnum[keyof typeof SubmitOrderOperationExchangeEnum];
|
|
1450
|
+
/**
|
|
1451
|
+
* @export
|
|
1452
|
+
*/
|
|
1453
|
+
export declare const TestDummyMethodOperationExchangeEnum: {
|
|
1454
|
+
readonly Polymarket: "polymarket";
|
|
1455
|
+
readonly Kalshi: "kalshi";
|
|
1456
|
+
readonly KalshiDemo: "kalshi-demo";
|
|
1457
|
+
readonly Limitless: "limitless";
|
|
1458
|
+
readonly Probable: "probable";
|
|
1459
|
+
readonly Baozi: "baozi";
|
|
1460
|
+
readonly Myriad: "myriad";
|
|
1461
|
+
readonly Opinion: "opinion";
|
|
1462
|
+
readonly Metaculus: "metaculus";
|
|
1463
|
+
readonly Smarkets: "smarkets";
|
|
1464
|
+
readonly PolymarketUs: "polymarket_us";
|
|
1465
|
+
readonly Router: "router";
|
|
1466
|
+
};
|
|
1467
|
+
export type TestDummyMethodOperationExchangeEnum = typeof TestDummyMethodOperationExchangeEnum[keyof typeof TestDummyMethodOperationExchangeEnum];
|
|
1526
1468
|
/**
|
|
1527
1469
|
* @export
|
|
1528
1470
|
*/
|
|
@@ -47,7 +47,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
47
47
|
})();
|
|
48
48
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
49
|
exports.FetchRelatedMarketsSortEnum = exports.FetchRelatedMarketsRelationEnum = exports.FetchRelatedMarketsExchangeEnum = exports.FetchPositionsExchangeEnum = exports.FetchOrderBookExchangeEnum = exports.FetchOrderExchangeEnum = exports.FetchOpenOrdersExchangeEnum = exports.FetchOHLCVExchangeEnum = exports.FetchMyTradesExchangeEnum = exports.FetchMatchedPricesRelationsEnum = exports.FetchMatchedPricesExchangeEnum = exports.FetchMatchedMarketsRelationsEnum = exports.FetchMatchedMarketsExchangeEnum = exports.FetchMarketsPaginatedExchangeEnum = exports.FetchMarketsSearchInEnum = exports.FetchMarketsStatusEnum = exports.FetchMarketsSortEnum = exports.FetchMarketsExchangeEnum = exports.FetchMarketMatchesSortEnum = exports.FetchMarketMatchesRelationEnum = exports.FetchMarketMatchesExchangeEnum = exports.FetchMarketSearchInEnum = exports.FetchMarketStatusEnum = exports.FetchMarketSortEnum = exports.FetchMarketExchangeEnum = exports.FetchHedgesSortEnum = exports.FetchHedgesRelationEnum = exports.FetchHedgesExchangeEnum = exports.FetchEventsPaginatedExchangeEnum = exports.FetchEventsSearchInEnum = exports.FetchEventsStatusEnum = exports.FetchEventsSortEnum = exports.FetchEventsExchangeEnum = exports.FetchEventMatchesRelationEnum = exports.FetchEventMatchesExchangeEnum = exports.FetchEventSearchInEnum = exports.FetchEventStatusEnum = exports.FetchEventSortEnum = exports.FetchEventExchangeEnum = exports.FetchClosedOrdersExchangeEnum = exports.FetchBalanceExchangeEnum = exports.FetchArbitrageRelationsEnum = exports.FetchArbitrageExchangeEnum = exports.FetchAllOrdersExchangeEnum = exports.CreateOrderOperationExchangeEnum = exports.CompareMarketPricesOperationExchangeEnum = exports.CloseOperationExchangeEnum = exports.CancelOrderOperationExchangeEnum = exports.BuildOrderOperationExchangeEnum = exports.DefaultApi = void 0;
|
|
50
|
-
exports.WatchTradesOperationExchangeEnum = exports.WatchOrderBooksOperationExchangeEnum = exports.WatchOrderBookOperationExchangeEnum = exports.WatchAddressOperationExchangeEnum = exports.UnwatchOrderBookOperationExchangeEnum = exports.UnwatchAddressOperationExchangeEnum = exports.SubmitOrderOperationExchangeEnum = exports.LoadMarketsOperationExchangeEnum = exports.GetExecutionPriceDetailedOperationExchangeEnum = exports.GetExecutionPriceOperationExchangeEnum = exports.FilterMarketsOperationExchangeEnum = exports.FilterEventsOperationExchangeEnum = exports.FetchTradesExchangeEnum = void 0;
|
|
50
|
+
exports.WatchTradesOperationExchangeEnum = exports.WatchOrderBooksOperationExchangeEnum = exports.WatchOrderBookOperationExchangeEnum = exports.WatchAddressOperationExchangeEnum = exports.UnwatchOrderBookOperationExchangeEnum = exports.UnwatchAddressOperationExchangeEnum = exports.TestDummyMethodOperationExchangeEnum = exports.SubmitOrderOperationExchangeEnum = exports.LoadMarketsOperationExchangeEnum = exports.GetExecutionPriceDetailedOperationExchangeEnum = exports.GetExecutionPriceOperationExchangeEnum = exports.FilterMarketsOperationExchangeEnum = exports.FilterEventsOperationExchangeEnum = exports.FetchTradesExchangeEnum = void 0;
|
|
51
51
|
const runtime = __importStar(require("../runtime"));
|
|
52
52
|
const index_1 = require("../models/index");
|
|
53
53
|
/**
|
|
@@ -115,7 +115,6 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
115
115
|
return await response.value();
|
|
116
116
|
}
|
|
117
117
|
/**
|
|
118
|
-
* Close all WebSocket connections and clean up resources. Call this when you\'re done streaming to properly release connections.
|
|
119
118
|
* Close
|
|
120
119
|
*/
|
|
121
120
|
async closeRaw(requestParameters, initOverrides) {
|
|
@@ -137,7 +136,6 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
137
136
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BaseResponseFromJSON)(jsonValue));
|
|
138
137
|
}
|
|
139
138
|
/**
|
|
140
|
-
* Close all WebSocket connections and clean up resources. Call this when you\'re done streaming to properly release connections.
|
|
141
139
|
* Close
|
|
142
140
|
*/
|
|
143
141
|
async close(requestParameters, initOverrides) {
|
|
@@ -1476,6 +1474,36 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
1476
1474
|
const response = await this.submitOrderRaw(requestParameters, initOverrides);
|
|
1477
1475
|
return await response.value();
|
|
1478
1476
|
}
|
|
1477
|
+
/**
|
|
1478
|
+
* Test method for auto-generation verification.
|
|
1479
|
+
* Test Dummy Method
|
|
1480
|
+
*/
|
|
1481
|
+
async testDummyMethodRaw(requestParameters, initOverrides) {
|
|
1482
|
+
if (requestParameters['exchange'] == null) {
|
|
1483
|
+
throw new runtime.RequiredError('exchange', 'Required parameter "exchange" was null or undefined when calling testDummyMethod().');
|
|
1484
|
+
}
|
|
1485
|
+
const queryParameters = {};
|
|
1486
|
+
const headerParameters = {};
|
|
1487
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1488
|
+
let urlPath = `/api/{exchange}/testDummyMethod`;
|
|
1489
|
+
urlPath = urlPath.replace(`{${"exchange"}}`, encodeURIComponent(String(requestParameters['exchange'])));
|
|
1490
|
+
const response = await this.request({
|
|
1491
|
+
path: urlPath,
|
|
1492
|
+
method: 'POST',
|
|
1493
|
+
headers: headerParameters,
|
|
1494
|
+
query: queryParameters,
|
|
1495
|
+
body: (0, index_1.TestDummyMethodRequestToJSON)(requestParameters['testDummyMethodRequest']),
|
|
1496
|
+
}, initOverrides);
|
|
1497
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TestDummyMethod200ResponseFromJSON)(jsonValue));
|
|
1498
|
+
}
|
|
1499
|
+
/**
|
|
1500
|
+
* Test method for auto-generation verification.
|
|
1501
|
+
* Test Dummy Method
|
|
1502
|
+
*/
|
|
1503
|
+
async testDummyMethod(requestParameters, initOverrides) {
|
|
1504
|
+
const response = await this.testDummyMethodRaw(requestParameters, initOverrides);
|
|
1505
|
+
return await response.value();
|
|
1506
|
+
}
|
|
1479
1507
|
/**
|
|
1480
1508
|
* Stop watching a previously registered wallet address and release its resource updates.
|
|
1481
1509
|
* Unwatch Address
|
|
@@ -1713,17 +1741,6 @@ exports.CloseOperationExchangeEnum = {
|
|
|
1713
1741
|
* @export
|
|
1714
1742
|
*/
|
|
1715
1743
|
exports.CompareMarketPricesOperationExchangeEnum = {
|
|
1716
|
-
Polymarket: 'polymarket',
|
|
1717
|
-
Kalshi: 'kalshi',
|
|
1718
|
-
KalshiDemo: 'kalshi-demo',
|
|
1719
|
-
Limitless: 'limitless',
|
|
1720
|
-
Probable: 'probable',
|
|
1721
|
-
Baozi: 'baozi',
|
|
1722
|
-
Myriad: 'myriad',
|
|
1723
|
-
Opinion: 'opinion',
|
|
1724
|
-
Metaculus: 'metaculus',
|
|
1725
|
-
Smarkets: 'smarkets',
|
|
1726
|
-
PolymarketUs: 'polymarket_us',
|
|
1727
1744
|
Router: 'router'
|
|
1728
1745
|
};
|
|
1729
1746
|
/**
|
|
@@ -1764,17 +1781,6 @@ exports.FetchAllOrdersExchangeEnum = {
|
|
|
1764
1781
|
* @export
|
|
1765
1782
|
*/
|
|
1766
1783
|
exports.FetchArbitrageExchangeEnum = {
|
|
1767
|
-
Polymarket: 'polymarket',
|
|
1768
|
-
Kalshi: 'kalshi',
|
|
1769
|
-
KalshiDemo: 'kalshi-demo',
|
|
1770
|
-
Limitless: 'limitless',
|
|
1771
|
-
Probable: 'probable',
|
|
1772
|
-
Baozi: 'baozi',
|
|
1773
|
-
Myriad: 'myriad',
|
|
1774
|
-
Opinion: 'opinion',
|
|
1775
|
-
Metaculus: 'metaculus',
|
|
1776
|
-
Smarkets: 'smarkets',
|
|
1777
|
-
PolymarketUs: 'polymarket_us',
|
|
1778
1784
|
Router: 'router'
|
|
1779
1785
|
};
|
|
1780
1786
|
/**
|
|
@@ -1867,17 +1873,6 @@ exports.FetchEventSearchInEnum = {
|
|
|
1867
1873
|
* @export
|
|
1868
1874
|
*/
|
|
1869
1875
|
exports.FetchEventMatchesExchangeEnum = {
|
|
1870
|
-
Polymarket: 'polymarket',
|
|
1871
|
-
Kalshi: 'kalshi',
|
|
1872
|
-
KalshiDemo: 'kalshi-demo',
|
|
1873
|
-
Limitless: 'limitless',
|
|
1874
|
-
Probable: 'probable',
|
|
1875
|
-
Baozi: 'baozi',
|
|
1876
|
-
Myriad: 'myriad',
|
|
1877
|
-
Opinion: 'opinion',
|
|
1878
|
-
Metaculus: 'metaculus',
|
|
1879
|
-
Smarkets: 'smarkets',
|
|
1880
|
-
PolymarketUs: 'polymarket_us',
|
|
1881
1876
|
Router: 'router'
|
|
1882
1877
|
};
|
|
1883
1878
|
/**
|
|
@@ -1953,17 +1948,6 @@ exports.FetchEventsPaginatedExchangeEnum = {
|
|
|
1953
1948
|
* @export
|
|
1954
1949
|
*/
|
|
1955
1950
|
exports.FetchHedgesExchangeEnum = {
|
|
1956
|
-
Polymarket: 'polymarket',
|
|
1957
|
-
Kalshi: 'kalshi',
|
|
1958
|
-
KalshiDemo: 'kalshi-demo',
|
|
1959
|
-
Limitless: 'limitless',
|
|
1960
|
-
Probable: 'probable',
|
|
1961
|
-
Baozi: 'baozi',
|
|
1962
|
-
Myriad: 'myriad',
|
|
1963
|
-
Opinion: 'opinion',
|
|
1964
|
-
Metaculus: 'metaculus',
|
|
1965
|
-
Smarkets: 'smarkets',
|
|
1966
|
-
PolymarketUs: 'polymarket_us',
|
|
1967
1951
|
Router: 'router'
|
|
1968
1952
|
};
|
|
1969
1953
|
/**
|
|
@@ -2030,17 +2014,6 @@ exports.FetchMarketSearchInEnum = {
|
|
|
2030
2014
|
* @export
|
|
2031
2015
|
*/
|
|
2032
2016
|
exports.FetchMarketMatchesExchangeEnum = {
|
|
2033
|
-
Polymarket: 'polymarket',
|
|
2034
|
-
Kalshi: 'kalshi',
|
|
2035
|
-
KalshiDemo: 'kalshi-demo',
|
|
2036
|
-
Limitless: 'limitless',
|
|
2037
|
-
Probable: 'probable',
|
|
2038
|
-
Baozi: 'baozi',
|
|
2039
|
-
Myriad: 'myriad',
|
|
2040
|
-
Opinion: 'opinion',
|
|
2041
|
-
Metaculus: 'metaculus',
|
|
2042
|
-
Smarkets: 'smarkets',
|
|
2043
|
-
PolymarketUs: 'polymarket_us',
|
|
2044
2017
|
Router: 'router'
|
|
2045
2018
|
};
|
|
2046
2019
|
/**
|
|
@@ -2124,17 +2097,6 @@ exports.FetchMarketsPaginatedExchangeEnum = {
|
|
|
2124
2097
|
* @export
|
|
2125
2098
|
*/
|
|
2126
2099
|
exports.FetchMatchedMarketsExchangeEnum = {
|
|
2127
|
-
Polymarket: 'polymarket',
|
|
2128
|
-
Kalshi: 'kalshi',
|
|
2129
|
-
KalshiDemo: 'kalshi-demo',
|
|
2130
|
-
Limitless: 'limitless',
|
|
2131
|
-
Probable: 'probable',
|
|
2132
|
-
Baozi: 'baozi',
|
|
2133
|
-
Myriad: 'myriad',
|
|
2134
|
-
Opinion: 'opinion',
|
|
2135
|
-
Metaculus: 'metaculus',
|
|
2136
|
-
Smarkets: 'smarkets',
|
|
2137
|
-
PolymarketUs: 'polymarket_us',
|
|
2138
2100
|
Router: 'router'
|
|
2139
2101
|
};
|
|
2140
2102
|
/**
|
|
@@ -2151,17 +2113,6 @@ exports.FetchMatchedMarketsRelationsEnum = {
|
|
|
2151
2113
|
* @export
|
|
2152
2114
|
*/
|
|
2153
2115
|
exports.FetchMatchedPricesExchangeEnum = {
|
|
2154
|
-
Polymarket: 'polymarket',
|
|
2155
|
-
Kalshi: 'kalshi',
|
|
2156
|
-
KalshiDemo: 'kalshi-demo',
|
|
2157
|
-
Limitless: 'limitless',
|
|
2158
|
-
Probable: 'probable',
|
|
2159
|
-
Baozi: 'baozi',
|
|
2160
|
-
Myriad: 'myriad',
|
|
2161
|
-
Opinion: 'opinion',
|
|
2162
|
-
Metaculus: 'metaculus',
|
|
2163
|
-
Smarkets: 'smarkets',
|
|
2164
|
-
PolymarketUs: 'polymarket_us',
|
|
2165
2116
|
Router: 'router'
|
|
2166
2117
|
};
|
|
2167
2118
|
/**
|
|
@@ -2280,17 +2231,6 @@ exports.FetchPositionsExchangeEnum = {
|
|
|
2280
2231
|
* @export
|
|
2281
2232
|
*/
|
|
2282
2233
|
exports.FetchRelatedMarketsExchangeEnum = {
|
|
2283
|
-
Polymarket: 'polymarket',
|
|
2284
|
-
Kalshi: 'kalshi',
|
|
2285
|
-
KalshiDemo: 'kalshi-demo',
|
|
2286
|
-
Limitless: 'limitless',
|
|
2287
|
-
Probable: 'probable',
|
|
2288
|
-
Baozi: 'baozi',
|
|
2289
|
-
Myriad: 'myriad',
|
|
2290
|
-
Opinion: 'opinion',
|
|
2291
|
-
Metaculus: 'metaculus',
|
|
2292
|
-
Smarkets: 'smarkets',
|
|
2293
|
-
PolymarketUs: 'polymarket_us',
|
|
2294
2234
|
Router: 'router'
|
|
2295
2235
|
};
|
|
2296
2236
|
/**
|
|
@@ -2430,6 +2370,23 @@ exports.SubmitOrderOperationExchangeEnum = {
|
|
|
2430
2370
|
PolymarketUs: 'polymarket_us',
|
|
2431
2371
|
Router: 'router'
|
|
2432
2372
|
};
|
|
2373
|
+
/**
|
|
2374
|
+
* @export
|
|
2375
|
+
*/
|
|
2376
|
+
exports.TestDummyMethodOperationExchangeEnum = {
|
|
2377
|
+
Polymarket: 'polymarket',
|
|
2378
|
+
Kalshi: 'kalshi',
|
|
2379
|
+
KalshiDemo: 'kalshi-demo',
|
|
2380
|
+
Limitless: 'limitless',
|
|
2381
|
+
Probable: 'probable',
|
|
2382
|
+
Baozi: 'baozi',
|
|
2383
|
+
Myriad: 'myriad',
|
|
2384
|
+
Opinion: 'opinion',
|
|
2385
|
+
Metaculus: 'metaculus',
|
|
2386
|
+
Smarkets: 'smarkets',
|
|
2387
|
+
PolymarketUs: 'polymarket_us',
|
|
2388
|
+
Router: 'router'
|
|
2389
|
+
};
|
|
2433
2390
|
/**
|
|
2434
2391
|
* @export
|
|
2435
2392
|
*/
|
|
@@ -64,6 +64,12 @@ export interface ExchangeCredentials {
|
|
|
64
64
|
* @memberof ExchangeCredentials
|
|
65
65
|
*/
|
|
66
66
|
walletAddress?: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof ExchangeCredentials
|
|
71
|
+
*/
|
|
72
|
+
baseUrl?: string;
|
|
67
73
|
}
|
|
68
74
|
/**
|
|
69
75
|
* Check if a given object implements the ExchangeCredentials interface.
|
|
@@ -41,6 +41,7 @@ function ExchangeCredentialsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
'signatureType': json['signatureType'] == null ? undefined : (0, ExchangeCredentialsSignatureType_1.ExchangeCredentialsSignatureTypeFromJSON)(json['signatureType']),
|
|
42
42
|
'funderAddress': json['funderAddress'] == null ? undefined : json['funderAddress'],
|
|
43
43
|
'walletAddress': json['walletAddress'] == null ? undefined : json['walletAddress'],
|
|
44
|
+
'baseUrl': json['baseUrl'] == null ? undefined : json['baseUrl'],
|
|
44
45
|
};
|
|
45
46
|
}
|
|
46
47
|
function ExchangeCredentialsToJSON(json) {
|
|
@@ -59,5 +60,6 @@ function ExchangeCredentialsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
59
60
|
'signatureType': (0, ExchangeCredentialsSignatureType_1.ExchangeCredentialsSignatureTypeToJSON)(value['signatureType']),
|
|
60
61
|
'funderAddress': value['funderAddress'],
|
|
61
62
|
'walletAddress': value['walletAddress'],
|
|
63
|
+
'baseUrl': value['baseUrl'],
|
|
62
64
|
};
|
|
63
65
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PMXT Sidecar API
|
|
3
|
+
* A unified local sidecar API for prediction markets (Polymarket, Kalshi, Limitless). This API acts as a JSON-RPC-style gateway. Each endpoint corresponds to a specific method on the generic exchange implementation.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.4.4
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ErrorDetail } from './ErrorDetail';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface TestDummyMethod200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface TestDummyMethod200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof TestDummyMethod200Response
|
|
23
|
+
*/
|
|
24
|
+
success?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ErrorDetail}
|
|
28
|
+
* @memberof TestDummyMethod200Response
|
|
29
|
+
*/
|
|
30
|
+
error?: ErrorDetail;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof TestDummyMethod200Response
|
|
35
|
+
*/
|
|
36
|
+
data?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the TestDummyMethod200Response interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfTestDummyMethod200Response(value: object): value is TestDummyMethod200Response;
|
|
42
|
+
export declare function TestDummyMethod200ResponseFromJSON(json: any): TestDummyMethod200Response;
|
|
43
|
+
export declare function TestDummyMethod200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TestDummyMethod200Response;
|
|
44
|
+
export declare function TestDummyMethod200ResponseToJSON(json: any): TestDummyMethod200Response;
|
|
45
|
+
export declare function TestDummyMethod200ResponseToJSONTyped(value?: TestDummyMethod200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* PMXT Sidecar API
|
|
6
|
+
* A unified local sidecar API for prediction markets (Polymarket, Kalshi, Limitless). This API acts as a JSON-RPC-style gateway. Each endpoint corresponds to a specific method on the generic exchange implementation.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.4.4
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfTestDummyMethod200Response = instanceOfTestDummyMethod200Response;
|
|
17
|
+
exports.TestDummyMethod200ResponseFromJSON = TestDummyMethod200ResponseFromJSON;
|
|
18
|
+
exports.TestDummyMethod200ResponseFromJSONTyped = TestDummyMethod200ResponseFromJSONTyped;
|
|
19
|
+
exports.TestDummyMethod200ResponseToJSON = TestDummyMethod200ResponseToJSON;
|
|
20
|
+
exports.TestDummyMethod200ResponseToJSONTyped = TestDummyMethod200ResponseToJSONTyped;
|
|
21
|
+
const ErrorDetail_1 = require("./ErrorDetail");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the TestDummyMethod200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfTestDummyMethod200Response(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function TestDummyMethod200ResponseFromJSON(json) {
|
|
29
|
+
return TestDummyMethod200ResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function TestDummyMethod200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'success': json['success'] == null ? undefined : json['success'],
|
|
37
|
+
'error': json['error'] == null ? undefined : (0, ErrorDetail_1.ErrorDetailFromJSON)(json['error']),
|
|
38
|
+
'data': json['data'] == null ? undefined : json['data'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function TestDummyMethod200ResponseToJSON(json) {
|
|
42
|
+
return TestDummyMethod200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function TestDummyMethod200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': value['success'],
|
|
50
|
+
'error': (0, ErrorDetail_1.ErrorDetailToJSON)(value['error']),
|
|
51
|
+
'data': value['data'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface TestDummyMethodRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface TestDummyMethodRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<string>}
|
|
22
|
+
* @memberof TestDummyMethodRequest
|
|
23
|
+
*/
|
|
24
|
+
args?: Array<string>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ExchangeCredentials}
|
|
28
|
+
* @memberof TestDummyMethodRequest
|
|
29
|
+
*/
|
|
30
|
+
credentials?: ExchangeCredentials;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the TestDummyMethodRequest interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfTestDummyMethodRequest(value: object): value is TestDummyMethodRequest;
|
|
36
|
+
export declare function TestDummyMethodRequestFromJSON(json: any): TestDummyMethodRequest;
|
|
37
|
+
export declare function TestDummyMethodRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TestDummyMethodRequest;
|
|
38
|
+
export declare function TestDummyMethodRequestToJSON(json: any): TestDummyMethodRequest;
|
|
39
|
+
export declare function TestDummyMethodRequestToJSONTyped(value?: TestDummyMethodRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* PMXT Sidecar API
|
|
6
|
+
* A unified local sidecar API for prediction markets (Polymarket, Kalshi, Limitless). This API acts as a JSON-RPC-style gateway. Each endpoint corresponds to a specific method on the generic exchange implementation.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.4.4
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfTestDummyMethodRequest = instanceOfTestDummyMethodRequest;
|
|
17
|
+
exports.TestDummyMethodRequestFromJSON = TestDummyMethodRequestFromJSON;
|
|
18
|
+
exports.TestDummyMethodRequestFromJSONTyped = TestDummyMethodRequestFromJSONTyped;
|
|
19
|
+
exports.TestDummyMethodRequestToJSON = TestDummyMethodRequestToJSON;
|
|
20
|
+
exports.TestDummyMethodRequestToJSONTyped = TestDummyMethodRequestToJSONTyped;
|
|
21
|
+
const ExchangeCredentials_1 = require("./ExchangeCredentials");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the TestDummyMethodRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfTestDummyMethodRequest(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function TestDummyMethodRequestFromJSON(json) {
|
|
29
|
+
return TestDummyMethodRequestFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function TestDummyMethodRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'args': json['args'] == null ? undefined : json['args'],
|
|
37
|
+
'credentials': json['credentials'] == null ? undefined : (0, ExchangeCredentials_1.ExchangeCredentialsFromJSON)(json['credentials']),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function TestDummyMethodRequestToJSON(json) {
|
|
41
|
+
return TestDummyMethodRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function TestDummyMethodRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'args': value['args'],
|
|
49
|
+
'credentials': (0, ExchangeCredentials_1.ExchangeCredentialsToJSON)(value['credentials']),
|
|
50
|
+
};
|
|
51
|
+
}
|