zklighter-perps 1.0.265 → 1.0.266
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/.openapi-generator/FILES +0 -3
- package/apis/CandlestickApi.ts +0 -114
- package/apis/OrderApi.ts +5 -0
- package/models/AccountAsset.ts +1 -1
- package/models/Asset.ts +1 -1
- package/models/OrderBook.ts +1 -1
- package/models/PerpsOrderBookDetail.ts +1 -1
- package/models/ReqExportData.ts +8 -0
- package/models/SpotOrderBookDetail.ts +1 -1
- package/models/index.ts +0 -3
- package/openapi.json +13 -251
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -51,7 +51,6 @@ models/BridgeSupportedNetworks.ts
|
|
|
51
51
|
models/Candle.ts
|
|
52
52
|
models/Candles.ts
|
|
53
53
|
models/Candlestick.ts
|
|
54
|
-
models/Candlesticks.ts
|
|
55
54
|
models/ContractAddress.ts
|
|
56
55
|
models/CreateIntentAddressResp.ts
|
|
57
56
|
models/CurrentHeight.ts
|
|
@@ -63,7 +62,6 @@ models/DepositHistory.ts
|
|
|
63
62
|
models/DepositHistoryItem.ts
|
|
64
63
|
models/DetailedAccount.ts
|
|
65
64
|
models/DetailedAccounts.ts
|
|
66
|
-
models/DetailedCandlestick.ts
|
|
67
65
|
models/EnrichedTx.ts
|
|
68
66
|
models/ExchangeMetric.ts
|
|
69
67
|
models/ExchangeStats.ts
|
|
@@ -146,7 +144,6 @@ models/ReqGetBlockTxs.ts
|
|
|
146
144
|
models/ReqGetBridgesByL1Addr.ts
|
|
147
145
|
models/ReqGetByAccount.ts
|
|
148
146
|
models/ReqGetCandles.ts
|
|
149
|
-
models/ReqGetCandlesticks.ts
|
|
150
147
|
models/ReqGetDepositHistory.ts
|
|
151
148
|
models/ReqGetExchangeMetrics.ts
|
|
152
149
|
models/ReqGetExecuteStats.ts
|
package/apis/CandlestickApi.ts
CHANGED
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
Candles,
|
|
19
|
-
Candlesticks,
|
|
20
19
|
Fundings,
|
|
21
20
|
MarkPriceCandles,
|
|
22
21
|
ResultCode,
|
|
@@ -24,8 +23,6 @@ import type {
|
|
|
24
23
|
import {
|
|
25
24
|
CandlesFromJSON,
|
|
26
25
|
CandlesToJSON,
|
|
27
|
-
CandlesticksFromJSON,
|
|
28
|
-
CandlesticksToJSON,
|
|
29
26
|
FundingsFromJSON,
|
|
30
27
|
FundingsToJSON,
|
|
31
28
|
MarkPriceCandlesFromJSON,
|
|
@@ -43,15 +40,6 @@ export interface CandlesRequest {
|
|
|
43
40
|
set_timestamp_to_end?: boolean;
|
|
44
41
|
}
|
|
45
42
|
|
|
46
|
-
export interface CandlesticksRequest {
|
|
47
|
-
market_id: number;
|
|
48
|
-
resolution: CandlesticksResolutionEnum;
|
|
49
|
-
start_timestamp: number;
|
|
50
|
-
end_timestamp: number;
|
|
51
|
-
count_back: number;
|
|
52
|
-
set_timestamp_to_end?: boolean;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
43
|
export interface FundingsRequest {
|
|
56
44
|
market_id: number;
|
|
57
45
|
resolution: FundingsResolutionEnum;
|
|
@@ -160,93 +148,6 @@ export class CandlestickApi extends runtime.BaseAPI {
|
|
|
160
148
|
return await response.value();
|
|
161
149
|
}
|
|
162
150
|
|
|
163
|
-
/**
|
|
164
|
-
* Get candlesticks
|
|
165
|
-
* candlesticks
|
|
166
|
-
*/
|
|
167
|
-
async candlesticksRaw(requestParameters: CandlesticksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Candlesticks>> {
|
|
168
|
-
if (requestParameters['market_id'] == null) {
|
|
169
|
-
throw new runtime.RequiredError(
|
|
170
|
-
'market_id',
|
|
171
|
-
'Required parameter "market_id" was null or undefined when calling candlesticks().'
|
|
172
|
-
);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
if (requestParameters['resolution'] == null) {
|
|
176
|
-
throw new runtime.RequiredError(
|
|
177
|
-
'resolution',
|
|
178
|
-
'Required parameter "resolution" was null or undefined when calling candlesticks().'
|
|
179
|
-
);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
if (requestParameters['start_timestamp'] == null) {
|
|
183
|
-
throw new runtime.RequiredError(
|
|
184
|
-
'start_timestamp',
|
|
185
|
-
'Required parameter "start_timestamp" was null or undefined when calling candlesticks().'
|
|
186
|
-
);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
if (requestParameters['end_timestamp'] == null) {
|
|
190
|
-
throw new runtime.RequiredError(
|
|
191
|
-
'end_timestamp',
|
|
192
|
-
'Required parameter "end_timestamp" was null or undefined when calling candlesticks().'
|
|
193
|
-
);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
if (requestParameters['count_back'] == null) {
|
|
197
|
-
throw new runtime.RequiredError(
|
|
198
|
-
'count_back',
|
|
199
|
-
'Required parameter "count_back" was null or undefined when calling candlesticks().'
|
|
200
|
-
);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
const queryParameters: any = {};
|
|
204
|
-
|
|
205
|
-
if (requestParameters['market_id'] != null) {
|
|
206
|
-
queryParameters['market_id'] = requestParameters['market_id'];
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
if (requestParameters['resolution'] != null) {
|
|
210
|
-
queryParameters['resolution'] = requestParameters['resolution'];
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
if (requestParameters['start_timestamp'] != null) {
|
|
214
|
-
queryParameters['start_timestamp'] = requestParameters['start_timestamp'];
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
if (requestParameters['end_timestamp'] != null) {
|
|
218
|
-
queryParameters['end_timestamp'] = requestParameters['end_timestamp'];
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
if (requestParameters['count_back'] != null) {
|
|
222
|
-
queryParameters['count_back'] = requestParameters['count_back'];
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
if (requestParameters['set_timestamp_to_end'] != null) {
|
|
226
|
-
queryParameters['set_timestamp_to_end'] = requestParameters['set_timestamp_to_end'];
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
230
|
-
|
|
231
|
-
const response = await this.request({
|
|
232
|
-
path: `/api/v1/candlesticks`,
|
|
233
|
-
method: 'GET',
|
|
234
|
-
headers: headerParameters,
|
|
235
|
-
query: queryParameters,
|
|
236
|
-
}, initOverrides);
|
|
237
|
-
|
|
238
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => CandlesticksFromJSON(jsonValue));
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* Get candlesticks
|
|
243
|
-
* candlesticks
|
|
244
|
-
*/
|
|
245
|
-
async candlesticks(requestParameters: CandlesticksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Candlesticks> {
|
|
246
|
-
const response = await this.candlesticksRaw(requestParameters, initOverrides);
|
|
247
|
-
return await response.value();
|
|
248
|
-
}
|
|
249
|
-
|
|
250
151
|
/**
|
|
251
152
|
* Get fundings
|
|
252
153
|
* fundings
|
|
@@ -429,21 +330,6 @@ export const CandlesResolutionEnum = {
|
|
|
429
330
|
_1d: '1d'
|
|
430
331
|
} as const;
|
|
431
332
|
export type CandlesResolutionEnum = typeof CandlesResolutionEnum[keyof typeof CandlesResolutionEnum];
|
|
432
|
-
/**
|
|
433
|
-
* @export
|
|
434
|
-
*/
|
|
435
|
-
export const CandlesticksResolutionEnum = {
|
|
436
|
-
_1m: '1m',
|
|
437
|
-
_5m: '5m',
|
|
438
|
-
_15m: '15m',
|
|
439
|
-
_30m: '30m',
|
|
440
|
-
_1h: '1h',
|
|
441
|
-
_4h: '4h',
|
|
442
|
-
_12h: '12h',
|
|
443
|
-
_1d: '1d',
|
|
444
|
-
_1w: '1w'
|
|
445
|
-
} as const;
|
|
446
|
-
export type CandlesticksResolutionEnum = typeof CandlesticksResolutionEnum[keyof typeof CandlesticksResolutionEnum];
|
|
447
333
|
/**
|
|
448
334
|
* @export
|
|
449
335
|
*/
|
package/apis/OrderApi.ts
CHANGED
|
@@ -61,6 +61,7 @@ export interface ExportRequest {
|
|
|
61
61
|
auth?: string;
|
|
62
62
|
account_index?: number;
|
|
63
63
|
market_id?: number;
|
|
64
|
+
aggregate?: boolean;
|
|
64
65
|
start_timestamp?: number;
|
|
65
66
|
end_timestamp?: number;
|
|
66
67
|
side?: ExportSideEnum;
|
|
@@ -187,6 +188,10 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
187
188
|
queryParameters['type'] = requestParameters['type'];
|
|
188
189
|
}
|
|
189
190
|
|
|
191
|
+
if (requestParameters['aggregate'] != null) {
|
|
192
|
+
queryParameters['aggregate'] = requestParameters['aggregate'];
|
|
193
|
+
}
|
|
194
|
+
|
|
190
195
|
if (requestParameters['start_timestamp'] != null) {
|
|
191
196
|
queryParameters['start_timestamp'] = requestParameters['start_timestamp'];
|
|
192
197
|
}
|
package/models/AccountAsset.ts
CHANGED
package/models/Asset.ts
CHANGED
package/models/OrderBook.ts
CHANGED
package/models/ReqExportData.ts
CHANGED
|
@@ -43,6 +43,12 @@ export interface ReqExportData {
|
|
|
43
43
|
* @memberof ReqExportData
|
|
44
44
|
*/
|
|
45
45
|
type: ReqExportDataTypeEnum;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof ReqExportData
|
|
50
|
+
*/
|
|
51
|
+
aggregate?: boolean;
|
|
46
52
|
/**
|
|
47
53
|
*
|
|
48
54
|
* @type {number}
|
|
@@ -140,6 +146,7 @@ export function ReqExportDataFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
140
146
|
'account_index': json['account_index'] == null ? undefined : json['account_index'],
|
|
141
147
|
'market_id': json['market_id'] == null ? undefined : json['market_id'],
|
|
142
148
|
'type': json['type'],
|
|
149
|
+
'aggregate': json['aggregate'] == null ? undefined : json['aggregate'],
|
|
143
150
|
'start_timestamp': json['start_timestamp'] == null ? undefined : json['start_timestamp'],
|
|
144
151
|
'end_timestamp': json['end_timestamp'] == null ? undefined : json['end_timestamp'],
|
|
145
152
|
'side': json['side'] == null ? undefined : json['side'],
|
|
@@ -158,6 +165,7 @@ export function ReqExportDataToJSON(value?: ReqExportData | null): any {
|
|
|
158
165
|
'account_index': value['account_index'],
|
|
159
166
|
'market_id': value['market_id'],
|
|
160
167
|
'type': value['type'],
|
|
168
|
+
'aggregate': value['aggregate'],
|
|
161
169
|
'start_timestamp': value['start_timestamp'],
|
|
162
170
|
'end_timestamp': value['end_timestamp'],
|
|
163
171
|
'side': value['side'],
|
package/models/index.ts
CHANGED
|
@@ -34,7 +34,6 @@ export * from './BridgeSupportedNetworks';
|
|
|
34
34
|
export * from './Candle';
|
|
35
35
|
export * from './Candles';
|
|
36
36
|
export * from './Candlestick';
|
|
37
|
-
export * from './Candlesticks';
|
|
38
37
|
export * from './ContractAddress';
|
|
39
38
|
export * from './CreateIntentAddressResp';
|
|
40
39
|
export * from './CurrentHeight';
|
|
@@ -46,7 +45,6 @@ export * from './DepositHistory';
|
|
|
46
45
|
export * from './DepositHistoryItem';
|
|
47
46
|
export * from './DetailedAccount';
|
|
48
47
|
export * from './DetailedAccounts';
|
|
49
|
-
export * from './DetailedCandlestick';
|
|
50
48
|
export * from './EnrichedTx';
|
|
51
49
|
export * from './ExchangeMetric';
|
|
52
50
|
export * from './ExchangeStats';
|
|
@@ -129,7 +127,6 @@ export * from './ReqGetBlockTxs';
|
|
|
129
127
|
export * from './ReqGetBridgesByL1Addr';
|
|
130
128
|
export * from './ReqGetByAccount';
|
|
131
129
|
export * from './ReqGetCandles';
|
|
132
|
-
export * from './ReqGetCandlesticks';
|
|
133
130
|
export * from './ReqGetDepositHistory';
|
|
134
131
|
export * from './ReqGetExchangeMetrics';
|
|
135
132
|
export * from './ReqGetExecuteStats';
|
package/openapi.json
CHANGED
|
@@ -1203,92 +1203,6 @@
|
|
|
1203
1203
|
"description": "Get candles (optimized with shortened fields and smaller response size)"
|
|
1204
1204
|
}
|
|
1205
1205
|
},
|
|
1206
|
-
"/api/v1/candlesticks": {
|
|
1207
|
-
"get": {
|
|
1208
|
-
"summary": "candlesticks",
|
|
1209
|
-
"operationId": "candlesticks",
|
|
1210
|
-
"responses": {
|
|
1211
|
-
"200": {
|
|
1212
|
-
"description": "A successful response.",
|
|
1213
|
-
"schema": {
|
|
1214
|
-
"$ref": "#/definitions/Candlesticks"
|
|
1215
|
-
}
|
|
1216
|
-
},
|
|
1217
|
-
"400": {
|
|
1218
|
-
"description": "Bad request",
|
|
1219
|
-
"schema": {
|
|
1220
|
-
"$ref": "#/definitions/ResultCode"
|
|
1221
|
-
}
|
|
1222
|
-
}
|
|
1223
|
-
},
|
|
1224
|
-
"parameters": [
|
|
1225
|
-
{
|
|
1226
|
-
"name": "market_id",
|
|
1227
|
-
"in": "query",
|
|
1228
|
-
"required": true,
|
|
1229
|
-
"type": "integer",
|
|
1230
|
-
"format": "int16"
|
|
1231
|
-
},
|
|
1232
|
-
{
|
|
1233
|
-
"name": "resolution",
|
|
1234
|
-
"in": "query",
|
|
1235
|
-
"required": true,
|
|
1236
|
-
"type": "string",
|
|
1237
|
-
"enum": [
|
|
1238
|
-
"1m",
|
|
1239
|
-
"5m",
|
|
1240
|
-
"15m",
|
|
1241
|
-
"30m",
|
|
1242
|
-
"1h",
|
|
1243
|
-
"4h",
|
|
1244
|
-
"12h",
|
|
1245
|
-
"1d",
|
|
1246
|
-
"1w"
|
|
1247
|
-
]
|
|
1248
|
-
},
|
|
1249
|
-
{
|
|
1250
|
-
"name": "start_timestamp",
|
|
1251
|
-
"in": "query",
|
|
1252
|
-
"required": true,
|
|
1253
|
-
"type": "integer",
|
|
1254
|
-
"format": "int64",
|
|
1255
|
-
"minimum": 0,
|
|
1256
|
-
"maximum": 5000000000000
|
|
1257
|
-
},
|
|
1258
|
-
{
|
|
1259
|
-
"name": "end_timestamp",
|
|
1260
|
-
"in": "query",
|
|
1261
|
-
"required": true,
|
|
1262
|
-
"type": "integer",
|
|
1263
|
-
"format": "int64",
|
|
1264
|
-
"minimum": 0,
|
|
1265
|
-
"maximum": 5000000000000
|
|
1266
|
-
},
|
|
1267
|
-
{
|
|
1268
|
-
"name": "count_back",
|
|
1269
|
-
"in": "query",
|
|
1270
|
-
"required": true,
|
|
1271
|
-
"type": "integer",
|
|
1272
|
-
"format": "int64"
|
|
1273
|
-
},
|
|
1274
|
-
{
|
|
1275
|
-
"name": "set_timestamp_to_end",
|
|
1276
|
-
"in": "query",
|
|
1277
|
-
"required": false,
|
|
1278
|
-
"type": "boolean",
|
|
1279
|
-
"format": "boolean",
|
|
1280
|
-
"default": "false"
|
|
1281
|
-
}
|
|
1282
|
-
],
|
|
1283
|
-
"tags": [
|
|
1284
|
-
"candlestick"
|
|
1285
|
-
],
|
|
1286
|
-
"consumes": [
|
|
1287
|
-
"multipart/form-data"
|
|
1288
|
-
],
|
|
1289
|
-
"description": "Get candlesticks"
|
|
1290
|
-
}
|
|
1291
|
-
},
|
|
1292
1206
|
"/api/v1/changeAccountTier": {
|
|
1293
1207
|
"post": {
|
|
1294
1208
|
"summary": "changeAccountTier",
|
|
@@ -1841,6 +1755,14 @@
|
|
|
1841
1755
|
"trade"
|
|
1842
1756
|
]
|
|
1843
1757
|
},
|
|
1758
|
+
{
|
|
1759
|
+
"name": "aggregate",
|
|
1760
|
+
"in": "query",
|
|
1761
|
+
"required": false,
|
|
1762
|
+
"type": "boolean",
|
|
1763
|
+
"format": "boolean",
|
|
1764
|
+
"default": "false"
|
|
1765
|
+
},
|
|
1844
1766
|
{
|
|
1845
1767
|
"name": "start_timestamp",
|
|
1846
1768
|
"in": "query",
|
|
@@ -6757,35 +6679,6 @@
|
|
|
6757
6679
|
"trade_count"
|
|
6758
6680
|
]
|
|
6759
6681
|
},
|
|
6760
|
-
"Candlesticks": {
|
|
6761
|
-
"type": "object",
|
|
6762
|
-
"properties": {
|
|
6763
|
-
"code": {
|
|
6764
|
-
"type": "integer",
|
|
6765
|
-
"format": "int32",
|
|
6766
|
-
"example": "200"
|
|
6767
|
-
},
|
|
6768
|
-
"message": {
|
|
6769
|
-
"type": "string"
|
|
6770
|
-
},
|
|
6771
|
-
"resolution": {
|
|
6772
|
-
"type": "string",
|
|
6773
|
-
"example": "15m"
|
|
6774
|
-
},
|
|
6775
|
-
"candlesticks": {
|
|
6776
|
-
"type": "array",
|
|
6777
|
-
"items": {
|
|
6778
|
-
"$ref": "#/definitions/Candlestick"
|
|
6779
|
-
}
|
|
6780
|
-
}
|
|
6781
|
-
},
|
|
6782
|
-
"title": "Candlesticks",
|
|
6783
|
-
"required": [
|
|
6784
|
-
"code",
|
|
6785
|
-
"resolution",
|
|
6786
|
-
"candlesticks"
|
|
6787
|
-
]
|
|
6788
|
-
},
|
|
6789
6682
|
"ContractAddress": {
|
|
6790
6683
|
"type": "object",
|
|
6791
6684
|
"properties": {
|
|
@@ -7306,92 +7199,6 @@
|
|
|
7306
7199
|
"accounts"
|
|
7307
7200
|
]
|
|
7308
7201
|
},
|
|
7309
|
-
"DetailedCandlestick": {
|
|
7310
|
-
"type": "object",
|
|
7311
|
-
"properties": {
|
|
7312
|
-
"timestamp": {
|
|
7313
|
-
"type": "integer",
|
|
7314
|
-
"format": "int64",
|
|
7315
|
-
"example": "1640995200"
|
|
7316
|
-
},
|
|
7317
|
-
"open": {
|
|
7318
|
-
"type": "number",
|
|
7319
|
-
"format": "double",
|
|
7320
|
-
"example": "3024.66"
|
|
7321
|
-
},
|
|
7322
|
-
"high": {
|
|
7323
|
-
"type": "number",
|
|
7324
|
-
"format": "double",
|
|
7325
|
-
"example": "3034.66"
|
|
7326
|
-
},
|
|
7327
|
-
"low": {
|
|
7328
|
-
"type": "number",
|
|
7329
|
-
"format": "double",
|
|
7330
|
-
"example": "3014.66"
|
|
7331
|
-
},
|
|
7332
|
-
"close": {
|
|
7333
|
-
"type": "number",
|
|
7334
|
-
"format": "double",
|
|
7335
|
-
"example": "3024.66"
|
|
7336
|
-
},
|
|
7337
|
-
"open_raw": {
|
|
7338
|
-
"type": "number",
|
|
7339
|
-
"format": "double",
|
|
7340
|
-
"example": "3024.66"
|
|
7341
|
-
},
|
|
7342
|
-
"high_raw": {
|
|
7343
|
-
"type": "number",
|
|
7344
|
-
"format": "double",
|
|
7345
|
-
"example": "3034.66"
|
|
7346
|
-
},
|
|
7347
|
-
"low_raw": {
|
|
7348
|
-
"type": "number",
|
|
7349
|
-
"format": "double",
|
|
7350
|
-
"example": "3014.66"
|
|
7351
|
-
},
|
|
7352
|
-
"close_raw": {
|
|
7353
|
-
"type": "number",
|
|
7354
|
-
"format": "double",
|
|
7355
|
-
"example": "3024.66"
|
|
7356
|
-
},
|
|
7357
|
-
"volume0": {
|
|
7358
|
-
"type": "number",
|
|
7359
|
-
"format": "double",
|
|
7360
|
-
"example": "235.25"
|
|
7361
|
-
},
|
|
7362
|
-
"volume1": {
|
|
7363
|
-
"type": "number",
|
|
7364
|
-
"format": "double",
|
|
7365
|
-
"example": "93566.25"
|
|
7366
|
-
},
|
|
7367
|
-
"last_trade_id": {
|
|
7368
|
-
"type": "integer",
|
|
7369
|
-
"format": "int64",
|
|
7370
|
-
"example": "1"
|
|
7371
|
-
},
|
|
7372
|
-
"trade_count": {
|
|
7373
|
-
"type": "integer",
|
|
7374
|
-
"format": "int64",
|
|
7375
|
-
"example": "1503241"
|
|
7376
|
-
}
|
|
7377
|
-
},
|
|
7378
|
-
"title": "DetailedCandlestick",
|
|
7379
|
-
"required": [
|
|
7380
|
-
"timestamp",
|
|
7381
|
-
"open",
|
|
7382
|
-
"high",
|
|
7383
|
-
"low",
|
|
7384
|
-
"close",
|
|
7385
|
-
"open_raw",
|
|
7386
|
-
"high_raw",
|
|
7387
|
-
"low_raw",
|
|
7388
|
-
"close_raw",
|
|
7389
|
-
"volume0",
|
|
7390
|
-
"volume1",
|
|
7391
|
-
"last_trade_id",
|
|
7392
|
-
"trade_count"
|
|
7393
|
-
]
|
|
7394
|
-
},
|
|
7395
7202
|
"EnrichedTx": {
|
|
7396
7203
|
"type": "object",
|
|
7397
7204
|
"properties": {
|
|
@@ -10677,6 +10484,11 @@
|
|
|
10677
10484
|
"trade"
|
|
10678
10485
|
]
|
|
10679
10486
|
},
|
|
10487
|
+
"aggregate": {
|
|
10488
|
+
"type": "boolean",
|
|
10489
|
+
"format": "boolean",
|
|
10490
|
+
"default": "false"
|
|
10491
|
+
},
|
|
10680
10492
|
"start_timestamp": {
|
|
10681
10493
|
"type": "integer",
|
|
10682
10494
|
"format": "int64",
|
|
@@ -11196,56 +11008,6 @@
|
|
|
11196
11008
|
"count_back"
|
|
11197
11009
|
]
|
|
11198
11010
|
},
|
|
11199
|
-
"ReqGetCandlesticks": {
|
|
11200
|
-
"type": "object",
|
|
11201
|
-
"properties": {
|
|
11202
|
-
"market_id": {
|
|
11203
|
-
"type": "integer",
|
|
11204
|
-
"format": "int16"
|
|
11205
|
-
},
|
|
11206
|
-
"resolution": {
|
|
11207
|
-
"type": "string",
|
|
11208
|
-
"enum": [
|
|
11209
|
-
"1m",
|
|
11210
|
-
"5m",
|
|
11211
|
-
"15m",
|
|
11212
|
-
"30m",
|
|
11213
|
-
"1h",
|
|
11214
|
-
"4h",
|
|
11215
|
-
"12h",
|
|
11216
|
-
"1d",
|
|
11217
|
-
"1w"
|
|
11218
|
-
]
|
|
11219
|
-
},
|
|
11220
|
-
"start_timestamp": {
|
|
11221
|
-
"type": "integer",
|
|
11222
|
-
"format": "int64",
|
|
11223
|
-
"maximum": 5000000000000
|
|
11224
|
-
},
|
|
11225
|
-
"end_timestamp": {
|
|
11226
|
-
"type": "integer",
|
|
11227
|
-
"format": "int64",
|
|
11228
|
-
"maximum": 5000000000000
|
|
11229
|
-
},
|
|
11230
|
-
"count_back": {
|
|
11231
|
-
"type": "integer",
|
|
11232
|
-
"format": "int64"
|
|
11233
|
-
},
|
|
11234
|
-
"set_timestamp_to_end": {
|
|
11235
|
-
"type": "boolean",
|
|
11236
|
-
"format": "boolean",
|
|
11237
|
-
"default": "false"
|
|
11238
|
-
}
|
|
11239
|
-
},
|
|
11240
|
-
"title": "ReqGetCandlesticks",
|
|
11241
|
-
"required": [
|
|
11242
|
-
"market_id",
|
|
11243
|
-
"resolution",
|
|
11244
|
-
"start_timestamp",
|
|
11245
|
-
"end_timestamp",
|
|
11246
|
-
"count_back"
|
|
11247
|
-
]
|
|
11248
|
-
},
|
|
11249
11011
|
"ReqGetDepositHistory": {
|
|
11250
11012
|
"type": "object",
|
|
11251
11013
|
"properties": {
|