pmxtjs 2.17.7 → 2.17.8
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/index.d.ts +0 -1
- package/dist/esm/generated/src/models/index.js +0 -1
- package/dist/generated/src/models/FetchOHLCVRequestArgsInner.d.ts +2 -2
- package/dist/generated/src/models/FetchOHLCVRequestArgsInner.js +5 -5
- package/dist/generated/src/models/index.d.ts +0 -1
- package/dist/generated/src/models/index.js +0 -1
- package/generated/.openapi-generator/FILES +0 -2
- package/generated/package.json +1 -1
- package/generated/src/models/FetchOHLCVRequestArgsInner.ts +11 -11
- package/generated/src/models/index.ts +0 -1
- package/package.json +2 -2
- package/dist/esm/generated/src/models/FetchOHLCVRequestArgsInnerOneOf.d.ts +0 -24
- package/dist/esm/generated/src/models/FetchOHLCVRequestArgsInnerOneOf.js +0 -54
- package/dist/generated/src/models/FetchOHLCVRequestArgsInnerOneOf.d.ts +0 -24
- package/dist/generated/src/models/FetchOHLCVRequestArgsInnerOneOf.js +0 -61
- package/generated/docs/FetchOHLCVRequestArgsInnerOneOf.md +0 -40
- package/generated/src/models/FetchOHLCVRequestArgsInnerOneOf.ts +0 -80
|
@@ -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;
|
|
@@ -32,7 +32,6 @@ export * from './FetchMyTradesRequest.js';
|
|
|
32
32
|
export * from './FetchOHLCV200Response.js';
|
|
33
33
|
export * from './FetchOHLCVRequest.js';
|
|
34
34
|
export * from './FetchOHLCVRequestArgsInner.js';
|
|
35
|
-
export * from './FetchOHLCVRequestArgsInnerOneOf.js';
|
|
36
35
|
export * from './FetchOpenOrders200Response.js';
|
|
37
36
|
export * from './FetchOpenOrdersRequest.js';
|
|
38
37
|
export * from './FetchOrderBook200Response.js';
|
|
@@ -34,7 +34,6 @@ export * from './FetchMyTradesRequest.js';
|
|
|
34
34
|
export * from './FetchOHLCV200Response.js';
|
|
35
35
|
export * from './FetchOHLCVRequest.js';
|
|
36
36
|
export * from './FetchOHLCVRequestArgsInner.js';
|
|
37
|
-
export * from './FetchOHLCVRequestArgsInnerOneOf.js';
|
|
38
37
|
export * from './FetchOpenOrders200Response.js';
|
|
39
38
|
export * from './FetchOpenOrdersRequest.js';
|
|
40
39
|
export * from './FetchOrderBook200Response.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;
|
|
@@ -32,7 +32,6 @@ export * from './FetchMyTradesRequest';
|
|
|
32
32
|
export * from './FetchOHLCV200Response';
|
|
33
33
|
export * from './FetchOHLCVRequest';
|
|
34
34
|
export * from './FetchOHLCVRequestArgsInner';
|
|
35
|
-
export * from './FetchOHLCVRequestArgsInnerOneOf';
|
|
36
35
|
export * from './FetchOpenOrders200Response';
|
|
37
36
|
export * from './FetchOpenOrdersRequest';
|
|
38
37
|
export * from './FetchOrderBook200Response';
|
|
@@ -50,7 +50,6 @@ __exportStar(require("./FetchMyTradesRequest"), exports);
|
|
|
50
50
|
__exportStar(require("./FetchOHLCV200Response"), exports);
|
|
51
51
|
__exportStar(require("./FetchOHLCVRequest"), exports);
|
|
52
52
|
__exportStar(require("./FetchOHLCVRequestArgsInner"), exports);
|
|
53
|
-
__exportStar(require("./FetchOHLCVRequestArgsInnerOneOf"), exports);
|
|
54
53
|
__exportStar(require("./FetchOpenOrders200Response"), exports);
|
|
55
54
|
__exportStar(require("./FetchOpenOrdersRequest"), exports);
|
|
56
55
|
__exportStar(require("./FetchOrderBook200Response"), exports);
|
|
@@ -37,7 +37,6 @@ docs/FetchMyTradesRequest.md
|
|
|
37
37
|
docs/FetchOHLCV200Response.md
|
|
38
38
|
docs/FetchOHLCVRequest.md
|
|
39
39
|
docs/FetchOHLCVRequestArgsInner.md
|
|
40
|
-
docs/FetchOHLCVRequestArgsInnerOneOf.md
|
|
41
40
|
docs/FetchOpenOrders200Response.md
|
|
42
41
|
docs/FetchOpenOrdersRequest.md
|
|
43
42
|
docs/FetchOrderBook200Response.md
|
|
@@ -120,7 +119,6 @@ src/models/FetchMyTradesRequest.ts
|
|
|
120
119
|
src/models/FetchOHLCV200Response.ts
|
|
121
120
|
src/models/FetchOHLCVRequest.ts
|
|
122
121
|
src/models/FetchOHLCVRequestArgsInner.ts
|
|
123
|
-
src/models/FetchOHLCVRequestArgsInnerOneOf.ts
|
|
124
122
|
src/models/FetchOpenOrders200Response.ts
|
|
125
123
|
src/models/FetchOpenOrdersRequest.ts
|
|
126
124
|
src/models/FetchOrderBook200Response.ts
|
package/generated/package.json
CHANGED
|
@@ -12,20 +12,20 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import type {
|
|
15
|
+
import type { OHLCVParams } from './OHLCVParams';
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from './
|
|
17
|
+
instanceOfOHLCVParams,
|
|
18
|
+
OHLCVParamsFromJSON,
|
|
19
|
+
OHLCVParamsFromJSONTyped,
|
|
20
|
+
OHLCVParamsToJSON,
|
|
21
|
+
} from './OHLCVParams';
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* @type FetchOHLCVRequestArgsInner
|
|
25
25
|
*
|
|
26
26
|
* @export
|
|
27
27
|
*/
|
|
28
|
-
export type FetchOHLCVRequestArgsInner =
|
|
28
|
+
export type FetchOHLCVRequestArgsInner = OHLCVParams | string;
|
|
29
29
|
|
|
30
30
|
export function FetchOHLCVRequestArgsInnerFromJSON(json: any): FetchOHLCVRequestArgsInner {
|
|
31
31
|
return FetchOHLCVRequestArgsInnerFromJSONTyped(json, false);
|
|
@@ -38,8 +38,8 @@ export function FetchOHLCVRequestArgsInnerFromJSONTyped(json: any, ignoreDiscrim
|
|
|
38
38
|
if (typeof json !== 'object') {
|
|
39
39
|
return json;
|
|
40
40
|
}
|
|
41
|
-
if (
|
|
42
|
-
return
|
|
41
|
+
if (instanceOfOHLCVParams(json)) {
|
|
42
|
+
return OHLCVParamsFromJSONTyped(json, true);
|
|
43
43
|
}
|
|
44
44
|
if (typeof json === 'string') {
|
|
45
45
|
return json;
|
|
@@ -58,8 +58,8 @@ export function FetchOHLCVRequestArgsInnerToJSONTyped(value?: FetchOHLCVRequestA
|
|
|
58
58
|
if (typeof value !== 'object') {
|
|
59
59
|
return value;
|
|
60
60
|
}
|
|
61
|
-
if (
|
|
62
|
-
return
|
|
61
|
+
if (instanceOfOHLCVParams(value)) {
|
|
62
|
+
return OHLCVParamsToJSON(value as OHLCVParams);
|
|
63
63
|
}
|
|
64
64
|
if (typeof value === 'string') {
|
|
65
65
|
return value;
|
|
@@ -34,7 +34,6 @@ export * from './FetchMyTradesRequest';
|
|
|
34
34
|
export * from './FetchOHLCV200Response';
|
|
35
35
|
export * from './FetchOHLCVRequest';
|
|
36
36
|
export * from './FetchOHLCVRequestArgsInner';
|
|
37
|
-
export * from './FetchOHLCVRequestArgsInnerOneOf';
|
|
38
37
|
export * from './FetchOpenOrders200Response';
|
|
39
38
|
export * from './FetchOpenOrdersRequest';
|
|
40
39
|
export * from './FetchOrderBook200Response';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmxtjs",
|
|
3
|
-
"version": "2.17.
|
|
3
|
+
"version": "2.17.8",
|
|
4
4
|
"description": "Unified prediction market data API - The ccxt for prediction markets",
|
|
5
5
|
"author": "PMXT Contributors",
|
|
6
6
|
"repository": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"unified"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"pmxt-core": "2.17.
|
|
46
|
+
"pmxt-core": "2.17.8"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/jest": "^30.0.0",
|
|
@@ -1,24 +0,0 @@
|
|
|
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 { HistoryFilterParams } from './HistoryFilterParams.js';
|
|
13
|
-
import type { OHLCVParams } from './OHLCVParams.js';
|
|
14
|
-
/**
|
|
15
|
-
* @type FetchOHLCVRequestArgsInnerOneOf
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
|
-
export type FetchOHLCVRequestArgsInnerOneOf = HistoryFilterParams | OHLCVParams;
|
|
20
|
-
export declare function instanceOfFetchOHLCVRequestArgsInnerOneOf(value: any): value is FetchOHLCVRequestArgsInnerOneOf;
|
|
21
|
-
export declare function FetchOHLCVRequestArgsInnerOneOfFromJSON(json: any): FetchOHLCVRequestArgsInnerOneOf;
|
|
22
|
-
export declare function FetchOHLCVRequestArgsInnerOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): FetchOHLCVRequestArgsInnerOneOf;
|
|
23
|
-
export declare function FetchOHLCVRequestArgsInnerOneOfToJSON(json: any): any;
|
|
24
|
-
export declare function FetchOHLCVRequestArgsInnerOneOfToJSONTyped(value?: FetchOHLCVRequestArgsInnerOneOf | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,54 +0,0 @@
|
|
|
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 { instanceOfHistoryFilterParams, HistoryFilterParamsFromJSONTyped, HistoryFilterParamsToJSON, } from './HistoryFilterParams.js';
|
|
15
|
-
import { instanceOfOHLCVParams, OHLCVParamsFromJSONTyped, OHLCVParamsToJSON, } from './OHLCVParams.js';
|
|
16
|
-
export function instanceOfFetchOHLCVRequestArgsInnerOneOf(value) {
|
|
17
|
-
return false;
|
|
18
|
-
}
|
|
19
|
-
export function FetchOHLCVRequestArgsInnerOneOfFromJSON(json) {
|
|
20
|
-
return FetchOHLCVRequestArgsInnerOneOfFromJSONTyped(json, false);
|
|
21
|
-
}
|
|
22
|
-
export function FetchOHLCVRequestArgsInnerOneOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
-
if (json == null) {
|
|
24
|
-
return json;
|
|
25
|
-
}
|
|
26
|
-
if (typeof json !== 'object') {
|
|
27
|
-
return json;
|
|
28
|
-
}
|
|
29
|
-
if (instanceOfHistoryFilterParams(json)) {
|
|
30
|
-
return HistoryFilterParamsFromJSONTyped(json, true);
|
|
31
|
-
}
|
|
32
|
-
if (instanceOfOHLCVParams(json)) {
|
|
33
|
-
return OHLCVParamsFromJSONTyped(json, true);
|
|
34
|
-
}
|
|
35
|
-
return {};
|
|
36
|
-
}
|
|
37
|
-
export function FetchOHLCVRequestArgsInnerOneOfToJSON(json) {
|
|
38
|
-
return FetchOHLCVRequestArgsInnerOneOfToJSONTyped(json, false);
|
|
39
|
-
}
|
|
40
|
-
export function FetchOHLCVRequestArgsInnerOneOfToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
-
if (value == null) {
|
|
42
|
-
return value;
|
|
43
|
-
}
|
|
44
|
-
if (typeof value !== 'object') {
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
47
|
-
if (instanceOfHistoryFilterParams(value)) {
|
|
48
|
-
return HistoryFilterParamsToJSON(value);
|
|
49
|
-
}
|
|
50
|
-
if (instanceOfOHLCVParams(value)) {
|
|
51
|
-
return OHLCVParamsToJSON(value);
|
|
52
|
-
}
|
|
53
|
-
return {};
|
|
54
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
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 { HistoryFilterParams } from './HistoryFilterParams';
|
|
13
|
-
import type { OHLCVParams } from './OHLCVParams';
|
|
14
|
-
/**
|
|
15
|
-
* @type FetchOHLCVRequestArgsInnerOneOf
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
|
-
export type FetchOHLCVRequestArgsInnerOneOf = HistoryFilterParams | OHLCVParams;
|
|
20
|
-
export declare function instanceOfFetchOHLCVRequestArgsInnerOneOf(value: any): value is FetchOHLCVRequestArgsInnerOneOf;
|
|
21
|
-
export declare function FetchOHLCVRequestArgsInnerOneOfFromJSON(json: any): FetchOHLCVRequestArgsInnerOneOf;
|
|
22
|
-
export declare function FetchOHLCVRequestArgsInnerOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): FetchOHLCVRequestArgsInnerOneOf;
|
|
23
|
-
export declare function FetchOHLCVRequestArgsInnerOneOfToJSON(json: any): any;
|
|
24
|
-
export declare function FetchOHLCVRequestArgsInnerOneOfToJSONTyped(value?: FetchOHLCVRequestArgsInnerOneOf | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,61 +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.instanceOfFetchOHLCVRequestArgsInnerOneOf = instanceOfFetchOHLCVRequestArgsInnerOneOf;
|
|
17
|
-
exports.FetchOHLCVRequestArgsInnerOneOfFromJSON = FetchOHLCVRequestArgsInnerOneOfFromJSON;
|
|
18
|
-
exports.FetchOHLCVRequestArgsInnerOneOfFromJSONTyped = FetchOHLCVRequestArgsInnerOneOfFromJSONTyped;
|
|
19
|
-
exports.FetchOHLCVRequestArgsInnerOneOfToJSON = FetchOHLCVRequestArgsInnerOneOfToJSON;
|
|
20
|
-
exports.FetchOHLCVRequestArgsInnerOneOfToJSONTyped = FetchOHLCVRequestArgsInnerOneOfToJSONTyped;
|
|
21
|
-
const HistoryFilterParams_1 = require("./HistoryFilterParams");
|
|
22
|
-
const OHLCVParams_1 = require("./OHLCVParams");
|
|
23
|
-
function instanceOfFetchOHLCVRequestArgsInnerOneOf(value) {
|
|
24
|
-
return false;
|
|
25
|
-
}
|
|
26
|
-
function FetchOHLCVRequestArgsInnerOneOfFromJSON(json) {
|
|
27
|
-
return FetchOHLCVRequestArgsInnerOneOfFromJSONTyped(json, false);
|
|
28
|
-
}
|
|
29
|
-
function FetchOHLCVRequestArgsInnerOneOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
-
if (json == null) {
|
|
31
|
-
return json;
|
|
32
|
-
}
|
|
33
|
-
if (typeof json !== 'object') {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
if ((0, HistoryFilterParams_1.instanceOfHistoryFilterParams)(json)) {
|
|
37
|
-
return (0, HistoryFilterParams_1.HistoryFilterParamsFromJSONTyped)(json, true);
|
|
38
|
-
}
|
|
39
|
-
if ((0, OHLCVParams_1.instanceOfOHLCVParams)(json)) {
|
|
40
|
-
return (0, OHLCVParams_1.OHLCVParamsFromJSONTyped)(json, true);
|
|
41
|
-
}
|
|
42
|
-
return {};
|
|
43
|
-
}
|
|
44
|
-
function FetchOHLCVRequestArgsInnerOneOfToJSON(json) {
|
|
45
|
-
return FetchOHLCVRequestArgsInnerOneOfToJSONTyped(json, false);
|
|
46
|
-
}
|
|
47
|
-
function FetchOHLCVRequestArgsInnerOneOfToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
-
if (value == null) {
|
|
49
|
-
return value;
|
|
50
|
-
}
|
|
51
|
-
if (typeof value !== 'object') {
|
|
52
|
-
return value;
|
|
53
|
-
}
|
|
54
|
-
if ((0, HistoryFilterParams_1.instanceOfHistoryFilterParams)(value)) {
|
|
55
|
-
return (0, HistoryFilterParams_1.HistoryFilterParamsToJSON)(value);
|
|
56
|
-
}
|
|
57
|
-
if ((0, OHLCVParams_1.instanceOfOHLCVParams)(value)) {
|
|
58
|
-
return (0, OHLCVParams_1.OHLCVParamsToJSON)(value);
|
|
59
|
-
}
|
|
60
|
-
return {};
|
|
61
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# FetchOHLCVRequestArgsInnerOneOf
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`resolution` | string
|
|
10
|
-
`start` | Date
|
|
11
|
-
`end` | Date
|
|
12
|
-
`limit` | number
|
|
13
|
-
|
|
14
|
-
## Example
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import type { FetchOHLCVRequestArgsInnerOneOf } from 'pmxtjs'
|
|
18
|
-
|
|
19
|
-
// TODO: Update the object below with actual values
|
|
20
|
-
const example = {
|
|
21
|
-
"resolution": null,
|
|
22
|
-
"start": null,
|
|
23
|
-
"end": null,
|
|
24
|
-
"limit": null,
|
|
25
|
-
} satisfies FetchOHLCVRequestArgsInnerOneOf
|
|
26
|
-
|
|
27
|
-
console.log(example)
|
|
28
|
-
|
|
29
|
-
// Convert the instance to a JSON string
|
|
30
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
-
console.log(exampleJSON)
|
|
32
|
-
|
|
33
|
-
// Parse the JSON string back to an object
|
|
34
|
-
const exampleParsed = JSON.parse(exampleJSON) as FetchOHLCVRequestArgsInnerOneOf
|
|
35
|
-
console.log(exampleParsed)
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
-
|
|
40
|
-
|
|
@@ -1,80 +0,0 @@
|
|
|
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
|
-
import type { HistoryFilterParams } from './HistoryFilterParams';
|
|
16
|
-
import {
|
|
17
|
-
instanceOfHistoryFilterParams,
|
|
18
|
-
HistoryFilterParamsFromJSON,
|
|
19
|
-
HistoryFilterParamsFromJSONTyped,
|
|
20
|
-
HistoryFilterParamsToJSON,
|
|
21
|
-
} from './HistoryFilterParams';
|
|
22
|
-
import type { OHLCVParams } from './OHLCVParams';
|
|
23
|
-
import {
|
|
24
|
-
instanceOfOHLCVParams,
|
|
25
|
-
OHLCVParamsFromJSON,
|
|
26
|
-
OHLCVParamsFromJSONTyped,
|
|
27
|
-
OHLCVParamsToJSON,
|
|
28
|
-
} from './OHLCVParams';
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @type FetchOHLCVRequestArgsInnerOneOf
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
*/
|
|
35
|
-
export type FetchOHLCVRequestArgsInnerOneOf = HistoryFilterParams | OHLCVParams;
|
|
36
|
-
|
|
37
|
-
export function instanceOfFetchOHLCVRequestArgsInnerOneOf(value: any): value is FetchOHLCVRequestArgsInnerOneOf {
|
|
38
|
-
return false;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export function FetchOHLCVRequestArgsInnerOneOfFromJSON(json: any): FetchOHLCVRequestArgsInnerOneOf {
|
|
42
|
-
return FetchOHLCVRequestArgsInnerOneOfFromJSONTyped(json, false);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function FetchOHLCVRequestArgsInnerOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): FetchOHLCVRequestArgsInnerOneOf {
|
|
46
|
-
if (json == null) {
|
|
47
|
-
return json;
|
|
48
|
-
}
|
|
49
|
-
if (typeof json !== 'object') {
|
|
50
|
-
return json;
|
|
51
|
-
}
|
|
52
|
-
if (instanceOfHistoryFilterParams(json)) {
|
|
53
|
-
return HistoryFilterParamsFromJSONTyped(json, true);
|
|
54
|
-
}
|
|
55
|
-
if (instanceOfOHLCVParams(json)) {
|
|
56
|
-
return OHLCVParamsFromJSONTyped(json, true);
|
|
57
|
-
}
|
|
58
|
-
return {} as any;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export function FetchOHLCVRequestArgsInnerOneOfToJSON(json: any): any {
|
|
62
|
-
return FetchOHLCVRequestArgsInnerOneOfToJSONTyped(json, false);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export function FetchOHLCVRequestArgsInnerOneOfToJSONTyped(value?: FetchOHLCVRequestArgsInnerOneOf | null, ignoreDiscriminator: boolean = false): any {
|
|
66
|
-
if (value == null) {
|
|
67
|
-
return value;
|
|
68
|
-
}
|
|
69
|
-
if (typeof value !== 'object') {
|
|
70
|
-
return value;
|
|
71
|
-
}
|
|
72
|
-
if (instanceOfHistoryFilterParams(value)) {
|
|
73
|
-
return HistoryFilterParamsToJSON(value as HistoryFilterParams);
|
|
74
|
-
}
|
|
75
|
-
if (instanceOfOHLCVParams(value)) {
|
|
76
|
-
return OHLCVParamsToJSON(value as OHLCVParams);
|
|
77
|
-
}
|
|
78
|
-
return {};
|
|
79
|
-
}
|
|
80
|
-
|