pmxtjs 1.0.0-b5 → 1.0.0-b6
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.js +40 -77
- package/dist/esm/generated/src/apis/index.js +1 -17
- package/dist/esm/generated/src/index.js +3 -19
- package/dist/esm/generated/src/models/Balance.js +5 -12
- package/dist/esm/generated/src/models/BaseRequest.js +8 -15
- package/dist/esm/generated/src/models/BaseResponse.js +8 -15
- package/dist/esm/generated/src/models/CancelOrderRequest.js +8 -15
- package/dist/esm/generated/src/models/CreateOrder200Response.js +11 -18
- package/dist/esm/generated/src/models/CreateOrderParams.js +7 -15
- package/dist/esm/generated/src/models/CreateOrderRequest.js +11 -18
- package/dist/esm/generated/src/models/ErrorDetail.js +5 -12
- package/dist/esm/generated/src/models/ErrorResponse.js +8 -15
- package/dist/esm/generated/src/models/ExchangeCredentials.js +5 -12
- package/dist/esm/generated/src/models/FetchBalance200Response.js +11 -18
- package/dist/esm/generated/src/models/FetchMarkets200Response.js +11 -18
- package/dist/esm/generated/src/models/FetchMarketsRequest.js +11 -18
- package/dist/esm/generated/src/models/FetchOHLCV200Response.js +11 -18
- package/dist/esm/generated/src/models/FetchOHLCVRequest.js +11 -18
- package/dist/esm/generated/src/models/FetchOHLCVRequestArgsInner.js +9 -15
- package/dist/esm/generated/src/models/FetchOpenOrders200Response.js +11 -18
- package/dist/esm/generated/src/models/FetchOpenOrdersRequest.js +8 -15
- package/dist/esm/generated/src/models/FetchOrderBook200Response.js +11 -18
- package/dist/esm/generated/src/models/FetchOrderBookRequest.js +8 -15
- package/dist/esm/generated/src/models/FetchPositions200Response.js +11 -18
- package/dist/esm/generated/src/models/FetchPositionsRequest.js +8 -15
- package/dist/esm/generated/src/models/FetchTrades200Response.js +11 -18
- package/dist/esm/generated/src/models/FetchTradesRequest.js +11 -18
- package/dist/esm/generated/src/models/GetMarketsBySlugRequest.js +8 -15
- package/dist/esm/generated/src/models/HealthCheck200Response.js +5 -12
- package/dist/esm/generated/src/models/HistoryFilterParams.js +6 -14
- package/dist/esm/generated/src/models/MarketFilterParams.js +7 -15
- package/dist/esm/generated/src/models/MarketOutcome.js +5 -12
- package/dist/esm/generated/src/models/Order.js +7 -15
- package/dist/esm/generated/src/models/OrderBook.js +10 -17
- package/dist/esm/generated/src/models/OrderLevel.js +5 -12
- package/dist/esm/generated/src/models/Position.js +5 -12
- package/dist/esm/generated/src/models/PriceCandle.js +5 -12
- package/dist/esm/generated/src/models/SearchMarketsRequest.js +11 -18
- package/dist/esm/generated/src/models/SearchMarketsRequestArgsInner.js +9 -15
- package/dist/esm/generated/src/models/Trade.js +6 -14
- package/dist/esm/generated/src/models/UnifiedMarket.js +8 -15
- package/dist/esm/generated/src/models/index.js +38 -54
- package/dist/esm/generated/src/runtime.js +18 -34
- package/dist/esm/index.d.ts +0 -1
- package/dist/esm/index.js +0 -1
- package/dist/esm/package.json +1 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +50 -11
- package/dist/pmxt/client.js +14 -8
- package/dist/pmxt/models.js +2 -1
- package/dist/pmxt/server-manager.js +42 -5
- package/generated/package.json +1 -1
- package/index.ts +0 -1
- package/package.json +2 -3
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/* tslint:disable */
|
|
3
2
|
/* eslint-disable */
|
|
4
3
|
/**
|
|
@@ -12,43 +11,37 @@
|
|
|
12
11
|
* https://openapi-generator.tech
|
|
13
12
|
* Do not edit the class manually.
|
|
14
13
|
*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
exports.FetchOpenOrders200ResponseFromJSON = FetchOpenOrders200ResponseFromJSON;
|
|
18
|
-
exports.FetchOpenOrders200ResponseFromJSONTyped = FetchOpenOrders200ResponseFromJSONTyped;
|
|
19
|
-
exports.FetchOpenOrders200ResponseToJSON = FetchOpenOrders200ResponseToJSON;
|
|
20
|
-
exports.FetchOpenOrders200ResponseToJSONTyped = FetchOpenOrders200ResponseToJSONTyped;
|
|
21
|
-
const ErrorDetail_1 = require("./ErrorDetail");
|
|
22
|
-
const Order_1 = require("./Order");
|
|
14
|
+
import { ErrorDetailFromJSON, ErrorDetailToJSON, } from './ErrorDetail';
|
|
15
|
+
import { OrderFromJSON, OrderToJSON, } from './Order';
|
|
23
16
|
/**
|
|
24
17
|
* Check if a given object implements the FetchOpenOrders200Response interface.
|
|
25
18
|
*/
|
|
26
|
-
function instanceOfFetchOpenOrders200Response(value) {
|
|
19
|
+
export function instanceOfFetchOpenOrders200Response(value) {
|
|
27
20
|
return true;
|
|
28
21
|
}
|
|
29
|
-
function FetchOpenOrders200ResponseFromJSON(json) {
|
|
22
|
+
export function FetchOpenOrders200ResponseFromJSON(json) {
|
|
30
23
|
return FetchOpenOrders200ResponseFromJSONTyped(json, false);
|
|
31
24
|
}
|
|
32
|
-
function FetchOpenOrders200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
export function FetchOpenOrders200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
26
|
if (json == null) {
|
|
34
27
|
return json;
|
|
35
28
|
}
|
|
36
29
|
return {
|
|
37
30
|
'success': json['success'] == null ? undefined : json['success'],
|
|
38
|
-
'error': json['error'] == null ? undefined :
|
|
39
|
-
'data': json['data'] == null ? undefined : (json['data'].map(
|
|
31
|
+
'error': json['error'] == null ? undefined : ErrorDetailFromJSON(json['error']),
|
|
32
|
+
'data': json['data'] == null ? undefined : (json['data'].map(OrderFromJSON)),
|
|
40
33
|
};
|
|
41
34
|
}
|
|
42
|
-
function FetchOpenOrders200ResponseToJSON(json) {
|
|
35
|
+
export function FetchOpenOrders200ResponseToJSON(json) {
|
|
43
36
|
return FetchOpenOrders200ResponseToJSONTyped(json, false);
|
|
44
37
|
}
|
|
45
|
-
function FetchOpenOrders200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
export function FetchOpenOrders200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
39
|
if (value == null) {
|
|
47
40
|
return value;
|
|
48
41
|
}
|
|
49
42
|
return {
|
|
50
43
|
'success': value['success'],
|
|
51
|
-
'error':
|
|
52
|
-
'data': value['data'] == null ? undefined : (value['data'].map(
|
|
44
|
+
'error': ErrorDetailToJSON(value['error']),
|
|
45
|
+
'data': value['data'] == null ? undefined : (value['data'].map(OrderToJSON)),
|
|
53
46
|
};
|
|
54
47
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/* tslint:disable */
|
|
3
2
|
/* eslint-disable */
|
|
4
3
|
/**
|
|
@@ -12,40 +11,34 @@
|
|
|
12
11
|
* https://openapi-generator.tech
|
|
13
12
|
* Do not edit the class manually.
|
|
14
13
|
*/
|
|
15
|
-
|
|
16
|
-
exports.instanceOfFetchOpenOrdersRequest = instanceOfFetchOpenOrdersRequest;
|
|
17
|
-
exports.FetchOpenOrdersRequestFromJSON = FetchOpenOrdersRequestFromJSON;
|
|
18
|
-
exports.FetchOpenOrdersRequestFromJSONTyped = FetchOpenOrdersRequestFromJSONTyped;
|
|
19
|
-
exports.FetchOpenOrdersRequestToJSON = FetchOpenOrdersRequestToJSON;
|
|
20
|
-
exports.FetchOpenOrdersRequestToJSONTyped = FetchOpenOrdersRequestToJSONTyped;
|
|
21
|
-
const ExchangeCredentials_1 = require("./ExchangeCredentials");
|
|
14
|
+
import { ExchangeCredentialsFromJSON, ExchangeCredentialsToJSON, } from './ExchangeCredentials';
|
|
22
15
|
/**
|
|
23
16
|
* Check if a given object implements the FetchOpenOrdersRequest interface.
|
|
24
17
|
*/
|
|
25
|
-
function instanceOfFetchOpenOrdersRequest(value) {
|
|
18
|
+
export function instanceOfFetchOpenOrdersRequest(value) {
|
|
26
19
|
return true;
|
|
27
20
|
}
|
|
28
|
-
function FetchOpenOrdersRequestFromJSON(json) {
|
|
21
|
+
export function FetchOpenOrdersRequestFromJSON(json) {
|
|
29
22
|
return FetchOpenOrdersRequestFromJSONTyped(json, false);
|
|
30
23
|
}
|
|
31
|
-
function FetchOpenOrdersRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
export function FetchOpenOrdersRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
25
|
if (json == null) {
|
|
33
26
|
return json;
|
|
34
27
|
}
|
|
35
28
|
return {
|
|
36
29
|
'args': json['args'] == null ? undefined : json['args'],
|
|
37
|
-
'credentials': json['credentials'] == null ? undefined :
|
|
30
|
+
'credentials': json['credentials'] == null ? undefined : ExchangeCredentialsFromJSON(json['credentials']),
|
|
38
31
|
};
|
|
39
32
|
}
|
|
40
|
-
function FetchOpenOrdersRequestToJSON(json) {
|
|
33
|
+
export function FetchOpenOrdersRequestToJSON(json) {
|
|
41
34
|
return FetchOpenOrdersRequestToJSONTyped(json, false);
|
|
42
35
|
}
|
|
43
|
-
function FetchOpenOrdersRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
export function FetchOpenOrdersRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
37
|
if (value == null) {
|
|
45
38
|
return value;
|
|
46
39
|
}
|
|
47
40
|
return {
|
|
48
41
|
'args': value['args'],
|
|
49
|
-
'credentials':
|
|
42
|
+
'credentials': ExchangeCredentialsToJSON(value['credentials']),
|
|
50
43
|
};
|
|
51
44
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/* tslint:disable */
|
|
3
2
|
/* eslint-disable */
|
|
4
3
|
/**
|
|
@@ -12,43 +11,37 @@
|
|
|
12
11
|
* https://openapi-generator.tech
|
|
13
12
|
* Do not edit the class manually.
|
|
14
13
|
*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
exports.FetchOrderBook200ResponseFromJSON = FetchOrderBook200ResponseFromJSON;
|
|
18
|
-
exports.FetchOrderBook200ResponseFromJSONTyped = FetchOrderBook200ResponseFromJSONTyped;
|
|
19
|
-
exports.FetchOrderBook200ResponseToJSON = FetchOrderBook200ResponseToJSON;
|
|
20
|
-
exports.FetchOrderBook200ResponseToJSONTyped = FetchOrderBook200ResponseToJSONTyped;
|
|
21
|
-
const ErrorDetail_1 = require("./ErrorDetail");
|
|
22
|
-
const OrderBook_1 = require("./OrderBook");
|
|
14
|
+
import { ErrorDetailFromJSON, ErrorDetailToJSON, } from './ErrorDetail';
|
|
15
|
+
import { OrderBookFromJSON, OrderBookToJSON, } from './OrderBook';
|
|
23
16
|
/**
|
|
24
17
|
* Check if a given object implements the FetchOrderBook200Response interface.
|
|
25
18
|
*/
|
|
26
|
-
function instanceOfFetchOrderBook200Response(value) {
|
|
19
|
+
export function instanceOfFetchOrderBook200Response(value) {
|
|
27
20
|
return true;
|
|
28
21
|
}
|
|
29
|
-
function FetchOrderBook200ResponseFromJSON(json) {
|
|
22
|
+
export function FetchOrderBook200ResponseFromJSON(json) {
|
|
30
23
|
return FetchOrderBook200ResponseFromJSONTyped(json, false);
|
|
31
24
|
}
|
|
32
|
-
function FetchOrderBook200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
export function FetchOrderBook200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
26
|
if (json == null) {
|
|
34
27
|
return json;
|
|
35
28
|
}
|
|
36
29
|
return {
|
|
37
30
|
'success': json['success'] == null ? undefined : json['success'],
|
|
38
|
-
'error': json['error'] == null ? undefined :
|
|
39
|
-
'data': json['data'] == null ? undefined :
|
|
31
|
+
'error': json['error'] == null ? undefined : ErrorDetailFromJSON(json['error']),
|
|
32
|
+
'data': json['data'] == null ? undefined : OrderBookFromJSON(json['data']),
|
|
40
33
|
};
|
|
41
34
|
}
|
|
42
|
-
function FetchOrderBook200ResponseToJSON(json) {
|
|
35
|
+
export function FetchOrderBook200ResponseToJSON(json) {
|
|
43
36
|
return FetchOrderBook200ResponseToJSONTyped(json, false);
|
|
44
37
|
}
|
|
45
|
-
function FetchOrderBook200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
export function FetchOrderBook200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
39
|
if (value == null) {
|
|
47
40
|
return value;
|
|
48
41
|
}
|
|
49
42
|
return {
|
|
50
43
|
'success': value['success'],
|
|
51
|
-
'error':
|
|
52
|
-
'data':
|
|
44
|
+
'error': ErrorDetailToJSON(value['error']),
|
|
45
|
+
'data': OrderBookToJSON(value['data']),
|
|
53
46
|
};
|
|
54
47
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/* tslint:disable */
|
|
3
2
|
/* eslint-disable */
|
|
4
3
|
/**
|
|
@@ -12,42 +11,36 @@
|
|
|
12
11
|
* https://openapi-generator.tech
|
|
13
12
|
* Do not edit the class manually.
|
|
14
13
|
*/
|
|
15
|
-
|
|
16
|
-
exports.instanceOfFetchOrderBookRequest = instanceOfFetchOrderBookRequest;
|
|
17
|
-
exports.FetchOrderBookRequestFromJSON = FetchOrderBookRequestFromJSON;
|
|
18
|
-
exports.FetchOrderBookRequestFromJSONTyped = FetchOrderBookRequestFromJSONTyped;
|
|
19
|
-
exports.FetchOrderBookRequestToJSON = FetchOrderBookRequestToJSON;
|
|
20
|
-
exports.FetchOrderBookRequestToJSONTyped = FetchOrderBookRequestToJSONTyped;
|
|
21
|
-
const ExchangeCredentials_1 = require("./ExchangeCredentials");
|
|
14
|
+
import { ExchangeCredentialsFromJSON, ExchangeCredentialsToJSON, } from './ExchangeCredentials';
|
|
22
15
|
/**
|
|
23
16
|
* Check if a given object implements the FetchOrderBookRequest interface.
|
|
24
17
|
*/
|
|
25
|
-
function instanceOfFetchOrderBookRequest(value) {
|
|
18
|
+
export function instanceOfFetchOrderBookRequest(value) {
|
|
26
19
|
if (!('args' in value) || value['args'] === undefined)
|
|
27
20
|
return false;
|
|
28
21
|
return true;
|
|
29
22
|
}
|
|
30
|
-
function FetchOrderBookRequestFromJSON(json) {
|
|
23
|
+
export function FetchOrderBookRequestFromJSON(json) {
|
|
31
24
|
return FetchOrderBookRequestFromJSONTyped(json, false);
|
|
32
25
|
}
|
|
33
|
-
function FetchOrderBookRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
export function FetchOrderBookRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
27
|
if (json == null) {
|
|
35
28
|
return json;
|
|
36
29
|
}
|
|
37
30
|
return {
|
|
38
31
|
'args': json['args'],
|
|
39
|
-
'credentials': json['credentials'] == null ? undefined :
|
|
32
|
+
'credentials': json['credentials'] == null ? undefined : ExchangeCredentialsFromJSON(json['credentials']),
|
|
40
33
|
};
|
|
41
34
|
}
|
|
42
|
-
function FetchOrderBookRequestToJSON(json) {
|
|
35
|
+
export function FetchOrderBookRequestToJSON(json) {
|
|
43
36
|
return FetchOrderBookRequestToJSONTyped(json, false);
|
|
44
37
|
}
|
|
45
|
-
function FetchOrderBookRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
export function FetchOrderBookRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
39
|
if (value == null) {
|
|
47
40
|
return value;
|
|
48
41
|
}
|
|
49
42
|
return {
|
|
50
43
|
'args': value['args'],
|
|
51
|
-
'credentials':
|
|
44
|
+
'credentials': ExchangeCredentialsToJSON(value['credentials']),
|
|
52
45
|
};
|
|
53
46
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/* tslint:disable */
|
|
3
2
|
/* eslint-disable */
|
|
4
3
|
/**
|
|
@@ -12,43 +11,37 @@
|
|
|
12
11
|
* https://openapi-generator.tech
|
|
13
12
|
* Do not edit the class manually.
|
|
14
13
|
*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
exports.FetchPositions200ResponseFromJSON = FetchPositions200ResponseFromJSON;
|
|
18
|
-
exports.FetchPositions200ResponseFromJSONTyped = FetchPositions200ResponseFromJSONTyped;
|
|
19
|
-
exports.FetchPositions200ResponseToJSON = FetchPositions200ResponseToJSON;
|
|
20
|
-
exports.FetchPositions200ResponseToJSONTyped = FetchPositions200ResponseToJSONTyped;
|
|
21
|
-
const ErrorDetail_1 = require("./ErrorDetail");
|
|
22
|
-
const Position_1 = require("./Position");
|
|
14
|
+
import { ErrorDetailFromJSON, ErrorDetailToJSON, } from './ErrorDetail';
|
|
15
|
+
import { PositionFromJSON, PositionToJSON, } from './Position';
|
|
23
16
|
/**
|
|
24
17
|
* Check if a given object implements the FetchPositions200Response interface.
|
|
25
18
|
*/
|
|
26
|
-
function instanceOfFetchPositions200Response(value) {
|
|
19
|
+
export function instanceOfFetchPositions200Response(value) {
|
|
27
20
|
return true;
|
|
28
21
|
}
|
|
29
|
-
function FetchPositions200ResponseFromJSON(json) {
|
|
22
|
+
export function FetchPositions200ResponseFromJSON(json) {
|
|
30
23
|
return FetchPositions200ResponseFromJSONTyped(json, false);
|
|
31
24
|
}
|
|
32
|
-
function FetchPositions200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
export function FetchPositions200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
26
|
if (json == null) {
|
|
34
27
|
return json;
|
|
35
28
|
}
|
|
36
29
|
return {
|
|
37
30
|
'success': json['success'] == null ? undefined : json['success'],
|
|
38
|
-
'error': json['error'] == null ? undefined :
|
|
39
|
-
'data': json['data'] == null ? undefined : (json['data'].map(
|
|
31
|
+
'error': json['error'] == null ? undefined : ErrorDetailFromJSON(json['error']),
|
|
32
|
+
'data': json['data'] == null ? undefined : (json['data'].map(PositionFromJSON)),
|
|
40
33
|
};
|
|
41
34
|
}
|
|
42
|
-
function FetchPositions200ResponseToJSON(json) {
|
|
35
|
+
export function FetchPositions200ResponseToJSON(json) {
|
|
43
36
|
return FetchPositions200ResponseToJSONTyped(json, false);
|
|
44
37
|
}
|
|
45
|
-
function FetchPositions200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
export function FetchPositions200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
39
|
if (value == null) {
|
|
47
40
|
return value;
|
|
48
41
|
}
|
|
49
42
|
return {
|
|
50
43
|
'success': value['success'],
|
|
51
|
-
'error':
|
|
52
|
-
'data': value['data'] == null ? undefined : (value['data'].map(
|
|
44
|
+
'error': ErrorDetailToJSON(value['error']),
|
|
45
|
+
'data': value['data'] == null ? undefined : (value['data'].map(PositionToJSON)),
|
|
53
46
|
};
|
|
54
47
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/* tslint:disable */
|
|
3
2
|
/* eslint-disable */
|
|
4
3
|
/**
|
|
@@ -12,40 +11,34 @@
|
|
|
12
11
|
* https://openapi-generator.tech
|
|
13
12
|
* Do not edit the class manually.
|
|
14
13
|
*/
|
|
15
|
-
|
|
16
|
-
exports.instanceOfFetchPositionsRequest = instanceOfFetchPositionsRequest;
|
|
17
|
-
exports.FetchPositionsRequestFromJSON = FetchPositionsRequestFromJSON;
|
|
18
|
-
exports.FetchPositionsRequestFromJSONTyped = FetchPositionsRequestFromJSONTyped;
|
|
19
|
-
exports.FetchPositionsRequestToJSON = FetchPositionsRequestToJSON;
|
|
20
|
-
exports.FetchPositionsRequestToJSONTyped = FetchPositionsRequestToJSONTyped;
|
|
21
|
-
const ExchangeCredentials_1 = require("./ExchangeCredentials");
|
|
14
|
+
import { ExchangeCredentialsFromJSON, ExchangeCredentialsToJSON, } from './ExchangeCredentials';
|
|
22
15
|
/**
|
|
23
16
|
* Check if a given object implements the FetchPositionsRequest interface.
|
|
24
17
|
*/
|
|
25
|
-
function instanceOfFetchPositionsRequest(value) {
|
|
18
|
+
export function instanceOfFetchPositionsRequest(value) {
|
|
26
19
|
return true;
|
|
27
20
|
}
|
|
28
|
-
function FetchPositionsRequestFromJSON(json) {
|
|
21
|
+
export function FetchPositionsRequestFromJSON(json) {
|
|
29
22
|
return FetchPositionsRequestFromJSONTyped(json, false);
|
|
30
23
|
}
|
|
31
|
-
function FetchPositionsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
export function FetchPositionsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
25
|
if (json == null) {
|
|
33
26
|
return json;
|
|
34
27
|
}
|
|
35
28
|
return {
|
|
36
29
|
'args': json['args'] == null ? undefined : json['args'],
|
|
37
|
-
'credentials': json['credentials'] == null ? undefined :
|
|
30
|
+
'credentials': json['credentials'] == null ? undefined : ExchangeCredentialsFromJSON(json['credentials']),
|
|
38
31
|
};
|
|
39
32
|
}
|
|
40
|
-
function FetchPositionsRequestToJSON(json) {
|
|
33
|
+
export function FetchPositionsRequestToJSON(json) {
|
|
41
34
|
return FetchPositionsRequestToJSONTyped(json, false);
|
|
42
35
|
}
|
|
43
|
-
function FetchPositionsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
export function FetchPositionsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
37
|
if (value == null) {
|
|
45
38
|
return value;
|
|
46
39
|
}
|
|
47
40
|
return {
|
|
48
41
|
'args': value['args'],
|
|
49
|
-
'credentials':
|
|
42
|
+
'credentials': ExchangeCredentialsToJSON(value['credentials']),
|
|
50
43
|
};
|
|
51
44
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/* tslint:disable */
|
|
3
2
|
/* eslint-disable */
|
|
4
3
|
/**
|
|
@@ -12,43 +11,37 @@
|
|
|
12
11
|
* https://openapi-generator.tech
|
|
13
12
|
* Do not edit the class manually.
|
|
14
13
|
*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
exports.FetchTrades200ResponseFromJSON = FetchTrades200ResponseFromJSON;
|
|
18
|
-
exports.FetchTrades200ResponseFromJSONTyped = FetchTrades200ResponseFromJSONTyped;
|
|
19
|
-
exports.FetchTrades200ResponseToJSON = FetchTrades200ResponseToJSON;
|
|
20
|
-
exports.FetchTrades200ResponseToJSONTyped = FetchTrades200ResponseToJSONTyped;
|
|
21
|
-
const ErrorDetail_1 = require("./ErrorDetail");
|
|
22
|
-
const Trade_1 = require("./Trade");
|
|
14
|
+
import { ErrorDetailFromJSON, ErrorDetailToJSON, } from './ErrorDetail';
|
|
15
|
+
import { TradeFromJSON, TradeToJSON, } from './Trade';
|
|
23
16
|
/**
|
|
24
17
|
* Check if a given object implements the FetchTrades200Response interface.
|
|
25
18
|
*/
|
|
26
|
-
function instanceOfFetchTrades200Response(value) {
|
|
19
|
+
export function instanceOfFetchTrades200Response(value) {
|
|
27
20
|
return true;
|
|
28
21
|
}
|
|
29
|
-
function FetchTrades200ResponseFromJSON(json) {
|
|
22
|
+
export function FetchTrades200ResponseFromJSON(json) {
|
|
30
23
|
return FetchTrades200ResponseFromJSONTyped(json, false);
|
|
31
24
|
}
|
|
32
|
-
function FetchTrades200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
export function FetchTrades200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
26
|
if (json == null) {
|
|
34
27
|
return json;
|
|
35
28
|
}
|
|
36
29
|
return {
|
|
37
30
|
'success': json['success'] == null ? undefined : json['success'],
|
|
38
|
-
'error': json['error'] == null ? undefined :
|
|
39
|
-
'data': json['data'] == null ? undefined : (json['data'].map(
|
|
31
|
+
'error': json['error'] == null ? undefined : ErrorDetailFromJSON(json['error']),
|
|
32
|
+
'data': json['data'] == null ? undefined : (json['data'].map(TradeFromJSON)),
|
|
40
33
|
};
|
|
41
34
|
}
|
|
42
|
-
function FetchTrades200ResponseToJSON(json) {
|
|
35
|
+
export function FetchTrades200ResponseToJSON(json) {
|
|
43
36
|
return FetchTrades200ResponseToJSONTyped(json, false);
|
|
44
37
|
}
|
|
45
|
-
function FetchTrades200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
export function FetchTrades200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
39
|
if (value == null) {
|
|
47
40
|
return value;
|
|
48
41
|
}
|
|
49
42
|
return {
|
|
50
43
|
'success': value['success'],
|
|
51
|
-
'error':
|
|
52
|
-
'data': value['data'] == null ? undefined : (value['data'].map(
|
|
44
|
+
'error': ErrorDetailToJSON(value['error']),
|
|
45
|
+
'data': value['data'] == null ? undefined : (value['data'].map(TradeToJSON)),
|
|
53
46
|
};
|
|
54
47
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/* tslint:disable */
|
|
3
2
|
/* eslint-disable */
|
|
4
3
|
/**
|
|
@@ -12,43 +11,37 @@
|
|
|
12
11
|
* https://openapi-generator.tech
|
|
13
12
|
* Do not edit the class manually.
|
|
14
13
|
*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
exports.FetchTradesRequestFromJSON = FetchTradesRequestFromJSON;
|
|
18
|
-
exports.FetchTradesRequestFromJSONTyped = FetchTradesRequestFromJSONTyped;
|
|
19
|
-
exports.FetchTradesRequestToJSON = FetchTradesRequestToJSON;
|
|
20
|
-
exports.FetchTradesRequestToJSONTyped = FetchTradesRequestToJSONTyped;
|
|
21
|
-
const FetchOHLCVRequestArgsInner_1 = require("./FetchOHLCVRequestArgsInner");
|
|
22
|
-
const ExchangeCredentials_1 = require("./ExchangeCredentials");
|
|
14
|
+
import { FetchOHLCVRequestArgsInnerFromJSON, FetchOHLCVRequestArgsInnerToJSON, } from './FetchOHLCVRequestArgsInner';
|
|
15
|
+
import { ExchangeCredentialsFromJSON, ExchangeCredentialsToJSON, } from './ExchangeCredentials';
|
|
23
16
|
/**
|
|
24
17
|
* Check if a given object implements the FetchTradesRequest interface.
|
|
25
18
|
*/
|
|
26
|
-
function instanceOfFetchTradesRequest(value) {
|
|
19
|
+
export function instanceOfFetchTradesRequest(value) {
|
|
27
20
|
if (!('args' in value) || value['args'] === undefined)
|
|
28
21
|
return false;
|
|
29
22
|
return true;
|
|
30
23
|
}
|
|
31
|
-
function FetchTradesRequestFromJSON(json) {
|
|
24
|
+
export function FetchTradesRequestFromJSON(json) {
|
|
32
25
|
return FetchTradesRequestFromJSONTyped(json, false);
|
|
33
26
|
}
|
|
34
|
-
function FetchTradesRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
export function FetchTradesRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
28
|
if (json == null) {
|
|
36
29
|
return json;
|
|
37
30
|
}
|
|
38
31
|
return {
|
|
39
|
-
'args': (json['args'].map(
|
|
40
|
-
'credentials': json['credentials'] == null ? undefined :
|
|
32
|
+
'args': (json['args'].map(FetchOHLCVRequestArgsInnerFromJSON)),
|
|
33
|
+
'credentials': json['credentials'] == null ? undefined : ExchangeCredentialsFromJSON(json['credentials']),
|
|
41
34
|
};
|
|
42
35
|
}
|
|
43
|
-
function FetchTradesRequestToJSON(json) {
|
|
36
|
+
export function FetchTradesRequestToJSON(json) {
|
|
44
37
|
return FetchTradesRequestToJSONTyped(json, false);
|
|
45
38
|
}
|
|
46
|
-
function FetchTradesRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
export function FetchTradesRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
40
|
if (value == null) {
|
|
48
41
|
return value;
|
|
49
42
|
}
|
|
50
43
|
return {
|
|
51
|
-
'args': (value['args'].map(
|
|
52
|
-
'credentials':
|
|
44
|
+
'args': (value['args'].map(FetchOHLCVRequestArgsInnerToJSON)),
|
|
45
|
+
'credentials': ExchangeCredentialsToJSON(value['credentials']),
|
|
53
46
|
};
|
|
54
47
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/* tslint:disable */
|
|
3
2
|
/* eslint-disable */
|
|
4
3
|
/**
|
|
@@ -12,42 +11,36 @@
|
|
|
12
11
|
* https://openapi-generator.tech
|
|
13
12
|
* Do not edit the class manually.
|
|
14
13
|
*/
|
|
15
|
-
|
|
16
|
-
exports.instanceOfGetMarketsBySlugRequest = instanceOfGetMarketsBySlugRequest;
|
|
17
|
-
exports.GetMarketsBySlugRequestFromJSON = GetMarketsBySlugRequestFromJSON;
|
|
18
|
-
exports.GetMarketsBySlugRequestFromJSONTyped = GetMarketsBySlugRequestFromJSONTyped;
|
|
19
|
-
exports.GetMarketsBySlugRequestToJSON = GetMarketsBySlugRequestToJSON;
|
|
20
|
-
exports.GetMarketsBySlugRequestToJSONTyped = GetMarketsBySlugRequestToJSONTyped;
|
|
21
|
-
const ExchangeCredentials_1 = require("./ExchangeCredentials");
|
|
14
|
+
import { ExchangeCredentialsFromJSON, ExchangeCredentialsToJSON, } from './ExchangeCredentials';
|
|
22
15
|
/**
|
|
23
16
|
* Check if a given object implements the GetMarketsBySlugRequest interface.
|
|
24
17
|
*/
|
|
25
|
-
function instanceOfGetMarketsBySlugRequest(value) {
|
|
18
|
+
export function instanceOfGetMarketsBySlugRequest(value) {
|
|
26
19
|
if (!('args' in value) || value['args'] === undefined)
|
|
27
20
|
return false;
|
|
28
21
|
return true;
|
|
29
22
|
}
|
|
30
|
-
function GetMarketsBySlugRequestFromJSON(json) {
|
|
23
|
+
export function GetMarketsBySlugRequestFromJSON(json) {
|
|
31
24
|
return GetMarketsBySlugRequestFromJSONTyped(json, false);
|
|
32
25
|
}
|
|
33
|
-
function GetMarketsBySlugRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
export function GetMarketsBySlugRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
27
|
if (json == null) {
|
|
35
28
|
return json;
|
|
36
29
|
}
|
|
37
30
|
return {
|
|
38
31
|
'args': json['args'],
|
|
39
|
-
'credentials': json['credentials'] == null ? undefined :
|
|
32
|
+
'credentials': json['credentials'] == null ? undefined : ExchangeCredentialsFromJSON(json['credentials']),
|
|
40
33
|
};
|
|
41
34
|
}
|
|
42
|
-
function GetMarketsBySlugRequestToJSON(json) {
|
|
35
|
+
export function GetMarketsBySlugRequestToJSON(json) {
|
|
43
36
|
return GetMarketsBySlugRequestToJSONTyped(json, false);
|
|
44
37
|
}
|
|
45
|
-
function GetMarketsBySlugRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
export function GetMarketsBySlugRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
39
|
if (value == null) {
|
|
47
40
|
return value;
|
|
48
41
|
}
|
|
49
42
|
return {
|
|
50
43
|
'args': value['args'],
|
|
51
|
-
'credentials':
|
|
44
|
+
'credentials': ExchangeCredentialsToJSON(value['credentials']),
|
|
52
45
|
};
|
|
53
46
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/* tslint:disable */
|
|
3
2
|
/* eslint-disable */
|
|
4
3
|
/**
|
|
@@ -12,22 +11,16 @@
|
|
|
12
11
|
* https://openapi-generator.tech
|
|
13
12
|
* Do not edit the class manually.
|
|
14
13
|
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfHealthCheck200Response = instanceOfHealthCheck200Response;
|
|
17
|
-
exports.HealthCheck200ResponseFromJSON = HealthCheck200ResponseFromJSON;
|
|
18
|
-
exports.HealthCheck200ResponseFromJSONTyped = HealthCheck200ResponseFromJSONTyped;
|
|
19
|
-
exports.HealthCheck200ResponseToJSON = HealthCheck200ResponseToJSON;
|
|
20
|
-
exports.HealthCheck200ResponseToJSONTyped = HealthCheck200ResponseToJSONTyped;
|
|
21
14
|
/**
|
|
22
15
|
* Check if a given object implements the HealthCheck200Response interface.
|
|
23
16
|
*/
|
|
24
|
-
function instanceOfHealthCheck200Response(value) {
|
|
17
|
+
export function instanceOfHealthCheck200Response(value) {
|
|
25
18
|
return true;
|
|
26
19
|
}
|
|
27
|
-
function HealthCheck200ResponseFromJSON(json) {
|
|
20
|
+
export function HealthCheck200ResponseFromJSON(json) {
|
|
28
21
|
return HealthCheck200ResponseFromJSONTyped(json, false);
|
|
29
22
|
}
|
|
30
|
-
function HealthCheck200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
export function HealthCheck200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
24
|
if (json == null) {
|
|
32
25
|
return json;
|
|
33
26
|
}
|
|
@@ -36,10 +29,10 @@ function HealthCheck200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
29
|
'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
|
|
37
30
|
};
|
|
38
31
|
}
|
|
39
|
-
function HealthCheck200ResponseToJSON(json) {
|
|
32
|
+
export function HealthCheck200ResponseToJSON(json) {
|
|
40
33
|
return HealthCheck200ResponseToJSONTyped(json, false);
|
|
41
34
|
}
|
|
42
|
-
function HealthCheck200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
35
|
+
export function HealthCheck200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
36
|
if (value == null) {
|
|
44
37
|
return value;
|
|
45
38
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/* tslint:disable */
|
|
3
2
|
/* eslint-disable */
|
|
4
3
|
/**
|
|
@@ -12,17 +11,10 @@
|
|
|
12
11
|
* https://openapi-generator.tech
|
|
13
12
|
* Do not edit the class manually.
|
|
14
13
|
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.HistoryFilterParamsResolutionEnum = void 0;
|
|
17
|
-
exports.instanceOfHistoryFilterParams = instanceOfHistoryFilterParams;
|
|
18
|
-
exports.HistoryFilterParamsFromJSON = HistoryFilterParamsFromJSON;
|
|
19
|
-
exports.HistoryFilterParamsFromJSONTyped = HistoryFilterParamsFromJSONTyped;
|
|
20
|
-
exports.HistoryFilterParamsToJSON = HistoryFilterParamsToJSON;
|
|
21
|
-
exports.HistoryFilterParamsToJSONTyped = HistoryFilterParamsToJSONTyped;
|
|
22
14
|
/**
|
|
23
15
|
* @export
|
|
24
16
|
*/
|
|
25
|
-
|
|
17
|
+
export const HistoryFilterParamsResolutionEnum = {
|
|
26
18
|
_1m: '1m',
|
|
27
19
|
_5m: '5m',
|
|
28
20
|
_15m: '15m',
|
|
@@ -33,15 +25,15 @@ exports.HistoryFilterParamsResolutionEnum = {
|
|
|
33
25
|
/**
|
|
34
26
|
* Check if a given object implements the HistoryFilterParams interface.
|
|
35
27
|
*/
|
|
36
|
-
function instanceOfHistoryFilterParams(value) {
|
|
28
|
+
export function instanceOfHistoryFilterParams(value) {
|
|
37
29
|
if (!('resolution' in value) || value['resolution'] === undefined)
|
|
38
30
|
return false;
|
|
39
31
|
return true;
|
|
40
32
|
}
|
|
41
|
-
function HistoryFilterParamsFromJSON(json) {
|
|
33
|
+
export function HistoryFilterParamsFromJSON(json) {
|
|
42
34
|
return HistoryFilterParamsFromJSONTyped(json, false);
|
|
43
35
|
}
|
|
44
|
-
function HistoryFilterParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
export function HistoryFilterParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
37
|
if (json == null) {
|
|
46
38
|
return json;
|
|
47
39
|
}
|
|
@@ -52,10 +44,10 @@ function HistoryFilterParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
44
|
'limit': json['limit'] == null ? undefined : json['limit'],
|
|
53
45
|
};
|
|
54
46
|
}
|
|
55
|
-
function HistoryFilterParamsToJSON(json) {
|
|
47
|
+
export function HistoryFilterParamsToJSON(json) {
|
|
56
48
|
return HistoryFilterParamsToJSONTyped(json, false);
|
|
57
49
|
}
|
|
58
|
-
function HistoryFilterParamsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
export function HistoryFilterParamsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
51
|
if (value == null) {
|
|
60
52
|
return value;
|
|
61
53
|
}
|