zklighter-perps 1.0.316 → 1.0.318
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 +2 -2
- package/apis/CandlestickApi.ts +10 -0
- package/models/ReqGetCandles.ts +8 -0
- package/models/ReqGetMarkPriceCandles.ts +8 -0
- package/openapi.json +27 -1
- package/package.json +1 -1
package/apis/AccountApi.ts
CHANGED
|
@@ -1620,7 +1620,7 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
1620
1620
|
}
|
|
1621
1621
|
|
|
1622
1622
|
/**
|
|
1623
|
-
* Trade, pool, staking and total equity, interval and window PnL in USD. Total ROI is a fraction (0.0088 = 0.88%). The latest sample
|
|
1623
|
+
* Trade, pool, staking and total equity, interval and window PnL in USD. Total ROI is a fraction (0.0088 = 0.88%). Samples close their preceding bucket: a daily sample at midnight represents the previous day. The latest sample at or before start is a hidden baseline; an end within a bucket rounds up to its close. Without a baseline, the first bucket starts from zero equity and cash flows. Entry volume is per bucket; summary volume is the window total. Historical queries never append current data.
|
|
1624
1624
|
* pnl_v2
|
|
1625
1625
|
*/
|
|
1626
1626
|
async pnlV2Raw(requestParameters: PnlV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountPnLV2>> {
|
|
@@ -1702,7 +1702,7 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
1702
1702
|
}
|
|
1703
1703
|
|
|
1704
1704
|
/**
|
|
1705
|
-
* Trade, pool, staking and total equity, interval and window PnL in USD. Total ROI is a fraction (0.0088 = 0.88%). The latest sample
|
|
1705
|
+
* Trade, pool, staking and total equity, interval and window PnL in USD. Total ROI is a fraction (0.0088 = 0.88%). Samples close their preceding bucket: a daily sample at midnight represents the previous day. The latest sample at or before start is a hidden baseline; an end within a bucket rounds up to its close. Without a baseline, the first bucket starts from zero equity and cash flows. Entry volume is per bucket; summary volume is the window total. Historical queries never append current data.
|
|
1706
1706
|
* pnl_v2
|
|
1707
1707
|
*/
|
|
1708
1708
|
async pnlV2(requestParameters: PnlV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountPnLV2> {
|
package/apis/CandlestickApi.ts
CHANGED
|
@@ -41,6 +41,7 @@ export interface CandlesRequest {
|
|
|
41
41
|
end_timestamp: number;
|
|
42
42
|
count_back: number;
|
|
43
43
|
set_timestamp_to_end?: boolean;
|
|
44
|
+
merge_mark_price?: boolean;
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
export interface FundingsRequest {
|
|
@@ -57,6 +58,7 @@ export interface MarkPriceCandlesRequest {
|
|
|
57
58
|
start_timestamp: number;
|
|
58
59
|
end_timestamp: number;
|
|
59
60
|
count_back: number;
|
|
61
|
+
connect_opens?: boolean;
|
|
60
62
|
}
|
|
61
63
|
|
|
62
64
|
export interface MarketPriceChartsRequest {
|
|
@@ -134,6 +136,10 @@ export class CandlestickApi extends runtime.BaseAPI {
|
|
|
134
136
|
queryParameters['set_timestamp_to_end'] = requestParameters['set_timestamp_to_end'];
|
|
135
137
|
}
|
|
136
138
|
|
|
139
|
+
if (requestParameters['merge_mark_price'] != null) {
|
|
140
|
+
queryParameters['merge_mark_price'] = requestParameters['merge_mark_price'];
|
|
141
|
+
}
|
|
142
|
+
|
|
137
143
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
138
144
|
|
|
139
145
|
const response = await this.request({
|
|
@@ -300,6 +306,10 @@ export class CandlestickApi extends runtime.BaseAPI {
|
|
|
300
306
|
queryParameters['count_back'] = requestParameters['count_back'];
|
|
301
307
|
}
|
|
302
308
|
|
|
309
|
+
if (requestParameters['connect_opens'] != null) {
|
|
310
|
+
queryParameters['connect_opens'] = requestParameters['connect_opens'];
|
|
311
|
+
}
|
|
312
|
+
|
|
303
313
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
304
314
|
|
|
305
315
|
const response = await this.request({
|
package/models/ReqGetCandles.ts
CHANGED
|
@@ -55,6 +55,12 @@ export interface ReqGetCandles {
|
|
|
55
55
|
* @memberof ReqGetCandles
|
|
56
56
|
*/
|
|
57
57
|
set_timestamp_to_end?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {boolean}
|
|
61
|
+
* @memberof ReqGetCandles
|
|
62
|
+
*/
|
|
63
|
+
merge_mark_price?: boolean;
|
|
58
64
|
}
|
|
59
65
|
|
|
60
66
|
|
|
@@ -102,6 +108,7 @@ export function ReqGetCandlesFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
102
108
|
'end_timestamp': json['end_timestamp'],
|
|
103
109
|
'count_back': json['count_back'],
|
|
104
110
|
'set_timestamp_to_end': json['set_timestamp_to_end'] == null ? undefined : json['set_timestamp_to_end'],
|
|
111
|
+
'merge_mark_price': json['merge_mark_price'] == null ? undefined : json['merge_mark_price'],
|
|
105
112
|
};
|
|
106
113
|
}
|
|
107
114
|
|
|
@@ -117,6 +124,7 @@ export function ReqGetCandlesToJSON(value?: ReqGetCandles | null): any {
|
|
|
117
124
|
'end_timestamp': value['end_timestamp'],
|
|
118
125
|
'count_back': value['count_back'],
|
|
119
126
|
'set_timestamp_to_end': value['set_timestamp_to_end'],
|
|
127
|
+
'merge_mark_price': value['merge_mark_price'],
|
|
120
128
|
};
|
|
121
129
|
}
|
|
122
130
|
|
|
@@ -49,6 +49,12 @@ export interface ReqGetMarkPriceCandles {
|
|
|
49
49
|
* @memberof ReqGetMarkPriceCandles
|
|
50
50
|
*/
|
|
51
51
|
count_back: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof ReqGetMarkPriceCandles
|
|
56
|
+
*/
|
|
57
|
+
connect_opens?: boolean;
|
|
52
58
|
}
|
|
53
59
|
|
|
54
60
|
|
|
@@ -95,6 +101,7 @@ export function ReqGetMarkPriceCandlesFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
95
101
|
'start_timestamp': json['start_timestamp'],
|
|
96
102
|
'end_timestamp': json['end_timestamp'],
|
|
97
103
|
'count_back': json['count_back'],
|
|
104
|
+
'connect_opens': json['connect_opens'] == null ? undefined : json['connect_opens'],
|
|
98
105
|
};
|
|
99
106
|
}
|
|
100
107
|
|
|
@@ -109,6 +116,7 @@ export function ReqGetMarkPriceCandlesToJSON(value?: ReqGetMarkPriceCandles | nu
|
|
|
109
116
|
'start_timestamp': value['start_timestamp'],
|
|
110
117
|
'end_timestamp': value['end_timestamp'],
|
|
111
118
|
'count_back': value['count_back'],
|
|
119
|
+
'connect_opens': value['connect_opens'],
|
|
112
120
|
};
|
|
113
121
|
}
|
|
114
122
|
|
package/openapi.json
CHANGED
|
@@ -1252,6 +1252,14 @@
|
|
|
1252
1252
|
"type": "boolean",
|
|
1253
1253
|
"format": "boolean",
|
|
1254
1254
|
"default": "false"
|
|
1255
|
+
},
|
|
1256
|
+
{
|
|
1257
|
+
"name": "merge_mark_price",
|
|
1258
|
+
"in": "query",
|
|
1259
|
+
"required": false,
|
|
1260
|
+
"type": "boolean",
|
|
1261
|
+
"format": "boolean",
|
|
1262
|
+
"default": "false"
|
|
1255
1263
|
}
|
|
1256
1264
|
],
|
|
1257
1265
|
"tags": [
|
|
@@ -4096,6 +4104,14 @@
|
|
|
4096
4104
|
"required": true,
|
|
4097
4105
|
"type": "integer",
|
|
4098
4106
|
"format": "int64"
|
|
4107
|
+
},
|
|
4108
|
+
{
|
|
4109
|
+
"name": "connect_opens",
|
|
4110
|
+
"in": "query",
|
|
4111
|
+
"required": false,
|
|
4112
|
+
"type": "boolean",
|
|
4113
|
+
"format": "boolean",
|
|
4114
|
+
"default": "false"
|
|
4099
4115
|
}
|
|
4100
4116
|
],
|
|
4101
4117
|
"tags": [
|
|
@@ -7176,7 +7192,7 @@
|
|
|
7176
7192
|
"consumes": [
|
|
7177
7193
|
"multipart/form-data"
|
|
7178
7194
|
],
|
|
7179
|
-
"description": "Trade, pool, staking and total equity, interval and window PnL in USD. Total ROI is a fraction (0.0088 = 0.88%). The latest sample
|
|
7195
|
+
"description": "Trade, pool, staking and total equity, interval and window PnL in USD. Total ROI is a fraction (0.0088 = 0.88%). Samples close their preceding bucket: a daily sample at midnight represents the previous day. The latest sample at or before start is a hidden baseline; an end within a bucket rounds up to its close. Without a baseline, the first bucket starts from zero equity and cash flows. Entry volume is per bucket; summary volume is the window total. Historical queries never append current data."
|
|
7180
7196
|
}
|
|
7181
7197
|
},
|
|
7182
7198
|
"/info": {
|
|
@@ -15329,6 +15345,11 @@
|
|
|
15329
15345
|
"type": "boolean",
|
|
15330
15346
|
"format": "boolean",
|
|
15331
15347
|
"default": "false"
|
|
15348
|
+
},
|
|
15349
|
+
"merge_mark_price": {
|
|
15350
|
+
"type": "boolean",
|
|
15351
|
+
"format": "boolean",
|
|
15352
|
+
"default": "false"
|
|
15332
15353
|
}
|
|
15333
15354
|
},
|
|
15334
15355
|
"title": "ReqGetCandles",
|
|
@@ -15879,6 +15900,11 @@
|
|
|
15879
15900
|
"count_back": {
|
|
15880
15901
|
"type": "integer",
|
|
15881
15902
|
"format": "int64"
|
|
15903
|
+
},
|
|
15904
|
+
"connect_opens": {
|
|
15905
|
+
"type": "boolean",
|
|
15906
|
+
"format": "boolean",
|
|
15907
|
+
"default": "false"
|
|
15882
15908
|
}
|
|
15883
15909
|
},
|
|
15884
15910
|
"title": "ReqGetMarkPriceCandles",
|