pmxtjs 2.0.4 → 2.0.7
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/models/FetchOHLCVRequestArgsInner.d.ts +2 -2
- package/dist/esm/generated/src/models/FetchOHLCVRequestArgsInner.js +5 -5
- package/dist/esm/generated/src/models/FetchTradesRequest.d.ts +3 -3
- package/dist/esm/generated/src/models/FetchTradesRequest.js +3 -3
- package/dist/esm/generated/src/models/FetchTradesRequestArgsInner.d.ts +22 -0
- package/dist/esm/generated/src/models/FetchTradesRequestArgsInner.js +50 -0
- package/dist/esm/generated/src/models/HistoryFilterParams.d.ts +2 -2
- package/dist/esm/generated/src/models/HistoryFilterParams.js +1 -3
- package/dist/esm/generated/src/models/OHLCVParams.d.ts +62 -0
- package/dist/esm/generated/src/models/OHLCVParams.js +60 -0
- package/dist/esm/generated/src/models/TradesParams.d.ts +44 -0
- package/dist/esm/generated/src/models/TradesParams.js +45 -0
- package/dist/esm/generated/src/models/index.d.ts +3 -0
- package/dist/esm/generated/src/models/index.js +3 -0
- package/dist/generated/src/models/FetchOHLCVRequestArgsInner.d.ts +2 -2
- package/dist/generated/src/models/FetchOHLCVRequestArgsInner.js +5 -5
- package/dist/generated/src/models/FetchTradesRequest.d.ts +3 -3
- package/dist/generated/src/models/FetchTradesRequest.js +3 -3
- package/dist/generated/src/models/FetchTradesRequestArgsInner.d.ts +22 -0
- package/dist/generated/src/models/FetchTradesRequestArgsInner.js +56 -0
- package/dist/generated/src/models/HistoryFilterParams.d.ts +2 -2
- package/dist/generated/src/models/HistoryFilterParams.js +1 -3
- package/dist/generated/src/models/OHLCVParams.d.ts +62 -0
- package/dist/generated/src/models/OHLCVParams.js +68 -0
- package/dist/generated/src/models/TradesParams.d.ts +44 -0
- package/dist/generated/src/models/TradesParams.js +52 -0
- package/dist/generated/src/models/index.d.ts +3 -0
- package/dist/generated/src/models/index.js +3 -0
- package/generated/.openapi-generator/FILES +6 -0
- package/generated/docs/FetchTradesRequest.md +1 -1
- package/generated/docs/FetchTradesRequestArgsInner.md +38 -0
- package/generated/docs/HistoryFilterParams.md +1 -0
- package/generated/docs/OHLCVParams.md +40 -0
- package/generated/docs/TradesParams.md +39 -0
- package/generated/package.json +1 -1
- package/generated/src/models/FetchOHLCVRequestArgsInner.ts +11 -11
- package/generated/src/models/FetchTradesRequest.ts +10 -10
- package/generated/src/models/FetchTradesRequestArgsInner.ts +69 -0
- package/generated/src/models/HistoryFilterParams.ts +3 -4
- package/generated/src/models/OHLCVParams.ts +105 -0
- package/generated/src/models/TradesParams.ts +81 -0
- package/generated/src/models/index.ts +3 -0
- package/package.json +2 -2
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { OHLCVParams } from './OHLCVParams.js';
|
|
13
13
|
/**
|
|
14
14
|
* @type FetchOHLCVRequestArgsInner
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
17
17
|
*/
|
|
18
|
-
export type FetchOHLCVRequestArgsInner =
|
|
18
|
+
export type FetchOHLCVRequestArgsInner = OHLCVParams | string;
|
|
19
19
|
export declare function FetchOHLCVRequestArgsInnerFromJSON(json: any): FetchOHLCVRequestArgsInner;
|
|
20
20
|
export declare function FetchOHLCVRequestArgsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): FetchOHLCVRequestArgsInner;
|
|
21
21
|
export declare function FetchOHLCVRequestArgsInnerToJSON(json: any): any;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
14
|
+
import { instanceOfOHLCVParams, OHLCVParamsFromJSONTyped, OHLCVParamsToJSON, } from './OHLCVParams.js';
|
|
15
15
|
export function FetchOHLCVRequestArgsInnerFromJSON(json) {
|
|
16
16
|
return FetchOHLCVRequestArgsInnerFromJSONTyped(json, false);
|
|
17
17
|
}
|
|
@@ -22,8 +22,8 @@ export function FetchOHLCVRequestArgsInnerFromJSONTyped(json, ignoreDiscriminato
|
|
|
22
22
|
if (typeof json !== 'object') {
|
|
23
23
|
return json;
|
|
24
24
|
}
|
|
25
|
-
if (
|
|
26
|
-
return
|
|
25
|
+
if (instanceOfOHLCVParams(json)) {
|
|
26
|
+
return OHLCVParamsFromJSONTyped(json, true);
|
|
27
27
|
}
|
|
28
28
|
if (typeof json === 'string') {
|
|
29
29
|
return json;
|
|
@@ -40,8 +40,8 @@ export function FetchOHLCVRequestArgsInnerToJSONTyped(value, ignoreDiscriminator
|
|
|
40
40
|
if (typeof value !== 'object') {
|
|
41
41
|
return value;
|
|
42
42
|
}
|
|
43
|
-
if (
|
|
44
|
-
return
|
|
43
|
+
if (instanceOfOHLCVParams(value)) {
|
|
44
|
+
return OHLCVParamsToJSON(value);
|
|
45
45
|
}
|
|
46
46
|
if (typeof value === 'string') {
|
|
47
47
|
return value;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { FetchTradesRequestArgsInner } from './FetchTradesRequestArgsInner.js';
|
|
13
13
|
import type { ExchangeCredentials } from './ExchangeCredentials.js';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
@@ -19,10 +19,10 @@ import type { ExchangeCredentials } from './ExchangeCredentials.js';
|
|
|
19
19
|
export interface FetchTradesRequest {
|
|
20
20
|
/**
|
|
21
21
|
* [id, params]
|
|
22
|
-
* @type {Array<
|
|
22
|
+
* @type {Array<FetchTradesRequestArgsInner>}
|
|
23
23
|
* @memberof FetchTradesRequest
|
|
24
24
|
*/
|
|
25
|
-
args: Array<
|
|
25
|
+
args: Array<FetchTradesRequestArgsInner>;
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
28
|
* @type {ExchangeCredentials}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
14
|
+
import { FetchTradesRequestArgsInnerFromJSON, FetchTradesRequestArgsInnerToJSON, } from './FetchTradesRequestArgsInner.js';
|
|
15
15
|
import { ExchangeCredentialsFromJSON, ExchangeCredentialsToJSON, } from './ExchangeCredentials.js';
|
|
16
16
|
/**
|
|
17
17
|
* Check if a given object implements the FetchTradesRequest interface.
|
|
@@ -29,7 +29,7 @@ export function FetchTradesRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
return json;
|
|
30
30
|
}
|
|
31
31
|
return {
|
|
32
|
-
'args': (json['args'].map(
|
|
32
|
+
'args': (json['args'].map(FetchTradesRequestArgsInnerFromJSON)),
|
|
33
33
|
'credentials': json['credentials'] == null ? undefined : ExchangeCredentialsFromJSON(json['credentials']),
|
|
34
34
|
};
|
|
35
35
|
}
|
|
@@ -41,7 +41,7 @@ export function FetchTradesRequestToJSONTyped(value, ignoreDiscriminator = false
|
|
|
41
41
|
return value;
|
|
42
42
|
}
|
|
43
43
|
return {
|
|
44
|
-
'args': (value['args'].map(
|
|
44
|
+
'args': (value['args'].map(FetchTradesRequestArgsInnerToJSON)),
|
|
45
45
|
'credentials': ExchangeCredentialsToJSON(value['credentials']),
|
|
46
46
|
};
|
|
47
47
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { TradesParams } from './TradesParams.js';
|
|
13
|
+
/**
|
|
14
|
+
* @type FetchTradesRequestArgsInner
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export type FetchTradesRequestArgsInner = TradesParams | string;
|
|
19
|
+
export declare function FetchTradesRequestArgsInnerFromJSON(json: any): FetchTradesRequestArgsInner;
|
|
20
|
+
export declare function FetchTradesRequestArgsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): FetchTradesRequestArgsInner;
|
|
21
|
+
export declare function FetchTradesRequestArgsInnerToJSON(json: any): any;
|
|
22
|
+
export declare function FetchTradesRequestArgsInnerToJSONTyped(value?: FetchTradesRequestArgsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { instanceOfTradesParams, TradesParamsFromJSONTyped, TradesParamsToJSON, } from './TradesParams.js';
|
|
15
|
+
export function FetchTradesRequestArgsInnerFromJSON(json) {
|
|
16
|
+
return FetchTradesRequestArgsInnerFromJSONTyped(json, false);
|
|
17
|
+
}
|
|
18
|
+
export function FetchTradesRequestArgsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
19
|
+
if (json == null) {
|
|
20
|
+
return json;
|
|
21
|
+
}
|
|
22
|
+
if (typeof json !== 'object') {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
if (instanceOfTradesParams(json)) {
|
|
26
|
+
return TradesParamsFromJSONTyped(json, true);
|
|
27
|
+
}
|
|
28
|
+
if (typeof json === 'string') {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {};
|
|
32
|
+
}
|
|
33
|
+
export function FetchTradesRequestArgsInnerToJSON(json) {
|
|
34
|
+
return FetchTradesRequestArgsInnerToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function FetchTradesRequestArgsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
if (typeof value !== 'object') {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
if (instanceOfTradesParams(value)) {
|
|
44
|
+
return TradesParamsToJSON(value);
|
|
45
|
+
}
|
|
46
|
+
if (typeof value === 'string') {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {};
|
|
50
|
+
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Deprecated - use OHLCVParams or TradesParams instead. Resolution is optional for backward compatibility.
|
|
14
14
|
* @export
|
|
15
15
|
* @interface HistoryFilterParams
|
|
16
16
|
*/
|
|
@@ -20,7 +20,7 @@ export interface HistoryFilterParams {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof HistoryFilterParams
|
|
22
22
|
*/
|
|
23
|
-
resolution
|
|
23
|
+
resolution?: HistoryFilterParamsResolutionEnum;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {Date}
|
|
@@ -26,8 +26,6 @@ export const HistoryFilterParamsResolutionEnum = {
|
|
|
26
26
|
* Check if a given object implements the HistoryFilterParams interface.
|
|
27
27
|
*/
|
|
28
28
|
export function instanceOfHistoryFilterParams(value) {
|
|
29
|
-
if (!('resolution' in value) || value['resolution'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
return true;
|
|
32
30
|
}
|
|
33
31
|
export function HistoryFilterParamsFromJSON(json) {
|
|
@@ -38,7 +36,7 @@ export function HistoryFilterParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
36
|
return json;
|
|
39
37
|
}
|
|
40
38
|
return {
|
|
41
|
-
'resolution': json['resolution'],
|
|
39
|
+
'resolution': json['resolution'] == null ? undefined : json['resolution'],
|
|
42
40
|
'start': json['start'] == null ? undefined : (new Date(json['start'])),
|
|
43
41
|
'end': json['end'] == null ? undefined : (new Date(json['end'])),
|
|
44
42
|
'limit': json['limit'] == null ? undefined : json['limit'],
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface OHLCVParams
|
|
16
|
+
*/
|
|
17
|
+
export interface OHLCVParams {
|
|
18
|
+
/**
|
|
19
|
+
* Candle interval for aggregation
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OHLCVParams
|
|
22
|
+
*/
|
|
23
|
+
resolution: OHLCVParamsResolutionEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof OHLCVParams
|
|
28
|
+
*/
|
|
29
|
+
start?: Date;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof OHLCVParams
|
|
34
|
+
*/
|
|
35
|
+
end?: Date;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof OHLCVParams
|
|
40
|
+
*/
|
|
41
|
+
limit?: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const OHLCVParamsResolutionEnum: {
|
|
47
|
+
readonly _1m: "1m";
|
|
48
|
+
readonly _5m: "5m";
|
|
49
|
+
readonly _15m: "15m";
|
|
50
|
+
readonly _1h: "1h";
|
|
51
|
+
readonly _6h: "6h";
|
|
52
|
+
readonly _1d: "1d";
|
|
53
|
+
};
|
|
54
|
+
export type OHLCVParamsResolutionEnum = typeof OHLCVParamsResolutionEnum[keyof typeof OHLCVParamsResolutionEnum];
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the OHLCVParams interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfOHLCVParams(value: object): value is OHLCVParams;
|
|
59
|
+
export declare function OHLCVParamsFromJSON(json: any): OHLCVParams;
|
|
60
|
+
export declare function OHLCVParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): OHLCVParams;
|
|
61
|
+
export declare function OHLCVParamsToJSON(json: any): OHLCVParams;
|
|
62
|
+
export declare function OHLCVParamsToJSONTyped(value?: OHLCVParams | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const OHLCVParamsResolutionEnum = {
|
|
18
|
+
_1m: '1m',
|
|
19
|
+
_5m: '5m',
|
|
20
|
+
_15m: '15m',
|
|
21
|
+
_1h: '1h',
|
|
22
|
+
_6h: '6h',
|
|
23
|
+
_1d: '1d'
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the OHLCVParams interface.
|
|
27
|
+
*/
|
|
28
|
+
export function instanceOfOHLCVParams(value) {
|
|
29
|
+
if (!('resolution' in value) || value['resolution'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function OHLCVParamsFromJSON(json) {
|
|
34
|
+
return OHLCVParamsFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function OHLCVParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'resolution': json['resolution'],
|
|
42
|
+
'start': json['start'] == null ? undefined : (new Date(json['start'])),
|
|
43
|
+
'end': json['end'] == null ? undefined : (new Date(json['end'])),
|
|
44
|
+
'limit': json['limit'] == null ? undefined : json['limit'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export function OHLCVParamsToJSON(json) {
|
|
48
|
+
return OHLCVParamsToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
export function OHLCVParamsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'resolution': value['resolution'],
|
|
56
|
+
'start': value['start'] == null ? value['start'] : value['start'].toISOString(),
|
|
57
|
+
'end': value['end'] == null ? value['end'] : value['end'].toISOString(),
|
|
58
|
+
'limit': value['limit'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* Parameters for fetching trade history. No resolution parameter - trades are discrete events.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TradesParams
|
|
16
|
+
*/
|
|
17
|
+
export interface TradesParams {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Date}
|
|
21
|
+
* @memberof TradesParams
|
|
22
|
+
*/
|
|
23
|
+
start?: Date;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof TradesParams
|
|
28
|
+
*/
|
|
29
|
+
end?: Date;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof TradesParams
|
|
34
|
+
*/
|
|
35
|
+
limit?: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the TradesParams interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfTradesParams(value: object): value is TradesParams;
|
|
41
|
+
export declare function TradesParamsFromJSON(json: any): TradesParams;
|
|
42
|
+
export declare function TradesParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TradesParams;
|
|
43
|
+
export declare function TradesParamsToJSON(json: any): TradesParams;
|
|
44
|
+
export declare function TradesParamsToJSONTyped(value?: TradesParams | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
/**
|
|
15
|
+
* Check if a given object implements the TradesParams interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfTradesParams(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function TradesParamsFromJSON(json) {
|
|
21
|
+
return TradesParamsFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function TradesParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'start': json['start'] == null ? undefined : (new Date(json['start'])),
|
|
29
|
+
'end': json['end'] == null ? undefined : (new Date(json['end'])),
|
|
30
|
+
'limit': json['limit'] == null ? undefined : json['limit'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function TradesParamsToJSON(json) {
|
|
34
|
+
return TradesParamsToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function TradesParamsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'start': value['start'] == null ? value['start'] : value['start'].toISOString(),
|
|
42
|
+
'end': value['end'] == null ? value['end'] : value['end'].toISOString(),
|
|
43
|
+
'limit': value['limit'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -27,6 +27,7 @@ export * from './FetchPositions200Response.js';
|
|
|
27
27
|
export * from './FetchPositionsRequest.js';
|
|
28
28
|
export * from './FetchTrades200Response.js';
|
|
29
29
|
export * from './FetchTradesRequest.js';
|
|
30
|
+
export * from './FetchTradesRequestArgsInner.js';
|
|
30
31
|
export * from './FilterEventsRequest.js';
|
|
31
32
|
export * from './FilterEventsRequestArgsInner.js';
|
|
32
33
|
export * from './FilterMarketsRequest.js';
|
|
@@ -40,12 +41,14 @@ export * from './HealthCheck200Response.js';
|
|
|
40
41
|
export * from './HistoryFilterParams.js';
|
|
41
42
|
export * from './MarketFilterParams.js';
|
|
42
43
|
export * from './MarketOutcome.js';
|
|
44
|
+
export * from './OHLCVParams.js';
|
|
43
45
|
export * from './Order.js';
|
|
44
46
|
export * from './OrderBook.js';
|
|
45
47
|
export * from './OrderLevel.js';
|
|
46
48
|
export * from './Position.js';
|
|
47
49
|
export * from './PriceCandle.js';
|
|
48
50
|
export * from './Trade.js';
|
|
51
|
+
export * from './TradesParams.js';
|
|
49
52
|
export * from './UnifiedEvent.js';
|
|
50
53
|
export * from './UnifiedMarket.js';
|
|
51
54
|
export * from './WatchOrderBookRequest.js';
|
|
@@ -29,6 +29,7 @@ export * from './FetchPositions200Response.js';
|
|
|
29
29
|
export * from './FetchPositionsRequest.js';
|
|
30
30
|
export * from './FetchTrades200Response.js';
|
|
31
31
|
export * from './FetchTradesRequest.js';
|
|
32
|
+
export * from './FetchTradesRequestArgsInner.js';
|
|
32
33
|
export * from './FilterEventsRequest.js';
|
|
33
34
|
export * from './FilterEventsRequestArgsInner.js';
|
|
34
35
|
export * from './FilterMarketsRequest.js';
|
|
@@ -42,12 +43,14 @@ export * from './HealthCheck200Response.js';
|
|
|
42
43
|
export * from './HistoryFilterParams.js';
|
|
43
44
|
export * from './MarketFilterParams.js';
|
|
44
45
|
export * from './MarketOutcome.js';
|
|
46
|
+
export * from './OHLCVParams.js';
|
|
45
47
|
export * from './Order.js';
|
|
46
48
|
export * from './OrderBook.js';
|
|
47
49
|
export * from './OrderLevel.js';
|
|
48
50
|
export * from './Position.js';
|
|
49
51
|
export * from './PriceCandle.js';
|
|
50
52
|
export * from './Trade.js';
|
|
53
|
+
export * from './TradesParams.js';
|
|
51
54
|
export * from './UnifiedEvent.js';
|
|
52
55
|
export * from './UnifiedMarket.js';
|
|
53
56
|
export * from './WatchOrderBookRequest.js';
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { OHLCVParams } from './OHLCVParams';
|
|
13
13
|
/**
|
|
14
14
|
* @type FetchOHLCVRequestArgsInner
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
17
17
|
*/
|
|
18
|
-
export type FetchOHLCVRequestArgsInner =
|
|
18
|
+
export type FetchOHLCVRequestArgsInner = OHLCVParams | string;
|
|
19
19
|
export declare function FetchOHLCVRequestArgsInnerFromJSON(json: any): FetchOHLCVRequestArgsInner;
|
|
20
20
|
export declare function FetchOHLCVRequestArgsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): FetchOHLCVRequestArgsInner;
|
|
21
21
|
export declare function FetchOHLCVRequestArgsInnerToJSON(json: any): any;
|
|
@@ -17,7 +17,7 @@ exports.FetchOHLCVRequestArgsInnerFromJSON = FetchOHLCVRequestArgsInnerFromJSON;
|
|
|
17
17
|
exports.FetchOHLCVRequestArgsInnerFromJSONTyped = FetchOHLCVRequestArgsInnerFromJSONTyped;
|
|
18
18
|
exports.FetchOHLCVRequestArgsInnerToJSON = FetchOHLCVRequestArgsInnerToJSON;
|
|
19
19
|
exports.FetchOHLCVRequestArgsInnerToJSONTyped = FetchOHLCVRequestArgsInnerToJSONTyped;
|
|
20
|
-
const
|
|
20
|
+
const OHLCVParams_1 = require("./OHLCVParams");
|
|
21
21
|
function FetchOHLCVRequestArgsInnerFromJSON(json) {
|
|
22
22
|
return FetchOHLCVRequestArgsInnerFromJSONTyped(json, false);
|
|
23
23
|
}
|
|
@@ -28,8 +28,8 @@ function FetchOHLCVRequestArgsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
if (typeof json !== 'object') {
|
|
29
29
|
return json;
|
|
30
30
|
}
|
|
31
|
-
if ((0,
|
|
32
|
-
return (0,
|
|
31
|
+
if ((0, OHLCVParams_1.instanceOfOHLCVParams)(json)) {
|
|
32
|
+
return (0, OHLCVParams_1.OHLCVParamsFromJSONTyped)(json, true);
|
|
33
33
|
}
|
|
34
34
|
if (typeof json === 'string') {
|
|
35
35
|
return json;
|
|
@@ -46,8 +46,8 @@ function FetchOHLCVRequestArgsInnerToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
46
46
|
if (typeof value !== 'object') {
|
|
47
47
|
return value;
|
|
48
48
|
}
|
|
49
|
-
if ((0,
|
|
50
|
-
return (0,
|
|
49
|
+
if ((0, OHLCVParams_1.instanceOfOHLCVParams)(value)) {
|
|
50
|
+
return (0, OHLCVParams_1.OHLCVParamsToJSON)(value);
|
|
51
51
|
}
|
|
52
52
|
if (typeof value === 'string') {
|
|
53
53
|
return value;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { FetchTradesRequestArgsInner } from './FetchTradesRequestArgsInner';
|
|
13
13
|
import type { ExchangeCredentials } from './ExchangeCredentials';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
@@ -19,10 +19,10 @@ import type { ExchangeCredentials } from './ExchangeCredentials';
|
|
|
19
19
|
export interface FetchTradesRequest {
|
|
20
20
|
/**
|
|
21
21
|
* [id, params]
|
|
22
|
-
* @type {Array<
|
|
22
|
+
* @type {Array<FetchTradesRequestArgsInner>}
|
|
23
23
|
* @memberof FetchTradesRequest
|
|
24
24
|
*/
|
|
25
|
-
args: Array<
|
|
25
|
+
args: Array<FetchTradesRequestArgsInner>;
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
28
|
* @type {ExchangeCredentials}
|
|
@@ -18,7 +18,7 @@ exports.FetchTradesRequestFromJSON = FetchTradesRequestFromJSON;
|
|
|
18
18
|
exports.FetchTradesRequestFromJSONTyped = FetchTradesRequestFromJSONTyped;
|
|
19
19
|
exports.FetchTradesRequestToJSON = FetchTradesRequestToJSON;
|
|
20
20
|
exports.FetchTradesRequestToJSONTyped = FetchTradesRequestToJSONTyped;
|
|
21
|
-
const
|
|
21
|
+
const FetchTradesRequestArgsInner_1 = require("./FetchTradesRequestArgsInner");
|
|
22
22
|
const ExchangeCredentials_1 = require("./ExchangeCredentials");
|
|
23
23
|
/**
|
|
24
24
|
* Check if a given object implements the FetchTradesRequest interface.
|
|
@@ -36,7 +36,7 @@ function FetchTradesRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
return json;
|
|
37
37
|
}
|
|
38
38
|
return {
|
|
39
|
-
'args': (json['args'].map(
|
|
39
|
+
'args': (json['args'].map(FetchTradesRequestArgsInner_1.FetchTradesRequestArgsInnerFromJSON)),
|
|
40
40
|
'credentials': json['credentials'] == null ? undefined : (0, ExchangeCredentials_1.ExchangeCredentialsFromJSON)(json['credentials']),
|
|
41
41
|
};
|
|
42
42
|
}
|
|
@@ -48,7 +48,7 @@ function FetchTradesRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
48
|
return value;
|
|
49
49
|
}
|
|
50
50
|
return {
|
|
51
|
-
'args': (value['args'].map(
|
|
51
|
+
'args': (value['args'].map(FetchTradesRequestArgsInner_1.FetchTradesRequestArgsInnerToJSON)),
|
|
52
52
|
'credentials': (0, ExchangeCredentials_1.ExchangeCredentialsToJSON)(value['credentials']),
|
|
53
53
|
};
|
|
54
54
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { TradesParams } from './TradesParams';
|
|
13
|
+
/**
|
|
14
|
+
* @type FetchTradesRequestArgsInner
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export type FetchTradesRequestArgsInner = TradesParams | string;
|
|
19
|
+
export declare function FetchTradesRequestArgsInnerFromJSON(json: any): FetchTradesRequestArgsInner;
|
|
20
|
+
export declare function FetchTradesRequestArgsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): FetchTradesRequestArgsInner;
|
|
21
|
+
export declare function FetchTradesRequestArgsInnerToJSON(json: any): any;
|
|
22
|
+
export declare function FetchTradesRequestArgsInnerToJSONTyped(value?: FetchTradesRequestArgsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.FetchTradesRequestArgsInnerFromJSON = FetchTradesRequestArgsInnerFromJSON;
|
|
17
|
+
exports.FetchTradesRequestArgsInnerFromJSONTyped = FetchTradesRequestArgsInnerFromJSONTyped;
|
|
18
|
+
exports.FetchTradesRequestArgsInnerToJSON = FetchTradesRequestArgsInnerToJSON;
|
|
19
|
+
exports.FetchTradesRequestArgsInnerToJSONTyped = FetchTradesRequestArgsInnerToJSONTyped;
|
|
20
|
+
const TradesParams_1 = require("./TradesParams");
|
|
21
|
+
function FetchTradesRequestArgsInnerFromJSON(json) {
|
|
22
|
+
return FetchTradesRequestArgsInnerFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
function FetchTradesRequestArgsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
if (typeof json !== 'object') {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
if ((0, TradesParams_1.instanceOfTradesParams)(json)) {
|
|
32
|
+
return (0, TradesParams_1.TradesParamsFromJSONTyped)(json, true);
|
|
33
|
+
}
|
|
34
|
+
if (typeof json === 'string') {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {};
|
|
38
|
+
}
|
|
39
|
+
function FetchTradesRequestArgsInnerToJSON(json) {
|
|
40
|
+
return FetchTradesRequestArgsInnerToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function FetchTradesRequestArgsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
if (typeof value !== 'object') {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
if ((0, TradesParams_1.instanceOfTradesParams)(value)) {
|
|
50
|
+
return (0, TradesParams_1.TradesParamsToJSON)(value);
|
|
51
|
+
}
|
|
52
|
+
if (typeof value === 'string') {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {};
|
|
56
|
+
}
|