pmxtjs 2.3.0 → 2.5.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/generated/src/apis/DefaultApi.d.ts +116 -1
- package/dist/esm/generated/src/apis/DefaultApi.js +167 -22
- package/dist/esm/generated/src/models/EventFetchParams.d.ts +12 -0
- package/dist/esm/generated/src/models/EventFetchParams.js +4 -0
- package/dist/esm/generated/src/models/FetchEvent200Response.d.ts +46 -0
- package/dist/esm/generated/src/models/{SearchEvents200Response.js → FetchEvent200Response.js} +11 -11
- package/dist/esm/generated/src/models/FetchMarket200Response.d.ts +46 -0
- package/dist/esm/generated/src/models/FetchMarket200Response.js +47 -0
- package/dist/esm/generated/src/models/MarketFilterParams.d.ts +18 -0
- package/dist/esm/generated/src/models/MarketFilterParams.js +6 -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/client.d.ts +31 -0
- package/dist/esm/pmxt/client.js +93 -0
- package/dist/generated/src/apis/DefaultApi.d.ts +116 -1
- package/dist/generated/src/apis/DefaultApi.js +167 -22
- package/dist/generated/src/models/EventFetchParams.d.ts +12 -0
- package/dist/generated/src/models/EventFetchParams.js +4 -0
- package/dist/generated/src/models/FetchEvent200Response.d.ts +46 -0
- package/{generated/src/models/FetchOHLCV200Response.js → dist/generated/src/models/FetchEvent200Response.js} +16 -16
- package/dist/generated/src/models/FetchMarket200Response.d.ts +46 -0
- package/{generated/src/models/CreateOrder200Response.js → dist/generated/src/models/FetchMarket200Response.js} +16 -16
- package/dist/generated/src/models/MarketFilterParams.d.ts +18 -0
- package/dist/generated/src/models/MarketFilterParams.js +6 -0
- package/dist/generated/src/models/index.d.ts +2 -0
- package/dist/generated/src/models/index.js +2 -0
- package/dist/pmxt/client.d.ts +31 -0
- package/dist/pmxt/client.js +93 -0
- package/generated/.openapi-generator/FILES +5 -0
- package/generated/docs/DefaultApi.md +186 -42
- package/generated/docs/EventFetchParams.md +4 -0
- package/generated/docs/{SearchEvents200Response.md → FetchEvent200Response.md} +5 -5
- package/generated/docs/{GetMarketsBySlugRequest.md → FetchMarket200Response.md} +10 -8
- package/generated/docs/MarketFilterParams.md +6 -0
- package/generated/package.json +1 -1
- package/generated/src/apis/DefaultApi.ts +211 -21
- package/generated/src/models/EventFetchParams.ts +16 -0
- package/generated/src/models/{SearchEvents200Response.ts → FetchEvent200Response.ts} +18 -18
- package/generated/src/models/FetchMarket200Response.ts +96 -0
- package/generated/src/models/MarketFilterParams.ts +24 -0
- package/generated/src/models/index.ts +2 -0
- package/package.json +2 -2
- package/pmxt/client.ts +103 -0
- package/dist/esm/generated/src/models/GetMarketsBySlugRequest.d.ts +0 -39
- package/dist/esm/generated/src/models/GetMarketsBySlugRequest.js +0 -46
- package/dist/esm/generated/src/models/SearchEvents200Response.d.ts +0 -46
- package/dist/esm/generated/src/models/SearchEventsRequest.d.ts +0 -40
- package/dist/esm/generated/src/models/SearchEventsRequest.js +0 -47
- package/dist/esm/generated/src/models/SearchMarketsRequest.d.ts +0 -40
- package/dist/esm/generated/src/models/SearchMarketsRequest.js +0 -47
- package/dist/esm/generated/src/models/SearchMarketsRequestArgsInner.d.ts +0 -22
- package/dist/esm/generated/src/models/SearchMarketsRequestArgsInner.js +0 -50
- package/dist/generated/src/models/GetMarketsBySlugRequest.d.ts +0 -39
- package/dist/generated/src/models/GetMarketsBySlugRequest.js +0 -53
- package/dist/generated/src/models/SearchEvents200Response.d.ts +0 -46
- package/dist/generated/src/models/SearchEvents200Response.js +0 -54
- package/dist/generated/src/models/SearchEventsRequest.d.ts +0 -40
- package/dist/generated/src/models/SearchEventsRequest.js +0 -54
- package/dist/generated/src/models/SearchMarketsRequest.d.ts +0 -40
- package/dist/generated/src/models/SearchMarketsRequest.js +0 -54
- package/dist/generated/src/models/SearchMarketsRequestArgsInner.d.ts +0 -22
- package/dist/generated/src/models/SearchMarketsRequestArgsInner.js +0 -56
- package/generated/docs/SearchEventsRequest.md +0 -36
- package/generated/docs/SearchMarketsRequest.md +0 -36
- package/generated/docs/SearchMarketsRequestArgsInner.md +0 -40
- package/generated/src/apis/DefaultApi.js +0 -812
- package/generated/src/apis/index.js +0 -19
- package/generated/src/index.js +0 -21
- package/generated/src/models/Balance.js +0 -54
- package/generated/src/models/BaseRequest.js +0 -49
- package/generated/src/models/BaseResponse.js +0 -51
- package/generated/src/models/CancelOrderRequest.js +0 -53
- package/generated/src/models/CreateOrderParams.js +0 -85
- package/generated/src/models/CreateOrderRequest.js +0 -54
- package/generated/src/models/ErrorDetail.js +0 -48
- package/generated/src/models/ErrorResponse.js +0 -51
- package/generated/src/models/EventFetchParams.js +0 -63
- package/generated/src/models/ExchangeCredentials.js +0 -59
- package/generated/src/models/ExchangeCredentialsSignatureType.js +0 -49
- package/generated/src/models/ExecutionPriceResult.js +0 -52
- package/generated/src/models/FetchBalance200Response.js +0 -54
- package/generated/src/models/FetchEvents200Response.js +0 -54
- package/generated/src/models/FetchEventsRequest.js +0 -52
- package/generated/src/models/FetchMarkets200Response.js +0 -54
- package/generated/src/models/FetchMarketsRequest.js +0 -52
- package/generated/src/models/FetchOHLCVRequest.js +0 -54
- package/generated/src/models/FetchOHLCVRequestArgsInner.js +0 -56
- package/generated/src/models/FetchOpenOrders200Response.js +0 -54
- package/generated/src/models/FetchOpenOrdersRequest.js +0 -51
- package/generated/src/models/FetchOrderBook200Response.js +0 -54
- package/generated/src/models/FetchOrderBookRequest.js +0 -53
- package/generated/src/models/FetchPositions200Response.js +0 -54
- package/generated/src/models/FetchPositionsRequest.js +0 -51
- package/generated/src/models/FetchTrades200Response.js +0 -54
- package/generated/src/models/FetchTradesRequest.js +0 -54
- package/generated/src/models/FilterEventsRequest.js +0 -54
- package/generated/src/models/FilterEventsRequestArgsInner.js +0 -67
- package/generated/src/models/FilterMarketsRequest.js +0 -54
- package/generated/src/models/FilterMarketsRequestArgsInner.js +0 -67
- package/generated/src/models/FilterMarketsRequestArgsInnerOneOf.js +0 -47
- package/generated/src/models/GetExecutionPrice200Response.js +0 -53
- package/generated/src/models/GetExecutionPriceDetailed200Response.js +0 -54
- package/generated/src/models/GetExecutionPriceRequest.js +0 -54
- package/generated/src/models/GetExecutionPriceRequestArgsInner.js +0 -62
- package/generated/src/models/GetMarketsBySlugRequest.ts +0 -82
- package/generated/src/models/HealthCheck200Response.js +0 -50
- package/generated/src/models/HistoryFilterParams.js +0 -68
- package/generated/src/models/MarketFilterParams.js +0 -79
- package/generated/src/models/MarketOutcome.js +0 -56
- package/generated/src/models/Order.js +0 -95
- package/generated/src/models/OrderBook.js +0 -53
- package/generated/src/models/OrderLevel.js +0 -50
- package/generated/src/models/Position.js +0 -62
- package/generated/src/models/PriceCandle.js +0 -58
- package/generated/src/models/SearchEventsRequest.ts +0 -89
- package/generated/src/models/SearchMarketsRequest.ts +0 -89
- package/generated/src/models/SearchMarketsRequestArgsInner.ts +0 -69
- package/generated/src/models/Trade.js +0 -65
- package/generated/src/models/UnifiedEvent.js +0 -65
- package/generated/src/models/UnifiedMarket.js +0 -81
- package/generated/src/models/WatchOrderBookRequest.js +0 -54
- package/generated/src/models/WatchOrderBookRequestArgsInner.js +0 -49
- package/generated/src/models/WatchPricesRequest.js +0 -53
- package/generated/src/models/WatchTradesRequest.js +0 -54
- package/generated/src/models/WatchUserPositionsRequest.js +0 -49
- package/generated/src/models/index.js +0 -73
- package/generated/src/runtime.js +0 -338
|
@@ -1,58 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* PMXT Sidecar API
|
|
5
|
-
* A unified local sidecar API for prediction markets (Polymarket, Kalshi). This API acts as a JSON-RPC-style gateway. Each endpoint corresponds to a specific method on the generic exchange implementation.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 0.4.4
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { ExchangeCredentials } from './ExchangeCredentials';
|
|
17
|
-
import {
|
|
18
|
-
ExchangeCredentialsFromJSON,
|
|
19
|
-
ExchangeCredentialsFromJSONTyped,
|
|
20
|
-
ExchangeCredentialsToJSON,
|
|
21
|
-
ExchangeCredentialsToJSONTyped,
|
|
22
|
-
} from './ExchangeCredentials';
|
|
23
|
-
import type { SearchMarketsRequestArgsInner } from './SearchMarketsRequestArgsInner';
|
|
24
|
-
import {
|
|
25
|
-
SearchMarketsRequestArgsInnerFromJSON,
|
|
26
|
-
SearchMarketsRequestArgsInnerFromJSONTyped,
|
|
27
|
-
SearchMarketsRequestArgsInnerToJSON,
|
|
28
|
-
SearchMarketsRequestArgsInnerToJSONTyped,
|
|
29
|
-
} from './SearchMarketsRequestArgsInner';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface SearchEventsRequest
|
|
35
|
-
*/
|
|
36
|
-
export interface SearchEventsRequest {
|
|
37
|
-
/**
|
|
38
|
-
* [query, params?]
|
|
39
|
-
* @type {Array<SearchMarketsRequestArgsInner>}
|
|
40
|
-
* @memberof SearchEventsRequest
|
|
41
|
-
*/
|
|
42
|
-
args: Array<SearchMarketsRequestArgsInner>;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {ExchangeCredentials}
|
|
46
|
-
* @memberof SearchEventsRequest
|
|
47
|
-
*/
|
|
48
|
-
credentials?: ExchangeCredentials;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Check if a given object implements the SearchEventsRequest interface.
|
|
53
|
-
*/
|
|
54
|
-
export function instanceOfSearchEventsRequest(value: object): value is SearchEventsRequest {
|
|
55
|
-
if (!('args' in value) || value['args'] === undefined) return false;
|
|
56
|
-
return true;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function SearchEventsRequestFromJSON(json: any): SearchEventsRequest {
|
|
60
|
-
return SearchEventsRequestFromJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function SearchEventsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchEventsRequest {
|
|
64
|
-
if (json == null) {
|
|
65
|
-
return json;
|
|
66
|
-
}
|
|
67
|
-
return {
|
|
68
|
-
|
|
69
|
-
'args': ((json['args'] as Array<any>).map(SearchMarketsRequestArgsInnerFromJSON)),
|
|
70
|
-
'credentials': json['credentials'] == null ? undefined : ExchangeCredentialsFromJSON(json['credentials']),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export function SearchEventsRequestToJSON(json: any): SearchEventsRequest {
|
|
75
|
-
return SearchEventsRequestToJSONTyped(json, false);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export function SearchEventsRequestToJSONTyped(value?: SearchEventsRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
79
|
-
if (value == null) {
|
|
80
|
-
return value;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
return {
|
|
84
|
-
|
|
85
|
-
'args': ((value['args'] as Array<any>).map(SearchMarketsRequestArgsInnerToJSON)),
|
|
86
|
-
'credentials': ExchangeCredentialsToJSON(value['credentials']),
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* PMXT Sidecar API
|
|
5
|
-
* A unified local sidecar API for prediction markets (Polymarket, Kalshi). This API acts as a JSON-RPC-style gateway. Each endpoint corresponds to a specific method on the generic exchange implementation.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 0.4.4
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { ExchangeCredentials } from './ExchangeCredentials';
|
|
17
|
-
import {
|
|
18
|
-
ExchangeCredentialsFromJSON,
|
|
19
|
-
ExchangeCredentialsFromJSONTyped,
|
|
20
|
-
ExchangeCredentialsToJSON,
|
|
21
|
-
ExchangeCredentialsToJSONTyped,
|
|
22
|
-
} from './ExchangeCredentials';
|
|
23
|
-
import type { SearchMarketsRequestArgsInner } from './SearchMarketsRequestArgsInner';
|
|
24
|
-
import {
|
|
25
|
-
SearchMarketsRequestArgsInnerFromJSON,
|
|
26
|
-
SearchMarketsRequestArgsInnerFromJSONTyped,
|
|
27
|
-
SearchMarketsRequestArgsInnerToJSON,
|
|
28
|
-
SearchMarketsRequestArgsInnerToJSONTyped,
|
|
29
|
-
} from './SearchMarketsRequestArgsInner';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface SearchMarketsRequest
|
|
35
|
-
*/
|
|
36
|
-
export interface SearchMarketsRequest {
|
|
37
|
-
/**
|
|
38
|
-
* [query, params?]
|
|
39
|
-
* @type {Array<SearchMarketsRequestArgsInner>}
|
|
40
|
-
* @memberof SearchMarketsRequest
|
|
41
|
-
*/
|
|
42
|
-
args: Array<SearchMarketsRequestArgsInner>;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {ExchangeCredentials}
|
|
46
|
-
* @memberof SearchMarketsRequest
|
|
47
|
-
*/
|
|
48
|
-
credentials?: ExchangeCredentials;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Check if a given object implements the SearchMarketsRequest interface.
|
|
53
|
-
*/
|
|
54
|
-
export function instanceOfSearchMarketsRequest(value: object): value is SearchMarketsRequest {
|
|
55
|
-
if (!('args' in value) || value['args'] === undefined) return false;
|
|
56
|
-
return true;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function SearchMarketsRequestFromJSON(json: any): SearchMarketsRequest {
|
|
60
|
-
return SearchMarketsRequestFromJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function SearchMarketsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchMarketsRequest {
|
|
64
|
-
if (json == null) {
|
|
65
|
-
return json;
|
|
66
|
-
}
|
|
67
|
-
return {
|
|
68
|
-
|
|
69
|
-
'args': ((json['args'] as Array<any>).map(SearchMarketsRequestArgsInnerFromJSON)),
|
|
70
|
-
'credentials': json['credentials'] == null ? undefined : ExchangeCredentialsFromJSON(json['credentials']),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export function SearchMarketsRequestToJSON(json: any): SearchMarketsRequest {
|
|
75
|
-
return SearchMarketsRequestToJSONTyped(json, false);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export function SearchMarketsRequestToJSONTyped(value?: SearchMarketsRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
79
|
-
if (value == null) {
|
|
80
|
-
return value;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
return {
|
|
84
|
-
|
|
85
|
-
'args': ((value['args'] as Array<any>).map(SearchMarketsRequestArgsInnerToJSON)),
|
|
86
|
-
'credentials': ExchangeCredentialsToJSON(value['credentials']),
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* PMXT Sidecar API
|
|
5
|
-
* A unified local sidecar API for prediction markets (Polymarket, Kalshi). This API acts as a JSON-RPC-style gateway. Each endpoint corresponds to a specific method on the generic exchange implementation.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 0.4.4
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import type { MarketFilterParams } from './MarketFilterParams';
|
|
16
|
-
import {
|
|
17
|
-
instanceOfMarketFilterParams,
|
|
18
|
-
MarketFilterParamsFromJSON,
|
|
19
|
-
MarketFilterParamsFromJSONTyped,
|
|
20
|
-
MarketFilterParamsToJSON,
|
|
21
|
-
} from './MarketFilterParams';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* @type SearchMarketsRequestArgsInner
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
*/
|
|
28
|
-
export type SearchMarketsRequestArgsInner = MarketFilterParams | string;
|
|
29
|
-
|
|
30
|
-
export function SearchMarketsRequestArgsInnerFromJSON(json: any): SearchMarketsRequestArgsInner {
|
|
31
|
-
return SearchMarketsRequestArgsInnerFromJSONTyped(json, false);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export function SearchMarketsRequestArgsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchMarketsRequestArgsInner {
|
|
35
|
-
if (json == null) {
|
|
36
|
-
return json;
|
|
37
|
-
}
|
|
38
|
-
if (typeof json !== 'object') {
|
|
39
|
-
return json;
|
|
40
|
-
}
|
|
41
|
-
if (instanceOfMarketFilterParams(json)) {
|
|
42
|
-
return MarketFilterParamsFromJSONTyped(json, true);
|
|
43
|
-
}
|
|
44
|
-
if (typeof json === 'string') {
|
|
45
|
-
return json;
|
|
46
|
-
}
|
|
47
|
-
return {} as any;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function SearchMarketsRequestArgsInnerToJSON(json: any): any {
|
|
51
|
-
return SearchMarketsRequestArgsInnerToJSONTyped(json, false);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export function SearchMarketsRequestArgsInnerToJSONTyped(value?: SearchMarketsRequestArgsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
55
|
-
if (value == null) {
|
|
56
|
-
return value;
|
|
57
|
-
}
|
|
58
|
-
if (typeof value !== 'object') {
|
|
59
|
-
return value;
|
|
60
|
-
}
|
|
61
|
-
if (instanceOfMarketFilterParams(value)) {
|
|
62
|
-
return MarketFilterParamsToJSON(value as MarketFilterParams);
|
|
63
|
-
}
|
|
64
|
-
if (typeof value === 'string') {
|
|
65
|
-
return value;
|
|
66
|
-
}
|
|
67
|
-
return {};
|
|
68
|
-
}
|
|
69
|
-
|
|
@@ -1,65 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
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
|
-
}
|