zklighter-perps 1.0.7 → 1.0.8
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 +1 -0
- package/apis/BlockApi.ts +3 -0
- package/apis/CandlestickApi.ts +3 -0
- package/apis/InfoApi.ts +3 -0
- package/apis/OrderApi.ts +3 -0
- package/apis/RelayerApi.ts +3 -0
- package/apis/RootApi.ts +3 -0
- package/apis/TransactionApi.ts +110 -6
- package/models/AccountMarketStats.ts +18 -12
- package/models/AccountPnL.ts +7 -5
- package/models/AccountPosition.ts +33 -22
- package/models/AccountStats.ts +15 -10
- package/models/Block.ts +40 -27
- package/models/Blocks.ts +7 -5
- package/models/Candlestick.ts +21 -14
- package/models/Candlesticks.ts +7 -5
- package/models/ContractAddress.ts +6 -4
- package/models/CurrentHeight.ts +3 -2
- package/models/DetailedAccount.ts +11 -8
- package/models/DetailedAccounts.ts +7 -5
- package/models/EnrichedTx.ts +9 -6
- package/models/ExchangeStats.ts +13 -9
- package/models/Funding.ts +12 -8
- package/models/Fundings.ts +7 -5
- package/models/L1ProviderInfo.ts +12 -8
- package/models/Layer1BasicInfo.ts +24 -17
- package/models/Layer2BasicInfo.ts +9 -6
- package/models/MainAccount.ts +9 -6
- package/models/MainAccounts.ts +7 -5
- package/models/MarketInfo.ts +33 -22
- package/models/MarketSig.ts +12 -8
- package/models/NextNonce.ts +3 -2
- package/models/Order.ts +48 -32
- package/models/OrderBook.ts +30 -20
- package/models/OrderBookDepth.ts +11 -8
- package/models/OrderBookDetail.ts +54 -36
- package/models/OrderBookDetails.ts +4 -3
- package/models/OrderBookOrders.ts +14 -10
- package/models/OrderBookStats.ts +18 -12
- package/models/OrderBooks.ts +4 -3
- package/models/Orders.ts +4 -3
- package/models/Permission.ts +3 -2
- package/models/PnLEntry.ts +6 -4
- package/models/PriceLevel.ts +6 -4
- package/models/ReqDoFaucet.ts +3 -2
- package/models/ReqGetAccount.ts +6 -4
- package/models/ReqGetAccountActiveOrders.ts +9 -6
- package/models/ReqGetAccountByL1Address.ts +3 -2
- package/models/ReqGetAccountInactiveOrders.ts +12 -8
- package/models/ReqGetAccountOrders.ts +9 -6
- package/models/ReqGetAccountPnL.ts +18 -12
- package/models/ReqGetBlock.ts +6 -4
- package/models/ReqGetBlockTxs.ts +6 -4
- package/models/ReqGetByAccount.ts +6 -4
- package/models/ReqGetCandlesticks.ts +15 -10
- package/models/ReqGetFundings.ts +15 -10
- package/models/ReqGetL1Tx.ts +3 -2
- package/models/ReqGetMarketSig.ts +9 -6
- package/models/ReqGetNextNonce.ts +6 -4
- package/models/ReqGetOrderBookDetails.ts +3 -2
- package/models/ReqGetOrderBookOrders.ts +6 -4
- package/models/ReqGetOrderBooks.ts +3 -2
- package/models/ReqGetPermission.ts +9 -6
- package/models/ReqGetRangeWithCursor.ts +3 -2
- package/models/ReqGetRangeWithIndex.ts +3 -2
- package/models/ReqGetRecentTrades.ts +6 -4
- package/models/ReqGetRollbacks.ts +9 -6
- package/models/ReqGetSubAccount.ts +9 -6
- package/models/ReqGetTrades.ts +12 -8
- package/models/ReqGetTx.ts +6 -4
- package/models/ReqSearch.ts +3 -2
- package/models/ResultCode.ts +3 -2
- package/models/Rollback.ts +12 -8
- package/models/Rollbacks.ts +7 -5
- package/models/Search.ts +3 -2
- package/models/SignBody.ts +3 -2
- package/models/SimpleOrder.ts +18 -12
- package/models/Status.ts +6 -4
- package/models/SubAccount.ts +24 -16
- package/models/SubAccounts.ts +13 -9
- package/models/Trade.ts +36 -24
- package/models/Trades.ts +4 -3
- package/models/Tx.ts +42 -28
- package/models/TxHash.ts +3 -2
- package/models/TxHashes.ts +77 -0
- package/models/Txs.ts +4 -3
- package/models/ValidatorInfo.ts +6 -4
- package/models/index.ts +1 -0
- package/openapi.json +828 -80
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -25,6 +25,12 @@
|
|
|
25
25
|
"schema": {
|
|
26
26
|
"$ref": "#/definitions/Status"
|
|
27
27
|
}
|
|
28
|
+
},
|
|
29
|
+
"400": {
|
|
30
|
+
"description": "Bad request",
|
|
31
|
+
"schema": {
|
|
32
|
+
"$ref": "#/definitions/ResultCode"
|
|
33
|
+
}
|
|
28
34
|
}
|
|
29
35
|
},
|
|
30
36
|
"tags": [
|
|
@@ -43,6 +49,12 @@
|
|
|
43
49
|
"schema": {
|
|
44
50
|
"$ref": "#/definitions/DetailedAccounts"
|
|
45
51
|
}
|
|
52
|
+
},
|
|
53
|
+
"400": {
|
|
54
|
+
"description": "Bad request",
|
|
55
|
+
"schema": {
|
|
56
|
+
"$ref": "#/definitions/ResultCode"
|
|
57
|
+
}
|
|
46
58
|
}
|
|
47
59
|
},
|
|
48
60
|
"parameters": [
|
|
@@ -91,6 +103,12 @@
|
|
|
91
103
|
"schema": {
|
|
92
104
|
"$ref": "#/definitions/Orders"
|
|
93
105
|
}
|
|
106
|
+
},
|
|
107
|
+
"400": {
|
|
108
|
+
"description": "Bad request",
|
|
109
|
+
"schema": {
|
|
110
|
+
"$ref": "#/definitions/ResultCode"
|
|
111
|
+
}
|
|
94
112
|
}
|
|
95
113
|
},
|
|
96
114
|
"parameters": [
|
|
@@ -137,6 +155,12 @@
|
|
|
137
155
|
"schema": {
|
|
138
156
|
"$ref": "#/definitions/Orders"
|
|
139
157
|
}
|
|
158
|
+
},
|
|
159
|
+
"400": {
|
|
160
|
+
"description": "Bad request",
|
|
161
|
+
"schema": {
|
|
162
|
+
"$ref": "#/definitions/ResultCode"
|
|
163
|
+
}
|
|
140
164
|
}
|
|
141
165
|
},
|
|
142
166
|
"parameters": [
|
|
@@ -208,6 +232,12 @@
|
|
|
208
232
|
"schema": {
|
|
209
233
|
"$ref": "#/definitions/Orders"
|
|
210
234
|
}
|
|
235
|
+
},
|
|
236
|
+
"400": {
|
|
237
|
+
"description": "Bad request",
|
|
238
|
+
"schema": {
|
|
239
|
+
"$ref": "#/definitions/ResultCode"
|
|
240
|
+
}
|
|
211
241
|
}
|
|
212
242
|
},
|
|
213
243
|
"parameters": [
|
|
@@ -260,6 +290,12 @@
|
|
|
260
290
|
"schema": {
|
|
261
291
|
"$ref": "#/definitions/Txs"
|
|
262
292
|
}
|
|
293
|
+
},
|
|
294
|
+
"400": {
|
|
295
|
+
"description": "Bad request",
|
|
296
|
+
"schema": {
|
|
297
|
+
"$ref": "#/definitions/ResultCode"
|
|
298
|
+
}
|
|
263
299
|
}
|
|
264
300
|
},
|
|
265
301
|
"parameters": [
|
|
@@ -306,6 +342,12 @@
|
|
|
306
342
|
"schema": {
|
|
307
343
|
"$ref": "#/definitions/Txs"
|
|
308
344
|
}
|
|
345
|
+
},
|
|
346
|
+
"400": {
|
|
347
|
+
"description": "Bad request",
|
|
348
|
+
"schema": {
|
|
349
|
+
"$ref": "#/definitions/ResultCode"
|
|
350
|
+
}
|
|
309
351
|
}
|
|
310
352
|
},
|
|
311
353
|
"parameters": [
|
|
@@ -368,6 +410,12 @@
|
|
|
368
410
|
"schema": {
|
|
369
411
|
"$ref": "#/definitions/MainAccounts"
|
|
370
412
|
}
|
|
413
|
+
},
|
|
414
|
+
"400": {
|
|
415
|
+
"description": "Bad request",
|
|
416
|
+
"schema": {
|
|
417
|
+
"$ref": "#/definitions/ResultCode"
|
|
418
|
+
}
|
|
371
419
|
}
|
|
372
420
|
},
|
|
373
421
|
"parameters": [
|
|
@@ -418,6 +466,12 @@
|
|
|
418
466
|
"schema": {
|
|
419
467
|
"$ref": "#/definitions/SubAccounts"
|
|
420
468
|
}
|
|
469
|
+
},
|
|
470
|
+
"400": {
|
|
471
|
+
"description": "Bad request",
|
|
472
|
+
"schema": {
|
|
473
|
+
"$ref": "#/definitions/ResultCode"
|
|
474
|
+
}
|
|
421
475
|
}
|
|
422
476
|
},
|
|
423
477
|
"parameters": [
|
|
@@ -447,6 +501,12 @@
|
|
|
447
501
|
"schema": {
|
|
448
502
|
"$ref": "#/definitions/Blocks"
|
|
449
503
|
}
|
|
504
|
+
},
|
|
505
|
+
"400": {
|
|
506
|
+
"description": "Bad request",
|
|
507
|
+
"schema": {
|
|
508
|
+
"$ref": "#/definitions/ResultCode"
|
|
509
|
+
}
|
|
450
510
|
}
|
|
451
511
|
},
|
|
452
512
|
"parameters": [
|
|
@@ -486,6 +546,12 @@
|
|
|
486
546
|
"schema": {
|
|
487
547
|
"$ref": "#/definitions/Txs"
|
|
488
548
|
}
|
|
549
|
+
},
|
|
550
|
+
"400": {
|
|
551
|
+
"description": "Bad request",
|
|
552
|
+
"schema": {
|
|
553
|
+
"$ref": "#/definitions/ResultCode"
|
|
554
|
+
}
|
|
489
555
|
}
|
|
490
556
|
},
|
|
491
557
|
"parameters": [
|
|
@@ -525,6 +591,12 @@
|
|
|
525
591
|
"schema": {
|
|
526
592
|
"$ref": "#/definitions/Blocks"
|
|
527
593
|
}
|
|
594
|
+
},
|
|
595
|
+
"400": {
|
|
596
|
+
"description": "Bad request",
|
|
597
|
+
"schema": {
|
|
598
|
+
"$ref": "#/definitions/ResultCode"
|
|
599
|
+
}
|
|
528
600
|
}
|
|
529
601
|
},
|
|
530
602
|
"parameters": [
|
|
@@ -575,6 +647,12 @@
|
|
|
575
647
|
"schema": {
|
|
576
648
|
"$ref": "#/definitions/Candlesticks"
|
|
577
649
|
}
|
|
650
|
+
},
|
|
651
|
+
"400": {
|
|
652
|
+
"description": "Bad request",
|
|
653
|
+
"schema": {
|
|
654
|
+
"$ref": "#/definitions/ResultCode"
|
|
655
|
+
}
|
|
578
656
|
}
|
|
579
657
|
},
|
|
580
658
|
"parameters": [
|
|
@@ -639,6 +717,12 @@
|
|
|
639
717
|
"schema": {
|
|
640
718
|
"$ref": "#/definitions/CurrentHeight"
|
|
641
719
|
}
|
|
720
|
+
},
|
|
721
|
+
"400": {
|
|
722
|
+
"description": "Bad request",
|
|
723
|
+
"schema": {
|
|
724
|
+
"$ref": "#/definitions/ResultCode"
|
|
725
|
+
}
|
|
642
726
|
}
|
|
643
727
|
},
|
|
644
728
|
"tags": [
|
|
@@ -657,6 +741,12 @@
|
|
|
657
741
|
"schema": {
|
|
658
742
|
"$ref": "#/definitions/ExchangeStats"
|
|
659
743
|
}
|
|
744
|
+
},
|
|
745
|
+
"400": {
|
|
746
|
+
"description": "Bad request",
|
|
747
|
+
"schema": {
|
|
748
|
+
"$ref": "#/definitions/ResultCode"
|
|
749
|
+
}
|
|
660
750
|
}
|
|
661
751
|
},
|
|
662
752
|
"tags": [
|
|
@@ -675,6 +765,12 @@
|
|
|
675
765
|
"schema": {
|
|
676
766
|
"$ref": "#/definitions/ResultCode"
|
|
677
767
|
}
|
|
768
|
+
},
|
|
769
|
+
"400": {
|
|
770
|
+
"description": "Bad request",
|
|
771
|
+
"schema": {
|
|
772
|
+
"$ref": "#/definitions/ResultCode"
|
|
773
|
+
}
|
|
678
774
|
}
|
|
679
775
|
},
|
|
680
776
|
"parameters": [
|
|
@@ -704,6 +800,12 @@
|
|
|
704
800
|
"schema": {
|
|
705
801
|
"$ref": "#/definitions/Fundings"
|
|
706
802
|
}
|
|
803
|
+
},
|
|
804
|
+
"400": {
|
|
805
|
+
"description": "Bad request",
|
|
806
|
+
"schema": {
|
|
807
|
+
"$ref": "#/definitions/ResultCode"
|
|
808
|
+
}
|
|
707
809
|
}
|
|
708
810
|
},
|
|
709
811
|
"parameters": [
|
|
@@ -764,6 +866,12 @@
|
|
|
764
866
|
"schema": {
|
|
765
867
|
"$ref": "#/definitions/SignBody"
|
|
766
868
|
}
|
|
869
|
+
},
|
|
870
|
+
"400": {
|
|
871
|
+
"description": "Bad request",
|
|
872
|
+
"schema": {
|
|
873
|
+
"$ref": "#/definitions/ResultCode"
|
|
874
|
+
}
|
|
767
875
|
}
|
|
768
876
|
},
|
|
769
877
|
"parameters": [
|
|
@@ -795,6 +903,12 @@
|
|
|
795
903
|
"schema": {
|
|
796
904
|
"$ref": "#/definitions/Layer1BasicInfo"
|
|
797
905
|
}
|
|
906
|
+
},
|
|
907
|
+
"400": {
|
|
908
|
+
"description": "Bad request",
|
|
909
|
+
"schema": {
|
|
910
|
+
"$ref": "#/definitions/ResultCode"
|
|
911
|
+
}
|
|
798
912
|
}
|
|
799
913
|
},
|
|
800
914
|
"tags": [
|
|
@@ -813,6 +927,12 @@
|
|
|
813
927
|
"schema": {
|
|
814
928
|
"$ref": "#/definitions/Layer2BasicInfo"
|
|
815
929
|
}
|
|
930
|
+
},
|
|
931
|
+
"400": {
|
|
932
|
+
"description": "Bad request",
|
|
933
|
+
"schema": {
|
|
934
|
+
"$ref": "#/definitions/ResultCode"
|
|
935
|
+
}
|
|
816
936
|
}
|
|
817
937
|
},
|
|
818
938
|
"tags": [
|
|
@@ -831,6 +951,12 @@
|
|
|
831
951
|
"schema": {
|
|
832
952
|
"$ref": "#/definitions/NextNonce"
|
|
833
953
|
}
|
|
954
|
+
},
|
|
955
|
+
"400": {
|
|
956
|
+
"description": "Bad request",
|
|
957
|
+
"schema": {
|
|
958
|
+
"$ref": "#/definitions/ResultCode"
|
|
959
|
+
}
|
|
834
960
|
}
|
|
835
961
|
},
|
|
836
962
|
"parameters": [
|
|
@@ -868,6 +994,12 @@
|
|
|
868
994
|
"schema": {
|
|
869
995
|
"$ref": "#/definitions/OrderBookDetails"
|
|
870
996
|
}
|
|
997
|
+
},
|
|
998
|
+
"400": {
|
|
999
|
+
"description": "Bad request",
|
|
1000
|
+
"schema": {
|
|
1001
|
+
"$ref": "#/definitions/ResultCode"
|
|
1002
|
+
}
|
|
871
1003
|
}
|
|
872
1004
|
},
|
|
873
1005
|
"parameters": [
|
|
@@ -908,6 +1040,12 @@
|
|
|
908
1040
|
"schema": {
|
|
909
1041
|
"$ref": "#/definitions/OrderBookOrders"
|
|
910
1042
|
}
|
|
1043
|
+
},
|
|
1044
|
+
"400": {
|
|
1045
|
+
"description": "Bad request",
|
|
1046
|
+
"schema": {
|
|
1047
|
+
"$ref": "#/definitions/ResultCode"
|
|
1048
|
+
}
|
|
911
1049
|
}
|
|
912
1050
|
},
|
|
913
1051
|
"parameters": [
|
|
@@ -947,6 +1085,12 @@
|
|
|
947
1085
|
"schema": {
|
|
948
1086
|
"$ref": "#/definitions/OrderBooks"
|
|
949
1087
|
}
|
|
1088
|
+
},
|
|
1089
|
+
"400": {
|
|
1090
|
+
"description": "Bad request",
|
|
1091
|
+
"schema": {
|
|
1092
|
+
"$ref": "#/definitions/ResultCode"
|
|
1093
|
+
}
|
|
950
1094
|
}
|
|
951
1095
|
},
|
|
952
1096
|
"parameters": [
|
|
@@ -987,6 +1131,12 @@
|
|
|
987
1131
|
"schema": {
|
|
988
1132
|
"$ref": "#/definitions/Txs"
|
|
989
1133
|
}
|
|
1134
|
+
},
|
|
1135
|
+
"400": {
|
|
1136
|
+
"description": "Bad request",
|
|
1137
|
+
"schema": {
|
|
1138
|
+
"$ref": "#/definitions/ResultCode"
|
|
1139
|
+
}
|
|
990
1140
|
}
|
|
991
1141
|
},
|
|
992
1142
|
"parameters": [
|
|
@@ -1026,6 +1176,12 @@
|
|
|
1026
1176
|
"schema": {
|
|
1027
1177
|
"$ref": "#/definitions/Permission"
|
|
1028
1178
|
}
|
|
1179
|
+
},
|
|
1180
|
+
"400": {
|
|
1181
|
+
"description": "Bad request",
|
|
1182
|
+
"schema": {
|
|
1183
|
+
"$ref": "#/definitions/ResultCode"
|
|
1184
|
+
}
|
|
1029
1185
|
}
|
|
1030
1186
|
},
|
|
1031
1187
|
"parameters": [
|
|
@@ -1072,6 +1228,12 @@
|
|
|
1072
1228
|
"schema": {
|
|
1073
1229
|
"$ref": "#/definitions/AccountPnL"
|
|
1074
1230
|
}
|
|
1231
|
+
},
|
|
1232
|
+
"400": {
|
|
1233
|
+
"description": "Bad request",
|
|
1234
|
+
"schema": {
|
|
1235
|
+
"$ref": "#/definitions/ResultCode"
|
|
1236
|
+
}
|
|
1075
1237
|
}
|
|
1076
1238
|
},
|
|
1077
1239
|
"parameters": [
|
|
@@ -1146,6 +1308,12 @@
|
|
|
1146
1308
|
"schema": {
|
|
1147
1309
|
"$ref": "#/definitions/MarketSig"
|
|
1148
1310
|
}
|
|
1311
|
+
},
|
|
1312
|
+
"400": {
|
|
1313
|
+
"description": "Bad request",
|
|
1314
|
+
"schema": {
|
|
1315
|
+
"$ref": "#/definitions/ResultCode"
|
|
1316
|
+
}
|
|
1149
1317
|
}
|
|
1150
1318
|
},
|
|
1151
1319
|
"parameters": [
|
|
@@ -1190,6 +1358,12 @@
|
|
|
1190
1358
|
"schema": {
|
|
1191
1359
|
"$ref": "#/definitions/Trades"
|
|
1192
1360
|
}
|
|
1361
|
+
},
|
|
1362
|
+
"400": {
|
|
1363
|
+
"description": "Bad request",
|
|
1364
|
+
"schema": {
|
|
1365
|
+
"$ref": "#/definitions/ResultCode"
|
|
1366
|
+
}
|
|
1193
1367
|
}
|
|
1194
1368
|
},
|
|
1195
1369
|
"parameters": [
|
|
@@ -1229,6 +1403,12 @@
|
|
|
1229
1403
|
"schema": {
|
|
1230
1404
|
"$ref": "#/definitions/Rollbacks"
|
|
1231
1405
|
}
|
|
1406
|
+
},
|
|
1407
|
+
"400": {
|
|
1408
|
+
"description": "Bad request",
|
|
1409
|
+
"schema": {
|
|
1410
|
+
"$ref": "#/definitions/ResultCode"
|
|
1411
|
+
}
|
|
1232
1412
|
}
|
|
1233
1413
|
},
|
|
1234
1414
|
"parameters": [
|
|
@@ -1277,6 +1457,12 @@
|
|
|
1277
1457
|
"schema": {
|
|
1278
1458
|
"$ref": "#/definitions/Search"
|
|
1279
1459
|
}
|
|
1460
|
+
},
|
|
1461
|
+
"400": {
|
|
1462
|
+
"description": "Bad request",
|
|
1463
|
+
"schema": {
|
|
1464
|
+
"$ref": "#/definitions/ResultCode"
|
|
1465
|
+
}
|
|
1280
1466
|
}
|
|
1281
1467
|
},
|
|
1282
1468
|
"parameters": [
|
|
@@ -1306,6 +1492,12 @@
|
|
|
1306
1492
|
"schema": {
|
|
1307
1493
|
"$ref": "#/definitions/TxHash"
|
|
1308
1494
|
}
|
|
1495
|
+
},
|
|
1496
|
+
"400": {
|
|
1497
|
+
"description": "Bad request",
|
|
1498
|
+
"schema": {
|
|
1499
|
+
"$ref": "#/definitions/ResultCode"
|
|
1500
|
+
}
|
|
1309
1501
|
}
|
|
1310
1502
|
},
|
|
1311
1503
|
"parameters": [
|
|
@@ -1327,6 +1519,43 @@
|
|
|
1327
1519
|
"description": "Send raw transaction"
|
|
1328
1520
|
}
|
|
1329
1521
|
},
|
|
1522
|
+
"/api/v1/sendTxBatch": {
|
|
1523
|
+
"post": {
|
|
1524
|
+
"summary": "SendTxBatch",
|
|
1525
|
+
"operationId": "SendTxBatch",
|
|
1526
|
+
"responses": {
|
|
1527
|
+
"200": {
|
|
1528
|
+
"description": "A successful response.",
|
|
1529
|
+
"schema": {
|
|
1530
|
+
"$ref": "#/definitions/TxHashes"
|
|
1531
|
+
}
|
|
1532
|
+
},
|
|
1533
|
+
"400": {
|
|
1534
|
+
"description": "Bad request",
|
|
1535
|
+
"schema": {
|
|
1536
|
+
"$ref": "#/definitions/ResultCode"
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
},
|
|
1540
|
+
"parameters": [
|
|
1541
|
+
{
|
|
1542
|
+
"name": "body",
|
|
1543
|
+
"in": "body",
|
|
1544
|
+
"required": true,
|
|
1545
|
+
"schema": {
|
|
1546
|
+
"$ref": "#/definitions/ReqSendTxBatch"
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
],
|
|
1550
|
+
"tags": [
|
|
1551
|
+
"transaction"
|
|
1552
|
+
],
|
|
1553
|
+
"consumes": [
|
|
1554
|
+
"multipart/form-data"
|
|
1555
|
+
],
|
|
1556
|
+
"description": "Send multiple raw transactions"
|
|
1557
|
+
}
|
|
1558
|
+
},
|
|
1330
1559
|
"/api/v1/trades": {
|
|
1331
1560
|
"get": {
|
|
1332
1561
|
"summary": "GetTrades",
|
|
@@ -1337,6 +1566,12 @@
|
|
|
1337
1566
|
"schema": {
|
|
1338
1567
|
"$ref": "#/definitions/Trades"
|
|
1339
1568
|
}
|
|
1569
|
+
},
|
|
1570
|
+
"400": {
|
|
1571
|
+
"description": "Bad request",
|
|
1572
|
+
"schema": {
|
|
1573
|
+
"$ref": "#/definitions/ResultCode"
|
|
1574
|
+
}
|
|
1340
1575
|
}
|
|
1341
1576
|
},
|
|
1342
1577
|
"parameters": [
|
|
@@ -1401,6 +1636,12 @@
|
|
|
1401
1636
|
"schema": {
|
|
1402
1637
|
"$ref": "#/definitions/EnrichedTx"
|
|
1403
1638
|
}
|
|
1639
|
+
},
|
|
1640
|
+
"400": {
|
|
1641
|
+
"description": "Bad request",
|
|
1642
|
+
"schema": {
|
|
1643
|
+
"$ref": "#/definitions/ResultCode"
|
|
1644
|
+
}
|
|
1404
1645
|
}
|
|
1405
1646
|
},
|
|
1406
1647
|
"parameters": [
|
|
@@ -1440,6 +1681,12 @@
|
|
|
1440
1681
|
"schema": {
|
|
1441
1682
|
"$ref": "#/definitions/EnrichedTx"
|
|
1442
1683
|
}
|
|
1684
|
+
},
|
|
1685
|
+
"400": {
|
|
1686
|
+
"description": "Bad request",
|
|
1687
|
+
"schema": {
|
|
1688
|
+
"$ref": "#/definitions/ResultCode"
|
|
1689
|
+
}
|
|
1443
1690
|
}
|
|
1444
1691
|
},
|
|
1445
1692
|
"parameters": [
|
|
@@ -1469,6 +1716,12 @@
|
|
|
1469
1716
|
"schema": {
|
|
1470
1717
|
"$ref": "#/definitions/Txs"
|
|
1471
1718
|
}
|
|
1719
|
+
},
|
|
1720
|
+
"400": {
|
|
1721
|
+
"description": "Bad request",
|
|
1722
|
+
"schema": {
|
|
1723
|
+
"$ref": "#/definitions/ResultCode"
|
|
1724
|
+
}
|
|
1472
1725
|
}
|
|
1473
1726
|
},
|
|
1474
1727
|
"parameters": [
|
|
@@ -1534,7 +1787,15 @@
|
|
|
1534
1787
|
"example": "1276.0"
|
|
1535
1788
|
}
|
|
1536
1789
|
},
|
|
1537
|
-
"title": "AccountMarketStats"
|
|
1790
|
+
"title": "AccountMarketStats",
|
|
1791
|
+
"required": [
|
|
1792
|
+
"market_id",
|
|
1793
|
+
"daily_trades_count",
|
|
1794
|
+
"daily_base_token_volume",
|
|
1795
|
+
"daily_quote_token_volume",
|
|
1796
|
+
"open_position_base",
|
|
1797
|
+
"open_position_quote"
|
|
1798
|
+
]
|
|
1538
1799
|
},
|
|
1539
1800
|
"AccountPnL": {
|
|
1540
1801
|
"type": "object",
|
|
@@ -1558,7 +1819,11 @@
|
|
|
1558
1819
|
}
|
|
1559
1820
|
}
|
|
1560
1821
|
},
|
|
1561
|
-
"title": "AccountPnL"
|
|
1822
|
+
"title": "AccountPnL",
|
|
1823
|
+
"required": [
|
|
1824
|
+
"resolution",
|
|
1825
|
+
"pnl"
|
|
1826
|
+
]
|
|
1562
1827
|
},
|
|
1563
1828
|
"AccountPosition": {
|
|
1564
1829
|
"type": "object",
|
|
@@ -1610,7 +1875,20 @@
|
|
|
1610
1875
|
"example": "2.000000"
|
|
1611
1876
|
}
|
|
1612
1877
|
},
|
|
1613
|
-
"title": "AccountPosition"
|
|
1878
|
+
"title": "AccountPosition",
|
|
1879
|
+
"required": [
|
|
1880
|
+
"market_id",
|
|
1881
|
+
"name",
|
|
1882
|
+
"symbol",
|
|
1883
|
+
"sign",
|
|
1884
|
+
"position",
|
|
1885
|
+
"ask_order_size",
|
|
1886
|
+
"bid_order_size",
|
|
1887
|
+
"avg_entry_price",
|
|
1888
|
+
"position_value",
|
|
1889
|
+
"unrealized_pnl",
|
|
1890
|
+
"realized_pnl"
|
|
1891
|
+
]
|
|
1614
1892
|
},
|
|
1615
1893
|
"AccountStats": {
|
|
1616
1894
|
"type": "object",
|
|
@@ -1636,7 +1914,14 @@
|
|
|
1636
1914
|
"example": "199955"
|
|
1637
1915
|
}
|
|
1638
1916
|
},
|
|
1639
|
-
"title": "AccountStats"
|
|
1917
|
+
"title": "AccountStats",
|
|
1918
|
+
"required": [
|
|
1919
|
+
"portfolio_value",
|
|
1920
|
+
"leverage",
|
|
1921
|
+
"free_collateral",
|
|
1922
|
+
"margin_usage",
|
|
1923
|
+
"buying_power"
|
|
1924
|
+
]
|
|
1640
1925
|
},
|
|
1641
1926
|
"Block": {
|
|
1642
1927
|
"type": "object",
|
|
@@ -1691,7 +1976,22 @@
|
|
|
1691
1976
|
"format": "uin16"
|
|
1692
1977
|
}
|
|
1693
1978
|
},
|
|
1694
|
-
"title": "Block"
|
|
1979
|
+
"title": "Block",
|
|
1980
|
+
"required": [
|
|
1981
|
+
"commitment",
|
|
1982
|
+
"height",
|
|
1983
|
+
"state_root",
|
|
1984
|
+
"priority_operations",
|
|
1985
|
+
"on_chain_l2_operations",
|
|
1986
|
+
"pending_on_chain_operations_pub_data",
|
|
1987
|
+
"committed_tx_hash",
|
|
1988
|
+
"committed_at",
|
|
1989
|
+
"verified_tx_hash",
|
|
1990
|
+
"verified_at",
|
|
1991
|
+
"txs",
|
|
1992
|
+
"status",
|
|
1993
|
+
"size"
|
|
1994
|
+
]
|
|
1695
1995
|
},
|
|
1696
1996
|
"Blocks": {
|
|
1697
1997
|
"type": "object",
|
|
@@ -1715,7 +2015,11 @@
|
|
|
1715
2015
|
}
|
|
1716
2016
|
}
|
|
1717
2017
|
},
|
|
1718
|
-
"title": "Blocks"
|
|
2018
|
+
"title": "Blocks",
|
|
2019
|
+
"required": [
|
|
2020
|
+
"total",
|
|
2021
|
+
"blocks"
|
|
2022
|
+
]
|
|
1719
2023
|
},
|
|
1720
2024
|
"Candlestick": {
|
|
1721
2025
|
"type": "object",
|
|
@@ -1756,7 +2060,16 @@
|
|
|
1756
2060
|
"example": "93566.25"
|
|
1757
2061
|
}
|
|
1758
2062
|
},
|
|
1759
|
-
"title": "Candlestick"
|
|
2063
|
+
"title": "Candlestick",
|
|
2064
|
+
"required": [
|
|
2065
|
+
"timestamp",
|
|
2066
|
+
"open",
|
|
2067
|
+
"high",
|
|
2068
|
+
"low",
|
|
2069
|
+
"close",
|
|
2070
|
+
"volume0",
|
|
2071
|
+
"volume1"
|
|
2072
|
+
]
|
|
1760
2073
|
},
|
|
1761
2074
|
"Candlesticks": {
|
|
1762
2075
|
"type": "object",
|
|
@@ -1780,7 +2093,11 @@
|
|
|
1780
2093
|
}
|
|
1781
2094
|
}
|
|
1782
2095
|
},
|
|
1783
|
-
"title": "Candlesticks"
|
|
2096
|
+
"title": "Candlesticks",
|
|
2097
|
+
"required": [
|
|
2098
|
+
"resolution",
|
|
2099
|
+
"candlesticks"
|
|
2100
|
+
]
|
|
1784
2101
|
},
|
|
1785
2102
|
"ContractAddress": {
|
|
1786
2103
|
"type": "object",
|
|
@@ -1794,7 +2111,11 @@
|
|
|
1794
2111
|
"example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
|
|
1795
2112
|
}
|
|
1796
2113
|
},
|
|
1797
|
-
"title": "ContractAddress"
|
|
2114
|
+
"title": "ContractAddress",
|
|
2115
|
+
"required": [
|
|
2116
|
+
"name",
|
|
2117
|
+
"address"
|
|
2118
|
+
]
|
|
1798
2119
|
},
|
|
1799
2120
|
"CurrentHeight": {
|
|
1800
2121
|
"type": "object",
|
|
@@ -1812,7 +2133,10 @@
|
|
|
1812
2133
|
"format": "int64"
|
|
1813
2134
|
}
|
|
1814
2135
|
},
|
|
1815
|
-
"title": "CurrentHeight"
|
|
2136
|
+
"title": "CurrentHeight",
|
|
2137
|
+
"required": [
|
|
2138
|
+
"height"
|
|
2139
|
+
]
|
|
1816
2140
|
},
|
|
1817
2141
|
"Cursor": {
|
|
1818
2142
|
"type": "object",
|
|
@@ -1888,7 +2212,12 @@
|
|
|
1888
2212
|
}
|
|
1889
2213
|
}
|
|
1890
2214
|
},
|
|
1891
|
-
"title": "DetailedAccount"
|
|
2215
|
+
"title": "DetailedAccount",
|
|
2216
|
+
"required": [
|
|
2217
|
+
"positions",
|
|
2218
|
+
"total_asset_value",
|
|
2219
|
+
"market_stats"
|
|
2220
|
+
]
|
|
1892
2221
|
},
|
|
1893
2222
|
"DetailedAccounts": {
|
|
1894
2223
|
"type": "object",
|
|
@@ -1913,7 +2242,11 @@
|
|
|
1913
2242
|
}
|
|
1914
2243
|
}
|
|
1915
2244
|
},
|
|
1916
|
-
"title": "DetailedAccounts"
|
|
2245
|
+
"title": "DetailedAccounts",
|
|
2246
|
+
"required": [
|
|
2247
|
+
"total",
|
|
2248
|
+
"accounts"
|
|
2249
|
+
]
|
|
1917
2250
|
},
|
|
1918
2251
|
"EnrichedTx": {
|
|
1919
2252
|
"type": "object",
|
|
@@ -2010,7 +2343,12 @@
|
|
|
2010
2343
|
"example": "1640995200"
|
|
2011
2344
|
}
|
|
2012
2345
|
},
|
|
2013
|
-
"title": "EnrichedTx"
|
|
2346
|
+
"title": "EnrichedTx",
|
|
2347
|
+
"required": [
|
|
2348
|
+
"committed_at",
|
|
2349
|
+
"verified_at",
|
|
2350
|
+
"executed_at"
|
|
2351
|
+
]
|
|
2014
2352
|
},
|
|
2015
2353
|
"ExchangeStats": {
|
|
2016
2354
|
"type": "object",
|
|
@@ -2046,7 +2384,13 @@
|
|
|
2046
2384
|
"example": "68"
|
|
2047
2385
|
}
|
|
2048
2386
|
},
|
|
2049
|
-
"title": "ExchangeStats"
|
|
2387
|
+
"title": "ExchangeStats",
|
|
2388
|
+
"required": [
|
|
2389
|
+
"total",
|
|
2390
|
+
"order_book_stats",
|
|
2391
|
+
"daily_usd_volume",
|
|
2392
|
+
"daily_trades_count"
|
|
2393
|
+
]
|
|
2050
2394
|
},
|
|
2051
2395
|
"Funding": {
|
|
2052
2396
|
"type": "object",
|
|
@@ -2069,7 +2413,13 @@
|
|
|
2069
2413
|
"example": "long"
|
|
2070
2414
|
}
|
|
2071
2415
|
},
|
|
2072
|
-
"title": "Funding"
|
|
2416
|
+
"title": "Funding",
|
|
2417
|
+
"required": [
|
|
2418
|
+
"timestamp",
|
|
2419
|
+
"value",
|
|
2420
|
+
"rate",
|
|
2421
|
+
"direction"
|
|
2422
|
+
]
|
|
2073
2423
|
},
|
|
2074
2424
|
"Fundings": {
|
|
2075
2425
|
"type": "object",
|
|
@@ -2093,7 +2443,11 @@
|
|
|
2093
2443
|
}
|
|
2094
2444
|
}
|
|
2095
2445
|
},
|
|
2096
|
-
"title": "Fundings"
|
|
2446
|
+
"title": "Fundings",
|
|
2447
|
+
"required": [
|
|
2448
|
+
"resolution",
|
|
2449
|
+
"fundings"
|
|
2450
|
+
]
|
|
2097
2451
|
},
|
|
2098
2452
|
"L1ProviderInfo": {
|
|
2099
2453
|
"type": "object",
|
|
@@ -2117,7 +2471,13 @@
|
|
|
2117
2471
|
"type": "string"
|
|
2118
2472
|
}
|
|
2119
2473
|
},
|
|
2120
|
-
"title": "L1ProviderInfo"
|
|
2474
|
+
"title": "L1ProviderInfo",
|
|
2475
|
+
"required": [
|
|
2476
|
+
"chainId",
|
|
2477
|
+
"networkId",
|
|
2478
|
+
"latestBlockNumber",
|
|
2479
|
+
"NetworkRpc"
|
|
2480
|
+
]
|
|
2121
2481
|
},
|
|
2122
2482
|
"Layer1BasicInfo": {
|
|
2123
2483
|
"type": "object",
|
|
@@ -2169,7 +2529,16 @@
|
|
|
2169
2529
|
"example": "45434"
|
|
2170
2530
|
}
|
|
2171
2531
|
},
|
|
2172
|
-
"title": "Layer1BasicInfo"
|
|
2532
|
+
"title": "Layer1BasicInfo",
|
|
2533
|
+
"required": [
|
|
2534
|
+
"l1_providers",
|
|
2535
|
+
"l1_providers_health",
|
|
2536
|
+
"validator_Info",
|
|
2537
|
+
"contract_addresses",
|
|
2538
|
+
"latest_l1_generic_block",
|
|
2539
|
+
"latest_l1_governance_block",
|
|
2540
|
+
"latest_l1_desert_block"
|
|
2541
|
+
]
|
|
2173
2542
|
},
|
|
2174
2543
|
"Layer2BasicInfo": {
|
|
2175
2544
|
"type": "object",
|
|
@@ -2198,7 +2567,12 @@
|
|
|
2198
2567
|
"example": "75434"
|
|
2199
2568
|
}
|
|
2200
2569
|
},
|
|
2201
|
-
"title": "Layer2BasicInfo"
|
|
2570
|
+
"title": "Layer2BasicInfo",
|
|
2571
|
+
"required": [
|
|
2572
|
+
"block_committed",
|
|
2573
|
+
"block_verified",
|
|
2574
|
+
"total_transaction_count"
|
|
2575
|
+
]
|
|
2202
2576
|
},
|
|
2203
2577
|
"MainAccount": {
|
|
2204
2578
|
"type": "object",
|
|
@@ -2226,7 +2600,12 @@
|
|
|
2226
2600
|
"example": "1"
|
|
2227
2601
|
}
|
|
2228
2602
|
},
|
|
2229
|
-
"title": "MainAccount"
|
|
2603
|
+
"title": "MainAccount",
|
|
2604
|
+
"required": [
|
|
2605
|
+
"index",
|
|
2606
|
+
"l1_address",
|
|
2607
|
+
"status"
|
|
2608
|
+
]
|
|
2230
2609
|
},
|
|
2231
2610
|
"MainAccounts": {
|
|
2232
2611
|
"type": "object",
|
|
@@ -2241,7 +2620,7 @@
|
|
|
2241
2620
|
},
|
|
2242
2621
|
"total": {
|
|
2243
2622
|
"type": "integer",
|
|
2244
|
-
"format": "
|
|
2623
|
+
"format": "int32",
|
|
2245
2624
|
"example": "1"
|
|
2246
2625
|
},
|
|
2247
2626
|
"accounts": {
|
|
@@ -2251,7 +2630,11 @@
|
|
|
2251
2630
|
}
|
|
2252
2631
|
}
|
|
2253
2632
|
},
|
|
2254
|
-
"title": "MainAccounts"
|
|
2633
|
+
"title": "MainAccounts",
|
|
2634
|
+
"required": [
|
|
2635
|
+
"total",
|
|
2636
|
+
"accounts"
|
|
2637
|
+
]
|
|
2255
2638
|
},
|
|
2256
2639
|
"MarketInfo": {
|
|
2257
2640
|
"type": "object",
|
|
@@ -2308,7 +2691,20 @@
|
|
|
2308
2691
|
"example": "3.66"
|
|
2309
2692
|
}
|
|
2310
2693
|
},
|
|
2311
|
-
"title": "MarketInfo"
|
|
2694
|
+
"title": "MarketInfo",
|
|
2695
|
+
"required": [
|
|
2696
|
+
"market_id",
|
|
2697
|
+
"index_price",
|
|
2698
|
+
"mark_price",
|
|
2699
|
+
"last_trade_price",
|
|
2700
|
+
"funding_rate",
|
|
2701
|
+
"funding_timestamp",
|
|
2702
|
+
"daily_base_token_volume",
|
|
2703
|
+
"daily_quote_token_volume",
|
|
2704
|
+
"daily_price_low",
|
|
2705
|
+
"daily_price_high",
|
|
2706
|
+
"daily_price_change"
|
|
2707
|
+
]
|
|
2312
2708
|
},
|
|
2313
2709
|
"MarketSig": {
|
|
2314
2710
|
"type": "object",
|
|
@@ -2341,7 +2737,13 @@
|
|
|
2341
2737
|
"example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
|
|
2342
2738
|
}
|
|
2343
2739
|
},
|
|
2344
|
-
"title": "MarketSig"
|
|
2740
|
+
"title": "MarketSig",
|
|
2741
|
+
"required": [
|
|
2742
|
+
"can_be_filled",
|
|
2743
|
+
"is_ask",
|
|
2744
|
+
"quote_amount",
|
|
2745
|
+
"signature"
|
|
2746
|
+
]
|
|
2345
2747
|
},
|
|
2346
2748
|
"NextNonce": {
|
|
2347
2749
|
"type": "object",
|
|
@@ -2360,7 +2762,10 @@
|
|
|
2360
2762
|
"example": "722"
|
|
2361
2763
|
}
|
|
2362
2764
|
},
|
|
2363
|
-
"title": "NextNonce"
|
|
2765
|
+
"title": "NextNonce",
|
|
2766
|
+
"required": [
|
|
2767
|
+
"nonce"
|
|
2768
|
+
]
|
|
2364
2769
|
},
|
|
2365
2770
|
"Order": {
|
|
2366
2771
|
"type": "object",
|
|
@@ -2453,7 +2858,26 @@
|
|
|
2453
2858
|
"example": "1640995200"
|
|
2454
2859
|
}
|
|
2455
2860
|
},
|
|
2456
|
-
"title": "Order"
|
|
2861
|
+
"title": "Order",
|
|
2862
|
+
"required": [
|
|
2863
|
+
"market_index",
|
|
2864
|
+
"-",
|
|
2865
|
+
"owner_account_index",
|
|
2866
|
+
"initial_base_amount",
|
|
2867
|
+
"remaining_base_amount",
|
|
2868
|
+
"filled_base_amount",
|
|
2869
|
+
"filled_quote_amount",
|
|
2870
|
+
"price",
|
|
2871
|
+
"base_size",
|
|
2872
|
+
"base_price",
|
|
2873
|
+
"nonce",
|
|
2874
|
+
"is_ask",
|
|
2875
|
+
"side",
|
|
2876
|
+
"type",
|
|
2877
|
+
"status",
|
|
2878
|
+
"block_height",
|
|
2879
|
+
"timestamp"
|
|
2880
|
+
]
|
|
2457
2881
|
},
|
|
2458
2882
|
"OrderBook": {
|
|
2459
2883
|
"type": "object",
|
|
@@ -2507,7 +2931,19 @@
|
|
|
2507
2931
|
"example": "4"
|
|
2508
2932
|
}
|
|
2509
2933
|
},
|
|
2510
|
-
"title": "OrderBook"
|
|
2934
|
+
"title": "OrderBook",
|
|
2935
|
+
"required": [
|
|
2936
|
+
"symbol",
|
|
2937
|
+
"market_id",
|
|
2938
|
+
"status",
|
|
2939
|
+
"taker_fee",
|
|
2940
|
+
"maker_fee",
|
|
2941
|
+
"min_base_amount",
|
|
2942
|
+
"min_quote_amount",
|
|
2943
|
+
"supported_size_decimals",
|
|
2944
|
+
"supported_price_decimals",
|
|
2945
|
+
"supported_quote_decimals"
|
|
2946
|
+
]
|
|
2511
2947
|
},
|
|
2512
2948
|
"OrderBookDepth": {
|
|
2513
2949
|
"type": "object",
|
|
@@ -2538,7 +2974,12 @@
|
|
|
2538
2974
|
"example": "0"
|
|
2539
2975
|
}
|
|
2540
2976
|
},
|
|
2541
|
-
"title": "OrderBookDepth"
|
|
2977
|
+
"title": "OrderBookDepth",
|
|
2978
|
+
"required": [
|
|
2979
|
+
"asks",
|
|
2980
|
+
"bids",
|
|
2981
|
+
"offset"
|
|
2982
|
+
]
|
|
2542
2983
|
},
|
|
2543
2984
|
"OrderBookDetail": {
|
|
2544
2985
|
"type": "object",
|
|
@@ -2685,7 +3126,27 @@
|
|
|
2685
3126
|
}
|
|
2686
3127
|
}
|
|
2687
3128
|
},
|
|
2688
|
-
"title": "OrderBookDetail"
|
|
3129
|
+
"title": "OrderBookDetail",
|
|
3130
|
+
"required": [
|
|
3131
|
+
"decimal",
|
|
3132
|
+
"price_tick",
|
|
3133
|
+
"quote_multiplier",
|
|
3134
|
+
"initial_margin",
|
|
3135
|
+
"maintenance_margin",
|
|
3136
|
+
"closeoute_margin",
|
|
3137
|
+
"ask_nonce",
|
|
3138
|
+
"bid_nonce",
|
|
3139
|
+
"last_trade_price",
|
|
3140
|
+
"daily_trades_count",
|
|
3141
|
+
"daily_base_token_volume",
|
|
3142
|
+
"daily_quote_token_volume",
|
|
3143
|
+
"daily_price_low",
|
|
3144
|
+
"daily_price_high",
|
|
3145
|
+
"daily_price_change",
|
|
3146
|
+
"open_position_base",
|
|
3147
|
+
"open_position_quote",
|
|
3148
|
+
"daily_chart"
|
|
3149
|
+
]
|
|
2689
3150
|
},
|
|
2690
3151
|
"OrderBookDetails": {
|
|
2691
3152
|
"type": "object",
|
|
@@ -2705,7 +3166,10 @@
|
|
|
2705
3166
|
}
|
|
2706
3167
|
}
|
|
2707
3168
|
},
|
|
2708
|
-
"title": "OrderBookDetails"
|
|
3169
|
+
"title": "OrderBookDetails",
|
|
3170
|
+
"required": [
|
|
3171
|
+
"order_book_details"
|
|
3172
|
+
]
|
|
2709
3173
|
},
|
|
2710
3174
|
"OrderBookOrders": {
|
|
2711
3175
|
"type": "object",
|
|
@@ -2741,7 +3205,13 @@
|
|
|
2741
3205
|
}
|
|
2742
3206
|
}
|
|
2743
3207
|
},
|
|
2744
|
-
"title": "OrderBookOrders"
|
|
3208
|
+
"title": "OrderBookOrders",
|
|
3209
|
+
"required": [
|
|
3210
|
+
"total_asks",
|
|
3211
|
+
"asks",
|
|
3212
|
+
"total_bids",
|
|
3213
|
+
"bids"
|
|
3214
|
+
]
|
|
2745
3215
|
},
|
|
2746
3216
|
"OrderBookStats": {
|
|
2747
3217
|
"type": "object",
|
|
@@ -2776,7 +3246,15 @@
|
|
|
2776
3246
|
"example": "3.66"
|
|
2777
3247
|
}
|
|
2778
3248
|
},
|
|
2779
|
-
"title": "OrderBookStats"
|
|
3249
|
+
"title": "OrderBookStats",
|
|
3250
|
+
"required": [
|
|
3251
|
+
"symbol",
|
|
3252
|
+
"last_trade_price",
|
|
3253
|
+
"daily_trades_count",
|
|
3254
|
+
"daily_base_token_volume",
|
|
3255
|
+
"daily_quote_token_volume",
|
|
3256
|
+
"daily_price_change"
|
|
3257
|
+
]
|
|
2780
3258
|
},
|
|
2781
3259
|
"OrderBooks": {
|
|
2782
3260
|
"type": "object",
|
|
@@ -2796,7 +3274,10 @@
|
|
|
2796
3274
|
}
|
|
2797
3275
|
}
|
|
2798
3276
|
},
|
|
2799
|
-
"title": "OrderBooks"
|
|
3277
|
+
"title": "OrderBooks",
|
|
3278
|
+
"required": [
|
|
3279
|
+
"order_books"
|
|
3280
|
+
]
|
|
2800
3281
|
},
|
|
2801
3282
|
"Orders": {
|
|
2802
3283
|
"type": "object",
|
|
@@ -2819,7 +3300,10 @@
|
|
|
2819
3300
|
}
|
|
2820
3301
|
}
|
|
2821
3302
|
},
|
|
2822
|
-
"title": "Orders"
|
|
3303
|
+
"title": "Orders",
|
|
3304
|
+
"required": [
|
|
3305
|
+
"orders"
|
|
3306
|
+
]
|
|
2823
3307
|
},
|
|
2824
3308
|
"Permission": {
|
|
2825
3309
|
"type": "object",
|
|
@@ -2838,7 +3322,10 @@
|
|
|
2838
3322
|
"example": "true"
|
|
2839
3323
|
}
|
|
2840
3324
|
},
|
|
2841
|
-
"title": "Permission"
|
|
3325
|
+
"title": "Permission",
|
|
3326
|
+
"required": [
|
|
3327
|
+
"permit"
|
|
3328
|
+
]
|
|
2842
3329
|
},
|
|
2843
3330
|
"PnLEntry": {
|
|
2844
3331
|
"type": "object",
|
|
@@ -2854,7 +3341,11 @@
|
|
|
2854
3341
|
"example": "12.0"
|
|
2855
3342
|
}
|
|
2856
3343
|
},
|
|
2857
|
-
"title": "PnLEntry"
|
|
3344
|
+
"title": "PnLEntry",
|
|
3345
|
+
"required": [
|
|
3346
|
+
"timestamp",
|
|
3347
|
+
"value"
|
|
3348
|
+
]
|
|
2858
3349
|
},
|
|
2859
3350
|
"PriceLevel": {
|
|
2860
3351
|
"type": "object",
|
|
@@ -2868,7 +3359,11 @@
|
|
|
2868
3359
|
"example": "0.1"
|
|
2869
3360
|
}
|
|
2870
3361
|
},
|
|
2871
|
-
"title": "PriceLevel"
|
|
3362
|
+
"title": "PriceLevel",
|
|
3363
|
+
"required": [
|
|
3364
|
+
"price",
|
|
3365
|
+
"size"
|
|
3366
|
+
]
|
|
2872
3367
|
},
|
|
2873
3368
|
"ReqDoFaucet": {
|
|
2874
3369
|
"type": "object",
|
|
@@ -2877,7 +3372,10 @@
|
|
|
2877
3372
|
"type": "string"
|
|
2878
3373
|
}
|
|
2879
3374
|
},
|
|
2880
|
-
"title": "ReqDoFaucet"
|
|
3375
|
+
"title": "ReqDoFaucet",
|
|
3376
|
+
"required": [
|
|
3377
|
+
"l1_address"
|
|
3378
|
+
]
|
|
2881
3379
|
},
|
|
2882
3380
|
"ReqGetAccount": {
|
|
2883
3381
|
"type": "object",
|
|
@@ -2893,7 +3391,11 @@
|
|
|
2893
3391
|
"type": "string"
|
|
2894
3392
|
}
|
|
2895
3393
|
},
|
|
2896
|
-
"title": "ReqGetAccount"
|
|
3394
|
+
"title": "ReqGetAccount",
|
|
3395
|
+
"required": [
|
|
3396
|
+
"by",
|
|
3397
|
+
"value"
|
|
3398
|
+
]
|
|
2897
3399
|
},
|
|
2898
3400
|
"ReqGetAccountActiveOrders": {
|
|
2899
3401
|
"type": "object",
|
|
@@ -2913,7 +3415,12 @@
|
|
|
2913
3415
|
"format": "uin16"
|
|
2914
3416
|
}
|
|
2915
3417
|
},
|
|
2916
|
-
"title": "ReqGetAccountActiveOrders"
|
|
3418
|
+
"title": "ReqGetAccountActiveOrders",
|
|
3419
|
+
"required": [
|
|
3420
|
+
"account_index",
|
|
3421
|
+
"sub_account_index",
|
|
3422
|
+
"market_id"
|
|
3423
|
+
]
|
|
2917
3424
|
},
|
|
2918
3425
|
"ReqGetAccountByL1Address": {
|
|
2919
3426
|
"type": "object",
|
|
@@ -2922,7 +3429,10 @@
|
|
|
2922
3429
|
"type": "string"
|
|
2923
3430
|
}
|
|
2924
3431
|
},
|
|
2925
|
-
"title": "ReqGetAccountByL1Address"
|
|
3432
|
+
"title": "ReqGetAccountByL1Address",
|
|
3433
|
+
"required": [
|
|
3434
|
+
"l1_address"
|
|
3435
|
+
]
|
|
2926
3436
|
},
|
|
2927
3437
|
"ReqGetAccountInactiveOrders": {
|
|
2928
3438
|
"type": "object",
|
|
@@ -2958,7 +3468,13 @@
|
|
|
2958
3468
|
"minimum": 1
|
|
2959
3469
|
}
|
|
2960
3470
|
},
|
|
2961
|
-
"title": "ReqGetAccountInactiveOrders"
|
|
3471
|
+
"title": "ReqGetAccountInactiveOrders",
|
|
3472
|
+
"required": [
|
|
3473
|
+
"account_index",
|
|
3474
|
+
"sub_account_index",
|
|
3475
|
+
"filter",
|
|
3476
|
+
"limit"
|
|
3477
|
+
]
|
|
2962
3478
|
},
|
|
2963
3479
|
"ReqGetAccountOrders": {
|
|
2964
3480
|
"type": "object",
|
|
@@ -2981,7 +3497,12 @@
|
|
|
2981
3497
|
"minimum": 1
|
|
2982
3498
|
}
|
|
2983
3499
|
},
|
|
2984
|
-
"title": "ReqGetAccountOrders"
|
|
3500
|
+
"title": "ReqGetAccountOrders",
|
|
3501
|
+
"required": [
|
|
3502
|
+
"account_index",
|
|
3503
|
+
"market_id",
|
|
3504
|
+
"limit"
|
|
3505
|
+
]
|
|
2985
3506
|
},
|
|
2986
3507
|
"ReqGetAccountPendingTxs": {
|
|
2987
3508
|
"type": "object",
|
|
@@ -3043,7 +3564,15 @@
|
|
|
3043
3564
|
"format": "int64"
|
|
3044
3565
|
}
|
|
3045
3566
|
},
|
|
3046
|
-
"title": "ReqGetAccountPnL"
|
|
3567
|
+
"title": "ReqGetAccountPnL",
|
|
3568
|
+
"required": [
|
|
3569
|
+
"by",
|
|
3570
|
+
"value",
|
|
3571
|
+
"resolution",
|
|
3572
|
+
"start_timestamp",
|
|
3573
|
+
"end_timestamp",
|
|
3574
|
+
"count_back"
|
|
3575
|
+
]
|
|
3047
3576
|
},
|
|
3048
3577
|
"ReqGetAccountTxs": {
|
|
3049
3578
|
"type": "object",
|
|
@@ -3092,7 +3621,11 @@
|
|
|
3092
3621
|
"type": "string"
|
|
3093
3622
|
}
|
|
3094
3623
|
},
|
|
3095
|
-
"title": "ReqGetBlock"
|
|
3624
|
+
"title": "ReqGetBlock",
|
|
3625
|
+
"required": [
|
|
3626
|
+
"by",
|
|
3627
|
+
"value"
|
|
3628
|
+
]
|
|
3096
3629
|
},
|
|
3097
3630
|
"ReqGetBlockTxs": {
|
|
3098
3631
|
"type": "object",
|
|
@@ -3108,7 +3641,11 @@
|
|
|
3108
3641
|
"type": "string"
|
|
3109
3642
|
}
|
|
3110
3643
|
},
|
|
3111
|
-
"title": "ReqGetBlockTxs"
|
|
3644
|
+
"title": "ReqGetBlockTxs",
|
|
3645
|
+
"required": [
|
|
3646
|
+
"by",
|
|
3647
|
+
"value"
|
|
3648
|
+
]
|
|
3112
3649
|
},
|
|
3113
3650
|
"ReqGetByAccount": {
|
|
3114
3651
|
"type": "object",
|
|
@@ -3124,7 +3661,11 @@
|
|
|
3124
3661
|
"type": "string"
|
|
3125
3662
|
}
|
|
3126
3663
|
},
|
|
3127
|
-
"title": "ReqGetByAccount"
|
|
3664
|
+
"title": "ReqGetByAccount",
|
|
3665
|
+
"required": [
|
|
3666
|
+
"by",
|
|
3667
|
+
"value"
|
|
3668
|
+
]
|
|
3128
3669
|
},
|
|
3129
3670
|
"ReqGetCandlesticks": {
|
|
3130
3671
|
"type": "object",
|
|
@@ -3157,7 +3698,14 @@
|
|
|
3157
3698
|
"format": "int64"
|
|
3158
3699
|
}
|
|
3159
3700
|
},
|
|
3160
|
-
"title": "ReqGetCandlesticks"
|
|
3701
|
+
"title": "ReqGetCandlesticks",
|
|
3702
|
+
"required": [
|
|
3703
|
+
"market_id",
|
|
3704
|
+
"resolution",
|
|
3705
|
+
"start_timestamp",
|
|
3706
|
+
"end_timestamp",
|
|
3707
|
+
"count_back"
|
|
3708
|
+
]
|
|
3161
3709
|
},
|
|
3162
3710
|
"ReqGetExchangeStats": {
|
|
3163
3711
|
"type": "object",
|
|
@@ -3189,7 +3737,14 @@
|
|
|
3189
3737
|
"format": "int64"
|
|
3190
3738
|
}
|
|
3191
3739
|
},
|
|
3192
|
-
"title": "ReqGetFundings"
|
|
3740
|
+
"title": "ReqGetFundings",
|
|
3741
|
+
"required": [
|
|
3742
|
+
"market_id",
|
|
3743
|
+
"resolution",
|
|
3744
|
+
"start_timestamp",
|
|
3745
|
+
"end_timestamp",
|
|
3746
|
+
"count_back"
|
|
3747
|
+
]
|
|
3193
3748
|
},
|
|
3194
3749
|
"ReqGetL1Tx": {
|
|
3195
3750
|
"type": "object",
|
|
@@ -3198,7 +3753,10 @@
|
|
|
3198
3753
|
"type": "string"
|
|
3199
3754
|
}
|
|
3200
3755
|
},
|
|
3201
|
-
"title": "ReqGetL1Tx"
|
|
3756
|
+
"title": "ReqGetL1Tx",
|
|
3757
|
+
"required": [
|
|
3758
|
+
"hash"
|
|
3759
|
+
]
|
|
3202
3760
|
},
|
|
3203
3761
|
"ReqGetMarketSig": {
|
|
3204
3762
|
"type": "object",
|
|
@@ -3216,7 +3774,12 @@
|
|
|
3216
3774
|
"format": "int64"
|
|
3217
3775
|
}
|
|
3218
3776
|
},
|
|
3219
|
-
"title": "ReqGetMarketSig"
|
|
3777
|
+
"title": "ReqGetMarketSig",
|
|
3778
|
+
"required": [
|
|
3779
|
+
"market_id",
|
|
3780
|
+
"is_ask",
|
|
3781
|
+
"base_amount"
|
|
3782
|
+
]
|
|
3220
3783
|
},
|
|
3221
3784
|
"ReqGetNextNonce": {
|
|
3222
3785
|
"type": "object",
|
|
@@ -3230,7 +3793,11 @@
|
|
|
3230
3793
|
"format": "uint8"
|
|
3231
3794
|
}
|
|
3232
3795
|
},
|
|
3233
|
-
"title": "ReqGetNextNonce"
|
|
3796
|
+
"title": "ReqGetNextNonce",
|
|
3797
|
+
"required": [
|
|
3798
|
+
"account_index",
|
|
3799
|
+
"sub_account_index"
|
|
3800
|
+
]
|
|
3234
3801
|
},
|
|
3235
3802
|
"ReqGetOrderBookDetails": {
|
|
3236
3803
|
"type": "object",
|
|
@@ -3247,7 +3814,10 @@
|
|
|
3247
3814
|
"format": "uin16"
|
|
3248
3815
|
}
|
|
3249
3816
|
},
|
|
3250
|
-
"title": "ReqGetOrderBookDetails"
|
|
3817
|
+
"title": "ReqGetOrderBookDetails",
|
|
3818
|
+
"required": [
|
|
3819
|
+
"filter"
|
|
3820
|
+
]
|
|
3251
3821
|
},
|
|
3252
3822
|
"ReqGetOrderBookOrders": {
|
|
3253
3823
|
"type": "object",
|
|
@@ -3263,7 +3833,11 @@
|
|
|
3263
3833
|
"minimum": 1
|
|
3264
3834
|
}
|
|
3265
3835
|
},
|
|
3266
|
-
"title": "ReqGetOrderBookOrders"
|
|
3836
|
+
"title": "ReqGetOrderBookOrders",
|
|
3837
|
+
"required": [
|
|
3838
|
+
"market_id",
|
|
3839
|
+
"limit"
|
|
3840
|
+
]
|
|
3267
3841
|
},
|
|
3268
3842
|
"ReqGetOrderBooks": {
|
|
3269
3843
|
"type": "object",
|
|
@@ -3280,7 +3854,10 @@
|
|
|
3280
3854
|
"format": "uin16"
|
|
3281
3855
|
}
|
|
3282
3856
|
},
|
|
3283
|
-
"title": "ReqGetOrderBooks"
|
|
3857
|
+
"title": "ReqGetOrderBooks",
|
|
3858
|
+
"required": [
|
|
3859
|
+
"filter"
|
|
3860
|
+
]
|
|
3284
3861
|
},
|
|
3285
3862
|
"ReqGetPermission": {
|
|
3286
3863
|
"type": "object",
|
|
@@ -3300,7 +3877,12 @@
|
|
|
3300
3877
|
"format": "uint8"
|
|
3301
3878
|
}
|
|
3302
3879
|
},
|
|
3303
|
-
"title": "ReqGetPermission"
|
|
3880
|
+
"title": "ReqGetPermission",
|
|
3881
|
+
"required": [
|
|
3882
|
+
"by",
|
|
3883
|
+
"value",
|
|
3884
|
+
"tx_type"
|
|
3885
|
+
]
|
|
3304
3886
|
},
|
|
3305
3887
|
"ReqGetRangeWithCursor": {
|
|
3306
3888
|
"type": "object",
|
|
@@ -3315,7 +3897,10 @@
|
|
|
3315
3897
|
"minimum": 1
|
|
3316
3898
|
}
|
|
3317
3899
|
},
|
|
3318
|
-
"title": "ReqGetRangeWithCursor"
|
|
3900
|
+
"title": "ReqGetRangeWithCursor",
|
|
3901
|
+
"required": [
|
|
3902
|
+
"limit"
|
|
3903
|
+
]
|
|
3319
3904
|
},
|
|
3320
3905
|
"ReqGetRangeWithIndex": {
|
|
3321
3906
|
"type": "object",
|
|
@@ -3331,7 +3916,10 @@
|
|
|
3331
3916
|
"minimum": 1
|
|
3332
3917
|
}
|
|
3333
3918
|
},
|
|
3334
|
-
"title": "ReqGetRangeWithIndex"
|
|
3919
|
+
"title": "ReqGetRangeWithIndex",
|
|
3920
|
+
"required": [
|
|
3921
|
+
"limit"
|
|
3922
|
+
]
|
|
3335
3923
|
},
|
|
3336
3924
|
"ReqGetRangeWithIndexSortable": {
|
|
3337
3925
|
"type": "object",
|
|
@@ -3371,7 +3959,11 @@
|
|
|
3371
3959
|
"minimum": 1
|
|
3372
3960
|
}
|
|
3373
3961
|
},
|
|
3374
|
-
"title": "ReqGetRecentTrades"
|
|
3962
|
+
"title": "ReqGetRecentTrades",
|
|
3963
|
+
"required": [
|
|
3964
|
+
"market_id",
|
|
3965
|
+
"limit"
|
|
3966
|
+
]
|
|
3375
3967
|
},
|
|
3376
3968
|
"ReqGetRollbacks": {
|
|
3377
3969
|
"type": "object",
|
|
@@ -3392,7 +3984,12 @@
|
|
|
3392
3984
|
"minimum": 1
|
|
3393
3985
|
}
|
|
3394
3986
|
},
|
|
3395
|
-
"title": "ReqGetRollbacks"
|
|
3987
|
+
"title": "ReqGetRollbacks",
|
|
3988
|
+
"required": [
|
|
3989
|
+
"from_block_height",
|
|
3990
|
+
"offset",
|
|
3991
|
+
"limit"
|
|
3992
|
+
]
|
|
3396
3993
|
},
|
|
3397
3994
|
"ReqGetSubAccount": {
|
|
3398
3995
|
"type": "object",
|
|
@@ -3414,7 +4011,12 @@
|
|
|
3414
4011
|
"description": " NilSubAccountIndex"
|
|
3415
4012
|
}
|
|
3416
4013
|
},
|
|
3417
|
-
"title": "ReqGetSubAccount"
|
|
4014
|
+
"title": "ReqGetSubAccount",
|
|
4015
|
+
"required": [
|
|
4016
|
+
"by",
|
|
4017
|
+
"value",
|
|
4018
|
+
"sub_account_index"
|
|
4019
|
+
]
|
|
3418
4020
|
},
|
|
3419
4021
|
"ReqGetTrades": {
|
|
3420
4022
|
"type": "object",
|
|
@@ -3446,7 +4048,13 @@
|
|
|
3446
4048
|
"minimum": 1
|
|
3447
4049
|
}
|
|
3448
4050
|
},
|
|
3449
|
-
"title": "ReqGetTrades"
|
|
4051
|
+
"title": "ReqGetTrades",
|
|
4052
|
+
"required": [
|
|
4053
|
+
"market_id",
|
|
4054
|
+
"by",
|
|
4055
|
+
"from",
|
|
4056
|
+
"limit"
|
|
4057
|
+
]
|
|
3450
4058
|
},
|
|
3451
4059
|
"ReqGetTx": {
|
|
3452
4060
|
"type": "object",
|
|
@@ -3462,7 +4070,11 @@
|
|
|
3462
4070
|
"type": "string"
|
|
3463
4071
|
}
|
|
3464
4072
|
},
|
|
3465
|
-
"title": "ReqGetTx"
|
|
4073
|
+
"title": "ReqGetTx",
|
|
4074
|
+
"required": [
|
|
4075
|
+
"by",
|
|
4076
|
+
"value"
|
|
4077
|
+
]
|
|
3466
4078
|
},
|
|
3467
4079
|
"ReqSearch": {
|
|
3468
4080
|
"type": "object",
|
|
@@ -3471,7 +4083,10 @@
|
|
|
3471
4083
|
"type": "string"
|
|
3472
4084
|
}
|
|
3473
4085
|
},
|
|
3474
|
-
"title": "ReqSearch"
|
|
4086
|
+
"title": "ReqSearch",
|
|
4087
|
+
"required": [
|
|
4088
|
+
"keyword"
|
|
4089
|
+
]
|
|
3475
4090
|
},
|
|
3476
4091
|
"ReqSendTx": {
|
|
3477
4092
|
"type": "object",
|
|
@@ -3484,7 +4099,27 @@
|
|
|
3484
4099
|
"type": "string"
|
|
3485
4100
|
}
|
|
3486
4101
|
},
|
|
3487
|
-
"title": "ReqSendTx"
|
|
4102
|
+
"title": "ReqSendTx",
|
|
4103
|
+
"required": [
|
|
4104
|
+
"tx_type",
|
|
4105
|
+
"tx_info"
|
|
4106
|
+
]
|
|
4107
|
+
},
|
|
4108
|
+
"ReqSendTxBatch": {
|
|
4109
|
+
"type": "object",
|
|
4110
|
+
"properties": {
|
|
4111
|
+
"tx_types": {
|
|
4112
|
+
"type": "string"
|
|
4113
|
+
},
|
|
4114
|
+
"tx_infos": {
|
|
4115
|
+
"type": "string"
|
|
4116
|
+
}
|
|
4117
|
+
},
|
|
4118
|
+
"title": "ReqSendTxBatch",
|
|
4119
|
+
"required": [
|
|
4120
|
+
"tx_types",
|
|
4121
|
+
"tx_infos"
|
|
4122
|
+
]
|
|
3488
4123
|
},
|
|
3489
4124
|
"ResultCode": {
|
|
3490
4125
|
"type": "object",
|
|
@@ -3498,7 +4133,10 @@
|
|
|
3498
4133
|
"type": "string"
|
|
3499
4134
|
}
|
|
3500
4135
|
},
|
|
3501
|
-
"title": "ResultCode"
|
|
4136
|
+
"title": "ResultCode",
|
|
4137
|
+
"required": [
|
|
4138
|
+
"code"
|
|
4139
|
+
]
|
|
3502
4140
|
},
|
|
3503
4141
|
"Rollback": {
|
|
3504
4142
|
"type": "object",
|
|
@@ -3523,7 +4161,13 @@
|
|
|
3523
4161
|
"example": "1640995200"
|
|
3524
4162
|
}
|
|
3525
4163
|
},
|
|
3526
|
-
"title": "Rollback"
|
|
4164
|
+
"title": "Rollback",
|
|
4165
|
+
"required": [
|
|
4166
|
+
"from_block_height",
|
|
4167
|
+
"from_tx_hash",
|
|
4168
|
+
"id",
|
|
4169
|
+
"created_at"
|
|
4170
|
+
]
|
|
3527
4171
|
},
|
|
3528
4172
|
"Rollbacks": {
|
|
3529
4173
|
"type": "object",
|
|
@@ -3548,7 +4192,11 @@
|
|
|
3548
4192
|
}
|
|
3549
4193
|
}
|
|
3550
4194
|
},
|
|
3551
|
-
"title": "Rollbacks"
|
|
4195
|
+
"title": "Rollbacks",
|
|
4196
|
+
"required": [
|
|
4197
|
+
"total",
|
|
4198
|
+
"rollbacks"
|
|
4199
|
+
]
|
|
3552
4200
|
},
|
|
3553
4201
|
"Search": {
|
|
3554
4202
|
"type": "object",
|
|
@@ -3567,7 +4215,10 @@
|
|
|
3567
4215
|
"example": "1"
|
|
3568
4216
|
}
|
|
3569
4217
|
},
|
|
3570
|
-
"title": "Search"
|
|
4218
|
+
"title": "Search",
|
|
4219
|
+
"required": [
|
|
4220
|
+
"data_type"
|
|
4221
|
+
]
|
|
3571
4222
|
},
|
|
3572
4223
|
"SignBody": {
|
|
3573
4224
|
"type": "object",
|
|
@@ -3585,7 +4236,10 @@
|
|
|
3585
4236
|
"example": "success"
|
|
3586
4237
|
}
|
|
3587
4238
|
},
|
|
3588
|
-
"title": "SignBody"
|
|
4239
|
+
"title": "SignBody",
|
|
4240
|
+
"required": [
|
|
4241
|
+
"sign_body"
|
|
4242
|
+
]
|
|
3589
4243
|
},
|
|
3590
4244
|
"SimpleOrder": {
|
|
3591
4245
|
"type": "object",
|
|
@@ -3618,7 +4272,15 @@
|
|
|
3618
4272
|
"example": "234"
|
|
3619
4273
|
}
|
|
3620
4274
|
},
|
|
3621
|
-
"title": "SimpleOrder"
|
|
4275
|
+
"title": "SimpleOrder",
|
|
4276
|
+
"required": [
|
|
4277
|
+
"owner_account_index",
|
|
4278
|
+
"owner_sub_account_index",
|
|
4279
|
+
"initial_base_amount",
|
|
4280
|
+
"remaining_base_amount",
|
|
4281
|
+
"price",
|
|
4282
|
+
"nonce"
|
|
4283
|
+
]
|
|
3622
4284
|
},
|
|
3623
4285
|
"Status": {
|
|
3624
4286
|
"type": "object",
|
|
@@ -3634,7 +4296,11 @@
|
|
|
3634
4296
|
"example": "1"
|
|
3635
4297
|
}
|
|
3636
4298
|
},
|
|
3637
|
-
"title": "Status"
|
|
4299
|
+
"title": "Status",
|
|
4300
|
+
"required": [
|
|
4301
|
+
"status",
|
|
4302
|
+
"network_id"
|
|
4303
|
+
]
|
|
3638
4304
|
},
|
|
3639
4305
|
"SubAccount": {
|
|
3640
4306
|
"type": "object",
|
|
@@ -3677,7 +4343,17 @@
|
|
|
3677
4343
|
"example": "1"
|
|
3678
4344
|
}
|
|
3679
4345
|
},
|
|
3680
|
-
"title": "SubAccount"
|
|
4346
|
+
"title": "SubAccount",
|
|
4347
|
+
"required": [
|
|
4348
|
+
"index",
|
|
4349
|
+
"sub_account_index",
|
|
4350
|
+
"l1_address",
|
|
4351
|
+
"pk",
|
|
4352
|
+
"nonce",
|
|
4353
|
+
"status",
|
|
4354
|
+
"collateral",
|
|
4355
|
+
"collateral_type"
|
|
4356
|
+
]
|
|
3681
4357
|
},
|
|
3682
4358
|
"SubAccounts": {
|
|
3683
4359
|
"type": "object",
|
|
@@ -3712,7 +4388,13 @@
|
|
|
3712
4388
|
}
|
|
3713
4389
|
}
|
|
3714
4390
|
},
|
|
3715
|
-
"title": "SubAccounts"
|
|
4391
|
+
"title": "SubAccounts",
|
|
4392
|
+
"required": [
|
|
4393
|
+
"index",
|
|
4394
|
+
"l1_address",
|
|
4395
|
+
"status",
|
|
4396
|
+
"sub_accounts"
|
|
4397
|
+
]
|
|
3716
4398
|
},
|
|
3717
4399
|
"Trade": {
|
|
3718
4400
|
"type": "object",
|
|
@@ -3775,7 +4457,21 @@
|
|
|
3775
4457
|
"example": "1640995200"
|
|
3776
4458
|
}
|
|
3777
4459
|
},
|
|
3778
|
-
"title": "Trade"
|
|
4460
|
+
"title": "Trade",
|
|
4461
|
+
"required": [
|
|
4462
|
+
"trade_id",
|
|
4463
|
+
"tx_hash",
|
|
4464
|
+
"market_id",
|
|
4465
|
+
"size",
|
|
4466
|
+
"price",
|
|
4467
|
+
"ask_id",
|
|
4468
|
+
"bid_id",
|
|
4469
|
+
"maker_account_id",
|
|
4470
|
+
"taker_account_id",
|
|
4471
|
+
"is_maker_ask",
|
|
4472
|
+
"block_height",
|
|
4473
|
+
"timestamp"
|
|
4474
|
+
]
|
|
3779
4475
|
},
|
|
3780
4476
|
"Trades": {
|
|
3781
4477
|
"type": "object",
|
|
@@ -3795,7 +4491,10 @@
|
|
|
3795
4491
|
}
|
|
3796
4492
|
}
|
|
3797
4493
|
},
|
|
3798
|
-
"title": "Trades"
|
|
4494
|
+
"title": "Trades",
|
|
4495
|
+
"required": [
|
|
4496
|
+
"trades"
|
|
4497
|
+
]
|
|
3799
4498
|
},
|
|
3800
4499
|
"Tx": {
|
|
3801
4500
|
"type": "object",
|
|
@@ -3869,7 +4568,23 @@
|
|
|
3869
4568
|
"example": "8761"
|
|
3870
4569
|
}
|
|
3871
4570
|
},
|
|
3872
|
-
"title": "Tx"
|
|
4571
|
+
"title": "Tx",
|
|
4572
|
+
"required": [
|
|
4573
|
+
"hash",
|
|
4574
|
+
"type",
|
|
4575
|
+
"info",
|
|
4576
|
+
"event_info",
|
|
4577
|
+
"status",
|
|
4578
|
+
"transaction_index",
|
|
4579
|
+
"l1_address",
|
|
4580
|
+
"account_index",
|
|
4581
|
+
"nonce",
|
|
4582
|
+
"expire_at",
|
|
4583
|
+
"block_height",
|
|
4584
|
+
"created_at",
|
|
4585
|
+
"verify_at",
|
|
4586
|
+
"sequence_index"
|
|
4587
|
+
]
|
|
3873
4588
|
},
|
|
3874
4589
|
"TxHash": {
|
|
3875
4590
|
"type": "object",
|
|
@@ -3887,7 +4602,33 @@
|
|
|
3887
4602
|
"example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
|
|
3888
4603
|
}
|
|
3889
4604
|
},
|
|
3890
|
-
"title": "TxHash"
|
|
4605
|
+
"title": "TxHash",
|
|
4606
|
+
"required": [
|
|
4607
|
+
"tx_hash"
|
|
4608
|
+
]
|
|
4609
|
+
},
|
|
4610
|
+
"TxHashes": {
|
|
4611
|
+
"type": "object",
|
|
4612
|
+
"properties": {
|
|
4613
|
+
"code": {
|
|
4614
|
+
"type": "integer",
|
|
4615
|
+
"format": "int32",
|
|
4616
|
+
"example": "100"
|
|
4617
|
+
},
|
|
4618
|
+
"message": {
|
|
4619
|
+
"type": "string"
|
|
4620
|
+
},
|
|
4621
|
+
"tx_hash": {
|
|
4622
|
+
"type": "array",
|
|
4623
|
+
"items": {
|
|
4624
|
+
"type": "string"
|
|
4625
|
+
}
|
|
4626
|
+
}
|
|
4627
|
+
},
|
|
4628
|
+
"title": "TxHashes",
|
|
4629
|
+
"required": [
|
|
4630
|
+
"tx_hash"
|
|
4631
|
+
]
|
|
3891
4632
|
},
|
|
3892
4633
|
"Txs": {
|
|
3893
4634
|
"type": "object",
|
|
@@ -3907,7 +4648,10 @@
|
|
|
3907
4648
|
}
|
|
3908
4649
|
}
|
|
3909
4650
|
},
|
|
3910
|
-
"title": "Txs"
|
|
4651
|
+
"title": "Txs",
|
|
4652
|
+
"required": [
|
|
4653
|
+
"txs"
|
|
4654
|
+
]
|
|
3911
4655
|
},
|
|
3912
4656
|
"ValidatorInfo": {
|
|
3913
4657
|
"type": "object",
|
|
@@ -3922,7 +4666,11 @@
|
|
|
3922
4666
|
"example": "true"
|
|
3923
4667
|
}
|
|
3924
4668
|
},
|
|
3925
|
-
"title": "ValidatorInfo"
|
|
4669
|
+
"title": "ValidatorInfo",
|
|
4670
|
+
"required": [
|
|
4671
|
+
"address",
|
|
4672
|
+
"is_active"
|
|
4673
|
+
]
|
|
3926
4674
|
}
|
|
3927
4675
|
},
|
|
3928
4676
|
"securityDefinitions": {
|