zklighter-perps 1.0.5 → 1.0.7
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 -1
- package/apis/AccountApi.ts +12 -0
- package/apis/BlockApi.ts +6 -3
- package/apis/CandlestickApi.ts +4 -3
- package/apis/InfoApi.ts +8 -3
- package/apis/OrderApi.ts +18 -3
- package/apis/RelayerApi.ts +2 -3
- package/apis/RootApi.ts +2 -69
- package/apis/TransactionApi.ts +26 -37
- package/apis/WsApi.ts +4 -0
- package/apis/index.ts +0 -1
- package/models/AccountMarketStats.ts +12 -18
- package/models/AccountPnL.ts +5 -7
- package/models/AccountPosition.ts +22 -33
- package/models/AccountStats.ts +10 -15
- package/models/Block.ts +27 -40
- package/models/Blocks.ts +5 -7
- package/models/Candlestick.ts +14 -21
- package/models/Candlesticks.ts +5 -7
- package/models/ContractAddress.ts +4 -6
- package/models/CurrentHeight.ts +2 -3
- package/models/DetailedAccount.ts +8 -11
- package/models/DetailedAccounts.ts +5 -7
- package/models/EnrichedTx.ts +6 -9
- package/models/ExchangeStats.ts +9 -13
- package/models/Funding.ts +8 -12
- package/models/Fundings.ts +5 -7
- package/models/L1ProviderInfo.ts +8 -12
- package/models/Layer1BasicInfo.ts +17 -24
- package/models/Layer2BasicInfo.ts +6 -9
- package/models/MainAccount.ts +6 -9
- package/models/MainAccounts.ts +5 -7
- package/models/MarketInfo.ts +22 -33
- package/models/MarketSig.ts +8 -12
- package/models/NextNonce.ts +2 -3
- package/models/Order.ts +32 -48
- package/models/OrderBook.ts +20 -30
- package/models/OrderBookDepth.ts +8 -11
- package/models/OrderBookDetail.ts +36 -54
- package/models/OrderBookDetails.ts +3 -4
- package/models/OrderBookOrders.ts +10 -14
- package/models/OrderBookStats.ts +12 -18
- package/models/OrderBooks.ts +3 -4
- package/models/Orders.ts +3 -4
- package/models/Permission.ts +2 -3
- package/models/PnLEntry.ts +4 -6
- package/models/PriceLevel.ts +4 -6
- package/models/ReqDoFaucet.ts +2 -3
- package/models/ReqGetAccount.ts +4 -6
- package/models/ReqGetAccountActiveOrders.ts +6 -9
- package/models/ReqGetAccountByL1Address.ts +2 -3
- package/models/ReqGetAccountInactiveOrders.ts +8 -12
- package/models/ReqGetAccountOrders.ts +6 -9
- package/models/ReqGetAccountPnL.ts +12 -18
- package/models/ReqGetBlock.ts +4 -6
- package/models/ReqGetBlockTxs.ts +4 -6
- package/models/ReqGetByAccount.ts +4 -6
- package/models/ReqGetCandlesticks.ts +10 -15
- package/models/ReqGetFundings.ts +10 -15
- package/models/ReqGetL1Tx.ts +2 -3
- package/models/ReqGetMarketSig.ts +6 -9
- package/models/ReqGetNextNonce.ts +4 -6
- package/models/ReqGetOrderBookDetails.ts +2 -3
- package/models/ReqGetOrderBookOrders.ts +4 -6
- package/models/ReqGetOrderBooks.ts +2 -3
- package/models/ReqGetPermission.ts +6 -9
- package/models/ReqGetRangeWithCursor.ts +2 -3
- package/models/ReqGetRangeWithIndex.ts +2 -3
- package/models/ReqGetRecentTrades.ts +4 -6
- package/models/ReqGetRollbacks.ts +6 -9
- package/models/ReqGetSubAccount.ts +6 -9
- package/models/ReqGetTrades.ts +8 -12
- package/models/ReqGetTx.ts +4 -6
- package/models/ReqSearch.ts +2 -3
- package/models/ResultCode.ts +2 -3
- package/models/Rollback.ts +8 -12
- package/models/Rollbacks.ts +5 -7
- package/models/Search.ts +2 -3
- package/models/SignBody.ts +2 -3
- package/models/SimpleOrder.ts +12 -18
- package/models/Status.ts +4 -6
- package/models/SubAccount.ts +16 -24
- package/models/SubAccounts.ts +9 -13
- package/models/Trade.ts +24 -36
- package/models/Trades.ts +3 -4
- package/models/Tx.ts +28 -42
- package/models/TxHash.ts +2 -3
- package/models/Txs.ts +3 -4
- package/models/ValidatorInfo.ts +4 -6
- package/openapi.json +185 -921
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"paths": {
|
|
18
18
|
"/": {
|
|
19
19
|
"get": {
|
|
20
|
-
"summary": "
|
|
20
|
+
"summary": "GetStatus",
|
|
21
21
|
"operationId": "GetStatus",
|
|
22
22
|
"responses": {
|
|
23
23
|
"200": {
|
|
@@ -25,22 +25,17 @@
|
|
|
25
25
|
"schema": {
|
|
26
26
|
"$ref": "#/definitions/Status"
|
|
27
27
|
}
|
|
28
|
-
},
|
|
29
|
-
"400": {
|
|
30
|
-
"description": "Bad request",
|
|
31
|
-
"schema": {
|
|
32
|
-
"$ref": "#/definitions/ResultCode"
|
|
33
|
-
}
|
|
34
28
|
}
|
|
35
29
|
},
|
|
36
30
|
"tags": [
|
|
37
31
|
"root"
|
|
38
|
-
]
|
|
32
|
+
],
|
|
33
|
+
"description": "Get status of zklighter"
|
|
39
34
|
}
|
|
40
35
|
},
|
|
41
36
|
"/api/v1/account": {
|
|
42
37
|
"get": {
|
|
43
|
-
"summary": "
|
|
38
|
+
"summary": "GetAccount",
|
|
44
39
|
"operationId": "GetAccount",
|
|
45
40
|
"responses": {
|
|
46
41
|
"200": {
|
|
@@ -48,12 +43,6 @@
|
|
|
48
43
|
"schema": {
|
|
49
44
|
"$ref": "#/definitions/DetailedAccounts"
|
|
50
45
|
}
|
|
51
|
-
},
|
|
52
|
-
"400": {
|
|
53
|
-
"description": "Bad request",
|
|
54
|
-
"schema": {
|
|
55
|
-
"$ref": "#/definitions/ResultCode"
|
|
56
|
-
}
|
|
57
46
|
}
|
|
58
47
|
},
|
|
59
48
|
"parameters": [
|
|
@@ -88,12 +77,13 @@
|
|
|
88
77
|
],
|
|
89
78
|
"consumes": [
|
|
90
79
|
"multipart/form-data"
|
|
91
|
-
]
|
|
80
|
+
],
|
|
81
|
+
"description": "Get account by main account's l1_address or index and sub account's index. Returns detailed account info"
|
|
92
82
|
}
|
|
93
83
|
},
|
|
94
84
|
"/api/v1/accountActiveOrders": {
|
|
95
85
|
"get": {
|
|
96
|
-
"summary": "
|
|
86
|
+
"summary": "GetAccountActiveOrders",
|
|
97
87
|
"operationId": "GetAccountActiveOrders",
|
|
98
88
|
"responses": {
|
|
99
89
|
"200": {
|
|
@@ -101,12 +91,6 @@
|
|
|
101
91
|
"schema": {
|
|
102
92
|
"$ref": "#/definitions/Orders"
|
|
103
93
|
}
|
|
104
|
-
},
|
|
105
|
-
"400": {
|
|
106
|
-
"description": "Bad request",
|
|
107
|
-
"schema": {
|
|
108
|
-
"$ref": "#/definitions/ResultCode"
|
|
109
|
-
}
|
|
110
94
|
}
|
|
111
95
|
},
|
|
112
96
|
"parameters": [
|
|
@@ -139,12 +123,13 @@
|
|
|
139
123
|
],
|
|
140
124
|
"consumes": [
|
|
141
125
|
"multipart/form-data"
|
|
142
|
-
]
|
|
126
|
+
],
|
|
127
|
+
"description": "Get account active orders"
|
|
143
128
|
}
|
|
144
129
|
},
|
|
145
130
|
"/api/v1/accountInactiveOrders": {
|
|
146
131
|
"get": {
|
|
147
|
-
"summary": "
|
|
132
|
+
"summary": "GetAccountInactiveOrders",
|
|
148
133
|
"operationId": "GetAccountInactiveOrders",
|
|
149
134
|
"responses": {
|
|
150
135
|
"200": {
|
|
@@ -152,12 +137,6 @@
|
|
|
152
137
|
"schema": {
|
|
153
138
|
"$ref": "#/definitions/Orders"
|
|
154
139
|
}
|
|
155
|
-
},
|
|
156
|
-
"400": {
|
|
157
|
-
"description": "Bad request",
|
|
158
|
-
"schema": {
|
|
159
|
-
"$ref": "#/definitions/ResultCode"
|
|
160
|
-
}
|
|
161
140
|
}
|
|
162
141
|
},
|
|
163
142
|
"parameters": [
|
|
@@ -215,12 +194,13 @@
|
|
|
215
194
|
],
|
|
216
195
|
"consumes": [
|
|
217
196
|
"multipart/form-data"
|
|
218
|
-
]
|
|
197
|
+
],
|
|
198
|
+
"description": "Get account active orders"
|
|
219
199
|
}
|
|
220
200
|
},
|
|
221
201
|
"/api/v1/accountOrders": {
|
|
222
202
|
"get": {
|
|
223
|
-
"summary": "
|
|
203
|
+
"summary": "GetAccountOrders",
|
|
224
204
|
"operationId": "GetAccountOrders",
|
|
225
205
|
"responses": {
|
|
226
206
|
"200": {
|
|
@@ -228,12 +208,6 @@
|
|
|
228
208
|
"schema": {
|
|
229
209
|
"$ref": "#/definitions/Orders"
|
|
230
210
|
}
|
|
231
|
-
},
|
|
232
|
-
"400": {
|
|
233
|
-
"description": "Bad request",
|
|
234
|
-
"schema": {
|
|
235
|
-
"$ref": "#/definitions/ResultCode"
|
|
236
|
-
}
|
|
237
211
|
}
|
|
238
212
|
},
|
|
239
213
|
"parameters": [
|
|
@@ -272,12 +246,13 @@
|
|
|
272
246
|
],
|
|
273
247
|
"consumes": [
|
|
274
248
|
"multipart/form-data"
|
|
275
|
-
]
|
|
249
|
+
],
|
|
250
|
+
"description": "Get account orders"
|
|
276
251
|
}
|
|
277
252
|
},
|
|
278
253
|
"/api/v1/accountPendingTxs": {
|
|
279
254
|
"get": {
|
|
280
|
-
"summary": "
|
|
255
|
+
"summary": "GetAccountPendingTxs",
|
|
281
256
|
"operationId": "GetAccountPendingTxs",
|
|
282
257
|
"responses": {
|
|
283
258
|
"200": {
|
|
@@ -285,12 +260,6 @@
|
|
|
285
260
|
"schema": {
|
|
286
261
|
"$ref": "#/definitions/Txs"
|
|
287
262
|
}
|
|
288
|
-
},
|
|
289
|
-
"400": {
|
|
290
|
-
"description": "Bad request",
|
|
291
|
-
"schema": {
|
|
292
|
-
"$ref": "#/definitions/ResultCode"
|
|
293
|
-
}
|
|
294
263
|
}
|
|
295
264
|
},
|
|
296
265
|
"parameters": [
|
|
@@ -323,12 +292,13 @@
|
|
|
323
292
|
],
|
|
324
293
|
"consumes": [
|
|
325
294
|
"multipart/form-data"
|
|
326
|
-
]
|
|
295
|
+
],
|
|
296
|
+
"description": "Get pending transactions of a specific account"
|
|
327
297
|
}
|
|
328
298
|
},
|
|
329
299
|
"/api/v1/accountTxs": {
|
|
330
300
|
"get": {
|
|
331
|
-
"summary": "
|
|
301
|
+
"summary": "GetAccountTxs",
|
|
332
302
|
"operationId": "GetAccountTxs",
|
|
333
303
|
"responses": {
|
|
334
304
|
"200": {
|
|
@@ -336,12 +306,6 @@
|
|
|
336
306
|
"schema": {
|
|
337
307
|
"$ref": "#/definitions/Txs"
|
|
338
308
|
}
|
|
339
|
-
},
|
|
340
|
-
"400": {
|
|
341
|
-
"description": "Bad request",
|
|
342
|
-
"schema": {
|
|
343
|
-
"$ref": "#/definitions/ResultCode"
|
|
344
|
-
}
|
|
345
309
|
}
|
|
346
310
|
},
|
|
347
311
|
"parameters": [
|
|
@@ -390,12 +354,13 @@
|
|
|
390
354
|
],
|
|
391
355
|
"consumes": [
|
|
392
356
|
"multipart/form-data"
|
|
393
|
-
]
|
|
357
|
+
],
|
|
358
|
+
"description": "Get transactions of a specific account"
|
|
394
359
|
}
|
|
395
360
|
},
|
|
396
361
|
"/api/v1/accounts": {
|
|
397
362
|
"get": {
|
|
398
|
-
"summary": "
|
|
363
|
+
"summary": "GetAccounts",
|
|
399
364
|
"operationId": "GetAccounts",
|
|
400
365
|
"responses": {
|
|
401
366
|
"200": {
|
|
@@ -403,12 +368,6 @@
|
|
|
403
368
|
"schema": {
|
|
404
369
|
"$ref": "#/definitions/MainAccounts"
|
|
405
370
|
}
|
|
406
|
-
},
|
|
407
|
-
"400": {
|
|
408
|
-
"description": "Bad request",
|
|
409
|
-
"schema": {
|
|
410
|
-
"$ref": "#/definitions/ResultCode"
|
|
411
|
-
}
|
|
412
371
|
}
|
|
413
372
|
},
|
|
414
373
|
"parameters": [
|
|
@@ -445,12 +404,13 @@
|
|
|
445
404
|
],
|
|
446
405
|
"consumes": [
|
|
447
406
|
"multipart/form-data"
|
|
448
|
-
]
|
|
407
|
+
],
|
|
408
|
+
"description": "Get accounts returns main accounts by account index"
|
|
449
409
|
}
|
|
450
410
|
},
|
|
451
411
|
"/api/v1/accountsByL1Address": {
|
|
452
412
|
"get": {
|
|
453
|
-
"summary": "
|
|
413
|
+
"summary": "GetAccountsByL1Address",
|
|
454
414
|
"operationId": "GetAccountsByL1Address",
|
|
455
415
|
"responses": {
|
|
456
416
|
"200": {
|
|
@@ -458,12 +418,6 @@
|
|
|
458
418
|
"schema": {
|
|
459
419
|
"$ref": "#/definitions/SubAccounts"
|
|
460
420
|
}
|
|
461
|
-
},
|
|
462
|
-
"400": {
|
|
463
|
-
"description": "Bad request",
|
|
464
|
-
"schema": {
|
|
465
|
-
"$ref": "#/definitions/ResultCode"
|
|
466
|
-
}
|
|
467
421
|
}
|
|
468
422
|
},
|
|
469
423
|
"parameters": [
|
|
@@ -479,12 +433,13 @@
|
|
|
479
433
|
],
|
|
480
434
|
"consumes": [
|
|
481
435
|
"multipart/form-data"
|
|
482
|
-
]
|
|
436
|
+
],
|
|
437
|
+
"description": "Get accounts by l1_address returns main account and its sub accounts"
|
|
483
438
|
}
|
|
484
439
|
},
|
|
485
440
|
"/api/v1/block": {
|
|
486
441
|
"get": {
|
|
487
|
-
"summary": "
|
|
442
|
+
"summary": "GetBlock",
|
|
488
443
|
"operationId": "GetBlock",
|
|
489
444
|
"responses": {
|
|
490
445
|
"200": {
|
|
@@ -492,12 +447,6 @@
|
|
|
492
447
|
"schema": {
|
|
493
448
|
"$ref": "#/definitions/Blocks"
|
|
494
449
|
}
|
|
495
|
-
},
|
|
496
|
-
"400": {
|
|
497
|
-
"description": "Bad request",
|
|
498
|
-
"schema": {
|
|
499
|
-
"$ref": "#/definitions/ResultCode"
|
|
500
|
-
}
|
|
501
450
|
}
|
|
502
451
|
},
|
|
503
452
|
"parameters": [
|
|
@@ -523,12 +472,13 @@
|
|
|
523
472
|
],
|
|
524
473
|
"consumes": [
|
|
525
474
|
"multipart/form-data"
|
|
526
|
-
]
|
|
475
|
+
],
|
|
476
|
+
"description": "Get block by its height or commitment"
|
|
527
477
|
}
|
|
528
478
|
},
|
|
529
479
|
"/api/v1/blockTxs": {
|
|
530
480
|
"get": {
|
|
531
|
-
"summary": "
|
|
481
|
+
"summary": "GetBlockTxs",
|
|
532
482
|
"operationId": "GetBlockTxs",
|
|
533
483
|
"responses": {
|
|
534
484
|
"200": {
|
|
@@ -536,12 +486,6 @@
|
|
|
536
486
|
"schema": {
|
|
537
487
|
"$ref": "#/definitions/Txs"
|
|
538
488
|
}
|
|
539
|
-
},
|
|
540
|
-
"400": {
|
|
541
|
-
"description": "Bad request",
|
|
542
|
-
"schema": {
|
|
543
|
-
"$ref": "#/definitions/ResultCode"
|
|
544
|
-
}
|
|
545
489
|
}
|
|
546
490
|
},
|
|
547
491
|
"parameters": [
|
|
@@ -567,12 +511,13 @@
|
|
|
567
511
|
],
|
|
568
512
|
"consumes": [
|
|
569
513
|
"multipart/form-data"
|
|
570
|
-
]
|
|
514
|
+
],
|
|
515
|
+
"description": "Get transactions in a block"
|
|
571
516
|
}
|
|
572
517
|
},
|
|
573
518
|
"/api/v1/blocks": {
|
|
574
519
|
"get": {
|
|
575
|
-
"summary": "
|
|
520
|
+
"summary": "GetBlocks",
|
|
576
521
|
"operationId": "GetBlocks",
|
|
577
522
|
"responses": {
|
|
578
523
|
"200": {
|
|
@@ -580,12 +525,6 @@
|
|
|
580
525
|
"schema": {
|
|
581
526
|
"$ref": "#/definitions/Blocks"
|
|
582
527
|
}
|
|
583
|
-
},
|
|
584
|
-
"400": {
|
|
585
|
-
"description": "Bad request",
|
|
586
|
-
"schema": {
|
|
587
|
-
"$ref": "#/definitions/ResultCode"
|
|
588
|
-
}
|
|
589
528
|
}
|
|
590
529
|
},
|
|
591
530
|
"parameters": [
|
|
@@ -622,12 +561,13 @@
|
|
|
622
561
|
],
|
|
623
562
|
"consumes": [
|
|
624
563
|
"multipart/form-data"
|
|
625
|
-
]
|
|
564
|
+
],
|
|
565
|
+
"description": "Get blocks"
|
|
626
566
|
}
|
|
627
567
|
},
|
|
628
568
|
"/api/v1/candlesticks": {
|
|
629
569
|
"get": {
|
|
630
|
-
"summary": "
|
|
570
|
+
"summary": "GetCandlesticks",
|
|
631
571
|
"operationId": "GetCandlesticks",
|
|
632
572
|
"responses": {
|
|
633
573
|
"200": {
|
|
@@ -635,12 +575,6 @@
|
|
|
635
575
|
"schema": {
|
|
636
576
|
"$ref": "#/definitions/Candlesticks"
|
|
637
577
|
}
|
|
638
|
-
},
|
|
639
|
-
"400": {
|
|
640
|
-
"description": "Bad request",
|
|
641
|
-
"schema": {
|
|
642
|
-
"$ref": "#/definitions/ResultCode"
|
|
643
|
-
}
|
|
644
578
|
}
|
|
645
579
|
},
|
|
646
580
|
"parameters": [
|
|
@@ -692,7 +626,8 @@
|
|
|
692
626
|
],
|
|
693
627
|
"consumes": [
|
|
694
628
|
"multipart/form-data"
|
|
695
|
-
]
|
|
629
|
+
],
|
|
630
|
+
"description": "Get candlesticks"
|
|
696
631
|
}
|
|
697
632
|
},
|
|
698
633
|
"/api/v1/currentHeight": {
|
|
@@ -704,22 +639,17 @@
|
|
|
704
639
|
"schema": {
|
|
705
640
|
"$ref": "#/definitions/CurrentHeight"
|
|
706
641
|
}
|
|
707
|
-
},
|
|
708
|
-
"400": {
|
|
709
|
-
"description": "Bad request",
|
|
710
|
-
"schema": {
|
|
711
|
-
"$ref": "#/definitions/ResultCode"
|
|
712
|
-
}
|
|
713
642
|
}
|
|
714
643
|
},
|
|
715
644
|
"tags": [
|
|
716
645
|
"block"
|
|
717
|
-
]
|
|
646
|
+
],
|
|
647
|
+
"summary": "GetCurrentHeight"
|
|
718
648
|
}
|
|
719
649
|
},
|
|
720
650
|
"/api/v1/exchangeStats": {
|
|
721
651
|
"get": {
|
|
722
|
-
"summary": "
|
|
652
|
+
"summary": "GetExchangeStats",
|
|
723
653
|
"operationId": "GetExchangeStats",
|
|
724
654
|
"responses": {
|
|
725
655
|
"200": {
|
|
@@ -727,22 +657,17 @@
|
|
|
727
657
|
"schema": {
|
|
728
658
|
"$ref": "#/definitions/ExchangeStats"
|
|
729
659
|
}
|
|
730
|
-
},
|
|
731
|
-
"400": {
|
|
732
|
-
"description": "Bad request",
|
|
733
|
-
"schema": {
|
|
734
|
-
"$ref": "#/definitions/ResultCode"
|
|
735
|
-
}
|
|
736
660
|
}
|
|
737
661
|
},
|
|
738
662
|
"tags": [
|
|
739
663
|
"order"
|
|
740
|
-
]
|
|
664
|
+
],
|
|
665
|
+
"description": "Get exchange stats"
|
|
741
666
|
}
|
|
742
667
|
},
|
|
743
668
|
"/api/v1/faucet": {
|
|
744
669
|
"get": {
|
|
745
|
-
"summary": "
|
|
670
|
+
"summary": "DoFaucet",
|
|
746
671
|
"operationId": "DoFaucet",
|
|
747
672
|
"responses": {
|
|
748
673
|
"200": {
|
|
@@ -750,12 +675,6 @@
|
|
|
750
675
|
"schema": {
|
|
751
676
|
"$ref": "#/definitions/ResultCode"
|
|
752
677
|
}
|
|
753
|
-
},
|
|
754
|
-
"400": {
|
|
755
|
-
"description": "Bad request",
|
|
756
|
-
"schema": {
|
|
757
|
-
"$ref": "#/definitions/ResultCode"
|
|
758
|
-
}
|
|
759
678
|
}
|
|
760
679
|
},
|
|
761
680
|
"parameters": [
|
|
@@ -771,48 +690,13 @@
|
|
|
771
690
|
],
|
|
772
691
|
"consumes": [
|
|
773
692
|
"multipart/form-data"
|
|
774
|
-
]
|
|
775
|
-
}
|
|
776
|
-
},
|
|
777
|
-
"/api/v1/feedback": {
|
|
778
|
-
"post": {
|
|
779
|
-
"summary": "Send feedback",
|
|
780
|
-
"operationId": "SendFeedback",
|
|
781
|
-
"responses": {
|
|
782
|
-
"200": {
|
|
783
|
-
"description": "A successful response.",
|
|
784
|
-
"schema": {
|
|
785
|
-
"$ref": "#/definitions/ResultCode"
|
|
786
|
-
}
|
|
787
|
-
},
|
|
788
|
-
"400": {
|
|
789
|
-
"description": "Bad request",
|
|
790
|
-
"schema": {
|
|
791
|
-
"$ref": "#/definitions/ResultCode"
|
|
792
|
-
}
|
|
793
|
-
}
|
|
794
|
-
},
|
|
795
|
-
"parameters": [
|
|
796
|
-
{
|
|
797
|
-
"name": "body",
|
|
798
|
-
"in": "body",
|
|
799
|
-
"required": true,
|
|
800
|
-
"schema": {
|
|
801
|
-
"$ref": "#/definitions/ReqSendFeedback"
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
693
|
],
|
|
805
|
-
"
|
|
806
|
-
"root"
|
|
807
|
-
],
|
|
808
|
-
"consumes": [
|
|
809
|
-
"multipart/form-data"
|
|
810
|
-
]
|
|
694
|
+
"description": "Request funds from faucet"
|
|
811
695
|
}
|
|
812
696
|
},
|
|
813
697
|
"/api/v1/fundings": {
|
|
814
698
|
"get": {
|
|
815
|
-
"summary": "
|
|
699
|
+
"summary": "GetFundings",
|
|
816
700
|
"operationId": "GetFundings",
|
|
817
701
|
"responses": {
|
|
818
702
|
"200": {
|
|
@@ -820,12 +704,6 @@
|
|
|
820
704
|
"schema": {
|
|
821
705
|
"$ref": "#/definitions/Fundings"
|
|
822
706
|
}
|
|
823
|
-
},
|
|
824
|
-
"400": {
|
|
825
|
-
"description": "Bad request",
|
|
826
|
-
"schema": {
|
|
827
|
-
"$ref": "#/definitions/ResultCode"
|
|
828
|
-
}
|
|
829
707
|
}
|
|
830
708
|
},
|
|
831
709
|
"parameters": [
|
|
@@ -872,12 +750,13 @@
|
|
|
872
750
|
],
|
|
873
751
|
"consumes": [
|
|
874
752
|
"multipart/form-data"
|
|
875
|
-
]
|
|
753
|
+
],
|
|
754
|
+
"description": "Get fundings"
|
|
876
755
|
}
|
|
877
756
|
},
|
|
878
757
|
"/api/v1/l2Signature": {
|
|
879
758
|
"post": {
|
|
880
|
-
"summary": "
|
|
759
|
+
"summary": "GetL2SignatureBody",
|
|
881
760
|
"operationId": "GetL2SignatureBody",
|
|
882
761
|
"responses": {
|
|
883
762
|
"200": {
|
|
@@ -885,12 +764,6 @@
|
|
|
885
764
|
"schema": {
|
|
886
765
|
"$ref": "#/definitions/SignBody"
|
|
887
766
|
}
|
|
888
|
-
},
|
|
889
|
-
"400": {
|
|
890
|
-
"description": "Bad request",
|
|
891
|
-
"schema": {
|
|
892
|
-
"$ref": "#/definitions/ResultCode"
|
|
893
|
-
}
|
|
894
767
|
}
|
|
895
768
|
},
|
|
896
769
|
"parameters": [
|
|
@@ -908,12 +781,13 @@
|
|
|
908
781
|
],
|
|
909
782
|
"consumes": [
|
|
910
783
|
"multipart/form-data"
|
|
911
|
-
]
|
|
784
|
+
],
|
|
785
|
+
"description": "Get transaction signature body"
|
|
912
786
|
}
|
|
913
787
|
},
|
|
914
788
|
"/api/v1/layer1BasicInfo": {
|
|
915
789
|
"get": {
|
|
916
|
-
"summary": "
|
|
790
|
+
"summary": "GetLayer1BasicInfo",
|
|
917
791
|
"operationId": "GetLayer1BasicInfo",
|
|
918
792
|
"responses": {
|
|
919
793
|
"200": {
|
|
@@ -921,22 +795,17 @@
|
|
|
921
795
|
"schema": {
|
|
922
796
|
"$ref": "#/definitions/Layer1BasicInfo"
|
|
923
797
|
}
|
|
924
|
-
},
|
|
925
|
-
"400": {
|
|
926
|
-
"description": "Bad request",
|
|
927
|
-
"schema": {
|
|
928
|
-
"$ref": "#/definitions/ResultCode"
|
|
929
|
-
}
|
|
930
798
|
}
|
|
931
799
|
},
|
|
932
800
|
"tags": [
|
|
933
801
|
"info"
|
|
934
|
-
]
|
|
802
|
+
],
|
|
803
|
+
"description": "Get zklighter l1 general info, including contract address and rpc info"
|
|
935
804
|
}
|
|
936
805
|
},
|
|
937
806
|
"/api/v1/layer2BasicInfo": {
|
|
938
807
|
"get": {
|
|
939
|
-
"summary": "
|
|
808
|
+
"summary": "GetLayer2BasicInfo",
|
|
940
809
|
"operationId": "GetLayer2BasicInfo",
|
|
941
810
|
"responses": {
|
|
942
811
|
"200": {
|
|
@@ -944,22 +813,17 @@
|
|
|
944
813
|
"schema": {
|
|
945
814
|
"$ref": "#/definitions/Layer2BasicInfo"
|
|
946
815
|
}
|
|
947
|
-
},
|
|
948
|
-
"400": {
|
|
949
|
-
"description": "Bad request",
|
|
950
|
-
"schema": {
|
|
951
|
-
"$ref": "#/definitions/ResultCode"
|
|
952
|
-
}
|
|
953
816
|
}
|
|
954
817
|
},
|
|
955
818
|
"tags": [
|
|
956
819
|
"info"
|
|
957
|
-
]
|
|
820
|
+
],
|
|
821
|
+
"description": "Get zklighter general info, including contract address, and count of transactions and active users"
|
|
958
822
|
}
|
|
959
823
|
},
|
|
960
824
|
"/api/v1/nextNonce": {
|
|
961
825
|
"get": {
|
|
962
|
-
"summary": "
|
|
826
|
+
"summary": "GetNextNonce",
|
|
963
827
|
"operationId": "GetNextNonce",
|
|
964
828
|
"responses": {
|
|
965
829
|
"200": {
|
|
@@ -967,12 +831,6 @@
|
|
|
967
831
|
"schema": {
|
|
968
832
|
"$ref": "#/definitions/NextNonce"
|
|
969
833
|
}
|
|
970
|
-
},
|
|
971
|
-
"400": {
|
|
972
|
-
"description": "Bad request",
|
|
973
|
-
"schema": {
|
|
974
|
-
"$ref": "#/definitions/ResultCode"
|
|
975
|
-
}
|
|
976
834
|
}
|
|
977
835
|
},
|
|
978
836
|
"parameters": [
|
|
@@ -996,12 +854,13 @@
|
|
|
996
854
|
],
|
|
997
855
|
"consumes": [
|
|
998
856
|
"multipart/form-data"
|
|
999
|
-
]
|
|
857
|
+
],
|
|
858
|
+
"description": "Get next nonce for a specific account"
|
|
1000
859
|
}
|
|
1001
860
|
},
|
|
1002
861
|
"/api/v1/orderBookDetails": {
|
|
1003
862
|
"get": {
|
|
1004
|
-
"summary": "
|
|
863
|
+
"summary": "GetOrderBookDetails",
|
|
1005
864
|
"operationId": "GetOrderBookDetails",
|
|
1006
865
|
"responses": {
|
|
1007
866
|
"200": {
|
|
@@ -1009,12 +868,6 @@
|
|
|
1009
868
|
"schema": {
|
|
1010
869
|
"$ref": "#/definitions/OrderBookDetails"
|
|
1011
870
|
}
|
|
1012
|
-
},
|
|
1013
|
-
"400": {
|
|
1014
|
-
"description": "Bad request",
|
|
1015
|
-
"schema": {
|
|
1016
|
-
"$ref": "#/definitions/ResultCode"
|
|
1017
|
-
}
|
|
1018
871
|
}
|
|
1019
872
|
},
|
|
1020
873
|
"parameters": [
|
|
@@ -1041,12 +894,13 @@
|
|
|
1041
894
|
],
|
|
1042
895
|
"consumes": [
|
|
1043
896
|
"multipart/form-data"
|
|
1044
|
-
]
|
|
897
|
+
],
|
|
898
|
+
"description": "Get order books metadata"
|
|
1045
899
|
}
|
|
1046
900
|
},
|
|
1047
901
|
"/api/v1/orderBookOrders": {
|
|
1048
902
|
"get": {
|
|
1049
|
-
"summary": "
|
|
903
|
+
"summary": "GetOrderBookOrders",
|
|
1050
904
|
"operationId": "GetOrderBookOrders",
|
|
1051
905
|
"responses": {
|
|
1052
906
|
"200": {
|
|
@@ -1054,12 +908,6 @@
|
|
|
1054
908
|
"schema": {
|
|
1055
909
|
"$ref": "#/definitions/OrderBookOrders"
|
|
1056
910
|
}
|
|
1057
|
-
},
|
|
1058
|
-
"400": {
|
|
1059
|
-
"description": "Bad request",
|
|
1060
|
-
"schema": {
|
|
1061
|
-
"$ref": "#/definitions/ResultCode"
|
|
1062
|
-
}
|
|
1063
911
|
}
|
|
1064
912
|
},
|
|
1065
913
|
"parameters": [
|
|
@@ -1085,12 +933,13 @@
|
|
|
1085
933
|
],
|
|
1086
934
|
"consumes": [
|
|
1087
935
|
"multipart/form-data"
|
|
1088
|
-
]
|
|
936
|
+
],
|
|
937
|
+
"description": "Get order book orders"
|
|
1089
938
|
}
|
|
1090
939
|
},
|
|
1091
940
|
"/api/v1/orderBooks": {
|
|
1092
941
|
"get": {
|
|
1093
|
-
"summary": "
|
|
942
|
+
"summary": "GetOrderBooks",
|
|
1094
943
|
"operationId": "GetOrderBooks",
|
|
1095
944
|
"responses": {
|
|
1096
945
|
"200": {
|
|
@@ -1098,12 +947,6 @@
|
|
|
1098
947
|
"schema": {
|
|
1099
948
|
"$ref": "#/definitions/OrderBooks"
|
|
1100
949
|
}
|
|
1101
|
-
},
|
|
1102
|
-
"400": {
|
|
1103
|
-
"description": "Bad request",
|
|
1104
|
-
"schema": {
|
|
1105
|
-
"$ref": "#/definitions/ResultCode"
|
|
1106
|
-
}
|
|
1107
950
|
}
|
|
1108
951
|
},
|
|
1109
952
|
"parameters": [
|
|
@@ -1130,12 +973,13 @@
|
|
|
1130
973
|
],
|
|
1131
974
|
"consumes": [
|
|
1132
975
|
"multipart/form-data"
|
|
1133
|
-
]
|
|
976
|
+
],
|
|
977
|
+
"description": "Get order books metadata"
|
|
1134
978
|
}
|
|
1135
979
|
},
|
|
1136
980
|
"/api/v1/pendingTxs": {
|
|
1137
981
|
"get": {
|
|
1138
|
-
"summary": "
|
|
982
|
+
"summary": "GetPendingTxs",
|
|
1139
983
|
"operationId": "GetPendingTxs",
|
|
1140
984
|
"responses": {
|
|
1141
985
|
"200": {
|
|
@@ -1143,12 +987,6 @@
|
|
|
1143
987
|
"schema": {
|
|
1144
988
|
"$ref": "#/definitions/Txs"
|
|
1145
989
|
}
|
|
1146
|
-
},
|
|
1147
|
-
"400": {
|
|
1148
|
-
"description": "Bad request",
|
|
1149
|
-
"schema": {
|
|
1150
|
-
"$ref": "#/definitions/ResultCode"
|
|
1151
|
-
}
|
|
1152
990
|
}
|
|
1153
991
|
},
|
|
1154
992
|
"parameters": [
|
|
@@ -1174,12 +1012,13 @@
|
|
|
1174
1012
|
],
|
|
1175
1013
|
"consumes": [
|
|
1176
1014
|
"multipart/form-data"
|
|
1177
|
-
]
|
|
1015
|
+
],
|
|
1016
|
+
"description": "Get pending transactions"
|
|
1178
1017
|
}
|
|
1179
1018
|
},
|
|
1180
1019
|
"/api/v1/permission": {
|
|
1181
1020
|
"get": {
|
|
1182
|
-
"summary": "
|
|
1021
|
+
"summary": "GetPermission",
|
|
1183
1022
|
"operationId": "GetPermission",
|
|
1184
1023
|
"responses": {
|
|
1185
1024
|
"200": {
|
|
@@ -1187,12 +1026,6 @@
|
|
|
1187
1026
|
"schema": {
|
|
1188
1027
|
"$ref": "#/definitions/Permission"
|
|
1189
1028
|
}
|
|
1190
|
-
},
|
|
1191
|
-
"400": {
|
|
1192
|
-
"description": "Bad request",
|
|
1193
|
-
"schema": {
|
|
1194
|
-
"$ref": "#/definitions/ResultCode"
|
|
1195
|
-
}
|
|
1196
1029
|
}
|
|
1197
1030
|
},
|
|
1198
1031
|
"parameters": [
|
|
@@ -1225,12 +1058,13 @@
|
|
|
1225
1058
|
],
|
|
1226
1059
|
"consumes": [
|
|
1227
1060
|
"multipart/form-data"
|
|
1228
|
-
]
|
|
1061
|
+
],
|
|
1062
|
+
"description": "Get permission by account's l1_address, index and tx_type"
|
|
1229
1063
|
}
|
|
1230
1064
|
},
|
|
1231
1065
|
"/api/v1/pnl": {
|
|
1232
1066
|
"get": {
|
|
1233
|
-
"summary": "
|
|
1067
|
+
"summary": "GetAccountPnl",
|
|
1234
1068
|
"operationId": "GetAccountPnl",
|
|
1235
1069
|
"responses": {
|
|
1236
1070
|
"200": {
|
|
@@ -1238,12 +1072,6 @@
|
|
|
1238
1072
|
"schema": {
|
|
1239
1073
|
"$ref": "#/definitions/AccountPnL"
|
|
1240
1074
|
}
|
|
1241
|
-
},
|
|
1242
|
-
"400": {
|
|
1243
|
-
"description": "Bad request",
|
|
1244
|
-
"schema": {
|
|
1245
|
-
"$ref": "#/definitions/ResultCode"
|
|
1246
|
-
}
|
|
1247
1075
|
}
|
|
1248
1076
|
},
|
|
1249
1077
|
"parameters": [
|
|
@@ -1304,12 +1132,13 @@
|
|
|
1304
1132
|
],
|
|
1305
1133
|
"consumes": [
|
|
1306
1134
|
"multipart/form-data"
|
|
1307
|
-
]
|
|
1135
|
+
],
|
|
1136
|
+
"description": "Get account PnL chart"
|
|
1308
1137
|
}
|
|
1309
1138
|
},
|
|
1310
1139
|
"/api/v1/quote": {
|
|
1311
1140
|
"get": {
|
|
1312
|
-
"summary": "
|
|
1141
|
+
"summary": "GetMarketSig",
|
|
1313
1142
|
"operationId": "GetMarketSig",
|
|
1314
1143
|
"responses": {
|
|
1315
1144
|
"200": {
|
|
@@ -1317,12 +1146,6 @@
|
|
|
1317
1146
|
"schema": {
|
|
1318
1147
|
"$ref": "#/definitions/MarketSig"
|
|
1319
1148
|
}
|
|
1320
|
-
},
|
|
1321
|
-
"400": {
|
|
1322
|
-
"description": "Bad request",
|
|
1323
|
-
"schema": {
|
|
1324
|
-
"$ref": "#/definitions/ResultCode"
|
|
1325
|
-
}
|
|
1326
1149
|
}
|
|
1327
1150
|
},
|
|
1328
1151
|
"parameters": [
|
|
@@ -1353,12 +1176,13 @@
|
|
|
1353
1176
|
],
|
|
1354
1177
|
"consumes": [
|
|
1355
1178
|
"multipart/form-data"
|
|
1356
|
-
]
|
|
1179
|
+
],
|
|
1180
|
+
"description": "Get Market Signature"
|
|
1357
1181
|
}
|
|
1358
1182
|
},
|
|
1359
1183
|
"/api/v1/recentTrades": {
|
|
1360
1184
|
"get": {
|
|
1361
|
-
"summary": "
|
|
1185
|
+
"summary": "GetRecentTrades",
|
|
1362
1186
|
"operationId": "GetRecentTrades",
|
|
1363
1187
|
"responses": {
|
|
1364
1188
|
"200": {
|
|
@@ -1366,12 +1190,6 @@
|
|
|
1366
1190
|
"schema": {
|
|
1367
1191
|
"$ref": "#/definitions/Trades"
|
|
1368
1192
|
}
|
|
1369
|
-
},
|
|
1370
|
-
"400": {
|
|
1371
|
-
"description": "Bad request",
|
|
1372
|
-
"schema": {
|
|
1373
|
-
"$ref": "#/definitions/ResultCode"
|
|
1374
|
-
}
|
|
1375
1193
|
}
|
|
1376
1194
|
},
|
|
1377
1195
|
"parameters": [
|
|
@@ -1397,12 +1215,13 @@
|
|
|
1397
1215
|
],
|
|
1398
1216
|
"consumes": [
|
|
1399
1217
|
"multipart/form-data"
|
|
1400
|
-
]
|
|
1218
|
+
],
|
|
1219
|
+
"description": "Get recent trades"
|
|
1401
1220
|
}
|
|
1402
1221
|
},
|
|
1403
1222
|
"/api/v1/rollbacks": {
|
|
1404
1223
|
"get": {
|
|
1405
|
-
"summary": "
|
|
1224
|
+
"summary": "GetRollbacks",
|
|
1406
1225
|
"operationId": "GetRollbacks",
|
|
1407
1226
|
"responses": {
|
|
1408
1227
|
"200": {
|
|
@@ -1410,12 +1229,6 @@
|
|
|
1410
1229
|
"schema": {
|
|
1411
1230
|
"$ref": "#/definitions/Rollbacks"
|
|
1412
1231
|
}
|
|
1413
|
-
},
|
|
1414
|
-
"400": {
|
|
1415
|
-
"description": "Bad request",
|
|
1416
|
-
"schema": {
|
|
1417
|
-
"$ref": "#/definitions/ResultCode"
|
|
1418
|
-
}
|
|
1419
1232
|
}
|
|
1420
1233
|
},
|
|
1421
1234
|
"parameters": [
|
|
@@ -1450,12 +1263,13 @@
|
|
|
1450
1263
|
],
|
|
1451
1264
|
"consumes": [
|
|
1452
1265
|
"multipart/form-data"
|
|
1453
|
-
]
|
|
1266
|
+
],
|
|
1267
|
+
"description": "Get rollbacks"
|
|
1454
1268
|
}
|
|
1455
1269
|
},
|
|
1456
1270
|
"/api/v1/search": {
|
|
1457
1271
|
"get": {
|
|
1458
|
-
"summary": "Search
|
|
1272
|
+
"summary": "Search",
|
|
1459
1273
|
"operationId": "Search",
|
|
1460
1274
|
"responses": {
|
|
1461
1275
|
"200": {
|
|
@@ -1463,12 +1277,6 @@
|
|
|
1463
1277
|
"schema": {
|
|
1464
1278
|
"$ref": "#/definitions/Search"
|
|
1465
1279
|
}
|
|
1466
|
-
},
|
|
1467
|
-
"400": {
|
|
1468
|
-
"description": "Bad request",
|
|
1469
|
-
"schema": {
|
|
1470
|
-
"$ref": "#/definitions/ResultCode"
|
|
1471
|
-
}
|
|
1472
1280
|
}
|
|
1473
1281
|
},
|
|
1474
1282
|
"parameters": [
|
|
@@ -1484,12 +1292,13 @@
|
|
|
1484
1292
|
],
|
|
1485
1293
|
"consumes": [
|
|
1486
1294
|
"multipart/form-data"
|
|
1487
|
-
]
|
|
1295
|
+
],
|
|
1296
|
+
"description": "Search with a specific keyword"
|
|
1488
1297
|
}
|
|
1489
1298
|
},
|
|
1490
1299
|
"/api/v1/sendTx": {
|
|
1491
1300
|
"post": {
|
|
1492
|
-
"summary": "
|
|
1301
|
+
"summary": "SendTx",
|
|
1493
1302
|
"operationId": "SendTx",
|
|
1494
1303
|
"responses": {
|
|
1495
1304
|
"200": {
|
|
@@ -1497,12 +1306,6 @@
|
|
|
1497
1306
|
"schema": {
|
|
1498
1307
|
"$ref": "#/definitions/TxHash"
|
|
1499
1308
|
}
|
|
1500
|
-
},
|
|
1501
|
-
"400": {
|
|
1502
|
-
"description": "Bad request",
|
|
1503
|
-
"schema": {
|
|
1504
|
-
"$ref": "#/definitions/ResultCode"
|
|
1505
|
-
}
|
|
1506
1309
|
}
|
|
1507
1310
|
},
|
|
1508
1311
|
"parameters": [
|
|
@@ -1520,12 +1323,13 @@
|
|
|
1520
1323
|
],
|
|
1521
1324
|
"consumes": [
|
|
1522
1325
|
"multipart/form-data"
|
|
1523
|
-
]
|
|
1326
|
+
],
|
|
1327
|
+
"description": "Send raw transaction"
|
|
1524
1328
|
}
|
|
1525
1329
|
},
|
|
1526
1330
|
"/api/v1/trades": {
|
|
1527
1331
|
"get": {
|
|
1528
|
-
"summary": "
|
|
1332
|
+
"summary": "GetTrades",
|
|
1529
1333
|
"operationId": "GetTrades",
|
|
1530
1334
|
"responses": {
|
|
1531
1335
|
"200": {
|
|
@@ -1533,12 +1337,6 @@
|
|
|
1533
1337
|
"schema": {
|
|
1534
1338
|
"$ref": "#/definitions/Trades"
|
|
1535
1339
|
}
|
|
1536
|
-
},
|
|
1537
|
-
"400": {
|
|
1538
|
-
"description": "Bad request",
|
|
1539
|
-
"schema": {
|
|
1540
|
-
"$ref": "#/definitions/ResultCode"
|
|
1541
|
-
}
|
|
1542
1340
|
}
|
|
1543
1341
|
},
|
|
1544
1342
|
"parameters": [
|
|
@@ -1589,12 +1387,13 @@
|
|
|
1589
1387
|
],
|
|
1590
1388
|
"consumes": [
|
|
1591
1389
|
"multipart/form-data"
|
|
1592
|
-
]
|
|
1390
|
+
],
|
|
1391
|
+
"description": "Get trades"
|
|
1593
1392
|
}
|
|
1594
1393
|
},
|
|
1595
1394
|
"/api/v1/tx": {
|
|
1596
1395
|
"get": {
|
|
1597
|
-
"summary": "
|
|
1396
|
+
"summary": "GetTx",
|
|
1598
1397
|
"operationId": "GetTx",
|
|
1599
1398
|
"responses": {
|
|
1600
1399
|
"200": {
|
|
@@ -1602,12 +1401,6 @@
|
|
|
1602
1401
|
"schema": {
|
|
1603
1402
|
"$ref": "#/definitions/EnrichedTx"
|
|
1604
1403
|
}
|
|
1605
|
-
},
|
|
1606
|
-
"400": {
|
|
1607
|
-
"description": "Bad request",
|
|
1608
|
-
"schema": {
|
|
1609
|
-
"$ref": "#/definitions/ResultCode"
|
|
1610
|
-
}
|
|
1611
1404
|
}
|
|
1612
1405
|
},
|
|
1613
1406
|
"parameters": [
|
|
@@ -1633,12 +1426,13 @@
|
|
|
1633
1426
|
],
|
|
1634
1427
|
"consumes": [
|
|
1635
1428
|
"multipart/form-data"
|
|
1636
|
-
]
|
|
1429
|
+
],
|
|
1430
|
+
"description": "Get transaction by hash or sequence index"
|
|
1637
1431
|
}
|
|
1638
1432
|
},
|
|
1639
1433
|
"/api/v1/txFromL1TxHash": {
|
|
1640
1434
|
"get": {
|
|
1641
|
-
"summary": "
|
|
1435
|
+
"summary": "getTxFromL1TxHash",
|
|
1642
1436
|
"operationId": "getTxFromL1TxHash",
|
|
1643
1437
|
"responses": {
|
|
1644
1438
|
"200": {
|
|
@@ -1646,12 +1440,6 @@
|
|
|
1646
1440
|
"schema": {
|
|
1647
1441
|
"$ref": "#/definitions/EnrichedTx"
|
|
1648
1442
|
}
|
|
1649
|
-
},
|
|
1650
|
-
"400": {
|
|
1651
|
-
"description": "Bad request",
|
|
1652
|
-
"schema": {
|
|
1653
|
-
"$ref": "#/definitions/ResultCode"
|
|
1654
|
-
}
|
|
1655
1443
|
}
|
|
1656
1444
|
},
|
|
1657
1445
|
"parameters": [
|
|
@@ -1667,12 +1455,13 @@
|
|
|
1667
1455
|
],
|
|
1668
1456
|
"consumes": [
|
|
1669
1457
|
"multipart/form-data"
|
|
1670
|
-
]
|
|
1458
|
+
],
|
|
1459
|
+
"description": "Get L1 transaction by L1 transaction hash"
|
|
1671
1460
|
}
|
|
1672
1461
|
},
|
|
1673
1462
|
"/api/v1/txs": {
|
|
1674
1463
|
"get": {
|
|
1675
|
-
"summary": "
|
|
1464
|
+
"summary": "GetTxs",
|
|
1676
1465
|
"operationId": "GetTxs",
|
|
1677
1466
|
"responses": {
|
|
1678
1467
|
"200": {
|
|
@@ -1680,12 +1469,6 @@
|
|
|
1680
1469
|
"schema": {
|
|
1681
1470
|
"$ref": "#/definitions/Txs"
|
|
1682
1471
|
}
|
|
1683
|
-
},
|
|
1684
|
-
"400": {
|
|
1685
|
-
"description": "Bad request",
|
|
1686
|
-
"schema": {
|
|
1687
|
-
"$ref": "#/definitions/ResultCode"
|
|
1688
|
-
}
|
|
1689
1472
|
}
|
|
1690
1473
|
},
|
|
1691
1474
|
"parameters": [
|
|
@@ -1711,53 +1494,8 @@
|
|
|
1711
1494
|
],
|
|
1712
1495
|
"consumes": [
|
|
1713
1496
|
"multipart/form-data"
|
|
1714
|
-
]
|
|
1715
|
-
|
|
1716
|
-
},
|
|
1717
|
-
"/api/v1/ws_status": {
|
|
1718
|
-
"get": {
|
|
1719
|
-
"summary": "WebSocket Status",
|
|
1720
|
-
"operationId": "GetWebSocketStatus",
|
|
1721
|
-
"responses": {
|
|
1722
|
-
"200": {
|
|
1723
|
-
"description": "A successful response.",
|
|
1724
|
-
"schema": {
|
|
1725
|
-
"$ref": "#/definitions/ResultCode"
|
|
1726
|
-
}
|
|
1727
|
-
},
|
|
1728
|
-
"400": {
|
|
1729
|
-
"description": "Bad request",
|
|
1730
|
-
"schema": {
|
|
1731
|
-
"$ref": "#/definitions/ResultCode"
|
|
1732
|
-
}
|
|
1733
|
-
}
|
|
1734
|
-
},
|
|
1735
|
-
"tags": [
|
|
1736
|
-
"ws"
|
|
1737
|
-
]
|
|
1738
|
-
}
|
|
1739
|
-
},
|
|
1740
|
-
"/stream": {
|
|
1741
|
-
"get": {
|
|
1742
|
-
"summary": "WebSocket",
|
|
1743
|
-
"operationId": "Stream",
|
|
1744
|
-
"responses": {
|
|
1745
|
-
"200": {
|
|
1746
|
-
"description": "A successful response.",
|
|
1747
|
-
"schema": {
|
|
1748
|
-
"$ref": "#/definitions/ResultCode"
|
|
1749
|
-
}
|
|
1750
|
-
},
|
|
1751
|
-
"400": {
|
|
1752
|
-
"description": "Bad request",
|
|
1753
|
-
"schema": {
|
|
1754
|
-
"$ref": "#/definitions/ResultCode"
|
|
1755
|
-
}
|
|
1756
|
-
}
|
|
1757
|
-
},
|
|
1758
|
-
"tags": [
|
|
1759
|
-
"ws"
|
|
1760
|
-
]
|
|
1497
|
+
],
|
|
1498
|
+
"description": "Get transactions which are already packed into blocks"
|
|
1761
1499
|
}
|
|
1762
1500
|
}
|
|
1763
1501
|
},
|
|
@@ -1796,15 +1534,7 @@
|
|
|
1796
1534
|
"example": "1276.0"
|
|
1797
1535
|
}
|
|
1798
1536
|
},
|
|
1799
|
-
"title": "AccountMarketStats"
|
|
1800
|
-
"required": [
|
|
1801
|
-
"market_id",
|
|
1802
|
-
"daily_trades_count",
|
|
1803
|
-
"daily_base_token_volume",
|
|
1804
|
-
"daily_quote_token_volume",
|
|
1805
|
-
"open_position_base",
|
|
1806
|
-
"open_position_quote"
|
|
1807
|
-
]
|
|
1537
|
+
"title": "AccountMarketStats"
|
|
1808
1538
|
},
|
|
1809
1539
|
"AccountPnL": {
|
|
1810
1540
|
"type": "object",
|
|
@@ -1828,11 +1558,7 @@
|
|
|
1828
1558
|
}
|
|
1829
1559
|
}
|
|
1830
1560
|
},
|
|
1831
|
-
"title": "AccountPnL"
|
|
1832
|
-
"required": [
|
|
1833
|
-
"resolution",
|
|
1834
|
-
"pnl"
|
|
1835
|
-
]
|
|
1561
|
+
"title": "AccountPnL"
|
|
1836
1562
|
},
|
|
1837
1563
|
"AccountPosition": {
|
|
1838
1564
|
"type": "object",
|
|
@@ -1884,20 +1610,7 @@
|
|
|
1884
1610
|
"example": "2.000000"
|
|
1885
1611
|
}
|
|
1886
1612
|
},
|
|
1887
|
-
"title": "AccountPosition"
|
|
1888
|
-
"required": [
|
|
1889
|
-
"market_id",
|
|
1890
|
-
"name",
|
|
1891
|
-
"symbol",
|
|
1892
|
-
"sign",
|
|
1893
|
-
"position",
|
|
1894
|
-
"ask_order_size",
|
|
1895
|
-
"bid_order_size",
|
|
1896
|
-
"avg_entry_price",
|
|
1897
|
-
"position_value",
|
|
1898
|
-
"unrealized_pnl",
|
|
1899
|
-
"realized_pnl"
|
|
1900
|
-
]
|
|
1613
|
+
"title": "AccountPosition"
|
|
1901
1614
|
},
|
|
1902
1615
|
"AccountStats": {
|
|
1903
1616
|
"type": "object",
|
|
@@ -1923,14 +1636,7 @@
|
|
|
1923
1636
|
"example": "199955"
|
|
1924
1637
|
}
|
|
1925
1638
|
},
|
|
1926
|
-
"title": "AccountStats"
|
|
1927
|
-
"required": [
|
|
1928
|
-
"portfolio_value",
|
|
1929
|
-
"leverage",
|
|
1930
|
-
"free_collateral",
|
|
1931
|
-
"margin_usage",
|
|
1932
|
-
"buying_power"
|
|
1933
|
-
]
|
|
1639
|
+
"title": "AccountStats"
|
|
1934
1640
|
},
|
|
1935
1641
|
"Block": {
|
|
1936
1642
|
"type": "object",
|
|
@@ -1985,22 +1691,7 @@
|
|
|
1985
1691
|
"format": "uin16"
|
|
1986
1692
|
}
|
|
1987
1693
|
},
|
|
1988
|
-
"title": "Block"
|
|
1989
|
-
"required": [
|
|
1990
|
-
"commitment",
|
|
1991
|
-
"height",
|
|
1992
|
-
"state_root",
|
|
1993
|
-
"priority_operations",
|
|
1994
|
-
"on_chain_l2_operations",
|
|
1995
|
-
"pending_on_chain_operations_pub_data",
|
|
1996
|
-
"committed_tx_hash",
|
|
1997
|
-
"committed_at",
|
|
1998
|
-
"verified_tx_hash",
|
|
1999
|
-
"verified_at",
|
|
2000
|
-
"txs",
|
|
2001
|
-
"status",
|
|
2002
|
-
"size"
|
|
2003
|
-
]
|
|
1694
|
+
"title": "Block"
|
|
2004
1695
|
},
|
|
2005
1696
|
"Blocks": {
|
|
2006
1697
|
"type": "object",
|
|
@@ -2024,11 +1715,7 @@
|
|
|
2024
1715
|
}
|
|
2025
1716
|
}
|
|
2026
1717
|
},
|
|
2027
|
-
"title": "Blocks"
|
|
2028
|
-
"required": [
|
|
2029
|
-
"total",
|
|
2030
|
-
"blocks"
|
|
2031
|
-
]
|
|
1718
|
+
"title": "Blocks"
|
|
2032
1719
|
},
|
|
2033
1720
|
"Candlestick": {
|
|
2034
1721
|
"type": "object",
|
|
@@ -2069,16 +1756,7 @@
|
|
|
2069
1756
|
"example": "93566.25"
|
|
2070
1757
|
}
|
|
2071
1758
|
},
|
|
2072
|
-
"title": "Candlestick"
|
|
2073
|
-
"required": [
|
|
2074
|
-
"timestamp",
|
|
2075
|
-
"open",
|
|
2076
|
-
"high",
|
|
2077
|
-
"low",
|
|
2078
|
-
"close",
|
|
2079
|
-
"volume0",
|
|
2080
|
-
"volume1"
|
|
2081
|
-
]
|
|
1759
|
+
"title": "Candlestick"
|
|
2082
1760
|
},
|
|
2083
1761
|
"Candlesticks": {
|
|
2084
1762
|
"type": "object",
|
|
@@ -2102,11 +1780,7 @@
|
|
|
2102
1780
|
}
|
|
2103
1781
|
}
|
|
2104
1782
|
},
|
|
2105
|
-
"title": "Candlesticks"
|
|
2106
|
-
"required": [
|
|
2107
|
-
"resolution",
|
|
2108
|
-
"candlesticks"
|
|
2109
|
-
]
|
|
1783
|
+
"title": "Candlesticks"
|
|
2110
1784
|
},
|
|
2111
1785
|
"ContractAddress": {
|
|
2112
1786
|
"type": "object",
|
|
@@ -2120,11 +1794,7 @@
|
|
|
2120
1794
|
"example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
|
|
2121
1795
|
}
|
|
2122
1796
|
},
|
|
2123
|
-
"title": "ContractAddress"
|
|
2124
|
-
"required": [
|
|
2125
|
-
"name",
|
|
2126
|
-
"address"
|
|
2127
|
-
]
|
|
1797
|
+
"title": "ContractAddress"
|
|
2128
1798
|
},
|
|
2129
1799
|
"CurrentHeight": {
|
|
2130
1800
|
"type": "object",
|
|
@@ -2142,10 +1812,7 @@
|
|
|
2142
1812
|
"format": "int64"
|
|
2143
1813
|
}
|
|
2144
1814
|
},
|
|
2145
|
-
"title": "CurrentHeight"
|
|
2146
|
-
"required": [
|
|
2147
|
-
"height"
|
|
2148
|
-
]
|
|
1815
|
+
"title": "CurrentHeight"
|
|
2149
1816
|
},
|
|
2150
1817
|
"Cursor": {
|
|
2151
1818
|
"type": "object",
|
|
@@ -2221,12 +1888,7 @@
|
|
|
2221
1888
|
}
|
|
2222
1889
|
}
|
|
2223
1890
|
},
|
|
2224
|
-
"title": "DetailedAccount"
|
|
2225
|
-
"required": [
|
|
2226
|
-
"positions",
|
|
2227
|
-
"total_asset_value",
|
|
2228
|
-
"market_stats"
|
|
2229
|
-
]
|
|
1891
|
+
"title": "DetailedAccount"
|
|
2230
1892
|
},
|
|
2231
1893
|
"DetailedAccounts": {
|
|
2232
1894
|
"type": "object",
|
|
@@ -2251,11 +1913,7 @@
|
|
|
2251
1913
|
}
|
|
2252
1914
|
}
|
|
2253
1915
|
},
|
|
2254
|
-
"title": "DetailedAccounts"
|
|
2255
|
-
"required": [
|
|
2256
|
-
"total",
|
|
2257
|
-
"accounts"
|
|
2258
|
-
]
|
|
1916
|
+
"title": "DetailedAccounts"
|
|
2259
1917
|
},
|
|
2260
1918
|
"EnrichedTx": {
|
|
2261
1919
|
"type": "object",
|
|
@@ -2352,12 +2010,7 @@
|
|
|
2352
2010
|
"example": "1640995200"
|
|
2353
2011
|
}
|
|
2354
2012
|
},
|
|
2355
|
-
"title": "EnrichedTx"
|
|
2356
|
-
"required": [
|
|
2357
|
-
"committed_at",
|
|
2358
|
-
"verified_at",
|
|
2359
|
-
"executed_at"
|
|
2360
|
-
]
|
|
2013
|
+
"title": "EnrichedTx"
|
|
2361
2014
|
},
|
|
2362
2015
|
"ExchangeStats": {
|
|
2363
2016
|
"type": "object",
|
|
@@ -2393,13 +2046,7 @@
|
|
|
2393
2046
|
"example": "68"
|
|
2394
2047
|
}
|
|
2395
2048
|
},
|
|
2396
|
-
"title": "ExchangeStats"
|
|
2397
|
-
"required": [
|
|
2398
|
-
"total",
|
|
2399
|
-
"order_book_stats",
|
|
2400
|
-
"daily_usd_volume",
|
|
2401
|
-
"daily_trades_count"
|
|
2402
|
-
]
|
|
2049
|
+
"title": "ExchangeStats"
|
|
2403
2050
|
},
|
|
2404
2051
|
"Funding": {
|
|
2405
2052
|
"type": "object",
|
|
@@ -2422,13 +2069,7 @@
|
|
|
2422
2069
|
"example": "long"
|
|
2423
2070
|
}
|
|
2424
2071
|
},
|
|
2425
|
-
"title": "Funding"
|
|
2426
|
-
"required": [
|
|
2427
|
-
"timestamp",
|
|
2428
|
-
"value",
|
|
2429
|
-
"rate",
|
|
2430
|
-
"direction"
|
|
2431
|
-
]
|
|
2072
|
+
"title": "Funding"
|
|
2432
2073
|
},
|
|
2433
2074
|
"Fundings": {
|
|
2434
2075
|
"type": "object",
|
|
@@ -2452,11 +2093,7 @@
|
|
|
2452
2093
|
}
|
|
2453
2094
|
}
|
|
2454
2095
|
},
|
|
2455
|
-
"title": "Fundings"
|
|
2456
|
-
"required": [
|
|
2457
|
-
"resolution",
|
|
2458
|
-
"fundings"
|
|
2459
|
-
]
|
|
2096
|
+
"title": "Fundings"
|
|
2460
2097
|
},
|
|
2461
2098
|
"L1ProviderInfo": {
|
|
2462
2099
|
"type": "object",
|
|
@@ -2480,13 +2117,7 @@
|
|
|
2480
2117
|
"type": "string"
|
|
2481
2118
|
}
|
|
2482
2119
|
},
|
|
2483
|
-
"title": "L1ProviderInfo"
|
|
2484
|
-
"required": [
|
|
2485
|
-
"chainId",
|
|
2486
|
-
"networkId",
|
|
2487
|
-
"latestBlockNumber",
|
|
2488
|
-
"NetworkRpc"
|
|
2489
|
-
]
|
|
2120
|
+
"title": "L1ProviderInfo"
|
|
2490
2121
|
},
|
|
2491
2122
|
"Layer1BasicInfo": {
|
|
2492
2123
|
"type": "object",
|
|
@@ -2538,16 +2169,7 @@
|
|
|
2538
2169
|
"example": "45434"
|
|
2539
2170
|
}
|
|
2540
2171
|
},
|
|
2541
|
-
"title": "Layer1BasicInfo"
|
|
2542
|
-
"required": [
|
|
2543
|
-
"l1_providers",
|
|
2544
|
-
"l1_providers_health",
|
|
2545
|
-
"validator_Info",
|
|
2546
|
-
"contract_addresses",
|
|
2547
|
-
"latest_l1_generic_block",
|
|
2548
|
-
"latest_l1_governance_block",
|
|
2549
|
-
"latest_l1_desert_block"
|
|
2550
|
-
]
|
|
2172
|
+
"title": "Layer1BasicInfo"
|
|
2551
2173
|
},
|
|
2552
2174
|
"Layer2BasicInfo": {
|
|
2553
2175
|
"type": "object",
|
|
@@ -2576,12 +2198,7 @@
|
|
|
2576
2198
|
"example": "75434"
|
|
2577
2199
|
}
|
|
2578
2200
|
},
|
|
2579
|
-
"title": "Layer2BasicInfo"
|
|
2580
|
-
"required": [
|
|
2581
|
-
"block_committed",
|
|
2582
|
-
"block_verified",
|
|
2583
|
-
"total_transaction_count"
|
|
2584
|
-
]
|
|
2201
|
+
"title": "Layer2BasicInfo"
|
|
2585
2202
|
},
|
|
2586
2203
|
"MainAccount": {
|
|
2587
2204
|
"type": "object",
|
|
@@ -2609,12 +2226,7 @@
|
|
|
2609
2226
|
"example": "1"
|
|
2610
2227
|
}
|
|
2611
2228
|
},
|
|
2612
|
-
"title": "MainAccount"
|
|
2613
|
-
"required": [
|
|
2614
|
-
"index",
|
|
2615
|
-
"l1_address",
|
|
2616
|
-
"status"
|
|
2617
|
-
]
|
|
2229
|
+
"title": "MainAccount"
|
|
2618
2230
|
},
|
|
2619
2231
|
"MainAccounts": {
|
|
2620
2232
|
"type": "object",
|
|
@@ -2639,11 +2251,7 @@
|
|
|
2639
2251
|
}
|
|
2640
2252
|
}
|
|
2641
2253
|
},
|
|
2642
|
-
"title": "MainAccounts"
|
|
2643
|
-
"required": [
|
|
2644
|
-
"total",
|
|
2645
|
-
"accounts"
|
|
2646
|
-
]
|
|
2254
|
+
"title": "MainAccounts"
|
|
2647
2255
|
},
|
|
2648
2256
|
"MarketInfo": {
|
|
2649
2257
|
"type": "object",
|
|
@@ -2700,20 +2308,7 @@
|
|
|
2700
2308
|
"example": "3.66"
|
|
2701
2309
|
}
|
|
2702
2310
|
},
|
|
2703
|
-
"title": "MarketInfo"
|
|
2704
|
-
"required": [
|
|
2705
|
-
"market_id",
|
|
2706
|
-
"index_price",
|
|
2707
|
-
"mark_price",
|
|
2708
|
-
"last_trade_price",
|
|
2709
|
-
"funding_rate",
|
|
2710
|
-
"funding_timestamp",
|
|
2711
|
-
"daily_base_token_volume",
|
|
2712
|
-
"daily_quote_token_volume",
|
|
2713
|
-
"daily_price_low",
|
|
2714
|
-
"daily_price_high",
|
|
2715
|
-
"daily_price_change"
|
|
2716
|
-
]
|
|
2311
|
+
"title": "MarketInfo"
|
|
2717
2312
|
},
|
|
2718
2313
|
"MarketSig": {
|
|
2719
2314
|
"type": "object",
|
|
@@ -2746,13 +2341,7 @@
|
|
|
2746
2341
|
"example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
|
|
2747
2342
|
}
|
|
2748
2343
|
},
|
|
2749
|
-
"title": "MarketSig"
|
|
2750
|
-
"required": [
|
|
2751
|
-
"can_be_filled",
|
|
2752
|
-
"is_ask",
|
|
2753
|
-
"quote_amount",
|
|
2754
|
-
"signature"
|
|
2755
|
-
]
|
|
2344
|
+
"title": "MarketSig"
|
|
2756
2345
|
},
|
|
2757
2346
|
"NextNonce": {
|
|
2758
2347
|
"type": "object",
|
|
@@ -2771,10 +2360,7 @@
|
|
|
2771
2360
|
"example": "722"
|
|
2772
2361
|
}
|
|
2773
2362
|
},
|
|
2774
|
-
"title": "NextNonce"
|
|
2775
|
-
"required": [
|
|
2776
|
-
"nonce"
|
|
2777
|
-
]
|
|
2363
|
+
"title": "NextNonce"
|
|
2778
2364
|
},
|
|
2779
2365
|
"Order": {
|
|
2780
2366
|
"type": "object",
|
|
@@ -2867,26 +2453,7 @@
|
|
|
2867
2453
|
"example": "1640995200"
|
|
2868
2454
|
}
|
|
2869
2455
|
},
|
|
2870
|
-
"title": "Order"
|
|
2871
|
-
"required": [
|
|
2872
|
-
"market_index",
|
|
2873
|
-
"-",
|
|
2874
|
-
"owner_account_index",
|
|
2875
|
-
"initial_base_amount",
|
|
2876
|
-
"remaining_base_amount",
|
|
2877
|
-
"filled_base_amount",
|
|
2878
|
-
"filled_quote_amount",
|
|
2879
|
-
"price",
|
|
2880
|
-
"base_size",
|
|
2881
|
-
"base_price",
|
|
2882
|
-
"nonce",
|
|
2883
|
-
"is_ask",
|
|
2884
|
-
"side",
|
|
2885
|
-
"type",
|
|
2886
|
-
"status",
|
|
2887
|
-
"block_height",
|
|
2888
|
-
"timestamp"
|
|
2889
|
-
]
|
|
2456
|
+
"title": "Order"
|
|
2890
2457
|
},
|
|
2891
2458
|
"OrderBook": {
|
|
2892
2459
|
"type": "object",
|
|
@@ -2940,19 +2507,7 @@
|
|
|
2940
2507
|
"example": "4"
|
|
2941
2508
|
}
|
|
2942
2509
|
},
|
|
2943
|
-
"title": "OrderBook"
|
|
2944
|
-
"required": [
|
|
2945
|
-
"symbol",
|
|
2946
|
-
"market_id",
|
|
2947
|
-
"status",
|
|
2948
|
-
"taker_fee",
|
|
2949
|
-
"maker_fee",
|
|
2950
|
-
"min_base_amount",
|
|
2951
|
-
"min_quote_amount",
|
|
2952
|
-
"supported_size_decimals",
|
|
2953
|
-
"supported_price_decimals",
|
|
2954
|
-
"supported_quote_decimals"
|
|
2955
|
-
]
|
|
2510
|
+
"title": "OrderBook"
|
|
2956
2511
|
},
|
|
2957
2512
|
"OrderBookDepth": {
|
|
2958
2513
|
"type": "object",
|
|
@@ -2983,12 +2538,7 @@
|
|
|
2983
2538
|
"example": "0"
|
|
2984
2539
|
}
|
|
2985
2540
|
},
|
|
2986
|
-
"title": "OrderBookDepth"
|
|
2987
|
-
"required": [
|
|
2988
|
-
"asks",
|
|
2989
|
-
"bids",
|
|
2990
|
-
"offset"
|
|
2991
|
-
]
|
|
2541
|
+
"title": "OrderBookDepth"
|
|
2992
2542
|
},
|
|
2993
2543
|
"OrderBookDetail": {
|
|
2994
2544
|
"type": "object",
|
|
@@ -3135,27 +2685,7 @@
|
|
|
3135
2685
|
}
|
|
3136
2686
|
}
|
|
3137
2687
|
},
|
|
3138
|
-
"title": "OrderBookDetail"
|
|
3139
|
-
"required": [
|
|
3140
|
-
"decimal",
|
|
3141
|
-
"price_tick",
|
|
3142
|
-
"quote_multiplier",
|
|
3143
|
-
"initial_margin",
|
|
3144
|
-
"maintenance_margin",
|
|
3145
|
-
"closeoute_margin",
|
|
3146
|
-
"ask_nonce",
|
|
3147
|
-
"bid_nonce",
|
|
3148
|
-
"last_trade_price",
|
|
3149
|
-
"daily_trades_count",
|
|
3150
|
-
"daily_base_token_volume",
|
|
3151
|
-
"daily_quote_token_volume",
|
|
3152
|
-
"daily_price_low",
|
|
3153
|
-
"daily_price_high",
|
|
3154
|
-
"daily_price_change",
|
|
3155
|
-
"open_position_base",
|
|
3156
|
-
"open_position_quote",
|
|
3157
|
-
"daily_chart"
|
|
3158
|
-
]
|
|
2688
|
+
"title": "OrderBookDetail"
|
|
3159
2689
|
},
|
|
3160
2690
|
"OrderBookDetails": {
|
|
3161
2691
|
"type": "object",
|
|
@@ -3175,10 +2705,7 @@
|
|
|
3175
2705
|
}
|
|
3176
2706
|
}
|
|
3177
2707
|
},
|
|
3178
|
-
"title": "OrderBookDetails"
|
|
3179
|
-
"required": [
|
|
3180
|
-
"order_book_details"
|
|
3181
|
-
]
|
|
2708
|
+
"title": "OrderBookDetails"
|
|
3182
2709
|
},
|
|
3183
2710
|
"OrderBookOrders": {
|
|
3184
2711
|
"type": "object",
|
|
@@ -3214,13 +2741,7 @@
|
|
|
3214
2741
|
}
|
|
3215
2742
|
}
|
|
3216
2743
|
},
|
|
3217
|
-
"title": "OrderBookOrders"
|
|
3218
|
-
"required": [
|
|
3219
|
-
"total_asks",
|
|
3220
|
-
"asks",
|
|
3221
|
-
"total_bids",
|
|
3222
|
-
"bids"
|
|
3223
|
-
]
|
|
2744
|
+
"title": "OrderBookOrders"
|
|
3224
2745
|
},
|
|
3225
2746
|
"OrderBookStats": {
|
|
3226
2747
|
"type": "object",
|
|
@@ -3255,15 +2776,7 @@
|
|
|
3255
2776
|
"example": "3.66"
|
|
3256
2777
|
}
|
|
3257
2778
|
},
|
|
3258
|
-
"title": "OrderBookStats"
|
|
3259
|
-
"required": [
|
|
3260
|
-
"symbol",
|
|
3261
|
-
"last_trade_price",
|
|
3262
|
-
"daily_trades_count",
|
|
3263
|
-
"daily_base_token_volume",
|
|
3264
|
-
"daily_quote_token_volume",
|
|
3265
|
-
"daily_price_change"
|
|
3266
|
-
]
|
|
2779
|
+
"title": "OrderBookStats"
|
|
3267
2780
|
},
|
|
3268
2781
|
"OrderBooks": {
|
|
3269
2782
|
"type": "object",
|
|
@@ -3283,10 +2796,7 @@
|
|
|
3283
2796
|
}
|
|
3284
2797
|
}
|
|
3285
2798
|
},
|
|
3286
|
-
"title": "OrderBooks"
|
|
3287
|
-
"required": [
|
|
3288
|
-
"order_books"
|
|
3289
|
-
]
|
|
2799
|
+
"title": "OrderBooks"
|
|
3290
2800
|
},
|
|
3291
2801
|
"Orders": {
|
|
3292
2802
|
"type": "object",
|
|
@@ -3309,10 +2819,7 @@
|
|
|
3309
2819
|
}
|
|
3310
2820
|
}
|
|
3311
2821
|
},
|
|
3312
|
-
"title": "Orders"
|
|
3313
|
-
"required": [
|
|
3314
|
-
"orders"
|
|
3315
|
-
]
|
|
2822
|
+
"title": "Orders"
|
|
3316
2823
|
},
|
|
3317
2824
|
"Permission": {
|
|
3318
2825
|
"type": "object",
|
|
@@ -3331,10 +2838,7 @@
|
|
|
3331
2838
|
"example": "true"
|
|
3332
2839
|
}
|
|
3333
2840
|
},
|
|
3334
|
-
"title": "Permission"
|
|
3335
|
-
"required": [
|
|
3336
|
-
"permit"
|
|
3337
|
-
]
|
|
2841
|
+
"title": "Permission"
|
|
3338
2842
|
},
|
|
3339
2843
|
"PnLEntry": {
|
|
3340
2844
|
"type": "object",
|
|
@@ -3350,11 +2854,7 @@
|
|
|
3350
2854
|
"example": "12.0"
|
|
3351
2855
|
}
|
|
3352
2856
|
},
|
|
3353
|
-
"title": "PnLEntry"
|
|
3354
|
-
"required": [
|
|
3355
|
-
"timestamp",
|
|
3356
|
-
"value"
|
|
3357
|
-
]
|
|
2857
|
+
"title": "PnLEntry"
|
|
3358
2858
|
},
|
|
3359
2859
|
"PriceLevel": {
|
|
3360
2860
|
"type": "object",
|
|
@@ -3368,11 +2868,7 @@
|
|
|
3368
2868
|
"example": "0.1"
|
|
3369
2869
|
}
|
|
3370
2870
|
},
|
|
3371
|
-
"title": "PriceLevel"
|
|
3372
|
-
"required": [
|
|
3373
|
-
"price",
|
|
3374
|
-
"size"
|
|
3375
|
-
]
|
|
2871
|
+
"title": "PriceLevel"
|
|
3376
2872
|
},
|
|
3377
2873
|
"ReqDoFaucet": {
|
|
3378
2874
|
"type": "object",
|
|
@@ -3381,10 +2877,7 @@
|
|
|
3381
2877
|
"type": "string"
|
|
3382
2878
|
}
|
|
3383
2879
|
},
|
|
3384
|
-
"title": "ReqDoFaucet"
|
|
3385
|
-
"required": [
|
|
3386
|
-
"l1_address"
|
|
3387
|
-
]
|
|
2880
|
+
"title": "ReqDoFaucet"
|
|
3388
2881
|
},
|
|
3389
2882
|
"ReqGetAccount": {
|
|
3390
2883
|
"type": "object",
|
|
@@ -3400,11 +2893,7 @@
|
|
|
3400
2893
|
"type": "string"
|
|
3401
2894
|
}
|
|
3402
2895
|
},
|
|
3403
|
-
"title": "ReqGetAccount"
|
|
3404
|
-
"required": [
|
|
3405
|
-
"by",
|
|
3406
|
-
"value"
|
|
3407
|
-
]
|
|
2896
|
+
"title": "ReqGetAccount"
|
|
3408
2897
|
},
|
|
3409
2898
|
"ReqGetAccountActiveOrders": {
|
|
3410
2899
|
"type": "object",
|
|
@@ -3424,12 +2913,7 @@
|
|
|
3424
2913
|
"format": "uin16"
|
|
3425
2914
|
}
|
|
3426
2915
|
},
|
|
3427
|
-
"title": "ReqGetAccountActiveOrders"
|
|
3428
|
-
"required": [
|
|
3429
|
-
"account_index",
|
|
3430
|
-
"sub_account_index",
|
|
3431
|
-
"market_id"
|
|
3432
|
-
]
|
|
2916
|
+
"title": "ReqGetAccountActiveOrders"
|
|
3433
2917
|
},
|
|
3434
2918
|
"ReqGetAccountByL1Address": {
|
|
3435
2919
|
"type": "object",
|
|
@@ -3438,10 +2922,7 @@
|
|
|
3438
2922
|
"type": "string"
|
|
3439
2923
|
}
|
|
3440
2924
|
},
|
|
3441
|
-
"title": "ReqGetAccountByL1Address"
|
|
3442
|
-
"required": [
|
|
3443
|
-
"l1_address"
|
|
3444
|
-
]
|
|
2925
|
+
"title": "ReqGetAccountByL1Address"
|
|
3445
2926
|
},
|
|
3446
2927
|
"ReqGetAccountInactiveOrders": {
|
|
3447
2928
|
"type": "object",
|
|
@@ -3477,13 +2958,7 @@
|
|
|
3477
2958
|
"minimum": 1
|
|
3478
2959
|
}
|
|
3479
2960
|
},
|
|
3480
|
-
"title": "ReqGetAccountInactiveOrders"
|
|
3481
|
-
"required": [
|
|
3482
|
-
"account_index",
|
|
3483
|
-
"sub_account_index",
|
|
3484
|
-
"filter",
|
|
3485
|
-
"limit"
|
|
3486
|
-
]
|
|
2961
|
+
"title": "ReqGetAccountInactiveOrders"
|
|
3487
2962
|
},
|
|
3488
2963
|
"ReqGetAccountOrders": {
|
|
3489
2964
|
"type": "object",
|
|
@@ -3506,12 +2981,7 @@
|
|
|
3506
2981
|
"minimum": 1
|
|
3507
2982
|
}
|
|
3508
2983
|
},
|
|
3509
|
-
"title": "ReqGetAccountOrders"
|
|
3510
|
-
"required": [
|
|
3511
|
-
"account_index",
|
|
3512
|
-
"market_id",
|
|
3513
|
-
"limit"
|
|
3514
|
-
]
|
|
2984
|
+
"title": "ReqGetAccountOrders"
|
|
3515
2985
|
},
|
|
3516
2986
|
"ReqGetAccountPendingTxs": {
|
|
3517
2987
|
"type": "object",
|
|
@@ -3573,15 +3043,7 @@
|
|
|
3573
3043
|
"format": "int64"
|
|
3574
3044
|
}
|
|
3575
3045
|
},
|
|
3576
|
-
"title": "ReqGetAccountPnL"
|
|
3577
|
-
"required": [
|
|
3578
|
-
"by",
|
|
3579
|
-
"value",
|
|
3580
|
-
"resolution",
|
|
3581
|
-
"start_timestamp",
|
|
3582
|
-
"end_timestamp",
|
|
3583
|
-
"count_back"
|
|
3584
|
-
]
|
|
3046
|
+
"title": "ReqGetAccountPnL"
|
|
3585
3047
|
},
|
|
3586
3048
|
"ReqGetAccountTxs": {
|
|
3587
3049
|
"type": "object",
|
|
@@ -3630,11 +3092,7 @@
|
|
|
3630
3092
|
"type": "string"
|
|
3631
3093
|
}
|
|
3632
3094
|
},
|
|
3633
|
-
"title": "ReqGetBlock"
|
|
3634
|
-
"required": [
|
|
3635
|
-
"by",
|
|
3636
|
-
"value"
|
|
3637
|
-
]
|
|
3095
|
+
"title": "ReqGetBlock"
|
|
3638
3096
|
},
|
|
3639
3097
|
"ReqGetBlockTxs": {
|
|
3640
3098
|
"type": "object",
|
|
@@ -3650,11 +3108,7 @@
|
|
|
3650
3108
|
"type": "string"
|
|
3651
3109
|
}
|
|
3652
3110
|
},
|
|
3653
|
-
"title": "ReqGetBlockTxs"
|
|
3654
|
-
"required": [
|
|
3655
|
-
"by",
|
|
3656
|
-
"value"
|
|
3657
|
-
]
|
|
3111
|
+
"title": "ReqGetBlockTxs"
|
|
3658
3112
|
},
|
|
3659
3113
|
"ReqGetByAccount": {
|
|
3660
3114
|
"type": "object",
|
|
@@ -3670,11 +3124,7 @@
|
|
|
3670
3124
|
"type": "string"
|
|
3671
3125
|
}
|
|
3672
3126
|
},
|
|
3673
|
-
"title": "ReqGetByAccount"
|
|
3674
|
-
"required": [
|
|
3675
|
-
"by",
|
|
3676
|
-
"value"
|
|
3677
|
-
]
|
|
3127
|
+
"title": "ReqGetByAccount"
|
|
3678
3128
|
},
|
|
3679
3129
|
"ReqGetCandlesticks": {
|
|
3680
3130
|
"type": "object",
|
|
@@ -3707,14 +3157,7 @@
|
|
|
3707
3157
|
"format": "int64"
|
|
3708
3158
|
}
|
|
3709
3159
|
},
|
|
3710
|
-
"title": "ReqGetCandlesticks"
|
|
3711
|
-
"required": [
|
|
3712
|
-
"market_id",
|
|
3713
|
-
"resolution",
|
|
3714
|
-
"start_timestamp",
|
|
3715
|
-
"end_timestamp",
|
|
3716
|
-
"count_back"
|
|
3717
|
-
]
|
|
3160
|
+
"title": "ReqGetCandlesticks"
|
|
3718
3161
|
},
|
|
3719
3162
|
"ReqGetExchangeStats": {
|
|
3720
3163
|
"type": "object",
|
|
@@ -3746,14 +3189,7 @@
|
|
|
3746
3189
|
"format": "int64"
|
|
3747
3190
|
}
|
|
3748
3191
|
},
|
|
3749
|
-
"title": "ReqGetFundings"
|
|
3750
|
-
"required": [
|
|
3751
|
-
"market_id",
|
|
3752
|
-
"resolution",
|
|
3753
|
-
"start_timestamp",
|
|
3754
|
-
"end_timestamp",
|
|
3755
|
-
"count_back"
|
|
3756
|
-
]
|
|
3192
|
+
"title": "ReqGetFundings"
|
|
3757
3193
|
},
|
|
3758
3194
|
"ReqGetL1Tx": {
|
|
3759
3195
|
"type": "object",
|
|
@@ -3762,10 +3198,7 @@
|
|
|
3762
3198
|
"type": "string"
|
|
3763
3199
|
}
|
|
3764
3200
|
},
|
|
3765
|
-
"title": "ReqGetL1Tx"
|
|
3766
|
-
"required": [
|
|
3767
|
-
"hash"
|
|
3768
|
-
]
|
|
3201
|
+
"title": "ReqGetL1Tx"
|
|
3769
3202
|
},
|
|
3770
3203
|
"ReqGetMarketSig": {
|
|
3771
3204
|
"type": "object",
|
|
@@ -3783,12 +3216,7 @@
|
|
|
3783
3216
|
"format": "int64"
|
|
3784
3217
|
}
|
|
3785
3218
|
},
|
|
3786
|
-
"title": "ReqGetMarketSig"
|
|
3787
|
-
"required": [
|
|
3788
|
-
"market_id",
|
|
3789
|
-
"is_ask",
|
|
3790
|
-
"base_amount"
|
|
3791
|
-
]
|
|
3219
|
+
"title": "ReqGetMarketSig"
|
|
3792
3220
|
},
|
|
3793
3221
|
"ReqGetNextNonce": {
|
|
3794
3222
|
"type": "object",
|
|
@@ -3802,11 +3230,7 @@
|
|
|
3802
3230
|
"format": "uint8"
|
|
3803
3231
|
}
|
|
3804
3232
|
},
|
|
3805
|
-
"title": "ReqGetNextNonce"
|
|
3806
|
-
"required": [
|
|
3807
|
-
"account_index",
|
|
3808
|
-
"sub_account_index"
|
|
3809
|
-
]
|
|
3233
|
+
"title": "ReqGetNextNonce"
|
|
3810
3234
|
},
|
|
3811
3235
|
"ReqGetOrderBookDetails": {
|
|
3812
3236
|
"type": "object",
|
|
@@ -3823,10 +3247,7 @@
|
|
|
3823
3247
|
"format": "uin16"
|
|
3824
3248
|
}
|
|
3825
3249
|
},
|
|
3826
|
-
"title": "ReqGetOrderBookDetails"
|
|
3827
|
-
"required": [
|
|
3828
|
-
"filter"
|
|
3829
|
-
]
|
|
3250
|
+
"title": "ReqGetOrderBookDetails"
|
|
3830
3251
|
},
|
|
3831
3252
|
"ReqGetOrderBookOrders": {
|
|
3832
3253
|
"type": "object",
|
|
@@ -3842,11 +3263,7 @@
|
|
|
3842
3263
|
"minimum": 1
|
|
3843
3264
|
}
|
|
3844
3265
|
},
|
|
3845
|
-
"title": "ReqGetOrderBookOrders"
|
|
3846
|
-
"required": [
|
|
3847
|
-
"market_id",
|
|
3848
|
-
"limit"
|
|
3849
|
-
]
|
|
3266
|
+
"title": "ReqGetOrderBookOrders"
|
|
3850
3267
|
},
|
|
3851
3268
|
"ReqGetOrderBooks": {
|
|
3852
3269
|
"type": "object",
|
|
@@ -3863,10 +3280,7 @@
|
|
|
3863
3280
|
"format": "uin16"
|
|
3864
3281
|
}
|
|
3865
3282
|
},
|
|
3866
|
-
"title": "ReqGetOrderBooks"
|
|
3867
|
-
"required": [
|
|
3868
|
-
"filter"
|
|
3869
|
-
]
|
|
3283
|
+
"title": "ReqGetOrderBooks"
|
|
3870
3284
|
},
|
|
3871
3285
|
"ReqGetPermission": {
|
|
3872
3286
|
"type": "object",
|
|
@@ -3886,12 +3300,7 @@
|
|
|
3886
3300
|
"format": "uint8"
|
|
3887
3301
|
}
|
|
3888
3302
|
},
|
|
3889
|
-
"title": "ReqGetPermission"
|
|
3890
|
-
"required": [
|
|
3891
|
-
"by",
|
|
3892
|
-
"value",
|
|
3893
|
-
"tx_type"
|
|
3894
|
-
]
|
|
3303
|
+
"title": "ReqGetPermission"
|
|
3895
3304
|
},
|
|
3896
3305
|
"ReqGetRangeWithCursor": {
|
|
3897
3306
|
"type": "object",
|
|
@@ -3906,10 +3315,7 @@
|
|
|
3906
3315
|
"minimum": 1
|
|
3907
3316
|
}
|
|
3908
3317
|
},
|
|
3909
|
-
"title": "ReqGetRangeWithCursor"
|
|
3910
|
-
"required": [
|
|
3911
|
-
"limit"
|
|
3912
|
-
]
|
|
3318
|
+
"title": "ReqGetRangeWithCursor"
|
|
3913
3319
|
},
|
|
3914
3320
|
"ReqGetRangeWithIndex": {
|
|
3915
3321
|
"type": "object",
|
|
@@ -3925,10 +3331,7 @@
|
|
|
3925
3331
|
"minimum": 1
|
|
3926
3332
|
}
|
|
3927
3333
|
},
|
|
3928
|
-
"title": "ReqGetRangeWithIndex"
|
|
3929
|
-
"required": [
|
|
3930
|
-
"limit"
|
|
3931
|
-
]
|
|
3334
|
+
"title": "ReqGetRangeWithIndex"
|
|
3932
3335
|
},
|
|
3933
3336
|
"ReqGetRangeWithIndexSortable": {
|
|
3934
3337
|
"type": "object",
|
|
@@ -3968,11 +3371,7 @@
|
|
|
3968
3371
|
"minimum": 1
|
|
3969
3372
|
}
|
|
3970
3373
|
},
|
|
3971
|
-
"title": "ReqGetRecentTrades"
|
|
3972
|
-
"required": [
|
|
3973
|
-
"market_id",
|
|
3974
|
-
"limit"
|
|
3975
|
-
]
|
|
3374
|
+
"title": "ReqGetRecentTrades"
|
|
3976
3375
|
},
|
|
3977
3376
|
"ReqGetRollbacks": {
|
|
3978
3377
|
"type": "object",
|
|
@@ -3993,12 +3392,7 @@
|
|
|
3993
3392
|
"minimum": 1
|
|
3994
3393
|
}
|
|
3995
3394
|
},
|
|
3996
|
-
"title": "ReqGetRollbacks"
|
|
3997
|
-
"required": [
|
|
3998
|
-
"from_block_height",
|
|
3999
|
-
"offset",
|
|
4000
|
-
"limit"
|
|
4001
|
-
]
|
|
3395
|
+
"title": "ReqGetRollbacks"
|
|
4002
3396
|
},
|
|
4003
3397
|
"ReqGetSubAccount": {
|
|
4004
3398
|
"type": "object",
|
|
@@ -4020,12 +3414,7 @@
|
|
|
4020
3414
|
"description": " NilSubAccountIndex"
|
|
4021
3415
|
}
|
|
4022
3416
|
},
|
|
4023
|
-
"title": "ReqGetSubAccount"
|
|
4024
|
-
"required": [
|
|
4025
|
-
"by",
|
|
4026
|
-
"value",
|
|
4027
|
-
"sub_account_index"
|
|
4028
|
-
]
|
|
3417
|
+
"title": "ReqGetSubAccount"
|
|
4029
3418
|
},
|
|
4030
3419
|
"ReqGetTrades": {
|
|
4031
3420
|
"type": "object",
|
|
@@ -4057,13 +3446,7 @@
|
|
|
4057
3446
|
"minimum": 1
|
|
4058
3447
|
}
|
|
4059
3448
|
},
|
|
4060
|
-
"title": "ReqGetTrades"
|
|
4061
|
-
"required": [
|
|
4062
|
-
"market_id",
|
|
4063
|
-
"by",
|
|
4064
|
-
"from",
|
|
4065
|
-
"limit"
|
|
4066
|
-
]
|
|
3449
|
+
"title": "ReqGetTrades"
|
|
4067
3450
|
},
|
|
4068
3451
|
"ReqGetTx": {
|
|
4069
3452
|
"type": "object",
|
|
@@ -4079,11 +3462,7 @@
|
|
|
4079
3462
|
"type": "string"
|
|
4080
3463
|
}
|
|
4081
3464
|
},
|
|
4082
|
-
"title": "ReqGetTx"
|
|
4083
|
-
"required": [
|
|
4084
|
-
"by",
|
|
4085
|
-
"value"
|
|
4086
|
-
]
|
|
3465
|
+
"title": "ReqGetTx"
|
|
4087
3466
|
},
|
|
4088
3467
|
"ReqSearch": {
|
|
4089
3468
|
"type": "object",
|
|
@@ -4092,28 +3471,7 @@
|
|
|
4092
3471
|
"type": "string"
|
|
4093
3472
|
}
|
|
4094
3473
|
},
|
|
4095
|
-
"title": "ReqSearch"
|
|
4096
|
-
"required": [
|
|
4097
|
-
"keyword"
|
|
4098
|
-
]
|
|
4099
|
-
},
|
|
4100
|
-
"ReqSendFeedback": {
|
|
4101
|
-
"type": "object",
|
|
4102
|
-
"properties": {
|
|
4103
|
-
"name": {
|
|
4104
|
-
"type": "string"
|
|
4105
|
-
},
|
|
4106
|
-
"email": {
|
|
4107
|
-
"type": "string"
|
|
4108
|
-
},
|
|
4109
|
-
"content": {
|
|
4110
|
-
"type": "string"
|
|
4111
|
-
}
|
|
4112
|
-
},
|
|
4113
|
-
"title": "ReqSendFeedback",
|
|
4114
|
-
"required": [
|
|
4115
|
-
"content"
|
|
4116
|
-
]
|
|
3474
|
+
"title": "ReqSearch"
|
|
4117
3475
|
},
|
|
4118
3476
|
"ReqSendTx": {
|
|
4119
3477
|
"type": "object",
|
|
@@ -4126,11 +3484,7 @@
|
|
|
4126
3484
|
"type": "string"
|
|
4127
3485
|
}
|
|
4128
3486
|
},
|
|
4129
|
-
"title": "ReqSendTx"
|
|
4130
|
-
"required": [
|
|
4131
|
-
"tx_type",
|
|
4132
|
-
"tx_info"
|
|
4133
|
-
]
|
|
3487
|
+
"title": "ReqSendTx"
|
|
4134
3488
|
},
|
|
4135
3489
|
"ResultCode": {
|
|
4136
3490
|
"type": "object",
|
|
@@ -4144,10 +3498,7 @@
|
|
|
4144
3498
|
"type": "string"
|
|
4145
3499
|
}
|
|
4146
3500
|
},
|
|
4147
|
-
"title": "ResultCode"
|
|
4148
|
-
"required": [
|
|
4149
|
-
"code"
|
|
4150
|
-
]
|
|
3501
|
+
"title": "ResultCode"
|
|
4151
3502
|
},
|
|
4152
3503
|
"Rollback": {
|
|
4153
3504
|
"type": "object",
|
|
@@ -4172,13 +3523,7 @@
|
|
|
4172
3523
|
"example": "1640995200"
|
|
4173
3524
|
}
|
|
4174
3525
|
},
|
|
4175
|
-
"title": "Rollback"
|
|
4176
|
-
"required": [
|
|
4177
|
-
"from_block_height",
|
|
4178
|
-
"from_tx_hash",
|
|
4179
|
-
"id",
|
|
4180
|
-
"created_at"
|
|
4181
|
-
]
|
|
3526
|
+
"title": "Rollback"
|
|
4182
3527
|
},
|
|
4183
3528
|
"Rollbacks": {
|
|
4184
3529
|
"type": "object",
|
|
@@ -4203,11 +3548,7 @@
|
|
|
4203
3548
|
}
|
|
4204
3549
|
}
|
|
4205
3550
|
},
|
|
4206
|
-
"title": "Rollbacks"
|
|
4207
|
-
"required": [
|
|
4208
|
-
"total",
|
|
4209
|
-
"rollbacks"
|
|
4210
|
-
]
|
|
3551
|
+
"title": "Rollbacks"
|
|
4211
3552
|
},
|
|
4212
3553
|
"Search": {
|
|
4213
3554
|
"type": "object",
|
|
@@ -4226,10 +3567,7 @@
|
|
|
4226
3567
|
"example": "1"
|
|
4227
3568
|
}
|
|
4228
3569
|
},
|
|
4229
|
-
"title": "Search"
|
|
4230
|
-
"required": [
|
|
4231
|
-
"data_type"
|
|
4232
|
-
]
|
|
3570
|
+
"title": "Search"
|
|
4233
3571
|
},
|
|
4234
3572
|
"SignBody": {
|
|
4235
3573
|
"type": "object",
|
|
@@ -4247,10 +3585,7 @@
|
|
|
4247
3585
|
"example": "success"
|
|
4248
3586
|
}
|
|
4249
3587
|
},
|
|
4250
|
-
"title": "SignBody"
|
|
4251
|
-
"required": [
|
|
4252
|
-
"sign_body"
|
|
4253
|
-
]
|
|
3588
|
+
"title": "SignBody"
|
|
4254
3589
|
},
|
|
4255
3590
|
"SimpleOrder": {
|
|
4256
3591
|
"type": "object",
|
|
@@ -4283,15 +3618,7 @@
|
|
|
4283
3618
|
"example": "234"
|
|
4284
3619
|
}
|
|
4285
3620
|
},
|
|
4286
|
-
"title": "SimpleOrder"
|
|
4287
|
-
"required": [
|
|
4288
|
-
"owner_account_index",
|
|
4289
|
-
"owner_sub_account_index",
|
|
4290
|
-
"initial_base_amount",
|
|
4291
|
-
"remaining_base_amount",
|
|
4292
|
-
"price",
|
|
4293
|
-
"nonce"
|
|
4294
|
-
]
|
|
3621
|
+
"title": "SimpleOrder"
|
|
4295
3622
|
},
|
|
4296
3623
|
"Status": {
|
|
4297
3624
|
"type": "object",
|
|
@@ -4307,11 +3634,7 @@
|
|
|
4307
3634
|
"example": "1"
|
|
4308
3635
|
}
|
|
4309
3636
|
},
|
|
4310
|
-
"title": "Status"
|
|
4311
|
-
"required": [
|
|
4312
|
-
"status",
|
|
4313
|
-
"network_id"
|
|
4314
|
-
]
|
|
3637
|
+
"title": "Status"
|
|
4315
3638
|
},
|
|
4316
3639
|
"SubAccount": {
|
|
4317
3640
|
"type": "object",
|
|
@@ -4354,17 +3677,7 @@
|
|
|
4354
3677
|
"example": "1"
|
|
4355
3678
|
}
|
|
4356
3679
|
},
|
|
4357
|
-
"title": "SubAccount"
|
|
4358
|
-
"required": [
|
|
4359
|
-
"index",
|
|
4360
|
-
"sub_account_index",
|
|
4361
|
-
"l1_address",
|
|
4362
|
-
"pk",
|
|
4363
|
-
"nonce",
|
|
4364
|
-
"status",
|
|
4365
|
-
"collateral",
|
|
4366
|
-
"collateral_type"
|
|
4367
|
-
]
|
|
3680
|
+
"title": "SubAccount"
|
|
4368
3681
|
},
|
|
4369
3682
|
"SubAccounts": {
|
|
4370
3683
|
"type": "object",
|
|
@@ -4399,13 +3712,7 @@
|
|
|
4399
3712
|
}
|
|
4400
3713
|
}
|
|
4401
3714
|
},
|
|
4402
|
-
"title": "SubAccounts"
|
|
4403
|
-
"required": [
|
|
4404
|
-
"index",
|
|
4405
|
-
"l1_address",
|
|
4406
|
-
"status",
|
|
4407
|
-
"sub_accounts"
|
|
4408
|
-
]
|
|
3715
|
+
"title": "SubAccounts"
|
|
4409
3716
|
},
|
|
4410
3717
|
"Trade": {
|
|
4411
3718
|
"type": "object",
|
|
@@ -4468,21 +3775,7 @@
|
|
|
4468
3775
|
"example": "1640995200"
|
|
4469
3776
|
}
|
|
4470
3777
|
},
|
|
4471
|
-
"title": "Trade"
|
|
4472
|
-
"required": [
|
|
4473
|
-
"trade_id",
|
|
4474
|
-
"tx_hash",
|
|
4475
|
-
"market_id",
|
|
4476
|
-
"size",
|
|
4477
|
-
"price",
|
|
4478
|
-
"ask_id",
|
|
4479
|
-
"bid_id",
|
|
4480
|
-
"maker_account_id",
|
|
4481
|
-
"taker_account_id",
|
|
4482
|
-
"is_maker_ask",
|
|
4483
|
-
"block_height",
|
|
4484
|
-
"timestamp"
|
|
4485
|
-
]
|
|
3778
|
+
"title": "Trade"
|
|
4486
3779
|
},
|
|
4487
3780
|
"Trades": {
|
|
4488
3781
|
"type": "object",
|
|
@@ -4502,10 +3795,7 @@
|
|
|
4502
3795
|
}
|
|
4503
3796
|
}
|
|
4504
3797
|
},
|
|
4505
|
-
"title": "Trades"
|
|
4506
|
-
"required": [
|
|
4507
|
-
"trades"
|
|
4508
|
-
]
|
|
3798
|
+
"title": "Trades"
|
|
4509
3799
|
},
|
|
4510
3800
|
"Tx": {
|
|
4511
3801
|
"type": "object",
|
|
@@ -4579,23 +3869,7 @@
|
|
|
4579
3869
|
"example": "8761"
|
|
4580
3870
|
}
|
|
4581
3871
|
},
|
|
4582
|
-
"title": "Tx"
|
|
4583
|
-
"required": [
|
|
4584
|
-
"hash",
|
|
4585
|
-
"type",
|
|
4586
|
-
"info",
|
|
4587
|
-
"event_info",
|
|
4588
|
-
"status",
|
|
4589
|
-
"transaction_index",
|
|
4590
|
-
"l1_address",
|
|
4591
|
-
"account_index",
|
|
4592
|
-
"nonce",
|
|
4593
|
-
"expire_at",
|
|
4594
|
-
"block_height",
|
|
4595
|
-
"created_at",
|
|
4596
|
-
"verify_at",
|
|
4597
|
-
"sequence_index"
|
|
4598
|
-
]
|
|
3872
|
+
"title": "Tx"
|
|
4599
3873
|
},
|
|
4600
3874
|
"TxHash": {
|
|
4601
3875
|
"type": "object",
|
|
@@ -4613,10 +3887,7 @@
|
|
|
4613
3887
|
"example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
|
|
4614
3888
|
}
|
|
4615
3889
|
},
|
|
4616
|
-
"title": "TxHash"
|
|
4617
|
-
"required": [
|
|
4618
|
-
"tx_hash"
|
|
4619
|
-
]
|
|
3890
|
+
"title": "TxHash"
|
|
4620
3891
|
},
|
|
4621
3892
|
"Txs": {
|
|
4622
3893
|
"type": "object",
|
|
@@ -4636,10 +3907,7 @@
|
|
|
4636
3907
|
}
|
|
4637
3908
|
}
|
|
4638
3909
|
},
|
|
4639
|
-
"title": "Txs"
|
|
4640
|
-
"required": [
|
|
4641
|
-
"txs"
|
|
4642
|
-
]
|
|
3910
|
+
"title": "Txs"
|
|
4643
3911
|
},
|
|
4644
3912
|
"ValidatorInfo": {
|
|
4645
3913
|
"type": "object",
|
|
@@ -4654,11 +3922,7 @@
|
|
|
4654
3922
|
"example": "true"
|
|
4655
3923
|
}
|
|
4656
3924
|
},
|
|
4657
|
-
"title": "ValidatorInfo"
|
|
4658
|
-
"required": [
|
|
4659
|
-
"address",
|
|
4660
|
-
"is_active"
|
|
4661
|
-
]
|
|
3925
|
+
"title": "ValidatorInfo"
|
|
4662
3926
|
}
|
|
4663
3927
|
},
|
|
4664
3928
|
"securityDefinitions": {
|