zklighter-perps 1.0.64 → 1.0.65
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/CandlestickApi.ts +5 -0
- package/models/ReqGetCandlesticks.ts +8 -0
- package/openapi.json +13 -0
- package/package.json +1 -1
package/apis/CandlestickApi.ts
CHANGED
|
@@ -34,6 +34,7 @@ export interface CandlesticksRequest {
|
|
|
34
34
|
start_timestamp: number;
|
|
35
35
|
end_timestamp: number;
|
|
36
36
|
count_back: number;
|
|
37
|
+
set_timestamp_to_end?: boolean;
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
export interface FundingsRequest {
|
|
@@ -111,6 +112,10 @@ export class CandlestickApi extends runtime.BaseAPI {
|
|
|
111
112
|
queryParameters['count_back'] = requestParameters['count_back'];
|
|
112
113
|
}
|
|
113
114
|
|
|
115
|
+
if (requestParameters['set_timestamp_to_end'] != null) {
|
|
116
|
+
queryParameters['set_timestamp_to_end'] = requestParameters['set_timestamp_to_end'];
|
|
117
|
+
}
|
|
118
|
+
|
|
114
119
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
115
120
|
|
|
116
121
|
const response = await this.request({
|
|
@@ -49,6 +49,12 @@ export interface ReqGetCandlesticks {
|
|
|
49
49
|
* @memberof ReqGetCandlesticks
|
|
50
50
|
*/
|
|
51
51
|
count_back: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof ReqGetCandlesticks
|
|
56
|
+
*/
|
|
57
|
+
set_timestamp_to_end?: boolean;
|
|
52
58
|
}
|
|
53
59
|
|
|
54
60
|
|
|
@@ -93,6 +99,7 @@ export function ReqGetCandlesticksFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
93
99
|
'start_timestamp': json['start_timestamp'],
|
|
94
100
|
'end_timestamp': json['end_timestamp'],
|
|
95
101
|
'count_back': json['count_back'],
|
|
102
|
+
'set_timestamp_to_end': json['set_timestamp_to_end'] == null ? undefined : json['set_timestamp_to_end'],
|
|
96
103
|
};
|
|
97
104
|
}
|
|
98
105
|
|
|
@@ -107,6 +114,7 @@ export function ReqGetCandlesticksToJSON(value?: ReqGetCandlesticks | null): any
|
|
|
107
114
|
'start_timestamp': value['start_timestamp'],
|
|
108
115
|
'end_timestamp': value['end_timestamp'],
|
|
109
116
|
'count_back': value['count_back'],
|
|
117
|
+
'set_timestamp_to_end': value['set_timestamp_to_end'],
|
|
110
118
|
};
|
|
111
119
|
}
|
|
112
120
|
|
package/openapi.json
CHANGED
|
@@ -714,6 +714,14 @@
|
|
|
714
714
|
"required": true,
|
|
715
715
|
"type": "integer",
|
|
716
716
|
"format": "int64"
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"name": "set_timestamp_to_end",
|
|
720
|
+
"in": "query",
|
|
721
|
+
"required": false,
|
|
722
|
+
"type": "boolean",
|
|
723
|
+
"format": "boolean",
|
|
724
|
+
"default": "false"
|
|
717
725
|
}
|
|
718
726
|
],
|
|
719
727
|
"tags": [
|
|
@@ -4245,6 +4253,11 @@
|
|
|
4245
4253
|
"count_back": {
|
|
4246
4254
|
"type": "integer",
|
|
4247
4255
|
"format": "int64"
|
|
4256
|
+
},
|
|
4257
|
+
"set_timestamp_to_end": {
|
|
4258
|
+
"type": "boolean",
|
|
4259
|
+
"format": "boolean",
|
|
4260
|
+
"default": "false"
|
|
4248
4261
|
}
|
|
4249
4262
|
},
|
|
4250
4263
|
"title": "ReqGetCandlesticks",
|