zklighter-perps 1.0.5 → 1.0.6
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 +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/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 +191 -891
- 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,12 +1494,13 @@
|
|
|
1711
1494
|
],
|
|
1712
1495
|
"consumes": [
|
|
1713
1496
|
"multipart/form-data"
|
|
1714
|
-
]
|
|
1497
|
+
],
|
|
1498
|
+
"description": "Get transactions which are already packed into blocks"
|
|
1715
1499
|
}
|
|
1716
1500
|
},
|
|
1717
1501
|
"/api/v1/ws_status": {
|
|
1718
1502
|
"get": {
|
|
1719
|
-
"summary": "
|
|
1503
|
+
"summary": "GetWebSocketStatus",
|
|
1720
1504
|
"operationId": "GetWebSocketStatus",
|
|
1721
1505
|
"responses": {
|
|
1722
1506
|
"200": {
|
|
@@ -1724,22 +1508,17 @@
|
|
|
1724
1508
|
"schema": {
|
|
1725
1509
|
"$ref": "#/definitions/ResultCode"
|
|
1726
1510
|
}
|
|
1727
|
-
},
|
|
1728
|
-
"400": {
|
|
1729
|
-
"description": "Bad request",
|
|
1730
|
-
"schema": {
|
|
1731
|
-
"$ref": "#/definitions/ResultCode"
|
|
1732
|
-
}
|
|
1733
1511
|
}
|
|
1734
1512
|
},
|
|
1735
1513
|
"tags": [
|
|
1736
1514
|
"ws"
|
|
1737
|
-
]
|
|
1515
|
+
],
|
|
1516
|
+
"description": "WebSocket Status"
|
|
1738
1517
|
}
|
|
1739
1518
|
},
|
|
1740
1519
|
"/stream": {
|
|
1741
1520
|
"get": {
|
|
1742
|
-
"summary": "
|
|
1521
|
+
"summary": "Stream",
|
|
1743
1522
|
"operationId": "Stream",
|
|
1744
1523
|
"responses": {
|
|
1745
1524
|
"200": {
|
|
@@ -1747,17 +1526,12 @@
|
|
|
1747
1526
|
"schema": {
|
|
1748
1527
|
"$ref": "#/definitions/ResultCode"
|
|
1749
1528
|
}
|
|
1750
|
-
},
|
|
1751
|
-
"400": {
|
|
1752
|
-
"description": "Bad request",
|
|
1753
|
-
"schema": {
|
|
1754
|
-
"$ref": "#/definitions/ResultCode"
|
|
1755
|
-
}
|
|
1756
1529
|
}
|
|
1757
1530
|
},
|
|
1758
1531
|
"tags": [
|
|
1759
1532
|
"ws"
|
|
1760
|
-
]
|
|
1533
|
+
],
|
|
1534
|
+
"description": "WebSocket"
|
|
1761
1535
|
}
|
|
1762
1536
|
}
|
|
1763
1537
|
},
|
|
@@ -1796,15 +1570,7 @@
|
|
|
1796
1570
|
"example": "1276.0"
|
|
1797
1571
|
}
|
|
1798
1572
|
},
|
|
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
|
-
]
|
|
1573
|
+
"title": "AccountMarketStats"
|
|
1808
1574
|
},
|
|
1809
1575
|
"AccountPnL": {
|
|
1810
1576
|
"type": "object",
|
|
@@ -1828,11 +1594,7 @@
|
|
|
1828
1594
|
}
|
|
1829
1595
|
}
|
|
1830
1596
|
},
|
|
1831
|
-
"title": "AccountPnL"
|
|
1832
|
-
"required": [
|
|
1833
|
-
"resolution",
|
|
1834
|
-
"pnl"
|
|
1835
|
-
]
|
|
1597
|
+
"title": "AccountPnL"
|
|
1836
1598
|
},
|
|
1837
1599
|
"AccountPosition": {
|
|
1838
1600
|
"type": "object",
|
|
@@ -1884,20 +1646,7 @@
|
|
|
1884
1646
|
"example": "2.000000"
|
|
1885
1647
|
}
|
|
1886
1648
|
},
|
|
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
|
-
]
|
|
1649
|
+
"title": "AccountPosition"
|
|
1901
1650
|
},
|
|
1902
1651
|
"AccountStats": {
|
|
1903
1652
|
"type": "object",
|
|
@@ -1923,14 +1672,7 @@
|
|
|
1923
1672
|
"example": "199955"
|
|
1924
1673
|
}
|
|
1925
1674
|
},
|
|
1926
|
-
"title": "AccountStats"
|
|
1927
|
-
"required": [
|
|
1928
|
-
"portfolio_value",
|
|
1929
|
-
"leverage",
|
|
1930
|
-
"free_collateral",
|
|
1931
|
-
"margin_usage",
|
|
1932
|
-
"buying_power"
|
|
1933
|
-
]
|
|
1675
|
+
"title": "AccountStats"
|
|
1934
1676
|
},
|
|
1935
1677
|
"Block": {
|
|
1936
1678
|
"type": "object",
|
|
@@ -1985,22 +1727,7 @@
|
|
|
1985
1727
|
"format": "uin16"
|
|
1986
1728
|
}
|
|
1987
1729
|
},
|
|
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
|
-
]
|
|
1730
|
+
"title": "Block"
|
|
2004
1731
|
},
|
|
2005
1732
|
"Blocks": {
|
|
2006
1733
|
"type": "object",
|
|
@@ -2024,11 +1751,7 @@
|
|
|
2024
1751
|
}
|
|
2025
1752
|
}
|
|
2026
1753
|
},
|
|
2027
|
-
"title": "Blocks"
|
|
2028
|
-
"required": [
|
|
2029
|
-
"total",
|
|
2030
|
-
"blocks"
|
|
2031
|
-
]
|
|
1754
|
+
"title": "Blocks"
|
|
2032
1755
|
},
|
|
2033
1756
|
"Candlestick": {
|
|
2034
1757
|
"type": "object",
|
|
@@ -2069,16 +1792,7 @@
|
|
|
2069
1792
|
"example": "93566.25"
|
|
2070
1793
|
}
|
|
2071
1794
|
},
|
|
2072
|
-
"title": "Candlestick"
|
|
2073
|
-
"required": [
|
|
2074
|
-
"timestamp",
|
|
2075
|
-
"open",
|
|
2076
|
-
"high",
|
|
2077
|
-
"low",
|
|
2078
|
-
"close",
|
|
2079
|
-
"volume0",
|
|
2080
|
-
"volume1"
|
|
2081
|
-
]
|
|
1795
|
+
"title": "Candlestick"
|
|
2082
1796
|
},
|
|
2083
1797
|
"Candlesticks": {
|
|
2084
1798
|
"type": "object",
|
|
@@ -2102,11 +1816,7 @@
|
|
|
2102
1816
|
}
|
|
2103
1817
|
}
|
|
2104
1818
|
},
|
|
2105
|
-
"title": "Candlesticks"
|
|
2106
|
-
"required": [
|
|
2107
|
-
"resolution",
|
|
2108
|
-
"candlesticks"
|
|
2109
|
-
]
|
|
1819
|
+
"title": "Candlesticks"
|
|
2110
1820
|
},
|
|
2111
1821
|
"ContractAddress": {
|
|
2112
1822
|
"type": "object",
|
|
@@ -2120,11 +1830,7 @@
|
|
|
2120
1830
|
"example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
|
|
2121
1831
|
}
|
|
2122
1832
|
},
|
|
2123
|
-
"title": "ContractAddress"
|
|
2124
|
-
"required": [
|
|
2125
|
-
"name",
|
|
2126
|
-
"address"
|
|
2127
|
-
]
|
|
1833
|
+
"title": "ContractAddress"
|
|
2128
1834
|
},
|
|
2129
1835
|
"CurrentHeight": {
|
|
2130
1836
|
"type": "object",
|
|
@@ -2142,10 +1848,7 @@
|
|
|
2142
1848
|
"format": "int64"
|
|
2143
1849
|
}
|
|
2144
1850
|
},
|
|
2145
|
-
"title": "CurrentHeight"
|
|
2146
|
-
"required": [
|
|
2147
|
-
"height"
|
|
2148
|
-
]
|
|
1851
|
+
"title": "CurrentHeight"
|
|
2149
1852
|
},
|
|
2150
1853
|
"Cursor": {
|
|
2151
1854
|
"type": "object",
|
|
@@ -2221,12 +1924,7 @@
|
|
|
2221
1924
|
}
|
|
2222
1925
|
}
|
|
2223
1926
|
},
|
|
2224
|
-
"title": "DetailedAccount"
|
|
2225
|
-
"required": [
|
|
2226
|
-
"positions",
|
|
2227
|
-
"total_asset_value",
|
|
2228
|
-
"market_stats"
|
|
2229
|
-
]
|
|
1927
|
+
"title": "DetailedAccount"
|
|
2230
1928
|
},
|
|
2231
1929
|
"DetailedAccounts": {
|
|
2232
1930
|
"type": "object",
|
|
@@ -2251,11 +1949,7 @@
|
|
|
2251
1949
|
}
|
|
2252
1950
|
}
|
|
2253
1951
|
},
|
|
2254
|
-
"title": "DetailedAccounts"
|
|
2255
|
-
"required": [
|
|
2256
|
-
"total",
|
|
2257
|
-
"accounts"
|
|
2258
|
-
]
|
|
1952
|
+
"title": "DetailedAccounts"
|
|
2259
1953
|
},
|
|
2260
1954
|
"EnrichedTx": {
|
|
2261
1955
|
"type": "object",
|
|
@@ -2352,12 +2046,7 @@
|
|
|
2352
2046
|
"example": "1640995200"
|
|
2353
2047
|
}
|
|
2354
2048
|
},
|
|
2355
|
-
"title": "EnrichedTx"
|
|
2356
|
-
"required": [
|
|
2357
|
-
"committed_at",
|
|
2358
|
-
"verified_at",
|
|
2359
|
-
"executed_at"
|
|
2360
|
-
]
|
|
2049
|
+
"title": "EnrichedTx"
|
|
2361
2050
|
},
|
|
2362
2051
|
"ExchangeStats": {
|
|
2363
2052
|
"type": "object",
|
|
@@ -2393,13 +2082,7 @@
|
|
|
2393
2082
|
"example": "68"
|
|
2394
2083
|
}
|
|
2395
2084
|
},
|
|
2396
|
-
"title": "ExchangeStats"
|
|
2397
|
-
"required": [
|
|
2398
|
-
"total",
|
|
2399
|
-
"order_book_stats",
|
|
2400
|
-
"daily_usd_volume",
|
|
2401
|
-
"daily_trades_count"
|
|
2402
|
-
]
|
|
2085
|
+
"title": "ExchangeStats"
|
|
2403
2086
|
},
|
|
2404
2087
|
"Funding": {
|
|
2405
2088
|
"type": "object",
|
|
@@ -2422,13 +2105,7 @@
|
|
|
2422
2105
|
"example": "long"
|
|
2423
2106
|
}
|
|
2424
2107
|
},
|
|
2425
|
-
"title": "Funding"
|
|
2426
|
-
"required": [
|
|
2427
|
-
"timestamp",
|
|
2428
|
-
"value",
|
|
2429
|
-
"rate",
|
|
2430
|
-
"direction"
|
|
2431
|
-
]
|
|
2108
|
+
"title": "Funding"
|
|
2432
2109
|
},
|
|
2433
2110
|
"Fundings": {
|
|
2434
2111
|
"type": "object",
|
|
@@ -2452,11 +2129,7 @@
|
|
|
2452
2129
|
}
|
|
2453
2130
|
}
|
|
2454
2131
|
},
|
|
2455
|
-
"title": "Fundings"
|
|
2456
|
-
"required": [
|
|
2457
|
-
"resolution",
|
|
2458
|
-
"fundings"
|
|
2459
|
-
]
|
|
2132
|
+
"title": "Fundings"
|
|
2460
2133
|
},
|
|
2461
2134
|
"L1ProviderInfo": {
|
|
2462
2135
|
"type": "object",
|
|
@@ -2480,13 +2153,7 @@
|
|
|
2480
2153
|
"type": "string"
|
|
2481
2154
|
}
|
|
2482
2155
|
},
|
|
2483
|
-
"title": "L1ProviderInfo"
|
|
2484
|
-
"required": [
|
|
2485
|
-
"chainId",
|
|
2486
|
-
"networkId",
|
|
2487
|
-
"latestBlockNumber",
|
|
2488
|
-
"NetworkRpc"
|
|
2489
|
-
]
|
|
2156
|
+
"title": "L1ProviderInfo"
|
|
2490
2157
|
},
|
|
2491
2158
|
"Layer1BasicInfo": {
|
|
2492
2159
|
"type": "object",
|
|
@@ -2538,16 +2205,7 @@
|
|
|
2538
2205
|
"example": "45434"
|
|
2539
2206
|
}
|
|
2540
2207
|
},
|
|
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
|
-
]
|
|
2208
|
+
"title": "Layer1BasicInfo"
|
|
2551
2209
|
},
|
|
2552
2210
|
"Layer2BasicInfo": {
|
|
2553
2211
|
"type": "object",
|
|
@@ -2576,12 +2234,7 @@
|
|
|
2576
2234
|
"example": "75434"
|
|
2577
2235
|
}
|
|
2578
2236
|
},
|
|
2579
|
-
"title": "Layer2BasicInfo"
|
|
2580
|
-
"required": [
|
|
2581
|
-
"block_committed",
|
|
2582
|
-
"block_verified",
|
|
2583
|
-
"total_transaction_count"
|
|
2584
|
-
]
|
|
2237
|
+
"title": "Layer2BasicInfo"
|
|
2585
2238
|
},
|
|
2586
2239
|
"MainAccount": {
|
|
2587
2240
|
"type": "object",
|
|
@@ -2609,12 +2262,7 @@
|
|
|
2609
2262
|
"example": "1"
|
|
2610
2263
|
}
|
|
2611
2264
|
},
|
|
2612
|
-
"title": "MainAccount"
|
|
2613
|
-
"required": [
|
|
2614
|
-
"index",
|
|
2615
|
-
"l1_address",
|
|
2616
|
-
"status"
|
|
2617
|
-
]
|
|
2265
|
+
"title": "MainAccount"
|
|
2618
2266
|
},
|
|
2619
2267
|
"MainAccounts": {
|
|
2620
2268
|
"type": "object",
|
|
@@ -2639,11 +2287,7 @@
|
|
|
2639
2287
|
}
|
|
2640
2288
|
}
|
|
2641
2289
|
},
|
|
2642
|
-
"title": "MainAccounts"
|
|
2643
|
-
"required": [
|
|
2644
|
-
"total",
|
|
2645
|
-
"accounts"
|
|
2646
|
-
]
|
|
2290
|
+
"title": "MainAccounts"
|
|
2647
2291
|
},
|
|
2648
2292
|
"MarketInfo": {
|
|
2649
2293
|
"type": "object",
|
|
@@ -2700,20 +2344,7 @@
|
|
|
2700
2344
|
"example": "3.66"
|
|
2701
2345
|
}
|
|
2702
2346
|
},
|
|
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
|
-
]
|
|
2347
|
+
"title": "MarketInfo"
|
|
2717
2348
|
},
|
|
2718
2349
|
"MarketSig": {
|
|
2719
2350
|
"type": "object",
|
|
@@ -2746,13 +2377,7 @@
|
|
|
2746
2377
|
"example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
|
|
2747
2378
|
}
|
|
2748
2379
|
},
|
|
2749
|
-
"title": "MarketSig"
|
|
2750
|
-
"required": [
|
|
2751
|
-
"can_be_filled",
|
|
2752
|
-
"is_ask",
|
|
2753
|
-
"quote_amount",
|
|
2754
|
-
"signature"
|
|
2755
|
-
]
|
|
2380
|
+
"title": "MarketSig"
|
|
2756
2381
|
},
|
|
2757
2382
|
"NextNonce": {
|
|
2758
2383
|
"type": "object",
|
|
@@ -2771,10 +2396,7 @@
|
|
|
2771
2396
|
"example": "722"
|
|
2772
2397
|
}
|
|
2773
2398
|
},
|
|
2774
|
-
"title": "NextNonce"
|
|
2775
|
-
"required": [
|
|
2776
|
-
"nonce"
|
|
2777
|
-
]
|
|
2399
|
+
"title": "NextNonce"
|
|
2778
2400
|
},
|
|
2779
2401
|
"Order": {
|
|
2780
2402
|
"type": "object",
|
|
@@ -2867,26 +2489,7 @@
|
|
|
2867
2489
|
"example": "1640995200"
|
|
2868
2490
|
}
|
|
2869
2491
|
},
|
|
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
|
-
]
|
|
2492
|
+
"title": "Order"
|
|
2890
2493
|
},
|
|
2891
2494
|
"OrderBook": {
|
|
2892
2495
|
"type": "object",
|
|
@@ -2940,19 +2543,7 @@
|
|
|
2940
2543
|
"example": "4"
|
|
2941
2544
|
}
|
|
2942
2545
|
},
|
|
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
|
-
]
|
|
2546
|
+
"title": "OrderBook"
|
|
2956
2547
|
},
|
|
2957
2548
|
"OrderBookDepth": {
|
|
2958
2549
|
"type": "object",
|
|
@@ -2983,12 +2574,7 @@
|
|
|
2983
2574
|
"example": "0"
|
|
2984
2575
|
}
|
|
2985
2576
|
},
|
|
2986
|
-
"title": "OrderBookDepth"
|
|
2987
|
-
"required": [
|
|
2988
|
-
"asks",
|
|
2989
|
-
"bids",
|
|
2990
|
-
"offset"
|
|
2991
|
-
]
|
|
2577
|
+
"title": "OrderBookDepth"
|
|
2992
2578
|
},
|
|
2993
2579
|
"OrderBookDetail": {
|
|
2994
2580
|
"type": "object",
|
|
@@ -3135,27 +2721,7 @@
|
|
|
3135
2721
|
}
|
|
3136
2722
|
}
|
|
3137
2723
|
},
|
|
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
|
-
]
|
|
2724
|
+
"title": "OrderBookDetail"
|
|
3159
2725
|
},
|
|
3160
2726
|
"OrderBookDetails": {
|
|
3161
2727
|
"type": "object",
|
|
@@ -3175,10 +2741,7 @@
|
|
|
3175
2741
|
}
|
|
3176
2742
|
}
|
|
3177
2743
|
},
|
|
3178
|
-
"title": "OrderBookDetails"
|
|
3179
|
-
"required": [
|
|
3180
|
-
"order_book_details"
|
|
3181
|
-
]
|
|
2744
|
+
"title": "OrderBookDetails"
|
|
3182
2745
|
},
|
|
3183
2746
|
"OrderBookOrders": {
|
|
3184
2747
|
"type": "object",
|
|
@@ -3214,13 +2777,7 @@
|
|
|
3214
2777
|
}
|
|
3215
2778
|
}
|
|
3216
2779
|
},
|
|
3217
|
-
"title": "OrderBookOrders"
|
|
3218
|
-
"required": [
|
|
3219
|
-
"total_asks",
|
|
3220
|
-
"asks",
|
|
3221
|
-
"total_bids",
|
|
3222
|
-
"bids"
|
|
3223
|
-
]
|
|
2780
|
+
"title": "OrderBookOrders"
|
|
3224
2781
|
},
|
|
3225
2782
|
"OrderBookStats": {
|
|
3226
2783
|
"type": "object",
|
|
@@ -3255,15 +2812,7 @@
|
|
|
3255
2812
|
"example": "3.66"
|
|
3256
2813
|
}
|
|
3257
2814
|
},
|
|
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
|
-
]
|
|
2815
|
+
"title": "OrderBookStats"
|
|
3267
2816
|
},
|
|
3268
2817
|
"OrderBooks": {
|
|
3269
2818
|
"type": "object",
|
|
@@ -3283,10 +2832,7 @@
|
|
|
3283
2832
|
}
|
|
3284
2833
|
}
|
|
3285
2834
|
},
|
|
3286
|
-
"title": "OrderBooks"
|
|
3287
|
-
"required": [
|
|
3288
|
-
"order_books"
|
|
3289
|
-
]
|
|
2835
|
+
"title": "OrderBooks"
|
|
3290
2836
|
},
|
|
3291
2837
|
"Orders": {
|
|
3292
2838
|
"type": "object",
|
|
@@ -3309,10 +2855,7 @@
|
|
|
3309
2855
|
}
|
|
3310
2856
|
}
|
|
3311
2857
|
},
|
|
3312
|
-
"title": "Orders"
|
|
3313
|
-
"required": [
|
|
3314
|
-
"orders"
|
|
3315
|
-
]
|
|
2858
|
+
"title": "Orders"
|
|
3316
2859
|
},
|
|
3317
2860
|
"Permission": {
|
|
3318
2861
|
"type": "object",
|
|
@@ -3331,10 +2874,7 @@
|
|
|
3331
2874
|
"example": "true"
|
|
3332
2875
|
}
|
|
3333
2876
|
},
|
|
3334
|
-
"title": "Permission"
|
|
3335
|
-
"required": [
|
|
3336
|
-
"permit"
|
|
3337
|
-
]
|
|
2877
|
+
"title": "Permission"
|
|
3338
2878
|
},
|
|
3339
2879
|
"PnLEntry": {
|
|
3340
2880
|
"type": "object",
|
|
@@ -3350,11 +2890,7 @@
|
|
|
3350
2890
|
"example": "12.0"
|
|
3351
2891
|
}
|
|
3352
2892
|
},
|
|
3353
|
-
"title": "PnLEntry"
|
|
3354
|
-
"required": [
|
|
3355
|
-
"timestamp",
|
|
3356
|
-
"value"
|
|
3357
|
-
]
|
|
2893
|
+
"title": "PnLEntry"
|
|
3358
2894
|
},
|
|
3359
2895
|
"PriceLevel": {
|
|
3360
2896
|
"type": "object",
|
|
@@ -3368,11 +2904,7 @@
|
|
|
3368
2904
|
"example": "0.1"
|
|
3369
2905
|
}
|
|
3370
2906
|
},
|
|
3371
|
-
"title": "PriceLevel"
|
|
3372
|
-
"required": [
|
|
3373
|
-
"price",
|
|
3374
|
-
"size"
|
|
3375
|
-
]
|
|
2907
|
+
"title": "PriceLevel"
|
|
3376
2908
|
},
|
|
3377
2909
|
"ReqDoFaucet": {
|
|
3378
2910
|
"type": "object",
|
|
@@ -3381,10 +2913,7 @@
|
|
|
3381
2913
|
"type": "string"
|
|
3382
2914
|
}
|
|
3383
2915
|
},
|
|
3384
|
-
"title": "ReqDoFaucet"
|
|
3385
|
-
"required": [
|
|
3386
|
-
"l1_address"
|
|
3387
|
-
]
|
|
2916
|
+
"title": "ReqDoFaucet"
|
|
3388
2917
|
},
|
|
3389
2918
|
"ReqGetAccount": {
|
|
3390
2919
|
"type": "object",
|
|
@@ -3400,11 +2929,7 @@
|
|
|
3400
2929
|
"type": "string"
|
|
3401
2930
|
}
|
|
3402
2931
|
},
|
|
3403
|
-
"title": "ReqGetAccount"
|
|
3404
|
-
"required": [
|
|
3405
|
-
"by",
|
|
3406
|
-
"value"
|
|
3407
|
-
]
|
|
2932
|
+
"title": "ReqGetAccount"
|
|
3408
2933
|
},
|
|
3409
2934
|
"ReqGetAccountActiveOrders": {
|
|
3410
2935
|
"type": "object",
|
|
@@ -3424,12 +2949,7 @@
|
|
|
3424
2949
|
"format": "uin16"
|
|
3425
2950
|
}
|
|
3426
2951
|
},
|
|
3427
|
-
"title": "ReqGetAccountActiveOrders"
|
|
3428
|
-
"required": [
|
|
3429
|
-
"account_index",
|
|
3430
|
-
"sub_account_index",
|
|
3431
|
-
"market_id"
|
|
3432
|
-
]
|
|
2952
|
+
"title": "ReqGetAccountActiveOrders"
|
|
3433
2953
|
},
|
|
3434
2954
|
"ReqGetAccountByL1Address": {
|
|
3435
2955
|
"type": "object",
|
|
@@ -3438,10 +2958,7 @@
|
|
|
3438
2958
|
"type": "string"
|
|
3439
2959
|
}
|
|
3440
2960
|
},
|
|
3441
|
-
"title": "ReqGetAccountByL1Address"
|
|
3442
|
-
"required": [
|
|
3443
|
-
"l1_address"
|
|
3444
|
-
]
|
|
2961
|
+
"title": "ReqGetAccountByL1Address"
|
|
3445
2962
|
},
|
|
3446
2963
|
"ReqGetAccountInactiveOrders": {
|
|
3447
2964
|
"type": "object",
|
|
@@ -3477,13 +2994,7 @@
|
|
|
3477
2994
|
"minimum": 1
|
|
3478
2995
|
}
|
|
3479
2996
|
},
|
|
3480
|
-
"title": "ReqGetAccountInactiveOrders"
|
|
3481
|
-
"required": [
|
|
3482
|
-
"account_index",
|
|
3483
|
-
"sub_account_index",
|
|
3484
|
-
"filter",
|
|
3485
|
-
"limit"
|
|
3486
|
-
]
|
|
2997
|
+
"title": "ReqGetAccountInactiveOrders"
|
|
3487
2998
|
},
|
|
3488
2999
|
"ReqGetAccountOrders": {
|
|
3489
3000
|
"type": "object",
|
|
@@ -3506,12 +3017,7 @@
|
|
|
3506
3017
|
"minimum": 1
|
|
3507
3018
|
}
|
|
3508
3019
|
},
|
|
3509
|
-
"title": "ReqGetAccountOrders"
|
|
3510
|
-
"required": [
|
|
3511
|
-
"account_index",
|
|
3512
|
-
"market_id",
|
|
3513
|
-
"limit"
|
|
3514
|
-
]
|
|
3020
|
+
"title": "ReqGetAccountOrders"
|
|
3515
3021
|
},
|
|
3516
3022
|
"ReqGetAccountPendingTxs": {
|
|
3517
3023
|
"type": "object",
|
|
@@ -3573,15 +3079,7 @@
|
|
|
3573
3079
|
"format": "int64"
|
|
3574
3080
|
}
|
|
3575
3081
|
},
|
|
3576
|
-
"title": "ReqGetAccountPnL"
|
|
3577
|
-
"required": [
|
|
3578
|
-
"by",
|
|
3579
|
-
"value",
|
|
3580
|
-
"resolution",
|
|
3581
|
-
"start_timestamp",
|
|
3582
|
-
"end_timestamp",
|
|
3583
|
-
"count_back"
|
|
3584
|
-
]
|
|
3082
|
+
"title": "ReqGetAccountPnL"
|
|
3585
3083
|
},
|
|
3586
3084
|
"ReqGetAccountTxs": {
|
|
3587
3085
|
"type": "object",
|
|
@@ -3630,11 +3128,7 @@
|
|
|
3630
3128
|
"type": "string"
|
|
3631
3129
|
}
|
|
3632
3130
|
},
|
|
3633
|
-
"title": "ReqGetBlock"
|
|
3634
|
-
"required": [
|
|
3635
|
-
"by",
|
|
3636
|
-
"value"
|
|
3637
|
-
]
|
|
3131
|
+
"title": "ReqGetBlock"
|
|
3638
3132
|
},
|
|
3639
3133
|
"ReqGetBlockTxs": {
|
|
3640
3134
|
"type": "object",
|
|
@@ -3650,11 +3144,7 @@
|
|
|
3650
3144
|
"type": "string"
|
|
3651
3145
|
}
|
|
3652
3146
|
},
|
|
3653
|
-
"title": "ReqGetBlockTxs"
|
|
3654
|
-
"required": [
|
|
3655
|
-
"by",
|
|
3656
|
-
"value"
|
|
3657
|
-
]
|
|
3147
|
+
"title": "ReqGetBlockTxs"
|
|
3658
3148
|
},
|
|
3659
3149
|
"ReqGetByAccount": {
|
|
3660
3150
|
"type": "object",
|
|
@@ -3670,11 +3160,7 @@
|
|
|
3670
3160
|
"type": "string"
|
|
3671
3161
|
}
|
|
3672
3162
|
},
|
|
3673
|
-
"title": "ReqGetByAccount"
|
|
3674
|
-
"required": [
|
|
3675
|
-
"by",
|
|
3676
|
-
"value"
|
|
3677
|
-
]
|
|
3163
|
+
"title": "ReqGetByAccount"
|
|
3678
3164
|
},
|
|
3679
3165
|
"ReqGetCandlesticks": {
|
|
3680
3166
|
"type": "object",
|
|
@@ -3707,14 +3193,7 @@
|
|
|
3707
3193
|
"format": "int64"
|
|
3708
3194
|
}
|
|
3709
3195
|
},
|
|
3710
|
-
"title": "ReqGetCandlesticks"
|
|
3711
|
-
"required": [
|
|
3712
|
-
"market_id",
|
|
3713
|
-
"resolution",
|
|
3714
|
-
"start_timestamp",
|
|
3715
|
-
"end_timestamp",
|
|
3716
|
-
"count_back"
|
|
3717
|
-
]
|
|
3196
|
+
"title": "ReqGetCandlesticks"
|
|
3718
3197
|
},
|
|
3719
3198
|
"ReqGetExchangeStats": {
|
|
3720
3199
|
"type": "object",
|
|
@@ -3746,14 +3225,7 @@
|
|
|
3746
3225
|
"format": "int64"
|
|
3747
3226
|
}
|
|
3748
3227
|
},
|
|
3749
|
-
"title": "ReqGetFundings"
|
|
3750
|
-
"required": [
|
|
3751
|
-
"market_id",
|
|
3752
|
-
"resolution",
|
|
3753
|
-
"start_timestamp",
|
|
3754
|
-
"end_timestamp",
|
|
3755
|
-
"count_back"
|
|
3756
|
-
]
|
|
3228
|
+
"title": "ReqGetFundings"
|
|
3757
3229
|
},
|
|
3758
3230
|
"ReqGetL1Tx": {
|
|
3759
3231
|
"type": "object",
|
|
@@ -3762,10 +3234,7 @@
|
|
|
3762
3234
|
"type": "string"
|
|
3763
3235
|
}
|
|
3764
3236
|
},
|
|
3765
|
-
"title": "ReqGetL1Tx"
|
|
3766
|
-
"required": [
|
|
3767
|
-
"hash"
|
|
3768
|
-
]
|
|
3237
|
+
"title": "ReqGetL1Tx"
|
|
3769
3238
|
},
|
|
3770
3239
|
"ReqGetMarketSig": {
|
|
3771
3240
|
"type": "object",
|
|
@@ -3783,12 +3252,7 @@
|
|
|
3783
3252
|
"format": "int64"
|
|
3784
3253
|
}
|
|
3785
3254
|
},
|
|
3786
|
-
"title": "ReqGetMarketSig"
|
|
3787
|
-
"required": [
|
|
3788
|
-
"market_id",
|
|
3789
|
-
"is_ask",
|
|
3790
|
-
"base_amount"
|
|
3791
|
-
]
|
|
3255
|
+
"title": "ReqGetMarketSig"
|
|
3792
3256
|
},
|
|
3793
3257
|
"ReqGetNextNonce": {
|
|
3794
3258
|
"type": "object",
|
|
@@ -3802,11 +3266,7 @@
|
|
|
3802
3266
|
"format": "uint8"
|
|
3803
3267
|
}
|
|
3804
3268
|
},
|
|
3805
|
-
"title": "ReqGetNextNonce"
|
|
3806
|
-
"required": [
|
|
3807
|
-
"account_index",
|
|
3808
|
-
"sub_account_index"
|
|
3809
|
-
]
|
|
3269
|
+
"title": "ReqGetNextNonce"
|
|
3810
3270
|
},
|
|
3811
3271
|
"ReqGetOrderBookDetails": {
|
|
3812
3272
|
"type": "object",
|
|
@@ -3823,10 +3283,7 @@
|
|
|
3823
3283
|
"format": "uin16"
|
|
3824
3284
|
}
|
|
3825
3285
|
},
|
|
3826
|
-
"title": "ReqGetOrderBookDetails"
|
|
3827
|
-
"required": [
|
|
3828
|
-
"filter"
|
|
3829
|
-
]
|
|
3286
|
+
"title": "ReqGetOrderBookDetails"
|
|
3830
3287
|
},
|
|
3831
3288
|
"ReqGetOrderBookOrders": {
|
|
3832
3289
|
"type": "object",
|
|
@@ -3842,11 +3299,7 @@
|
|
|
3842
3299
|
"minimum": 1
|
|
3843
3300
|
}
|
|
3844
3301
|
},
|
|
3845
|
-
"title": "ReqGetOrderBookOrders"
|
|
3846
|
-
"required": [
|
|
3847
|
-
"market_id",
|
|
3848
|
-
"limit"
|
|
3849
|
-
]
|
|
3302
|
+
"title": "ReqGetOrderBookOrders"
|
|
3850
3303
|
},
|
|
3851
3304
|
"ReqGetOrderBooks": {
|
|
3852
3305
|
"type": "object",
|
|
@@ -3863,10 +3316,7 @@
|
|
|
3863
3316
|
"format": "uin16"
|
|
3864
3317
|
}
|
|
3865
3318
|
},
|
|
3866
|
-
"title": "ReqGetOrderBooks"
|
|
3867
|
-
"required": [
|
|
3868
|
-
"filter"
|
|
3869
|
-
]
|
|
3319
|
+
"title": "ReqGetOrderBooks"
|
|
3870
3320
|
},
|
|
3871
3321
|
"ReqGetPermission": {
|
|
3872
3322
|
"type": "object",
|
|
@@ -3886,12 +3336,7 @@
|
|
|
3886
3336
|
"format": "uint8"
|
|
3887
3337
|
}
|
|
3888
3338
|
},
|
|
3889
|
-
"title": "ReqGetPermission"
|
|
3890
|
-
"required": [
|
|
3891
|
-
"by",
|
|
3892
|
-
"value",
|
|
3893
|
-
"tx_type"
|
|
3894
|
-
]
|
|
3339
|
+
"title": "ReqGetPermission"
|
|
3895
3340
|
},
|
|
3896
3341
|
"ReqGetRangeWithCursor": {
|
|
3897
3342
|
"type": "object",
|
|
@@ -3906,10 +3351,7 @@
|
|
|
3906
3351
|
"minimum": 1
|
|
3907
3352
|
}
|
|
3908
3353
|
},
|
|
3909
|
-
"title": "ReqGetRangeWithCursor"
|
|
3910
|
-
"required": [
|
|
3911
|
-
"limit"
|
|
3912
|
-
]
|
|
3354
|
+
"title": "ReqGetRangeWithCursor"
|
|
3913
3355
|
},
|
|
3914
3356
|
"ReqGetRangeWithIndex": {
|
|
3915
3357
|
"type": "object",
|
|
@@ -3925,10 +3367,7 @@
|
|
|
3925
3367
|
"minimum": 1
|
|
3926
3368
|
}
|
|
3927
3369
|
},
|
|
3928
|
-
"title": "ReqGetRangeWithIndex"
|
|
3929
|
-
"required": [
|
|
3930
|
-
"limit"
|
|
3931
|
-
]
|
|
3370
|
+
"title": "ReqGetRangeWithIndex"
|
|
3932
3371
|
},
|
|
3933
3372
|
"ReqGetRangeWithIndexSortable": {
|
|
3934
3373
|
"type": "object",
|
|
@@ -3968,11 +3407,7 @@
|
|
|
3968
3407
|
"minimum": 1
|
|
3969
3408
|
}
|
|
3970
3409
|
},
|
|
3971
|
-
"title": "ReqGetRecentTrades"
|
|
3972
|
-
"required": [
|
|
3973
|
-
"market_id",
|
|
3974
|
-
"limit"
|
|
3975
|
-
]
|
|
3410
|
+
"title": "ReqGetRecentTrades"
|
|
3976
3411
|
},
|
|
3977
3412
|
"ReqGetRollbacks": {
|
|
3978
3413
|
"type": "object",
|
|
@@ -3993,12 +3428,7 @@
|
|
|
3993
3428
|
"minimum": 1
|
|
3994
3429
|
}
|
|
3995
3430
|
},
|
|
3996
|
-
"title": "ReqGetRollbacks"
|
|
3997
|
-
"required": [
|
|
3998
|
-
"from_block_height",
|
|
3999
|
-
"offset",
|
|
4000
|
-
"limit"
|
|
4001
|
-
]
|
|
3431
|
+
"title": "ReqGetRollbacks"
|
|
4002
3432
|
},
|
|
4003
3433
|
"ReqGetSubAccount": {
|
|
4004
3434
|
"type": "object",
|
|
@@ -4020,12 +3450,7 @@
|
|
|
4020
3450
|
"description": " NilSubAccountIndex"
|
|
4021
3451
|
}
|
|
4022
3452
|
},
|
|
4023
|
-
"title": "ReqGetSubAccount"
|
|
4024
|
-
"required": [
|
|
4025
|
-
"by",
|
|
4026
|
-
"value",
|
|
4027
|
-
"sub_account_index"
|
|
4028
|
-
]
|
|
3453
|
+
"title": "ReqGetSubAccount"
|
|
4029
3454
|
},
|
|
4030
3455
|
"ReqGetTrades": {
|
|
4031
3456
|
"type": "object",
|
|
@@ -4057,13 +3482,7 @@
|
|
|
4057
3482
|
"minimum": 1
|
|
4058
3483
|
}
|
|
4059
3484
|
},
|
|
4060
|
-
"title": "ReqGetTrades"
|
|
4061
|
-
"required": [
|
|
4062
|
-
"market_id",
|
|
4063
|
-
"by",
|
|
4064
|
-
"from",
|
|
4065
|
-
"limit"
|
|
4066
|
-
]
|
|
3485
|
+
"title": "ReqGetTrades"
|
|
4067
3486
|
},
|
|
4068
3487
|
"ReqGetTx": {
|
|
4069
3488
|
"type": "object",
|
|
@@ -4079,11 +3498,7 @@
|
|
|
4079
3498
|
"type": "string"
|
|
4080
3499
|
}
|
|
4081
3500
|
},
|
|
4082
|
-
"title": "ReqGetTx"
|
|
4083
|
-
"required": [
|
|
4084
|
-
"by",
|
|
4085
|
-
"value"
|
|
4086
|
-
]
|
|
3501
|
+
"title": "ReqGetTx"
|
|
4087
3502
|
},
|
|
4088
3503
|
"ReqSearch": {
|
|
4089
3504
|
"type": "object",
|
|
@@ -4092,28 +3507,7 @@
|
|
|
4092
3507
|
"type": "string"
|
|
4093
3508
|
}
|
|
4094
3509
|
},
|
|
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
|
-
]
|
|
3510
|
+
"title": "ReqSearch"
|
|
4117
3511
|
},
|
|
4118
3512
|
"ReqSendTx": {
|
|
4119
3513
|
"type": "object",
|
|
@@ -4126,11 +3520,7 @@
|
|
|
4126
3520
|
"type": "string"
|
|
4127
3521
|
}
|
|
4128
3522
|
},
|
|
4129
|
-
"title": "ReqSendTx"
|
|
4130
|
-
"required": [
|
|
4131
|
-
"tx_type",
|
|
4132
|
-
"tx_info"
|
|
4133
|
-
]
|
|
3523
|
+
"title": "ReqSendTx"
|
|
4134
3524
|
},
|
|
4135
3525
|
"ResultCode": {
|
|
4136
3526
|
"type": "object",
|
|
@@ -4144,10 +3534,7 @@
|
|
|
4144
3534
|
"type": "string"
|
|
4145
3535
|
}
|
|
4146
3536
|
},
|
|
4147
|
-
"title": "ResultCode"
|
|
4148
|
-
"required": [
|
|
4149
|
-
"code"
|
|
4150
|
-
]
|
|
3537
|
+
"title": "ResultCode"
|
|
4151
3538
|
},
|
|
4152
3539
|
"Rollback": {
|
|
4153
3540
|
"type": "object",
|
|
@@ -4172,13 +3559,7 @@
|
|
|
4172
3559
|
"example": "1640995200"
|
|
4173
3560
|
}
|
|
4174
3561
|
},
|
|
4175
|
-
"title": "Rollback"
|
|
4176
|
-
"required": [
|
|
4177
|
-
"from_block_height",
|
|
4178
|
-
"from_tx_hash",
|
|
4179
|
-
"id",
|
|
4180
|
-
"created_at"
|
|
4181
|
-
]
|
|
3562
|
+
"title": "Rollback"
|
|
4182
3563
|
},
|
|
4183
3564
|
"Rollbacks": {
|
|
4184
3565
|
"type": "object",
|
|
@@ -4203,11 +3584,7 @@
|
|
|
4203
3584
|
}
|
|
4204
3585
|
}
|
|
4205
3586
|
},
|
|
4206
|
-
"title": "Rollbacks"
|
|
4207
|
-
"required": [
|
|
4208
|
-
"total",
|
|
4209
|
-
"rollbacks"
|
|
4210
|
-
]
|
|
3587
|
+
"title": "Rollbacks"
|
|
4211
3588
|
},
|
|
4212
3589
|
"Search": {
|
|
4213
3590
|
"type": "object",
|
|
@@ -4226,10 +3603,7 @@
|
|
|
4226
3603
|
"example": "1"
|
|
4227
3604
|
}
|
|
4228
3605
|
},
|
|
4229
|
-
"title": "Search"
|
|
4230
|
-
"required": [
|
|
4231
|
-
"data_type"
|
|
4232
|
-
]
|
|
3606
|
+
"title": "Search"
|
|
4233
3607
|
},
|
|
4234
3608
|
"SignBody": {
|
|
4235
3609
|
"type": "object",
|
|
@@ -4247,10 +3621,7 @@
|
|
|
4247
3621
|
"example": "success"
|
|
4248
3622
|
}
|
|
4249
3623
|
},
|
|
4250
|
-
"title": "SignBody"
|
|
4251
|
-
"required": [
|
|
4252
|
-
"sign_body"
|
|
4253
|
-
]
|
|
3624
|
+
"title": "SignBody"
|
|
4254
3625
|
},
|
|
4255
3626
|
"SimpleOrder": {
|
|
4256
3627
|
"type": "object",
|
|
@@ -4283,15 +3654,7 @@
|
|
|
4283
3654
|
"example": "234"
|
|
4284
3655
|
}
|
|
4285
3656
|
},
|
|
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
|
-
]
|
|
3657
|
+
"title": "SimpleOrder"
|
|
4295
3658
|
},
|
|
4296
3659
|
"Status": {
|
|
4297
3660
|
"type": "object",
|
|
@@ -4307,11 +3670,7 @@
|
|
|
4307
3670
|
"example": "1"
|
|
4308
3671
|
}
|
|
4309
3672
|
},
|
|
4310
|
-
"title": "Status"
|
|
4311
|
-
"required": [
|
|
4312
|
-
"status",
|
|
4313
|
-
"network_id"
|
|
4314
|
-
]
|
|
3673
|
+
"title": "Status"
|
|
4315
3674
|
},
|
|
4316
3675
|
"SubAccount": {
|
|
4317
3676
|
"type": "object",
|
|
@@ -4354,17 +3713,7 @@
|
|
|
4354
3713
|
"example": "1"
|
|
4355
3714
|
}
|
|
4356
3715
|
},
|
|
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
|
-
]
|
|
3716
|
+
"title": "SubAccount"
|
|
4368
3717
|
},
|
|
4369
3718
|
"SubAccounts": {
|
|
4370
3719
|
"type": "object",
|
|
@@ -4399,13 +3748,7 @@
|
|
|
4399
3748
|
}
|
|
4400
3749
|
}
|
|
4401
3750
|
},
|
|
4402
|
-
"title": "SubAccounts"
|
|
4403
|
-
"required": [
|
|
4404
|
-
"index",
|
|
4405
|
-
"l1_address",
|
|
4406
|
-
"status",
|
|
4407
|
-
"sub_accounts"
|
|
4408
|
-
]
|
|
3751
|
+
"title": "SubAccounts"
|
|
4409
3752
|
},
|
|
4410
3753
|
"Trade": {
|
|
4411
3754
|
"type": "object",
|
|
@@ -4468,21 +3811,7 @@
|
|
|
4468
3811
|
"example": "1640995200"
|
|
4469
3812
|
}
|
|
4470
3813
|
},
|
|
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
|
-
]
|
|
3814
|
+
"title": "Trade"
|
|
4486
3815
|
},
|
|
4487
3816
|
"Trades": {
|
|
4488
3817
|
"type": "object",
|
|
@@ -4502,10 +3831,7 @@
|
|
|
4502
3831
|
}
|
|
4503
3832
|
}
|
|
4504
3833
|
},
|
|
4505
|
-
"title": "Trades"
|
|
4506
|
-
"required": [
|
|
4507
|
-
"trades"
|
|
4508
|
-
]
|
|
3834
|
+
"title": "Trades"
|
|
4509
3835
|
},
|
|
4510
3836
|
"Tx": {
|
|
4511
3837
|
"type": "object",
|
|
@@ -4579,23 +3905,7 @@
|
|
|
4579
3905
|
"example": "8761"
|
|
4580
3906
|
}
|
|
4581
3907
|
},
|
|
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
|
-
]
|
|
3908
|
+
"title": "Tx"
|
|
4599
3909
|
},
|
|
4600
3910
|
"TxHash": {
|
|
4601
3911
|
"type": "object",
|
|
@@ -4613,10 +3923,7 @@
|
|
|
4613
3923
|
"example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
|
|
4614
3924
|
}
|
|
4615
3925
|
},
|
|
4616
|
-
"title": "TxHash"
|
|
4617
|
-
"required": [
|
|
4618
|
-
"tx_hash"
|
|
4619
|
-
]
|
|
3926
|
+
"title": "TxHash"
|
|
4620
3927
|
},
|
|
4621
3928
|
"Txs": {
|
|
4622
3929
|
"type": "object",
|
|
@@ -4636,10 +3943,7 @@
|
|
|
4636
3943
|
}
|
|
4637
3944
|
}
|
|
4638
3945
|
},
|
|
4639
|
-
"title": "Txs"
|
|
4640
|
-
"required": [
|
|
4641
|
-
"txs"
|
|
4642
|
-
]
|
|
3946
|
+
"title": "Txs"
|
|
4643
3947
|
},
|
|
4644
3948
|
"ValidatorInfo": {
|
|
4645
3949
|
"type": "object",
|
|
@@ -4654,11 +3958,7 @@
|
|
|
4654
3958
|
"example": "true"
|
|
4655
3959
|
}
|
|
4656
3960
|
},
|
|
4657
|
-
"title": "ValidatorInfo"
|
|
4658
|
-
"required": [
|
|
4659
|
-
"address",
|
|
4660
|
-
"is_active"
|
|
4661
|
-
]
|
|
3961
|
+
"title": "ValidatorInfo"
|
|
4662
3962
|
}
|
|
4663
3963
|
},
|
|
4664
3964
|
"securityDefinitions": {
|