pmxtjs 2.1.2 → 2.2.0
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/index.d.ts +3 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/pmxt/client.js +2 -1
- package/dist/esm/pmxt/models.d.ts +16 -1
- package/dist/esm/pmxt/models.js +56 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -1
- package/dist/pmxt/client.js +2 -1
- package/dist/pmxt/models.d.ts +16 -1
- package/dist/pmxt/models.js +58 -0
- package/generated/package.json +1 -1
- package/generated/src/apis/DefaultApi.js +812 -0
- package/generated/src/apis/index.js +19 -0
- package/generated/src/index.js +21 -0
- package/generated/src/models/Balance.js +54 -0
- package/generated/src/models/BaseRequest.js +49 -0
- package/generated/src/models/BaseResponse.js +51 -0
- package/generated/src/models/CancelOrderRequest.js +53 -0
- package/generated/src/models/CreateOrder200Response.js +54 -0
- package/generated/src/models/CreateOrderParams.js +85 -0
- package/generated/src/models/CreateOrderRequest.js +54 -0
- package/generated/src/models/ErrorDetail.js +48 -0
- package/generated/src/models/ErrorResponse.js +51 -0
- package/generated/src/models/EventFetchParams.js +63 -0
- package/generated/src/models/ExchangeCredentials.js +59 -0
- package/generated/src/models/ExchangeCredentialsSignatureType.js +49 -0
- package/generated/src/models/ExecutionPriceResult.js +52 -0
- package/generated/src/models/FetchBalance200Response.js +54 -0
- package/generated/src/models/FetchEvents200Response.js +54 -0
- package/generated/src/models/FetchEventsRequest.js +52 -0
- package/generated/src/models/FetchMarkets200Response.js +54 -0
- package/generated/src/models/FetchMarketsRequest.js +52 -0
- package/generated/src/models/FetchOHLCV200Response.js +54 -0
- package/generated/src/models/FetchOHLCVRequest.js +54 -0
- package/generated/src/models/FetchOHLCVRequestArgsInner.js +56 -0
- package/generated/src/models/FetchOpenOrders200Response.js +54 -0
- package/generated/src/models/FetchOpenOrdersRequest.js +51 -0
- package/generated/src/models/FetchOrderBook200Response.js +54 -0
- package/generated/src/models/FetchOrderBookRequest.js +53 -0
- package/generated/src/models/FetchPositions200Response.js +54 -0
- package/generated/src/models/FetchPositionsRequest.js +51 -0
- package/generated/src/models/FetchTrades200Response.js +54 -0
- package/generated/src/models/FetchTradesRequest.js +54 -0
- package/generated/src/models/FilterEventsRequest.js +54 -0
- package/generated/src/models/FilterEventsRequestArgsInner.js +67 -0
- package/generated/src/models/FilterMarketsRequest.js +54 -0
- package/generated/src/models/FilterMarketsRequestArgsInner.js +67 -0
- package/generated/src/models/FilterMarketsRequestArgsInnerOneOf.js +47 -0
- package/generated/src/models/GetExecutionPrice200Response.js +53 -0
- package/generated/src/models/GetExecutionPriceDetailed200Response.js +54 -0
- package/generated/src/models/GetExecutionPriceRequest.js +54 -0
- package/generated/src/models/GetExecutionPriceRequestArgsInner.js +62 -0
- package/generated/src/models/HealthCheck200Response.js +50 -0
- package/generated/src/models/HistoryFilterParams.js +68 -0
- package/generated/src/models/MarketFilterParams.js +79 -0
- package/generated/src/models/MarketOutcome.js +56 -0
- package/generated/src/models/Order.js +95 -0
- package/generated/src/models/OrderBook.js +53 -0
- package/generated/src/models/OrderLevel.js +50 -0
- package/generated/src/models/Position.js +62 -0
- package/generated/src/models/PriceCandle.js +58 -0
- package/generated/src/models/Trade.js +65 -0
- package/generated/src/models/UnifiedEvent.js +65 -0
- package/generated/src/models/UnifiedMarket.js +81 -0
- package/generated/src/models/WatchOrderBookRequest.js +54 -0
- package/generated/src/models/WatchOrderBookRequestArgsInner.js +49 -0
- package/generated/src/models/WatchPricesRequest.js +53 -0
- package/generated/src/models/WatchTradesRequest.js +54 -0
- package/generated/src/models/WatchUserPositionsRequest.js +49 -0
- package/generated/src/models/index.js +73 -0
- package/generated/src/runtime.js +338 -0
- package/index.ts +1 -0
- package/package.json +2 -2
- package/pmxt/client.js +957 -0
- package/pmxt/client.ts +2 -1
- package/pmxt/models.js +60 -0
- package/pmxt/models.ts +60 -1
- package/pmxt/server-manager.js +204 -0
|
@@ -0,0 +1,62 @@
|
|
|
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.instanceOfPosition = instanceOfPosition;
|
|
17
|
+
exports.PositionFromJSON = PositionFromJSON;
|
|
18
|
+
exports.PositionFromJSONTyped = PositionFromJSONTyped;
|
|
19
|
+
exports.PositionToJSON = PositionToJSON;
|
|
20
|
+
exports.PositionToJSONTyped = PositionToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the Position interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPosition(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function PositionFromJSON(json) {
|
|
28
|
+
return PositionFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function PositionFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'marketId': json['marketId'] == null ? undefined : json['marketId'],
|
|
36
|
+
'outcomeId': json['outcomeId'] == null ? undefined : json['outcomeId'],
|
|
37
|
+
'outcomeLabel': json['outcomeLabel'] == null ? undefined : json['outcomeLabel'],
|
|
38
|
+
'size': json['size'] == null ? undefined : json['size'],
|
|
39
|
+
'entryPrice': json['entryPrice'] == null ? undefined : json['entryPrice'],
|
|
40
|
+
'currentPrice': json['currentPrice'] == null ? undefined : json['currentPrice'],
|
|
41
|
+
'unrealizedPnL': json['unrealizedPnL'] == null ? undefined : json['unrealizedPnL'],
|
|
42
|
+
'realizedPnL': json['realizedPnL'] == null ? undefined : json['realizedPnL'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PositionToJSON(json) {
|
|
46
|
+
return PositionToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PositionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'marketId': value['marketId'],
|
|
54
|
+
'outcomeId': value['outcomeId'],
|
|
55
|
+
'outcomeLabel': value['outcomeLabel'],
|
|
56
|
+
'size': value['size'],
|
|
57
|
+
'entryPrice': value['entryPrice'],
|
|
58
|
+
'currentPrice': value['currentPrice'],
|
|
59
|
+
'unrealizedPnL': value['unrealizedPnL'],
|
|
60
|
+
'realizedPnL': value['realizedPnL'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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.instanceOfPriceCandle = instanceOfPriceCandle;
|
|
17
|
+
exports.PriceCandleFromJSON = PriceCandleFromJSON;
|
|
18
|
+
exports.PriceCandleFromJSONTyped = PriceCandleFromJSONTyped;
|
|
19
|
+
exports.PriceCandleToJSON = PriceCandleToJSON;
|
|
20
|
+
exports.PriceCandleToJSONTyped = PriceCandleToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PriceCandle interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPriceCandle(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function PriceCandleFromJSON(json) {
|
|
28
|
+
return PriceCandleFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function PriceCandleFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
|
|
36
|
+
'open': json['open'] == null ? undefined : json['open'],
|
|
37
|
+
'high': json['high'] == null ? undefined : json['high'],
|
|
38
|
+
'low': json['low'] == null ? undefined : json['low'],
|
|
39
|
+
'close': json['close'] == null ? undefined : json['close'],
|
|
40
|
+
'volume': json['volume'] == null ? undefined : json['volume'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function PriceCandleToJSON(json) {
|
|
44
|
+
return PriceCandleToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function PriceCandleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'timestamp': value['timestamp'],
|
|
52
|
+
'open': value['open'],
|
|
53
|
+
'high': value['high'],
|
|
54
|
+
'low': value['low'],
|
|
55
|
+
'close': value['close'],
|
|
56
|
+
'volume': value['volume'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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.TradeSideEnum = void 0;
|
|
17
|
+
exports.instanceOfTrade = instanceOfTrade;
|
|
18
|
+
exports.TradeFromJSON = TradeFromJSON;
|
|
19
|
+
exports.TradeFromJSONTyped = TradeFromJSONTyped;
|
|
20
|
+
exports.TradeToJSON = TradeToJSON;
|
|
21
|
+
exports.TradeToJSONTyped = TradeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.TradeSideEnum = {
|
|
26
|
+
Buy: 'buy',
|
|
27
|
+
Sell: 'sell',
|
|
28
|
+
Unknown: 'unknown'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the Trade interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfTrade(value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function TradeFromJSON(json) {
|
|
37
|
+
return TradeFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function TradeFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
45
|
+
'price': json['price'] == null ? undefined : json['price'],
|
|
46
|
+
'amount': json['amount'] == null ? undefined : json['amount'],
|
|
47
|
+
'side': json['side'] == null ? undefined : json['side'],
|
|
48
|
+
'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function TradeToJSON(json) {
|
|
52
|
+
return TradeToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function TradeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'id': value['id'],
|
|
60
|
+
'price': value['price'],
|
|
61
|
+
'amount': value['amount'],
|
|
62
|
+
'side': value['side'],
|
|
63
|
+
'timestamp': value['timestamp'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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.instanceOfUnifiedEvent = instanceOfUnifiedEvent;
|
|
17
|
+
exports.UnifiedEventFromJSON = UnifiedEventFromJSON;
|
|
18
|
+
exports.UnifiedEventFromJSONTyped = UnifiedEventFromJSONTyped;
|
|
19
|
+
exports.UnifiedEventToJSON = UnifiedEventToJSON;
|
|
20
|
+
exports.UnifiedEventToJSONTyped = UnifiedEventToJSONTyped;
|
|
21
|
+
const UnifiedMarket_1 = require("./UnifiedMarket");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the UnifiedEvent interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfUnifiedEvent(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function UnifiedEventFromJSON(json) {
|
|
29
|
+
return UnifiedEventFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function UnifiedEventFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
37
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
38
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
39
|
+
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
40
|
+
'markets': json['markets'] == null ? undefined : (json['markets'].map(UnifiedMarket_1.UnifiedMarketFromJSON)),
|
|
41
|
+
'url': json['url'] == null ? undefined : json['url'],
|
|
42
|
+
'image': json['image'] == null ? undefined : json['image'],
|
|
43
|
+
'category': json['category'] == null ? undefined : json['category'],
|
|
44
|
+
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function UnifiedEventToJSON(json) {
|
|
48
|
+
return UnifiedEventToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function UnifiedEventToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'id': value['id'],
|
|
56
|
+
'title': value['title'],
|
|
57
|
+
'description': value['description'],
|
|
58
|
+
'slug': value['slug'],
|
|
59
|
+
'markets': value['markets'] == null ? undefined : (value['markets'].map(UnifiedMarket_1.UnifiedMarketToJSON)),
|
|
60
|
+
'url': value['url'],
|
|
61
|
+
'image': value['image'],
|
|
62
|
+
'category': value['category'],
|
|
63
|
+
'tags': value['tags'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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.instanceOfUnifiedMarket = instanceOfUnifiedMarket;
|
|
17
|
+
exports.UnifiedMarketFromJSON = UnifiedMarketFromJSON;
|
|
18
|
+
exports.UnifiedMarketFromJSONTyped = UnifiedMarketFromJSONTyped;
|
|
19
|
+
exports.UnifiedMarketToJSON = UnifiedMarketToJSON;
|
|
20
|
+
exports.UnifiedMarketToJSONTyped = UnifiedMarketToJSONTyped;
|
|
21
|
+
const MarketOutcome_1 = require("./MarketOutcome");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the UnifiedMarket interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfUnifiedMarket(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function UnifiedMarketFromJSON(json) {
|
|
29
|
+
return UnifiedMarketFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function UnifiedMarketFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'marketId': json['marketId'] == null ? undefined : json['marketId'],
|
|
37
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
38
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
39
|
+
'outcomes': json['outcomes'] == null ? undefined : (json['outcomes'].map(MarketOutcome_1.MarketOutcomeFromJSON)),
|
|
40
|
+
'resolutionDate': json['resolutionDate'] == null ? undefined : (new Date(json['resolutionDate'])),
|
|
41
|
+
'volume24h': json['volume24h'] == null ? undefined : json['volume24h'],
|
|
42
|
+
'volume': json['volume'] == null ? undefined : json['volume'],
|
|
43
|
+
'liquidity': json['liquidity'] == null ? undefined : json['liquidity'],
|
|
44
|
+
'openInterest': json['openInterest'] == null ? undefined : json['openInterest'],
|
|
45
|
+
'url': json['url'] == null ? undefined : json['url'],
|
|
46
|
+
'image': json['image'] == null ? undefined : json['image'],
|
|
47
|
+
'category': json['category'] == null ? undefined : json['category'],
|
|
48
|
+
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
49
|
+
'yes': json['yes'] == null ? undefined : (0, MarketOutcome_1.MarketOutcomeFromJSON)(json['yes']),
|
|
50
|
+
'no': json['no'] == null ? undefined : (0, MarketOutcome_1.MarketOutcomeFromJSON)(json['no']),
|
|
51
|
+
'up': json['up'] == null ? undefined : (0, MarketOutcome_1.MarketOutcomeFromJSON)(json['up']),
|
|
52
|
+
'down': json['down'] == null ? undefined : (0, MarketOutcome_1.MarketOutcomeFromJSON)(json['down']),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function UnifiedMarketToJSON(json) {
|
|
56
|
+
return UnifiedMarketToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function UnifiedMarketToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'marketId': value['marketId'],
|
|
64
|
+
'title': value['title'],
|
|
65
|
+
'description': value['description'],
|
|
66
|
+
'outcomes': value['outcomes'] == null ? undefined : (value['outcomes'].map(MarketOutcome_1.MarketOutcomeToJSON)),
|
|
67
|
+
'resolutionDate': value['resolutionDate'] == null ? value['resolutionDate'] : value['resolutionDate'].toISOString(),
|
|
68
|
+
'volume24h': value['volume24h'],
|
|
69
|
+
'volume': value['volume'],
|
|
70
|
+
'liquidity': value['liquidity'],
|
|
71
|
+
'openInterest': value['openInterest'],
|
|
72
|
+
'url': value['url'],
|
|
73
|
+
'image': value['image'],
|
|
74
|
+
'category': value['category'],
|
|
75
|
+
'tags': value['tags'],
|
|
76
|
+
'yes': (0, MarketOutcome_1.MarketOutcomeToJSON)(value['yes']),
|
|
77
|
+
'no': (0, MarketOutcome_1.MarketOutcomeToJSON)(value['no']),
|
|
78
|
+
'up': (0, MarketOutcome_1.MarketOutcomeToJSON)(value['up']),
|
|
79
|
+
'down': (0, MarketOutcome_1.MarketOutcomeToJSON)(value['down']),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfWatchOrderBookRequest = instanceOfWatchOrderBookRequest;
|
|
17
|
+
exports.WatchOrderBookRequestFromJSON = WatchOrderBookRequestFromJSON;
|
|
18
|
+
exports.WatchOrderBookRequestFromJSONTyped = WatchOrderBookRequestFromJSONTyped;
|
|
19
|
+
exports.WatchOrderBookRequestToJSON = WatchOrderBookRequestToJSON;
|
|
20
|
+
exports.WatchOrderBookRequestToJSONTyped = WatchOrderBookRequestToJSONTyped;
|
|
21
|
+
const ExchangeCredentials_1 = require("./ExchangeCredentials");
|
|
22
|
+
const WatchOrderBookRequestArgsInner_1 = require("./WatchOrderBookRequestArgsInner");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the WatchOrderBookRequest interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfWatchOrderBookRequest(value) {
|
|
27
|
+
if (!('args' in value) || value['args'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function WatchOrderBookRequestFromJSON(json) {
|
|
32
|
+
return WatchOrderBookRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function WatchOrderBookRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'args': (json['args'].map(WatchOrderBookRequestArgsInner_1.WatchOrderBookRequestArgsInnerFromJSON)),
|
|
40
|
+
'credentials': json['credentials'] == null ? undefined : (0, ExchangeCredentials_1.ExchangeCredentialsFromJSON)(json['credentials']),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function WatchOrderBookRequestToJSON(json) {
|
|
44
|
+
return WatchOrderBookRequestToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function WatchOrderBookRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'args': (value['args'].map(WatchOrderBookRequestArgsInner_1.WatchOrderBookRequestArgsInnerToJSON)),
|
|
52
|
+
'credentials': (0, ExchangeCredentials_1.ExchangeCredentialsToJSON)(value['credentials']),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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.WatchOrderBookRequestArgsInnerFromJSON = WatchOrderBookRequestArgsInnerFromJSON;
|
|
17
|
+
exports.WatchOrderBookRequestArgsInnerFromJSONTyped = WatchOrderBookRequestArgsInnerFromJSONTyped;
|
|
18
|
+
exports.WatchOrderBookRequestArgsInnerToJSON = WatchOrderBookRequestArgsInnerToJSON;
|
|
19
|
+
exports.WatchOrderBookRequestArgsInnerToJSONTyped = WatchOrderBookRequestArgsInnerToJSONTyped;
|
|
20
|
+
function WatchOrderBookRequestArgsInnerFromJSON(json) {
|
|
21
|
+
return WatchOrderBookRequestArgsInnerFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
function WatchOrderBookRequestArgsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
if (typeof json === 'number') {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
if (typeof json === 'string') {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {};
|
|
34
|
+
}
|
|
35
|
+
function WatchOrderBookRequestArgsInnerToJSON(json) {
|
|
36
|
+
return WatchOrderBookRequestArgsInnerToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function WatchOrderBookRequestArgsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
if (typeof value === 'number') {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
if (typeof value === 'string') {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {};
|
|
49
|
+
}
|
|
@@ -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.instanceOfWatchPricesRequest = instanceOfWatchPricesRequest;
|
|
17
|
+
exports.WatchPricesRequestFromJSON = WatchPricesRequestFromJSON;
|
|
18
|
+
exports.WatchPricesRequestFromJSONTyped = WatchPricesRequestFromJSONTyped;
|
|
19
|
+
exports.WatchPricesRequestToJSON = WatchPricesRequestToJSON;
|
|
20
|
+
exports.WatchPricesRequestToJSONTyped = WatchPricesRequestToJSONTyped;
|
|
21
|
+
const ExchangeCredentials_1 = require("./ExchangeCredentials");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the WatchPricesRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfWatchPricesRequest(value) {
|
|
26
|
+
if (!('args' in value) || value['args'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function WatchPricesRequestFromJSON(json) {
|
|
31
|
+
return WatchPricesRequestFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function WatchPricesRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'args': json['args'],
|
|
39
|
+
'credentials': json['credentials'] == null ? undefined : (0, ExchangeCredentials_1.ExchangeCredentialsFromJSON)(json['credentials']),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function WatchPricesRequestToJSON(json) {
|
|
43
|
+
return WatchPricesRequestToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function WatchPricesRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'args': value['args'],
|
|
51
|
+
'credentials': (0, ExchangeCredentials_1.ExchangeCredentialsToJSON)(value['credentials']),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfWatchTradesRequest = instanceOfWatchTradesRequest;
|
|
17
|
+
exports.WatchTradesRequestFromJSON = WatchTradesRequestFromJSON;
|
|
18
|
+
exports.WatchTradesRequestFromJSONTyped = WatchTradesRequestFromJSONTyped;
|
|
19
|
+
exports.WatchTradesRequestToJSON = WatchTradesRequestToJSON;
|
|
20
|
+
exports.WatchTradesRequestToJSONTyped = WatchTradesRequestToJSONTyped;
|
|
21
|
+
const ExchangeCredentials_1 = require("./ExchangeCredentials");
|
|
22
|
+
const WatchOrderBookRequestArgsInner_1 = require("./WatchOrderBookRequestArgsInner");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the WatchTradesRequest interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfWatchTradesRequest(value) {
|
|
27
|
+
if (!('args' in value) || value['args'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function WatchTradesRequestFromJSON(json) {
|
|
32
|
+
return WatchTradesRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function WatchTradesRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'args': (json['args'].map(WatchOrderBookRequestArgsInner_1.WatchOrderBookRequestArgsInnerFromJSON)),
|
|
40
|
+
'credentials': json['credentials'] == null ? undefined : (0, ExchangeCredentials_1.ExchangeCredentialsFromJSON)(json['credentials']),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function WatchTradesRequestToJSON(json) {
|
|
44
|
+
return WatchTradesRequestToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function WatchTradesRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'args': (value['args'].map(WatchOrderBookRequestArgsInner_1.WatchOrderBookRequestArgsInnerToJSON)),
|
|
52
|
+
'credentials': (0, ExchangeCredentials_1.ExchangeCredentialsToJSON)(value['credentials']),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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.instanceOfWatchUserPositionsRequest = instanceOfWatchUserPositionsRequest;
|
|
17
|
+
exports.WatchUserPositionsRequestFromJSON = WatchUserPositionsRequestFromJSON;
|
|
18
|
+
exports.WatchUserPositionsRequestFromJSONTyped = WatchUserPositionsRequestFromJSONTyped;
|
|
19
|
+
exports.WatchUserPositionsRequestToJSON = WatchUserPositionsRequestToJSON;
|
|
20
|
+
exports.WatchUserPositionsRequestToJSONTyped = WatchUserPositionsRequestToJSONTyped;
|
|
21
|
+
const ExchangeCredentials_1 = require("./ExchangeCredentials");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the WatchUserPositionsRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfWatchUserPositionsRequest(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function WatchUserPositionsRequestFromJSON(json) {
|
|
29
|
+
return WatchUserPositionsRequestFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function WatchUserPositionsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'credentials': json['credentials'] == null ? undefined : (0, ExchangeCredentials_1.ExchangeCredentialsFromJSON)(json['credentials']),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function WatchUserPositionsRequestToJSON(json) {
|
|
40
|
+
return WatchUserPositionsRequestToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function WatchUserPositionsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'credentials': (0, ExchangeCredentials_1.ExchangeCredentialsToJSON)(value['credentials']),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* tslint:disable */
|
|
18
|
+
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./Balance"), exports);
|
|
20
|
+
__exportStar(require("./BaseRequest"), exports);
|
|
21
|
+
__exportStar(require("./BaseResponse"), exports);
|
|
22
|
+
__exportStar(require("./CancelOrderRequest"), exports);
|
|
23
|
+
__exportStar(require("./CreateOrder200Response"), exports);
|
|
24
|
+
__exportStar(require("./CreateOrderParams"), exports);
|
|
25
|
+
__exportStar(require("./CreateOrderRequest"), exports);
|
|
26
|
+
__exportStar(require("./ErrorDetail"), exports);
|
|
27
|
+
__exportStar(require("./ErrorResponse"), exports);
|
|
28
|
+
__exportStar(require("./EventFetchParams"), exports);
|
|
29
|
+
__exportStar(require("./ExchangeCredentials"), exports);
|
|
30
|
+
__exportStar(require("./ExchangeCredentialsSignatureType"), exports);
|
|
31
|
+
__exportStar(require("./ExecutionPriceResult"), exports);
|
|
32
|
+
__exportStar(require("./FetchBalance200Response"), exports);
|
|
33
|
+
__exportStar(require("./FetchEvents200Response"), exports);
|
|
34
|
+
__exportStar(require("./FetchEventsRequest"), exports);
|
|
35
|
+
__exportStar(require("./FetchMarkets200Response"), exports);
|
|
36
|
+
__exportStar(require("./FetchMarketsRequest"), exports);
|
|
37
|
+
__exportStar(require("./FetchOHLCV200Response"), exports);
|
|
38
|
+
__exportStar(require("./FetchOHLCVRequest"), exports);
|
|
39
|
+
__exportStar(require("./FetchOHLCVRequestArgsInner"), exports);
|
|
40
|
+
__exportStar(require("./FetchOpenOrders200Response"), exports);
|
|
41
|
+
__exportStar(require("./FetchOpenOrdersRequest"), exports);
|
|
42
|
+
__exportStar(require("./FetchOrderBook200Response"), exports);
|
|
43
|
+
__exportStar(require("./FetchOrderBookRequest"), exports);
|
|
44
|
+
__exportStar(require("./FetchPositions200Response"), exports);
|
|
45
|
+
__exportStar(require("./FetchPositionsRequest"), exports);
|
|
46
|
+
__exportStar(require("./FetchTrades200Response"), exports);
|
|
47
|
+
__exportStar(require("./FetchTradesRequest"), exports);
|
|
48
|
+
__exportStar(require("./FilterEventsRequest"), exports);
|
|
49
|
+
__exportStar(require("./FilterEventsRequestArgsInner"), exports);
|
|
50
|
+
__exportStar(require("./FilterMarketsRequest"), exports);
|
|
51
|
+
__exportStar(require("./FilterMarketsRequestArgsInner"), exports);
|
|
52
|
+
__exportStar(require("./FilterMarketsRequestArgsInnerOneOf"), exports);
|
|
53
|
+
__exportStar(require("./GetExecutionPrice200Response"), exports);
|
|
54
|
+
__exportStar(require("./GetExecutionPriceDetailed200Response"), exports);
|
|
55
|
+
__exportStar(require("./GetExecutionPriceRequest"), exports);
|
|
56
|
+
__exportStar(require("./GetExecutionPriceRequestArgsInner"), exports);
|
|
57
|
+
__exportStar(require("./HealthCheck200Response"), exports);
|
|
58
|
+
__exportStar(require("./HistoryFilterParams"), exports);
|
|
59
|
+
__exportStar(require("./MarketFilterParams"), exports);
|
|
60
|
+
__exportStar(require("./MarketOutcome"), exports);
|
|
61
|
+
__exportStar(require("./Order"), exports);
|
|
62
|
+
__exportStar(require("./OrderBook"), exports);
|
|
63
|
+
__exportStar(require("./OrderLevel"), exports);
|
|
64
|
+
__exportStar(require("./Position"), exports);
|
|
65
|
+
__exportStar(require("./PriceCandle"), exports);
|
|
66
|
+
__exportStar(require("./Trade"), exports);
|
|
67
|
+
__exportStar(require("./UnifiedEvent"), exports);
|
|
68
|
+
__exportStar(require("./UnifiedMarket"), exports);
|
|
69
|
+
__exportStar(require("./WatchOrderBookRequest"), exports);
|
|
70
|
+
__exportStar(require("./WatchOrderBookRequestArgsInner"), exports);
|
|
71
|
+
__exportStar(require("./WatchPricesRequest"), exports);
|
|
72
|
+
__exportStar(require("./WatchTradesRequest"), exports);
|
|
73
|
+
__exportStar(require("./WatchUserPositionsRequest"), exports);
|