zklighter-perps 1.0.11 → 1.0.12
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/apis/AccountApi.ts +81 -81
- package/apis/BlockApi.ts +14 -14
- package/apis/CandlestickApi.ts +65 -65
- package/apis/InfoApi.ts +6 -6
- package/apis/OrderApi.ts +101 -101
- package/apis/TransactionApi.ts +76 -76
- package/config.yaml +5 -4
- package/models/AccountMarketStats.ts +24 -24
- package/models/AccountPosition.ts +28 -28
- package/models/AccountStats.ts +16 -16
- package/models/Block.ts +32 -32
- package/models/DetailedAccount.ts +17 -17
- package/models/EnrichedTx.ts +39 -39
- package/models/ExchangeStats.ts +12 -12
- package/models/L1ProviderInfo.ts +4 -4
- package/models/Layer1BasicInfo.ts +28 -28
- package/models/Layer2BasicInfo.ts +12 -12
- package/models/MainAccount.ts +4 -4
- package/models/MarketInfo.ts +44 -44
- package/models/Order.ts +55 -57
- package/models/OrderBook.ts +43 -44
- package/models/OrderBookDetail.ts +102 -103
- package/models/OrderBookDetails.ts +4 -4
- package/models/OrderBookOrders.ts +8 -8
- package/models/OrderBookStats.ts +20 -20
- package/models/OrderBooks.ts +4 -4
- package/models/ReqDoFaucet.ts +4 -4
- package/models/ReqGetAccount.ts +7 -8
- package/models/ReqGetAccountActiveOrders.ts +12 -12
- package/models/ReqGetAccountByL1Address.ts +4 -4
- package/models/ReqGetAccountInactiveOrders.ts +18 -19
- package/models/ReqGetAccountOrders.ts +8 -8
- package/models/ReqGetAccountPendingTxs.ts +7 -8
- package/models/ReqGetAccountPnL.ts +30 -32
- package/models/ReqGetAccountTxs.ts +7 -8
- package/models/ReqGetBlock.ts +7 -8
- package/models/ReqGetBlockTxs.ts +7 -8
- package/models/ReqGetByAccount.ts +7 -8
- package/models/ReqGetCandlesticks.ts +27 -28
- package/models/ReqGetFundings.ts +22 -23
- package/models/ReqGetNextNonce.ts +8 -8
- package/models/ReqGetOrderBookDetails.ts +10 -11
- package/models/ReqGetOrderBookOrders.ts +4 -4
- package/models/ReqGetOrderBooks.ts +10 -11
- package/models/ReqGetPermission.ts +11 -12
- package/models/ReqGetRangeWithIndexSortable.ts +7 -8
- package/models/ReqGetRecentTrades.ts +4 -4
- package/models/ReqGetRollbacks.ts +4 -4
- package/models/ReqGetSubAccount.ts +11 -12
- package/models/ReqGetTrades.ts +15 -16
- package/models/ReqGetTx.ts +7 -8
- package/models/Rollback.ts +12 -12
- package/models/Search.ts +4 -4
- package/models/SignBody.ts +4 -4
- package/models/SimpleOrder.ts +16 -16
- package/models/Status.ts +4 -4
- package/models/SubAccount.ts +12 -12
- package/models/SubAccounts.ts +8 -8
- package/models/Trade.ts +36 -36
- package/models/Tx.ts +36 -36
- package/models/TxHash.ts +4 -4
- package/models/TxHashes.ts +4 -4
- package/models/ValidatorInfo.ts +4 -4
- package/package.json +1 -1
|
@@ -24,28 +24,28 @@ export interface ReqGetAccountActiveOrders {
|
|
|
24
24
|
* @type {number}
|
|
25
25
|
* @memberof ReqGetAccountActiveOrders
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
account_index: number;
|
|
28
28
|
/**
|
|
29
29
|
* NilSubAccountIndex
|
|
30
30
|
* @type {number}
|
|
31
31
|
* @memberof ReqGetAccountActiveOrders
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
sub_account_index: number;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {number}
|
|
37
37
|
* @memberof ReqGetAccountActiveOrders
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
market_id: number;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
* Check if a given object implements the ReqGetAccountActiveOrders interface.
|
|
44
44
|
*/
|
|
45
45
|
export function instanceOfReqGetAccountActiveOrders(value: object): value is ReqGetAccountActiveOrders {
|
|
46
|
-
if (!('
|
|
47
|
-
if (!('
|
|
48
|
-
if (!('
|
|
46
|
+
if (!('account_index' in value) || value['account_index'] === undefined) return false;
|
|
47
|
+
if (!('sub_account_index' in value) || value['sub_account_index'] === undefined) return false;
|
|
48
|
+
if (!('market_id' in value) || value['market_id'] === undefined) return false;
|
|
49
49
|
return true;
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -59,9 +59,9 @@ export function ReqGetAccountActiveOrdersFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
59
59
|
}
|
|
60
60
|
return {
|
|
61
61
|
|
|
62
|
-
'
|
|
63
|
-
'
|
|
64
|
-
'
|
|
62
|
+
'account_index': json['account_index'],
|
|
63
|
+
'sub_account_index': json['sub_account_index'],
|
|
64
|
+
'market_id': json['market_id'],
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
|
|
@@ -71,9 +71,9 @@ export function ReqGetAccountActiveOrdersToJSON(value?: ReqGetAccountActiveOrder
|
|
|
71
71
|
}
|
|
72
72
|
return {
|
|
73
73
|
|
|
74
|
-
'account_index': value['
|
|
75
|
-
'sub_account_index': value['
|
|
76
|
-
'market_id': value['
|
|
74
|
+
'account_index': value['account_index'],
|
|
75
|
+
'sub_account_index': value['sub_account_index'],
|
|
76
|
+
'market_id': value['market_id'],
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
|
|
@@ -24,14 +24,14 @@ export interface ReqGetAccountByL1Address {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof ReqGetAccountByL1Address
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
l1_address: string;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* Check if a given object implements the ReqGetAccountByL1Address interface.
|
|
32
32
|
*/
|
|
33
33
|
export function instanceOfReqGetAccountByL1Address(value: object): value is ReqGetAccountByL1Address {
|
|
34
|
-
if (!('
|
|
34
|
+
if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
|
|
35
35
|
return true;
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -45,7 +45,7 @@ export function ReqGetAccountByL1AddressFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
45
45
|
}
|
|
46
46
|
return {
|
|
47
47
|
|
|
48
|
-
'
|
|
48
|
+
'l1_address': json['l1_address'],
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -55,7 +55,7 @@ export function ReqGetAccountByL1AddressToJSON(value?: ReqGetAccountByL1Address
|
|
|
55
55
|
}
|
|
56
56
|
return {
|
|
57
57
|
|
|
58
|
-
'l1_address': value['
|
|
58
|
+
'l1_address': value['l1_address'],
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
|
|
@@ -24,13 +24,13 @@ export interface ReqGetAccountInactiveOrders {
|
|
|
24
24
|
* @type {number}
|
|
25
25
|
* @memberof ReqGetAccountInactiveOrders
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
account_index: number;
|
|
28
28
|
/**
|
|
29
29
|
* NilSubAccountIndex
|
|
30
30
|
* @type {number}
|
|
31
31
|
* @memberof ReqGetAccountInactiveOrders
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
sub_account_index: number;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -42,7 +42,7 @@ export interface ReqGetAccountInactiveOrders {
|
|
|
42
42
|
* @type {number}
|
|
43
43
|
* @memberof ReqGetAccountInactiveOrders
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
market_id?: number;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
@@ -57,23 +57,22 @@ export interface ReqGetAccountInactiveOrders {
|
|
|
57
57
|
limit: number;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
|
|
61
60
|
/**
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
61
|
+
* @export
|
|
62
|
+
* @enum {string}
|
|
63
|
+
*/
|
|
64
|
+
export enum ReqGetAccountInactiveOrdersFilterEnum {
|
|
65
|
+
MarketId = 'market_id',
|
|
66
|
+
All = 'all'
|
|
67
|
+
}
|
|
69
68
|
|
|
70
69
|
|
|
71
70
|
/**
|
|
72
71
|
* Check if a given object implements the ReqGetAccountInactiveOrders interface.
|
|
73
72
|
*/
|
|
74
73
|
export function instanceOfReqGetAccountInactiveOrders(value: object): value is ReqGetAccountInactiveOrders {
|
|
75
|
-
if (!('
|
|
76
|
-
if (!('
|
|
74
|
+
if (!('account_index' in value) || value['account_index'] === undefined) return false;
|
|
75
|
+
if (!('sub_account_index' in value) || value['sub_account_index'] === undefined) return false;
|
|
77
76
|
if (!('filter' in value) || value['filter'] === undefined) return false;
|
|
78
77
|
if (!('limit' in value) || value['limit'] === undefined) return false;
|
|
79
78
|
return true;
|
|
@@ -89,10 +88,10 @@ export function ReqGetAccountInactiveOrdersFromJSONTyped(json: any, ignoreDiscri
|
|
|
89
88
|
}
|
|
90
89
|
return {
|
|
91
90
|
|
|
92
|
-
'
|
|
93
|
-
'
|
|
91
|
+
'account_index': json['account_index'],
|
|
92
|
+
'sub_account_index': json['sub_account_index'],
|
|
94
93
|
'filter': json['filter'],
|
|
95
|
-
'
|
|
94
|
+
'market_id': json['market_id'] == null ? undefined : json['market_id'],
|
|
96
95
|
'cursor': json['cursor'] == null ? undefined : json['cursor'],
|
|
97
96
|
'limit': json['limit'],
|
|
98
97
|
};
|
|
@@ -104,10 +103,10 @@ export function ReqGetAccountInactiveOrdersToJSON(value?: ReqGetAccountInactiveO
|
|
|
104
103
|
}
|
|
105
104
|
return {
|
|
106
105
|
|
|
107
|
-
'account_index': value['
|
|
108
|
-
'sub_account_index': value['
|
|
106
|
+
'account_index': value['account_index'],
|
|
107
|
+
'sub_account_index': value['sub_account_index'],
|
|
109
108
|
'filter': value['filter'],
|
|
110
|
-
'market_id': value['
|
|
109
|
+
'market_id': value['market_id'],
|
|
111
110
|
'cursor': value['cursor'],
|
|
112
111
|
'limit': value['limit'],
|
|
113
112
|
};
|
|
@@ -24,13 +24,13 @@ export interface ReqGetAccountOrders {
|
|
|
24
24
|
* @type {number}
|
|
25
25
|
* @memberof ReqGetAccountOrders
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
account_index: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {number}
|
|
31
31
|
* @memberof ReqGetAccountOrders
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
market_id: number;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -49,8 +49,8 @@ export interface ReqGetAccountOrders {
|
|
|
49
49
|
* Check if a given object implements the ReqGetAccountOrders interface.
|
|
50
50
|
*/
|
|
51
51
|
export function instanceOfReqGetAccountOrders(value: object): value is ReqGetAccountOrders {
|
|
52
|
-
if (!('
|
|
53
|
-
if (!('
|
|
52
|
+
if (!('account_index' in value) || value['account_index'] === undefined) return false;
|
|
53
|
+
if (!('market_id' in value) || value['market_id'] === undefined) return false;
|
|
54
54
|
if (!('limit' in value) || value['limit'] === undefined) return false;
|
|
55
55
|
return true;
|
|
56
56
|
}
|
|
@@ -65,8 +65,8 @@ export function ReqGetAccountOrdersFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
65
65
|
}
|
|
66
66
|
return {
|
|
67
67
|
|
|
68
|
-
'
|
|
69
|
-
'
|
|
68
|
+
'account_index': json['account_index'],
|
|
69
|
+
'market_id': json['market_id'],
|
|
70
70
|
'cursor': json['cursor'] == null ? undefined : json['cursor'],
|
|
71
71
|
'limit': json['limit'],
|
|
72
72
|
};
|
|
@@ -78,8 +78,8 @@ export function ReqGetAccountOrdersToJSON(value?: ReqGetAccountOrders | null): a
|
|
|
78
78
|
}
|
|
79
79
|
return {
|
|
80
80
|
|
|
81
|
-
'account_index': value['
|
|
82
|
-
'market_id': value['
|
|
81
|
+
'account_index': value['account_index'],
|
|
82
|
+
'market_id': value['market_id'],
|
|
83
83
|
'cursor': value['cursor'],
|
|
84
84
|
'limit': value['limit'],
|
|
85
85
|
};
|
|
@@ -39,15 +39,14 @@ export interface ReqGetAccountPendingTxs {
|
|
|
39
39
|
types?: Array<number>;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
|
|
43
42
|
/**
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
43
|
+
* @export
|
|
44
|
+
* @enum {string}
|
|
45
|
+
*/
|
|
46
|
+
export enum ReqGetAccountPendingTxsByEnum {
|
|
47
|
+
AccountIndex = 'account_index',
|
|
48
|
+
L1Address = 'l1_address'
|
|
49
|
+
}
|
|
51
50
|
|
|
52
51
|
|
|
53
52
|
/**
|
|
@@ -42,43 +42,41 @@ export interface ReqGetAccountPnL {
|
|
|
42
42
|
* @type {number}
|
|
43
43
|
* @memberof ReqGetAccountPnL
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
start_timestamp: number;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {number}
|
|
49
49
|
* @memberof ReqGetAccountPnL
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
end_timestamp: number;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {number}
|
|
55
55
|
* @memberof ReqGetAccountPnL
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
count_back: number;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
|
|
61
60
|
/**
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
61
|
+
* @export
|
|
62
|
+
* @enum {string}
|
|
63
|
+
*/
|
|
64
|
+
export enum ReqGetAccountPnLByEnum {
|
|
65
|
+
Index = 'index',
|
|
66
|
+
L1Address = 'l1_address'
|
|
67
|
+
}
|
|
70
68
|
/**
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
69
|
+
* @export
|
|
70
|
+
* @enum {string}
|
|
71
|
+
*/
|
|
72
|
+
export enum ReqGetAccountPnLResolutionEnum {
|
|
73
|
+
_1m = '1m',
|
|
74
|
+
_5m = '5m',
|
|
75
|
+
_15m = '15m',
|
|
76
|
+
_1h = '1h',
|
|
77
|
+
_4h = '4h',
|
|
78
|
+
_1d = '1d'
|
|
79
|
+
}
|
|
82
80
|
|
|
83
81
|
|
|
84
82
|
/**
|
|
@@ -88,9 +86,9 @@ export function instanceOfReqGetAccountPnL(value: object): value is ReqGetAccoun
|
|
|
88
86
|
if (!('by' in value) || value['by'] === undefined) return false;
|
|
89
87
|
if (!('value' in value) || value['value'] === undefined) return false;
|
|
90
88
|
if (!('resolution' in value) || value['resolution'] === undefined) return false;
|
|
91
|
-
if (!('
|
|
92
|
-
if (!('
|
|
93
|
-
if (!('
|
|
89
|
+
if (!('start_timestamp' in value) || value['start_timestamp'] === undefined) return false;
|
|
90
|
+
if (!('end_timestamp' in value) || value['end_timestamp'] === undefined) return false;
|
|
91
|
+
if (!('count_back' in value) || value['count_back'] === undefined) return false;
|
|
94
92
|
return true;
|
|
95
93
|
}
|
|
96
94
|
|
|
@@ -107,9 +105,9 @@ export function ReqGetAccountPnLFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
107
105
|
'by': json['by'],
|
|
108
106
|
'value': json['value'],
|
|
109
107
|
'resolution': json['resolution'],
|
|
110
|
-
'
|
|
111
|
-
'
|
|
112
|
-
'
|
|
108
|
+
'start_timestamp': json['start_timestamp'],
|
|
109
|
+
'end_timestamp': json['end_timestamp'],
|
|
110
|
+
'count_back': json['count_back'],
|
|
113
111
|
};
|
|
114
112
|
}
|
|
115
113
|
|
|
@@ -122,9 +120,9 @@ export function ReqGetAccountPnLToJSON(value?: ReqGetAccountPnL | null): any {
|
|
|
122
120
|
'by': value['by'],
|
|
123
121
|
'value': value['value'],
|
|
124
122
|
'resolution': value['resolution'],
|
|
125
|
-
'start_timestamp': value['
|
|
126
|
-
'end_timestamp': value['
|
|
127
|
-
'count_back': value['
|
|
123
|
+
'start_timestamp': value['start_timestamp'],
|
|
124
|
+
'end_timestamp': value['end_timestamp'],
|
|
125
|
+
'count_back': value['count_back'],
|
|
128
126
|
};
|
|
129
127
|
}
|
|
130
128
|
|
|
@@ -51,15 +51,14 @@ export interface ReqGetAccountTxs {
|
|
|
51
51
|
types?: Array<number>;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
|
|
55
54
|
/**
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
55
|
+
* @export
|
|
56
|
+
* @enum {string}
|
|
57
|
+
*/
|
|
58
|
+
export enum ReqGetAccountTxsByEnum {
|
|
59
|
+
AccountIndex = 'account_index',
|
|
60
|
+
L1Address = 'l1_address'
|
|
61
|
+
}
|
|
63
62
|
|
|
64
63
|
|
|
65
64
|
/**
|
package/models/ReqGetBlock.ts
CHANGED
|
@@ -33,15 +33,14 @@ export interface ReqGetBlock {
|
|
|
33
33
|
value: string;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
|
|
37
36
|
/**
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
* @export
|
|
38
|
+
* @enum {string}
|
|
39
|
+
*/
|
|
40
|
+
export enum ReqGetBlockByEnum {
|
|
41
|
+
Commitment = 'commitment',
|
|
42
|
+
Height = 'height'
|
|
43
|
+
}
|
|
45
44
|
|
|
46
45
|
|
|
47
46
|
/**
|
package/models/ReqGetBlockTxs.ts
CHANGED
|
@@ -33,15 +33,14 @@ export interface ReqGetBlockTxs {
|
|
|
33
33
|
value: string;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
|
|
37
36
|
/**
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
* @export
|
|
38
|
+
* @enum {string}
|
|
39
|
+
*/
|
|
40
|
+
export enum ReqGetBlockTxsByEnum {
|
|
41
|
+
Height = 'block_height',
|
|
42
|
+
Commitment = 'block_commitment'
|
|
43
|
+
}
|
|
45
44
|
|
|
46
45
|
|
|
47
46
|
/**
|
|
@@ -33,15 +33,14 @@ export interface ReqGetByAccount {
|
|
|
33
33
|
value: string;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
|
|
37
36
|
/**
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
* @export
|
|
38
|
+
* @enum {string}
|
|
39
|
+
*/
|
|
40
|
+
export enum ReqGetByAccountByEnum {
|
|
41
|
+
AccountIndex = 'account_index',
|
|
42
|
+
L1Address = 'l1_address'
|
|
43
|
+
}
|
|
45
44
|
|
|
46
45
|
|
|
47
46
|
/**
|
|
@@ -24,7 +24,7 @@ export interface ReqGetCandlesticks {
|
|
|
24
24
|
* @type {number}
|
|
25
25
|
* @memberof ReqGetCandlesticks
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
market_id: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
@@ -36,45 +36,44 @@ export interface ReqGetCandlesticks {
|
|
|
36
36
|
* @type {number}
|
|
37
37
|
* @memberof ReqGetCandlesticks
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
start_timestamp: number;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
43
43
|
* @memberof ReqGetCandlesticks
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
end_timestamp: number;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {number}
|
|
49
49
|
* @memberof ReqGetCandlesticks
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
count_back: number;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
|
|
55
54
|
/**
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
55
|
+
* @export
|
|
56
|
+
* @enum {string}
|
|
57
|
+
*/
|
|
58
|
+
export enum ReqGetCandlesticksResolutionEnum {
|
|
59
|
+
_1m = '1m',
|
|
60
|
+
_5m = '5m',
|
|
61
|
+
_15m = '15m',
|
|
62
|
+
_1h = '1h',
|
|
63
|
+
_4h = '4h',
|
|
64
|
+
_1d = '1d'
|
|
65
|
+
}
|
|
67
66
|
|
|
68
67
|
|
|
69
68
|
/**
|
|
70
69
|
* Check if a given object implements the ReqGetCandlesticks interface.
|
|
71
70
|
*/
|
|
72
71
|
export function instanceOfReqGetCandlesticks(value: object): value is ReqGetCandlesticks {
|
|
73
|
-
if (!('
|
|
72
|
+
if (!('market_id' in value) || value['market_id'] === undefined) return false;
|
|
74
73
|
if (!('resolution' in value) || value['resolution'] === undefined) return false;
|
|
75
|
-
if (!('
|
|
76
|
-
if (!('
|
|
77
|
-
if (!('
|
|
74
|
+
if (!('start_timestamp' in value) || value['start_timestamp'] === undefined) return false;
|
|
75
|
+
if (!('end_timestamp' in value) || value['end_timestamp'] === undefined) return false;
|
|
76
|
+
if (!('count_back' in value) || value['count_back'] === undefined) return false;
|
|
78
77
|
return true;
|
|
79
78
|
}
|
|
80
79
|
|
|
@@ -88,11 +87,11 @@ export function ReqGetCandlesticksFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
88
87
|
}
|
|
89
88
|
return {
|
|
90
89
|
|
|
91
|
-
'
|
|
90
|
+
'market_id': json['market_id'],
|
|
92
91
|
'resolution': json['resolution'],
|
|
93
|
-
'
|
|
94
|
-
'
|
|
95
|
-
'
|
|
92
|
+
'start_timestamp': json['start_timestamp'],
|
|
93
|
+
'end_timestamp': json['end_timestamp'],
|
|
94
|
+
'count_back': json['count_back'],
|
|
96
95
|
};
|
|
97
96
|
}
|
|
98
97
|
|
|
@@ -102,11 +101,11 @@ export function ReqGetCandlesticksToJSON(value?: ReqGetCandlesticks | null): any
|
|
|
102
101
|
}
|
|
103
102
|
return {
|
|
104
103
|
|
|
105
|
-
'market_id': value['
|
|
104
|
+
'market_id': value['market_id'],
|
|
106
105
|
'resolution': value['resolution'],
|
|
107
|
-
'start_timestamp': value['
|
|
108
|
-
'end_timestamp': value['
|
|
109
|
-
'count_back': value['
|
|
106
|
+
'start_timestamp': value['start_timestamp'],
|
|
107
|
+
'end_timestamp': value['end_timestamp'],
|
|
108
|
+
'count_back': value['count_back'],
|
|
110
109
|
};
|
|
111
110
|
}
|
|
112
111
|
|
package/models/ReqGetFundings.ts
CHANGED
|
@@ -24,7 +24,7 @@ export interface ReqGetFundings {
|
|
|
24
24
|
* @type {number}
|
|
25
25
|
* @memberof ReqGetFundings
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
market_id: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
@@ -36,40 +36,39 @@ export interface ReqGetFundings {
|
|
|
36
36
|
* @type {number}
|
|
37
37
|
* @memberof ReqGetFundings
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
start_timestamp: number;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
43
43
|
* @memberof ReqGetFundings
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
end_timestamp: number;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {number}
|
|
49
49
|
* @memberof ReqGetFundings
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
count_back: number;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
|
|
55
54
|
/**
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
55
|
+
* @export
|
|
56
|
+
* @enum {string}
|
|
57
|
+
*/
|
|
58
|
+
export enum ReqGetFundingsResolutionEnum {
|
|
59
|
+
_1h = '1h'
|
|
60
|
+
}
|
|
62
61
|
|
|
63
62
|
|
|
64
63
|
/**
|
|
65
64
|
* Check if a given object implements the ReqGetFundings interface.
|
|
66
65
|
*/
|
|
67
66
|
export function instanceOfReqGetFundings(value: object): value is ReqGetFundings {
|
|
68
|
-
if (!('
|
|
67
|
+
if (!('market_id' in value) || value['market_id'] === undefined) return false;
|
|
69
68
|
if (!('resolution' in value) || value['resolution'] === undefined) return false;
|
|
70
|
-
if (!('
|
|
71
|
-
if (!('
|
|
72
|
-
if (!('
|
|
69
|
+
if (!('start_timestamp' in value) || value['start_timestamp'] === undefined) return false;
|
|
70
|
+
if (!('end_timestamp' in value) || value['end_timestamp'] === undefined) return false;
|
|
71
|
+
if (!('count_back' in value) || value['count_back'] === undefined) return false;
|
|
73
72
|
return true;
|
|
74
73
|
}
|
|
75
74
|
|
|
@@ -83,11 +82,11 @@ export function ReqGetFundingsFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
83
82
|
}
|
|
84
83
|
return {
|
|
85
84
|
|
|
86
|
-
'
|
|
85
|
+
'market_id': json['market_id'],
|
|
87
86
|
'resolution': json['resolution'],
|
|
88
|
-
'
|
|
89
|
-
'
|
|
90
|
-
'
|
|
87
|
+
'start_timestamp': json['start_timestamp'],
|
|
88
|
+
'end_timestamp': json['end_timestamp'],
|
|
89
|
+
'count_back': json['count_back'],
|
|
91
90
|
};
|
|
92
91
|
}
|
|
93
92
|
|
|
@@ -97,11 +96,11 @@ export function ReqGetFundingsToJSON(value?: ReqGetFundings | null): any {
|
|
|
97
96
|
}
|
|
98
97
|
return {
|
|
99
98
|
|
|
100
|
-
'market_id': value['
|
|
99
|
+
'market_id': value['market_id'],
|
|
101
100
|
'resolution': value['resolution'],
|
|
102
|
-
'start_timestamp': value['
|
|
103
|
-
'end_timestamp': value['
|
|
104
|
-
'count_back': value['
|
|
101
|
+
'start_timestamp': value['start_timestamp'],
|
|
102
|
+
'end_timestamp': value['end_timestamp'],
|
|
103
|
+
'count_back': value['count_back'],
|
|
105
104
|
};
|
|
106
105
|
}
|
|
107
106
|
|