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
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
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.js';
|
|
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.js';
|
|
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
|
*/
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime.js';
|
|
15
|
-
import { BaseResponseFromJSON, BuildOrder200ResponseFromJSON, BuildOrderRequestToJSON, CancelOrderRequestToJSON, CloseRequestToJSON, CompareMarketPrices200ResponseFromJSON, CompareMarketPricesRequestToJSON, CreateOrder200ResponseFromJSON, CreateOrderRequestToJSON, FetchArbitrage200ResponseFromJSON, FetchBalance200ResponseFromJSON, FetchEvent200ResponseFromJSON, FetchEventMatches200ResponseFromJSON, FetchEvents200ResponseFromJSON, FetchEventsPaginated200ResponseFromJSON, FetchMarket200ResponseFromJSON, FetchMarketMatches200ResponseFromJSON, FetchMarkets200ResponseFromJSON, FetchMarketsPaginated200ResponseFromJSON, FetchMatchedMarkets200ResponseFromJSON, FetchMyTrades200ResponseFromJSON, FetchOHLCV200ResponseFromJSON, FetchOpenOrders200ResponseFromJSON, FetchOrderBook200ResponseFromJSON, FetchPositions200ResponseFromJSON, FetchTrades200ResponseFromJSON, FilterEventsRequestToJSON, FilterMarketsRequestToJSON, GetExecutionPrice200ResponseFromJSON, GetExecutionPriceDetailed200ResponseFromJSON, GetExecutionPriceDetailedRequestToJSON, GetExecutionPriceRequestToJSON, HealthCheck200ResponseFromJSON, LoadMarkets200ResponseFromJSON, LoadMarketsRequestToJSON, SubmitOrderRequestToJSON, UnwatchAddressRequestToJSON, UnwatchOrderBookRequestToJSON, WatchAddress200ResponseFromJSON, WatchAddressRequestToJSON, WatchOrderBookRequestToJSON, WatchOrderBooks200ResponseFromJSON, WatchOrderBooksRequestToJSON, WatchTradesRequestToJSON, } from '../models/index.js';
|
|
15
|
+
import { BaseResponseFromJSON, BuildOrder200ResponseFromJSON, BuildOrderRequestToJSON, CancelOrderRequestToJSON, CloseRequestToJSON, CompareMarketPrices200ResponseFromJSON, CompareMarketPricesRequestToJSON, CreateOrder200ResponseFromJSON, CreateOrderRequestToJSON, FetchArbitrage200ResponseFromJSON, FetchBalance200ResponseFromJSON, FetchEvent200ResponseFromJSON, FetchEventMatches200ResponseFromJSON, FetchEvents200ResponseFromJSON, FetchEventsPaginated200ResponseFromJSON, FetchMarket200ResponseFromJSON, FetchMarketMatches200ResponseFromJSON, FetchMarkets200ResponseFromJSON, FetchMarketsPaginated200ResponseFromJSON, FetchMatchedMarkets200ResponseFromJSON, FetchMyTrades200ResponseFromJSON, FetchOHLCV200ResponseFromJSON, FetchOpenOrders200ResponseFromJSON, FetchOrderBook200ResponseFromJSON, FetchPositions200ResponseFromJSON, FetchTrades200ResponseFromJSON, FilterEventsRequestToJSON, FilterMarketsRequestToJSON, GetExecutionPrice200ResponseFromJSON, GetExecutionPriceDetailed200ResponseFromJSON, GetExecutionPriceDetailedRequestToJSON, GetExecutionPriceRequestToJSON, HealthCheck200ResponseFromJSON, LoadMarkets200ResponseFromJSON, LoadMarketsRequestToJSON, SubmitOrderRequestToJSON, TestDummyMethod200ResponseFromJSON, TestDummyMethodRequestToJSON, UnwatchAddressRequestToJSON, UnwatchOrderBookRequestToJSON, WatchAddress200ResponseFromJSON, WatchAddressRequestToJSON, WatchOrderBookRequestToJSON, WatchOrderBooks200ResponseFromJSON, WatchOrderBooksRequestToJSON, WatchTradesRequestToJSON, } from '../models/index.js';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -78,7 +78,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
78
78
|
return await response.value();
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
|
-
* Close all WebSocket connections and clean up resources. Call this when you\'re done streaming to properly release connections.
|
|
82
81
|
* Close
|
|
83
82
|
*/
|
|
84
83
|
async closeRaw(requestParameters, initOverrides) {
|
|
@@ -100,7 +99,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
100
99
|
return new runtime.JSONApiResponse(response, (jsonValue) => BaseResponseFromJSON(jsonValue));
|
|
101
100
|
}
|
|
102
101
|
/**
|
|
103
|
-
* Close all WebSocket connections and clean up resources. Call this when you\'re done streaming to properly release connections.
|
|
104
102
|
* Close
|
|
105
103
|
*/
|
|
106
104
|
async close(requestParameters, initOverrides) {
|
|
@@ -1439,6 +1437,36 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
1439
1437
|
const response = await this.submitOrderRaw(requestParameters, initOverrides);
|
|
1440
1438
|
return await response.value();
|
|
1441
1439
|
}
|
|
1440
|
+
/**
|
|
1441
|
+
* Test method for auto-generation verification.
|
|
1442
|
+
* Test Dummy Method
|
|
1443
|
+
*/
|
|
1444
|
+
async testDummyMethodRaw(requestParameters, initOverrides) {
|
|
1445
|
+
if (requestParameters['exchange'] == null) {
|
|
1446
|
+
throw new runtime.RequiredError('exchange', 'Required parameter "exchange" was null or undefined when calling testDummyMethod().');
|
|
1447
|
+
}
|
|
1448
|
+
const queryParameters = {};
|
|
1449
|
+
const headerParameters = {};
|
|
1450
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1451
|
+
let urlPath = `/api/{exchange}/testDummyMethod`;
|
|
1452
|
+
urlPath = urlPath.replace(`{${"exchange"}}`, encodeURIComponent(String(requestParameters['exchange'])));
|
|
1453
|
+
const response = await this.request({
|
|
1454
|
+
path: urlPath,
|
|
1455
|
+
method: 'POST',
|
|
1456
|
+
headers: headerParameters,
|
|
1457
|
+
query: queryParameters,
|
|
1458
|
+
body: TestDummyMethodRequestToJSON(requestParameters['testDummyMethodRequest']),
|
|
1459
|
+
}, initOverrides);
|
|
1460
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TestDummyMethod200ResponseFromJSON(jsonValue));
|
|
1461
|
+
}
|
|
1462
|
+
/**
|
|
1463
|
+
* Test method for auto-generation verification.
|
|
1464
|
+
* Test Dummy Method
|
|
1465
|
+
*/
|
|
1466
|
+
async testDummyMethod(requestParameters, initOverrides) {
|
|
1467
|
+
const response = await this.testDummyMethodRaw(requestParameters, initOverrides);
|
|
1468
|
+
return await response.value();
|
|
1469
|
+
}
|
|
1442
1470
|
/**
|
|
1443
1471
|
* Stop watching a previously registered wallet address and release its resource updates.
|
|
1444
1472
|
* Unwatch Address
|
|
@@ -1675,17 +1703,6 @@ export const CloseOperationExchangeEnum = {
|
|
|
1675
1703
|
* @export
|
|
1676
1704
|
*/
|
|
1677
1705
|
export const CompareMarketPricesOperationExchangeEnum = {
|
|
1678
|
-
Polymarket: 'polymarket',
|
|
1679
|
-
Kalshi: 'kalshi',
|
|
1680
|
-
KalshiDemo: 'kalshi-demo',
|
|
1681
|
-
Limitless: 'limitless',
|
|
1682
|
-
Probable: 'probable',
|
|
1683
|
-
Baozi: 'baozi',
|
|
1684
|
-
Myriad: 'myriad',
|
|
1685
|
-
Opinion: 'opinion',
|
|
1686
|
-
Metaculus: 'metaculus',
|
|
1687
|
-
Smarkets: 'smarkets',
|
|
1688
|
-
PolymarketUs: 'polymarket_us',
|
|
1689
1706
|
Router: 'router'
|
|
1690
1707
|
};
|
|
1691
1708
|
/**
|
|
@@ -1726,17 +1743,6 @@ export const FetchAllOrdersExchangeEnum = {
|
|
|
1726
1743
|
* @export
|
|
1727
1744
|
*/
|
|
1728
1745
|
export const FetchArbitrageExchangeEnum = {
|
|
1729
|
-
Polymarket: 'polymarket',
|
|
1730
|
-
Kalshi: 'kalshi',
|
|
1731
|
-
KalshiDemo: 'kalshi-demo',
|
|
1732
|
-
Limitless: 'limitless',
|
|
1733
|
-
Probable: 'probable',
|
|
1734
|
-
Baozi: 'baozi',
|
|
1735
|
-
Myriad: 'myriad',
|
|
1736
|
-
Opinion: 'opinion',
|
|
1737
|
-
Metaculus: 'metaculus',
|
|
1738
|
-
Smarkets: 'smarkets',
|
|
1739
|
-
PolymarketUs: 'polymarket_us',
|
|
1740
1746
|
Router: 'router'
|
|
1741
1747
|
};
|
|
1742
1748
|
/**
|
|
@@ -1829,17 +1835,6 @@ export const FetchEventSearchInEnum = {
|
|
|
1829
1835
|
* @export
|
|
1830
1836
|
*/
|
|
1831
1837
|
export const FetchEventMatchesExchangeEnum = {
|
|
1832
|
-
Polymarket: 'polymarket',
|
|
1833
|
-
Kalshi: 'kalshi',
|
|
1834
|
-
KalshiDemo: 'kalshi-demo',
|
|
1835
|
-
Limitless: 'limitless',
|
|
1836
|
-
Probable: 'probable',
|
|
1837
|
-
Baozi: 'baozi',
|
|
1838
|
-
Myriad: 'myriad',
|
|
1839
|
-
Opinion: 'opinion',
|
|
1840
|
-
Metaculus: 'metaculus',
|
|
1841
|
-
Smarkets: 'smarkets',
|
|
1842
|
-
PolymarketUs: 'polymarket_us',
|
|
1843
1838
|
Router: 'router'
|
|
1844
1839
|
};
|
|
1845
1840
|
/**
|
|
@@ -1915,17 +1910,6 @@ export const FetchEventsPaginatedExchangeEnum = {
|
|
|
1915
1910
|
* @export
|
|
1916
1911
|
*/
|
|
1917
1912
|
export const FetchHedgesExchangeEnum = {
|
|
1918
|
-
Polymarket: 'polymarket',
|
|
1919
|
-
Kalshi: 'kalshi',
|
|
1920
|
-
KalshiDemo: 'kalshi-demo',
|
|
1921
|
-
Limitless: 'limitless',
|
|
1922
|
-
Probable: 'probable',
|
|
1923
|
-
Baozi: 'baozi',
|
|
1924
|
-
Myriad: 'myriad',
|
|
1925
|
-
Opinion: 'opinion',
|
|
1926
|
-
Metaculus: 'metaculus',
|
|
1927
|
-
Smarkets: 'smarkets',
|
|
1928
|
-
PolymarketUs: 'polymarket_us',
|
|
1929
1913
|
Router: 'router'
|
|
1930
1914
|
};
|
|
1931
1915
|
/**
|
|
@@ -1992,17 +1976,6 @@ export const FetchMarketSearchInEnum = {
|
|
|
1992
1976
|
* @export
|
|
1993
1977
|
*/
|
|
1994
1978
|
export const FetchMarketMatchesExchangeEnum = {
|
|
1995
|
-
Polymarket: 'polymarket',
|
|
1996
|
-
Kalshi: 'kalshi',
|
|
1997
|
-
KalshiDemo: 'kalshi-demo',
|
|
1998
|
-
Limitless: 'limitless',
|
|
1999
|
-
Probable: 'probable',
|
|
2000
|
-
Baozi: 'baozi',
|
|
2001
|
-
Myriad: 'myriad',
|
|
2002
|
-
Opinion: 'opinion',
|
|
2003
|
-
Metaculus: 'metaculus',
|
|
2004
|
-
Smarkets: 'smarkets',
|
|
2005
|
-
PolymarketUs: 'polymarket_us',
|
|
2006
1979
|
Router: 'router'
|
|
2007
1980
|
};
|
|
2008
1981
|
/**
|
|
@@ -2086,17 +2059,6 @@ export const FetchMarketsPaginatedExchangeEnum = {
|
|
|
2086
2059
|
* @export
|
|
2087
2060
|
*/
|
|
2088
2061
|
export const FetchMatchedMarketsExchangeEnum = {
|
|
2089
|
-
Polymarket: 'polymarket',
|
|
2090
|
-
Kalshi: 'kalshi',
|
|
2091
|
-
KalshiDemo: 'kalshi-demo',
|
|
2092
|
-
Limitless: 'limitless',
|
|
2093
|
-
Probable: 'probable',
|
|
2094
|
-
Baozi: 'baozi',
|
|
2095
|
-
Myriad: 'myriad',
|
|
2096
|
-
Opinion: 'opinion',
|
|
2097
|
-
Metaculus: 'metaculus',
|
|
2098
|
-
Smarkets: 'smarkets',
|
|
2099
|
-
PolymarketUs: 'polymarket_us',
|
|
2100
2062
|
Router: 'router'
|
|
2101
2063
|
};
|
|
2102
2064
|
/**
|
|
@@ -2113,17 +2075,6 @@ export const FetchMatchedMarketsRelationsEnum = {
|
|
|
2113
2075
|
* @export
|
|
2114
2076
|
*/
|
|
2115
2077
|
export const FetchMatchedPricesExchangeEnum = {
|
|
2116
|
-
Polymarket: 'polymarket',
|
|
2117
|
-
Kalshi: 'kalshi',
|
|
2118
|
-
KalshiDemo: 'kalshi-demo',
|
|
2119
|
-
Limitless: 'limitless',
|
|
2120
|
-
Probable: 'probable',
|
|
2121
|
-
Baozi: 'baozi',
|
|
2122
|
-
Myriad: 'myriad',
|
|
2123
|
-
Opinion: 'opinion',
|
|
2124
|
-
Metaculus: 'metaculus',
|
|
2125
|
-
Smarkets: 'smarkets',
|
|
2126
|
-
PolymarketUs: 'polymarket_us',
|
|
2127
2078
|
Router: 'router'
|
|
2128
2079
|
};
|
|
2129
2080
|
/**
|
|
@@ -2242,17 +2193,6 @@ export const FetchPositionsExchangeEnum = {
|
|
|
2242
2193
|
* @export
|
|
2243
2194
|
*/
|
|
2244
2195
|
export const FetchRelatedMarketsExchangeEnum = {
|
|
2245
|
-
Polymarket: 'polymarket',
|
|
2246
|
-
Kalshi: 'kalshi',
|
|
2247
|
-
KalshiDemo: 'kalshi-demo',
|
|
2248
|
-
Limitless: 'limitless',
|
|
2249
|
-
Probable: 'probable',
|
|
2250
|
-
Baozi: 'baozi',
|
|
2251
|
-
Myriad: 'myriad',
|
|
2252
|
-
Opinion: 'opinion',
|
|
2253
|
-
Metaculus: 'metaculus',
|
|
2254
|
-
Smarkets: 'smarkets',
|
|
2255
|
-
PolymarketUs: 'polymarket_us',
|
|
2256
2196
|
Router: 'router'
|
|
2257
2197
|
};
|
|
2258
2198
|
/**
|
|
@@ -2392,6 +2332,23 @@ export const SubmitOrderOperationExchangeEnum = {
|
|
|
2392
2332
|
PolymarketUs: 'polymarket_us',
|
|
2393
2333
|
Router: 'router'
|
|
2394
2334
|
};
|
|
2335
|
+
/**
|
|
2336
|
+
* @export
|
|
2337
|
+
*/
|
|
2338
|
+
export const TestDummyMethodOperationExchangeEnum = {
|
|
2339
|
+
Polymarket: 'polymarket',
|
|
2340
|
+
Kalshi: 'kalshi',
|
|
2341
|
+
KalshiDemo: 'kalshi-demo',
|
|
2342
|
+
Limitless: 'limitless',
|
|
2343
|
+
Probable: 'probable',
|
|
2344
|
+
Baozi: 'baozi',
|
|
2345
|
+
Myriad: 'myriad',
|
|
2346
|
+
Opinion: 'opinion',
|
|
2347
|
+
Metaculus: 'metaculus',
|
|
2348
|
+
Smarkets: 'smarkets',
|
|
2349
|
+
PolymarketUs: 'polymarket_us',
|
|
2350
|
+
Router: 'router'
|
|
2351
|
+
};
|
|
2395
2352
|
/**
|
|
2396
2353
|
* @export
|
|
2397
2354
|
*/
|
|
@@ -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.
|
|
@@ -34,6 +34,7 @@ export function ExchangeCredentialsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
'signatureType': json['signatureType'] == null ? undefined : ExchangeCredentialsSignatureTypeFromJSON(json['signatureType']),
|
|
35
35
|
'funderAddress': json['funderAddress'] == null ? undefined : json['funderAddress'],
|
|
36
36
|
'walletAddress': json['walletAddress'] == null ? undefined : json['walletAddress'],
|
|
37
|
+
'baseUrl': json['baseUrl'] == null ? undefined : json['baseUrl'],
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
40
|
export function ExchangeCredentialsToJSON(json) {
|
|
@@ -52,5 +53,6 @@ export function ExchangeCredentialsToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
52
53
|
'signatureType': ExchangeCredentialsSignatureTypeToJSON(value['signatureType']),
|
|
53
54
|
'funderAddress': value['funderAddress'],
|
|
54
55
|
'walletAddress': value['walletAddress'],
|
|
56
|
+
'baseUrl': value['baseUrl'],
|
|
55
57
|
};
|
|
56
58
|
}
|
|
@@ -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.js';
|
|
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,46 @@
|
|
|
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
|
+
/**
|
|
16
|
+
* Check if a given object implements the TestDummyMethod200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfTestDummyMethod200Response(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function TestDummyMethod200ResponseFromJSON(json) {
|
|
22
|
+
return TestDummyMethod200ResponseFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function TestDummyMethod200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'success': json['success'] == null ? undefined : json['success'],
|
|
30
|
+
'error': json['error'] == null ? undefined : ErrorDetailFromJSON(json['error']),
|
|
31
|
+
'data': json['data'] == null ? undefined : json['data'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function TestDummyMethod200ResponseToJSON(json) {
|
|
35
|
+
return TestDummyMethod200ResponseToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function TestDummyMethod200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'success': value['success'],
|
|
43
|
+
'error': ErrorDetailToJSON(value['error']),
|
|
44
|
+
'data': value['data'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -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.js';
|
|
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,44 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* PMXT Sidecar API
|
|
5
|
+
* A unified local sidecar API for prediction markets (Polymarket, Kalshi, Limitless). This API acts as a JSON-RPC-style gateway. Each endpoint corresponds to a specific method on the generic exchange implementation.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.4.4
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { ExchangeCredentialsFromJSON, ExchangeCredentialsToJSON, } from './ExchangeCredentials.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the TestDummyMethodRequest interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfTestDummyMethodRequest(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function TestDummyMethodRequestFromJSON(json) {
|
|
22
|
+
return TestDummyMethodRequestFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function TestDummyMethodRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'args': json['args'] == null ? undefined : json['args'],
|
|
30
|
+
'credentials': json['credentials'] == null ? undefined : ExchangeCredentialsFromJSON(json['credentials']),
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function TestDummyMethodRequestToJSON(json) {
|
|
34
|
+
return TestDummyMethodRequestToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function TestDummyMethodRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'args': value['args'],
|
|
42
|
+
'credentials': ExchangeCredentialsToJSON(value['credentials']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -79,6 +79,8 @@ export * from './Position.js';
|
|
|
79
79
|
export * from './PriceCandle.js';
|
|
80
80
|
export * from './PriceComparison.js';
|
|
81
81
|
export * from './SubmitOrderRequest.js';
|
|
82
|
+
export * from './TestDummyMethod200Response.js';
|
|
83
|
+
export * from './TestDummyMethodRequest.js';
|
|
82
84
|
export * from './Trade.js';
|
|
83
85
|
export * from './TradesParams.js';
|
|
84
86
|
export * from './UnifiedEvent.js';
|
|
@@ -81,6 +81,8 @@ export * from './Position.js';
|
|
|
81
81
|
export * from './PriceCandle.js';
|
|
82
82
|
export * from './PriceComparison.js';
|
|
83
83
|
export * from './SubmitOrderRequest.js';
|
|
84
|
+
export * from './TestDummyMethod200Response.js';
|
|
85
|
+
export * from './TestDummyMethodRequest.js';
|
|
84
86
|
export * from './Trade.js';
|
|
85
87
|
export * from './TradesParams.js';
|
|
86
88
|
export * from './UnifiedEvent.js';
|