zklighter-perps 1.0.6 → 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.
Files changed (91) hide show
  1. package/.openapi-generator/FILES +1 -1
  2. package/apis/BlockApi.ts +3 -0
  3. package/apis/CandlestickApi.ts +3 -0
  4. package/apis/InfoApi.ts +3 -0
  5. package/apis/OrderApi.ts +3 -0
  6. package/apis/RelayerApi.ts +3 -0
  7. package/apis/RootApi.ts +3 -0
  8. package/apis/TransactionApi.ts +110 -6
  9. package/apis/index.ts +0 -1
  10. package/models/AccountMarketStats.ts +18 -12
  11. package/models/AccountPnL.ts +7 -5
  12. package/models/AccountPosition.ts +33 -22
  13. package/models/AccountStats.ts +15 -10
  14. package/models/Block.ts +40 -27
  15. package/models/Blocks.ts +7 -5
  16. package/models/Candlestick.ts +21 -14
  17. package/models/Candlesticks.ts +7 -5
  18. package/models/ContractAddress.ts +6 -4
  19. package/models/CurrentHeight.ts +3 -2
  20. package/models/DetailedAccount.ts +11 -8
  21. package/models/DetailedAccounts.ts +7 -5
  22. package/models/EnrichedTx.ts +9 -6
  23. package/models/ExchangeStats.ts +13 -9
  24. package/models/Funding.ts +12 -8
  25. package/models/Fundings.ts +7 -5
  26. package/models/L1ProviderInfo.ts +12 -8
  27. package/models/Layer1BasicInfo.ts +24 -17
  28. package/models/Layer2BasicInfo.ts +9 -6
  29. package/models/MainAccount.ts +9 -6
  30. package/models/MainAccounts.ts +7 -5
  31. package/models/MarketInfo.ts +33 -22
  32. package/models/MarketSig.ts +12 -8
  33. package/models/NextNonce.ts +3 -2
  34. package/models/Order.ts +48 -32
  35. package/models/OrderBook.ts +30 -20
  36. package/models/OrderBookDepth.ts +11 -8
  37. package/models/OrderBookDetail.ts +54 -36
  38. package/models/OrderBookDetails.ts +4 -3
  39. package/models/OrderBookOrders.ts +14 -10
  40. package/models/OrderBookStats.ts +18 -12
  41. package/models/OrderBooks.ts +4 -3
  42. package/models/Orders.ts +4 -3
  43. package/models/Permission.ts +3 -2
  44. package/models/PnLEntry.ts +6 -4
  45. package/models/PriceLevel.ts +6 -4
  46. package/models/ReqDoFaucet.ts +3 -2
  47. package/models/ReqGetAccount.ts +6 -4
  48. package/models/ReqGetAccountActiveOrders.ts +9 -6
  49. package/models/ReqGetAccountByL1Address.ts +3 -2
  50. package/models/ReqGetAccountInactiveOrders.ts +12 -8
  51. package/models/ReqGetAccountOrders.ts +9 -6
  52. package/models/ReqGetAccountPnL.ts +18 -12
  53. package/models/ReqGetBlock.ts +6 -4
  54. package/models/ReqGetBlockTxs.ts +6 -4
  55. package/models/ReqGetByAccount.ts +6 -4
  56. package/models/ReqGetCandlesticks.ts +15 -10
  57. package/models/ReqGetFundings.ts +15 -10
  58. package/models/ReqGetL1Tx.ts +3 -2
  59. package/models/ReqGetMarketSig.ts +9 -6
  60. package/models/ReqGetNextNonce.ts +6 -4
  61. package/models/ReqGetOrderBookDetails.ts +3 -2
  62. package/models/ReqGetOrderBookOrders.ts +6 -4
  63. package/models/ReqGetOrderBooks.ts +3 -2
  64. package/models/ReqGetPermission.ts +9 -6
  65. package/models/ReqGetRangeWithCursor.ts +3 -2
  66. package/models/ReqGetRangeWithIndex.ts +3 -2
  67. package/models/ReqGetRecentTrades.ts +6 -4
  68. package/models/ReqGetRollbacks.ts +9 -6
  69. package/models/ReqGetSubAccount.ts +9 -6
  70. package/models/ReqGetTrades.ts +12 -8
  71. package/models/ReqGetTx.ts +6 -4
  72. package/models/ReqSearch.ts +3 -2
  73. package/models/ResultCode.ts +3 -2
  74. package/models/Rollback.ts +12 -8
  75. package/models/Rollbacks.ts +7 -5
  76. package/models/Search.ts +3 -2
  77. package/models/SignBody.ts +3 -2
  78. package/models/SimpleOrder.ts +18 -12
  79. package/models/Status.ts +6 -4
  80. package/models/SubAccount.ts +24 -16
  81. package/models/SubAccounts.ts +13 -9
  82. package/models/Trade.ts +36 -24
  83. package/models/Trades.ts +4 -3
  84. package/models/Tx.ts +42 -28
  85. package/models/TxHash.ts +3 -2
  86. package/models/TxHashes.ts +77 -0
  87. package/models/Txs.ts +4 -3
  88. package/models/ValidatorInfo.ts +6 -4
  89. package/models/index.ts +1 -0
  90. package/openapi.json +828 -116
  91. 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": [
@@ -1497,42 +1750,6 @@
1497
1750
  ],
1498
1751
  "description": "Get transactions which are already packed into blocks"
1499
1752
  }
1500
- },
1501
- "/api/v1/ws_status": {
1502
- "get": {
1503
- "summary": "GetWebSocketStatus",
1504
- "operationId": "GetWebSocketStatus",
1505
- "responses": {
1506
- "200": {
1507
- "description": "A successful response.",
1508
- "schema": {
1509
- "$ref": "#/definitions/ResultCode"
1510
- }
1511
- }
1512
- },
1513
- "tags": [
1514
- "ws"
1515
- ],
1516
- "description": "WebSocket Status"
1517
- }
1518
- },
1519
- "/stream": {
1520
- "get": {
1521
- "summary": "Stream",
1522
- "operationId": "Stream",
1523
- "responses": {
1524
- "200": {
1525
- "description": "A successful response.",
1526
- "schema": {
1527
- "$ref": "#/definitions/ResultCode"
1528
- }
1529
- }
1530
- },
1531
- "tags": [
1532
- "ws"
1533
- ],
1534
- "description": "WebSocket"
1535
- }
1536
1753
  }
1537
1754
  },
1538
1755
  "definitions": {
@@ -1570,7 +1787,15 @@
1570
1787
  "example": "1276.0"
1571
1788
  }
1572
1789
  },
1573
- "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
+ ]
1574
1799
  },
1575
1800
  "AccountPnL": {
1576
1801
  "type": "object",
@@ -1594,7 +1819,11 @@
1594
1819
  }
1595
1820
  }
1596
1821
  },
1597
- "title": "AccountPnL"
1822
+ "title": "AccountPnL",
1823
+ "required": [
1824
+ "resolution",
1825
+ "pnl"
1826
+ ]
1598
1827
  },
1599
1828
  "AccountPosition": {
1600
1829
  "type": "object",
@@ -1646,7 +1875,20 @@
1646
1875
  "example": "2.000000"
1647
1876
  }
1648
1877
  },
1649
- "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
+ ]
1650
1892
  },
1651
1893
  "AccountStats": {
1652
1894
  "type": "object",
@@ -1672,7 +1914,14 @@
1672
1914
  "example": "199955"
1673
1915
  }
1674
1916
  },
1675
- "title": "AccountStats"
1917
+ "title": "AccountStats",
1918
+ "required": [
1919
+ "portfolio_value",
1920
+ "leverage",
1921
+ "free_collateral",
1922
+ "margin_usage",
1923
+ "buying_power"
1924
+ ]
1676
1925
  },
1677
1926
  "Block": {
1678
1927
  "type": "object",
@@ -1727,7 +1976,22 @@
1727
1976
  "format": "uin16"
1728
1977
  }
1729
1978
  },
1730
- "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
+ ]
1731
1995
  },
1732
1996
  "Blocks": {
1733
1997
  "type": "object",
@@ -1751,7 +2015,11 @@
1751
2015
  }
1752
2016
  }
1753
2017
  },
1754
- "title": "Blocks"
2018
+ "title": "Blocks",
2019
+ "required": [
2020
+ "total",
2021
+ "blocks"
2022
+ ]
1755
2023
  },
1756
2024
  "Candlestick": {
1757
2025
  "type": "object",
@@ -1792,7 +2060,16 @@
1792
2060
  "example": "93566.25"
1793
2061
  }
1794
2062
  },
1795
- "title": "Candlestick"
2063
+ "title": "Candlestick",
2064
+ "required": [
2065
+ "timestamp",
2066
+ "open",
2067
+ "high",
2068
+ "low",
2069
+ "close",
2070
+ "volume0",
2071
+ "volume1"
2072
+ ]
1796
2073
  },
1797
2074
  "Candlesticks": {
1798
2075
  "type": "object",
@@ -1816,7 +2093,11 @@
1816
2093
  }
1817
2094
  }
1818
2095
  },
1819
- "title": "Candlesticks"
2096
+ "title": "Candlesticks",
2097
+ "required": [
2098
+ "resolution",
2099
+ "candlesticks"
2100
+ ]
1820
2101
  },
1821
2102
  "ContractAddress": {
1822
2103
  "type": "object",
@@ -1830,7 +2111,11 @@
1830
2111
  "example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
1831
2112
  }
1832
2113
  },
1833
- "title": "ContractAddress"
2114
+ "title": "ContractAddress",
2115
+ "required": [
2116
+ "name",
2117
+ "address"
2118
+ ]
1834
2119
  },
1835
2120
  "CurrentHeight": {
1836
2121
  "type": "object",
@@ -1848,7 +2133,10 @@
1848
2133
  "format": "int64"
1849
2134
  }
1850
2135
  },
1851
- "title": "CurrentHeight"
2136
+ "title": "CurrentHeight",
2137
+ "required": [
2138
+ "height"
2139
+ ]
1852
2140
  },
1853
2141
  "Cursor": {
1854
2142
  "type": "object",
@@ -1924,7 +2212,12 @@
1924
2212
  }
1925
2213
  }
1926
2214
  },
1927
- "title": "DetailedAccount"
2215
+ "title": "DetailedAccount",
2216
+ "required": [
2217
+ "positions",
2218
+ "total_asset_value",
2219
+ "market_stats"
2220
+ ]
1928
2221
  },
1929
2222
  "DetailedAccounts": {
1930
2223
  "type": "object",
@@ -1949,7 +2242,11 @@
1949
2242
  }
1950
2243
  }
1951
2244
  },
1952
- "title": "DetailedAccounts"
2245
+ "title": "DetailedAccounts",
2246
+ "required": [
2247
+ "total",
2248
+ "accounts"
2249
+ ]
1953
2250
  },
1954
2251
  "EnrichedTx": {
1955
2252
  "type": "object",
@@ -2046,7 +2343,12 @@
2046
2343
  "example": "1640995200"
2047
2344
  }
2048
2345
  },
2049
- "title": "EnrichedTx"
2346
+ "title": "EnrichedTx",
2347
+ "required": [
2348
+ "committed_at",
2349
+ "verified_at",
2350
+ "executed_at"
2351
+ ]
2050
2352
  },
2051
2353
  "ExchangeStats": {
2052
2354
  "type": "object",
@@ -2082,7 +2384,13 @@
2082
2384
  "example": "68"
2083
2385
  }
2084
2386
  },
2085
- "title": "ExchangeStats"
2387
+ "title": "ExchangeStats",
2388
+ "required": [
2389
+ "total",
2390
+ "order_book_stats",
2391
+ "daily_usd_volume",
2392
+ "daily_trades_count"
2393
+ ]
2086
2394
  },
2087
2395
  "Funding": {
2088
2396
  "type": "object",
@@ -2105,7 +2413,13 @@
2105
2413
  "example": "long"
2106
2414
  }
2107
2415
  },
2108
- "title": "Funding"
2416
+ "title": "Funding",
2417
+ "required": [
2418
+ "timestamp",
2419
+ "value",
2420
+ "rate",
2421
+ "direction"
2422
+ ]
2109
2423
  },
2110
2424
  "Fundings": {
2111
2425
  "type": "object",
@@ -2129,7 +2443,11 @@
2129
2443
  }
2130
2444
  }
2131
2445
  },
2132
- "title": "Fundings"
2446
+ "title": "Fundings",
2447
+ "required": [
2448
+ "resolution",
2449
+ "fundings"
2450
+ ]
2133
2451
  },
2134
2452
  "L1ProviderInfo": {
2135
2453
  "type": "object",
@@ -2153,7 +2471,13 @@
2153
2471
  "type": "string"
2154
2472
  }
2155
2473
  },
2156
- "title": "L1ProviderInfo"
2474
+ "title": "L1ProviderInfo",
2475
+ "required": [
2476
+ "chainId",
2477
+ "networkId",
2478
+ "latestBlockNumber",
2479
+ "NetworkRpc"
2480
+ ]
2157
2481
  },
2158
2482
  "Layer1BasicInfo": {
2159
2483
  "type": "object",
@@ -2205,7 +2529,16 @@
2205
2529
  "example": "45434"
2206
2530
  }
2207
2531
  },
2208
- "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
+ ]
2209
2542
  },
2210
2543
  "Layer2BasicInfo": {
2211
2544
  "type": "object",
@@ -2234,7 +2567,12 @@
2234
2567
  "example": "75434"
2235
2568
  }
2236
2569
  },
2237
- "title": "Layer2BasicInfo"
2570
+ "title": "Layer2BasicInfo",
2571
+ "required": [
2572
+ "block_committed",
2573
+ "block_verified",
2574
+ "total_transaction_count"
2575
+ ]
2238
2576
  },
2239
2577
  "MainAccount": {
2240
2578
  "type": "object",
@@ -2262,7 +2600,12 @@
2262
2600
  "example": "1"
2263
2601
  }
2264
2602
  },
2265
- "title": "MainAccount"
2603
+ "title": "MainAccount",
2604
+ "required": [
2605
+ "index",
2606
+ "l1_address",
2607
+ "status"
2608
+ ]
2266
2609
  },
2267
2610
  "MainAccounts": {
2268
2611
  "type": "object",
@@ -2277,7 +2620,7 @@
2277
2620
  },
2278
2621
  "total": {
2279
2622
  "type": "integer",
2280
- "format": "int64",
2623
+ "format": "int32",
2281
2624
  "example": "1"
2282
2625
  },
2283
2626
  "accounts": {
@@ -2287,7 +2630,11 @@
2287
2630
  }
2288
2631
  }
2289
2632
  },
2290
- "title": "MainAccounts"
2633
+ "title": "MainAccounts",
2634
+ "required": [
2635
+ "total",
2636
+ "accounts"
2637
+ ]
2291
2638
  },
2292
2639
  "MarketInfo": {
2293
2640
  "type": "object",
@@ -2344,7 +2691,20 @@
2344
2691
  "example": "3.66"
2345
2692
  }
2346
2693
  },
2347
- "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
+ ]
2348
2708
  },
2349
2709
  "MarketSig": {
2350
2710
  "type": "object",
@@ -2377,7 +2737,13 @@
2377
2737
  "example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
2378
2738
  }
2379
2739
  },
2380
- "title": "MarketSig"
2740
+ "title": "MarketSig",
2741
+ "required": [
2742
+ "can_be_filled",
2743
+ "is_ask",
2744
+ "quote_amount",
2745
+ "signature"
2746
+ ]
2381
2747
  },
2382
2748
  "NextNonce": {
2383
2749
  "type": "object",
@@ -2396,7 +2762,10 @@
2396
2762
  "example": "722"
2397
2763
  }
2398
2764
  },
2399
- "title": "NextNonce"
2765
+ "title": "NextNonce",
2766
+ "required": [
2767
+ "nonce"
2768
+ ]
2400
2769
  },
2401
2770
  "Order": {
2402
2771
  "type": "object",
@@ -2489,7 +2858,26 @@
2489
2858
  "example": "1640995200"
2490
2859
  }
2491
2860
  },
2492
- "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
+ ]
2493
2881
  },
2494
2882
  "OrderBook": {
2495
2883
  "type": "object",
@@ -2543,7 +2931,19 @@
2543
2931
  "example": "4"
2544
2932
  }
2545
2933
  },
2546
- "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
+ ]
2547
2947
  },
2548
2948
  "OrderBookDepth": {
2549
2949
  "type": "object",
@@ -2574,7 +2974,12 @@
2574
2974
  "example": "0"
2575
2975
  }
2576
2976
  },
2577
- "title": "OrderBookDepth"
2977
+ "title": "OrderBookDepth",
2978
+ "required": [
2979
+ "asks",
2980
+ "bids",
2981
+ "offset"
2982
+ ]
2578
2983
  },
2579
2984
  "OrderBookDetail": {
2580
2985
  "type": "object",
@@ -2721,7 +3126,27 @@
2721
3126
  }
2722
3127
  }
2723
3128
  },
2724
- "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
+ ]
2725
3150
  },
2726
3151
  "OrderBookDetails": {
2727
3152
  "type": "object",
@@ -2741,7 +3166,10 @@
2741
3166
  }
2742
3167
  }
2743
3168
  },
2744
- "title": "OrderBookDetails"
3169
+ "title": "OrderBookDetails",
3170
+ "required": [
3171
+ "order_book_details"
3172
+ ]
2745
3173
  },
2746
3174
  "OrderBookOrders": {
2747
3175
  "type": "object",
@@ -2777,7 +3205,13 @@
2777
3205
  }
2778
3206
  }
2779
3207
  },
2780
- "title": "OrderBookOrders"
3208
+ "title": "OrderBookOrders",
3209
+ "required": [
3210
+ "total_asks",
3211
+ "asks",
3212
+ "total_bids",
3213
+ "bids"
3214
+ ]
2781
3215
  },
2782
3216
  "OrderBookStats": {
2783
3217
  "type": "object",
@@ -2812,7 +3246,15 @@
2812
3246
  "example": "3.66"
2813
3247
  }
2814
3248
  },
2815
- "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
+ ]
2816
3258
  },
2817
3259
  "OrderBooks": {
2818
3260
  "type": "object",
@@ -2832,7 +3274,10 @@
2832
3274
  }
2833
3275
  }
2834
3276
  },
2835
- "title": "OrderBooks"
3277
+ "title": "OrderBooks",
3278
+ "required": [
3279
+ "order_books"
3280
+ ]
2836
3281
  },
2837
3282
  "Orders": {
2838
3283
  "type": "object",
@@ -2855,7 +3300,10 @@
2855
3300
  }
2856
3301
  }
2857
3302
  },
2858
- "title": "Orders"
3303
+ "title": "Orders",
3304
+ "required": [
3305
+ "orders"
3306
+ ]
2859
3307
  },
2860
3308
  "Permission": {
2861
3309
  "type": "object",
@@ -2874,7 +3322,10 @@
2874
3322
  "example": "true"
2875
3323
  }
2876
3324
  },
2877
- "title": "Permission"
3325
+ "title": "Permission",
3326
+ "required": [
3327
+ "permit"
3328
+ ]
2878
3329
  },
2879
3330
  "PnLEntry": {
2880
3331
  "type": "object",
@@ -2890,7 +3341,11 @@
2890
3341
  "example": "12.0"
2891
3342
  }
2892
3343
  },
2893
- "title": "PnLEntry"
3344
+ "title": "PnLEntry",
3345
+ "required": [
3346
+ "timestamp",
3347
+ "value"
3348
+ ]
2894
3349
  },
2895
3350
  "PriceLevel": {
2896
3351
  "type": "object",
@@ -2904,7 +3359,11 @@
2904
3359
  "example": "0.1"
2905
3360
  }
2906
3361
  },
2907
- "title": "PriceLevel"
3362
+ "title": "PriceLevel",
3363
+ "required": [
3364
+ "price",
3365
+ "size"
3366
+ ]
2908
3367
  },
2909
3368
  "ReqDoFaucet": {
2910
3369
  "type": "object",
@@ -2913,7 +3372,10 @@
2913
3372
  "type": "string"
2914
3373
  }
2915
3374
  },
2916
- "title": "ReqDoFaucet"
3375
+ "title": "ReqDoFaucet",
3376
+ "required": [
3377
+ "l1_address"
3378
+ ]
2917
3379
  },
2918
3380
  "ReqGetAccount": {
2919
3381
  "type": "object",
@@ -2929,7 +3391,11 @@
2929
3391
  "type": "string"
2930
3392
  }
2931
3393
  },
2932
- "title": "ReqGetAccount"
3394
+ "title": "ReqGetAccount",
3395
+ "required": [
3396
+ "by",
3397
+ "value"
3398
+ ]
2933
3399
  },
2934
3400
  "ReqGetAccountActiveOrders": {
2935
3401
  "type": "object",
@@ -2949,7 +3415,12 @@
2949
3415
  "format": "uin16"
2950
3416
  }
2951
3417
  },
2952
- "title": "ReqGetAccountActiveOrders"
3418
+ "title": "ReqGetAccountActiveOrders",
3419
+ "required": [
3420
+ "account_index",
3421
+ "sub_account_index",
3422
+ "market_id"
3423
+ ]
2953
3424
  },
2954
3425
  "ReqGetAccountByL1Address": {
2955
3426
  "type": "object",
@@ -2958,7 +3429,10 @@
2958
3429
  "type": "string"
2959
3430
  }
2960
3431
  },
2961
- "title": "ReqGetAccountByL1Address"
3432
+ "title": "ReqGetAccountByL1Address",
3433
+ "required": [
3434
+ "l1_address"
3435
+ ]
2962
3436
  },
2963
3437
  "ReqGetAccountInactiveOrders": {
2964
3438
  "type": "object",
@@ -2994,7 +3468,13 @@
2994
3468
  "minimum": 1
2995
3469
  }
2996
3470
  },
2997
- "title": "ReqGetAccountInactiveOrders"
3471
+ "title": "ReqGetAccountInactiveOrders",
3472
+ "required": [
3473
+ "account_index",
3474
+ "sub_account_index",
3475
+ "filter",
3476
+ "limit"
3477
+ ]
2998
3478
  },
2999
3479
  "ReqGetAccountOrders": {
3000
3480
  "type": "object",
@@ -3017,7 +3497,12 @@
3017
3497
  "minimum": 1
3018
3498
  }
3019
3499
  },
3020
- "title": "ReqGetAccountOrders"
3500
+ "title": "ReqGetAccountOrders",
3501
+ "required": [
3502
+ "account_index",
3503
+ "market_id",
3504
+ "limit"
3505
+ ]
3021
3506
  },
3022
3507
  "ReqGetAccountPendingTxs": {
3023
3508
  "type": "object",
@@ -3079,7 +3564,15 @@
3079
3564
  "format": "int64"
3080
3565
  }
3081
3566
  },
3082
- "title": "ReqGetAccountPnL"
3567
+ "title": "ReqGetAccountPnL",
3568
+ "required": [
3569
+ "by",
3570
+ "value",
3571
+ "resolution",
3572
+ "start_timestamp",
3573
+ "end_timestamp",
3574
+ "count_back"
3575
+ ]
3083
3576
  },
3084
3577
  "ReqGetAccountTxs": {
3085
3578
  "type": "object",
@@ -3128,7 +3621,11 @@
3128
3621
  "type": "string"
3129
3622
  }
3130
3623
  },
3131
- "title": "ReqGetBlock"
3624
+ "title": "ReqGetBlock",
3625
+ "required": [
3626
+ "by",
3627
+ "value"
3628
+ ]
3132
3629
  },
3133
3630
  "ReqGetBlockTxs": {
3134
3631
  "type": "object",
@@ -3144,7 +3641,11 @@
3144
3641
  "type": "string"
3145
3642
  }
3146
3643
  },
3147
- "title": "ReqGetBlockTxs"
3644
+ "title": "ReqGetBlockTxs",
3645
+ "required": [
3646
+ "by",
3647
+ "value"
3648
+ ]
3148
3649
  },
3149
3650
  "ReqGetByAccount": {
3150
3651
  "type": "object",
@@ -3160,7 +3661,11 @@
3160
3661
  "type": "string"
3161
3662
  }
3162
3663
  },
3163
- "title": "ReqGetByAccount"
3664
+ "title": "ReqGetByAccount",
3665
+ "required": [
3666
+ "by",
3667
+ "value"
3668
+ ]
3164
3669
  },
3165
3670
  "ReqGetCandlesticks": {
3166
3671
  "type": "object",
@@ -3193,7 +3698,14 @@
3193
3698
  "format": "int64"
3194
3699
  }
3195
3700
  },
3196
- "title": "ReqGetCandlesticks"
3701
+ "title": "ReqGetCandlesticks",
3702
+ "required": [
3703
+ "market_id",
3704
+ "resolution",
3705
+ "start_timestamp",
3706
+ "end_timestamp",
3707
+ "count_back"
3708
+ ]
3197
3709
  },
3198
3710
  "ReqGetExchangeStats": {
3199
3711
  "type": "object",
@@ -3225,7 +3737,14 @@
3225
3737
  "format": "int64"
3226
3738
  }
3227
3739
  },
3228
- "title": "ReqGetFundings"
3740
+ "title": "ReqGetFundings",
3741
+ "required": [
3742
+ "market_id",
3743
+ "resolution",
3744
+ "start_timestamp",
3745
+ "end_timestamp",
3746
+ "count_back"
3747
+ ]
3229
3748
  },
3230
3749
  "ReqGetL1Tx": {
3231
3750
  "type": "object",
@@ -3234,7 +3753,10 @@
3234
3753
  "type": "string"
3235
3754
  }
3236
3755
  },
3237
- "title": "ReqGetL1Tx"
3756
+ "title": "ReqGetL1Tx",
3757
+ "required": [
3758
+ "hash"
3759
+ ]
3238
3760
  },
3239
3761
  "ReqGetMarketSig": {
3240
3762
  "type": "object",
@@ -3252,7 +3774,12 @@
3252
3774
  "format": "int64"
3253
3775
  }
3254
3776
  },
3255
- "title": "ReqGetMarketSig"
3777
+ "title": "ReqGetMarketSig",
3778
+ "required": [
3779
+ "market_id",
3780
+ "is_ask",
3781
+ "base_amount"
3782
+ ]
3256
3783
  },
3257
3784
  "ReqGetNextNonce": {
3258
3785
  "type": "object",
@@ -3266,7 +3793,11 @@
3266
3793
  "format": "uint8"
3267
3794
  }
3268
3795
  },
3269
- "title": "ReqGetNextNonce"
3796
+ "title": "ReqGetNextNonce",
3797
+ "required": [
3798
+ "account_index",
3799
+ "sub_account_index"
3800
+ ]
3270
3801
  },
3271
3802
  "ReqGetOrderBookDetails": {
3272
3803
  "type": "object",
@@ -3283,7 +3814,10 @@
3283
3814
  "format": "uin16"
3284
3815
  }
3285
3816
  },
3286
- "title": "ReqGetOrderBookDetails"
3817
+ "title": "ReqGetOrderBookDetails",
3818
+ "required": [
3819
+ "filter"
3820
+ ]
3287
3821
  },
3288
3822
  "ReqGetOrderBookOrders": {
3289
3823
  "type": "object",
@@ -3299,7 +3833,11 @@
3299
3833
  "minimum": 1
3300
3834
  }
3301
3835
  },
3302
- "title": "ReqGetOrderBookOrders"
3836
+ "title": "ReqGetOrderBookOrders",
3837
+ "required": [
3838
+ "market_id",
3839
+ "limit"
3840
+ ]
3303
3841
  },
3304
3842
  "ReqGetOrderBooks": {
3305
3843
  "type": "object",
@@ -3316,7 +3854,10 @@
3316
3854
  "format": "uin16"
3317
3855
  }
3318
3856
  },
3319
- "title": "ReqGetOrderBooks"
3857
+ "title": "ReqGetOrderBooks",
3858
+ "required": [
3859
+ "filter"
3860
+ ]
3320
3861
  },
3321
3862
  "ReqGetPermission": {
3322
3863
  "type": "object",
@@ -3336,7 +3877,12 @@
3336
3877
  "format": "uint8"
3337
3878
  }
3338
3879
  },
3339
- "title": "ReqGetPermission"
3880
+ "title": "ReqGetPermission",
3881
+ "required": [
3882
+ "by",
3883
+ "value",
3884
+ "tx_type"
3885
+ ]
3340
3886
  },
3341
3887
  "ReqGetRangeWithCursor": {
3342
3888
  "type": "object",
@@ -3351,7 +3897,10 @@
3351
3897
  "minimum": 1
3352
3898
  }
3353
3899
  },
3354
- "title": "ReqGetRangeWithCursor"
3900
+ "title": "ReqGetRangeWithCursor",
3901
+ "required": [
3902
+ "limit"
3903
+ ]
3355
3904
  },
3356
3905
  "ReqGetRangeWithIndex": {
3357
3906
  "type": "object",
@@ -3367,7 +3916,10 @@
3367
3916
  "minimum": 1
3368
3917
  }
3369
3918
  },
3370
- "title": "ReqGetRangeWithIndex"
3919
+ "title": "ReqGetRangeWithIndex",
3920
+ "required": [
3921
+ "limit"
3922
+ ]
3371
3923
  },
3372
3924
  "ReqGetRangeWithIndexSortable": {
3373
3925
  "type": "object",
@@ -3407,7 +3959,11 @@
3407
3959
  "minimum": 1
3408
3960
  }
3409
3961
  },
3410
- "title": "ReqGetRecentTrades"
3962
+ "title": "ReqGetRecentTrades",
3963
+ "required": [
3964
+ "market_id",
3965
+ "limit"
3966
+ ]
3411
3967
  },
3412
3968
  "ReqGetRollbacks": {
3413
3969
  "type": "object",
@@ -3428,7 +3984,12 @@
3428
3984
  "minimum": 1
3429
3985
  }
3430
3986
  },
3431
- "title": "ReqGetRollbacks"
3987
+ "title": "ReqGetRollbacks",
3988
+ "required": [
3989
+ "from_block_height",
3990
+ "offset",
3991
+ "limit"
3992
+ ]
3432
3993
  },
3433
3994
  "ReqGetSubAccount": {
3434
3995
  "type": "object",
@@ -3450,7 +4011,12 @@
3450
4011
  "description": " NilSubAccountIndex"
3451
4012
  }
3452
4013
  },
3453
- "title": "ReqGetSubAccount"
4014
+ "title": "ReqGetSubAccount",
4015
+ "required": [
4016
+ "by",
4017
+ "value",
4018
+ "sub_account_index"
4019
+ ]
3454
4020
  },
3455
4021
  "ReqGetTrades": {
3456
4022
  "type": "object",
@@ -3482,7 +4048,13 @@
3482
4048
  "minimum": 1
3483
4049
  }
3484
4050
  },
3485
- "title": "ReqGetTrades"
4051
+ "title": "ReqGetTrades",
4052
+ "required": [
4053
+ "market_id",
4054
+ "by",
4055
+ "from",
4056
+ "limit"
4057
+ ]
3486
4058
  },
3487
4059
  "ReqGetTx": {
3488
4060
  "type": "object",
@@ -3498,7 +4070,11 @@
3498
4070
  "type": "string"
3499
4071
  }
3500
4072
  },
3501
- "title": "ReqGetTx"
4073
+ "title": "ReqGetTx",
4074
+ "required": [
4075
+ "by",
4076
+ "value"
4077
+ ]
3502
4078
  },
3503
4079
  "ReqSearch": {
3504
4080
  "type": "object",
@@ -3507,7 +4083,10 @@
3507
4083
  "type": "string"
3508
4084
  }
3509
4085
  },
3510
- "title": "ReqSearch"
4086
+ "title": "ReqSearch",
4087
+ "required": [
4088
+ "keyword"
4089
+ ]
3511
4090
  },
3512
4091
  "ReqSendTx": {
3513
4092
  "type": "object",
@@ -3520,7 +4099,27 @@
3520
4099
  "type": "string"
3521
4100
  }
3522
4101
  },
3523
- "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
+ ]
3524
4123
  },
3525
4124
  "ResultCode": {
3526
4125
  "type": "object",
@@ -3534,7 +4133,10 @@
3534
4133
  "type": "string"
3535
4134
  }
3536
4135
  },
3537
- "title": "ResultCode"
4136
+ "title": "ResultCode",
4137
+ "required": [
4138
+ "code"
4139
+ ]
3538
4140
  },
3539
4141
  "Rollback": {
3540
4142
  "type": "object",
@@ -3559,7 +4161,13 @@
3559
4161
  "example": "1640995200"
3560
4162
  }
3561
4163
  },
3562
- "title": "Rollback"
4164
+ "title": "Rollback",
4165
+ "required": [
4166
+ "from_block_height",
4167
+ "from_tx_hash",
4168
+ "id",
4169
+ "created_at"
4170
+ ]
3563
4171
  },
3564
4172
  "Rollbacks": {
3565
4173
  "type": "object",
@@ -3584,7 +4192,11 @@
3584
4192
  }
3585
4193
  }
3586
4194
  },
3587
- "title": "Rollbacks"
4195
+ "title": "Rollbacks",
4196
+ "required": [
4197
+ "total",
4198
+ "rollbacks"
4199
+ ]
3588
4200
  },
3589
4201
  "Search": {
3590
4202
  "type": "object",
@@ -3603,7 +4215,10 @@
3603
4215
  "example": "1"
3604
4216
  }
3605
4217
  },
3606
- "title": "Search"
4218
+ "title": "Search",
4219
+ "required": [
4220
+ "data_type"
4221
+ ]
3607
4222
  },
3608
4223
  "SignBody": {
3609
4224
  "type": "object",
@@ -3621,7 +4236,10 @@
3621
4236
  "example": "success"
3622
4237
  }
3623
4238
  },
3624
- "title": "SignBody"
4239
+ "title": "SignBody",
4240
+ "required": [
4241
+ "sign_body"
4242
+ ]
3625
4243
  },
3626
4244
  "SimpleOrder": {
3627
4245
  "type": "object",
@@ -3654,7 +4272,15 @@
3654
4272
  "example": "234"
3655
4273
  }
3656
4274
  },
3657
- "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
+ ]
3658
4284
  },
3659
4285
  "Status": {
3660
4286
  "type": "object",
@@ -3670,7 +4296,11 @@
3670
4296
  "example": "1"
3671
4297
  }
3672
4298
  },
3673
- "title": "Status"
4299
+ "title": "Status",
4300
+ "required": [
4301
+ "status",
4302
+ "network_id"
4303
+ ]
3674
4304
  },
3675
4305
  "SubAccount": {
3676
4306
  "type": "object",
@@ -3713,7 +4343,17 @@
3713
4343
  "example": "1"
3714
4344
  }
3715
4345
  },
3716
- "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
+ ]
3717
4357
  },
3718
4358
  "SubAccounts": {
3719
4359
  "type": "object",
@@ -3748,7 +4388,13 @@
3748
4388
  }
3749
4389
  }
3750
4390
  },
3751
- "title": "SubAccounts"
4391
+ "title": "SubAccounts",
4392
+ "required": [
4393
+ "index",
4394
+ "l1_address",
4395
+ "status",
4396
+ "sub_accounts"
4397
+ ]
3752
4398
  },
3753
4399
  "Trade": {
3754
4400
  "type": "object",
@@ -3811,7 +4457,21 @@
3811
4457
  "example": "1640995200"
3812
4458
  }
3813
4459
  },
3814
- "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
+ ]
3815
4475
  },
3816
4476
  "Trades": {
3817
4477
  "type": "object",
@@ -3831,7 +4491,10 @@
3831
4491
  }
3832
4492
  }
3833
4493
  },
3834
- "title": "Trades"
4494
+ "title": "Trades",
4495
+ "required": [
4496
+ "trades"
4497
+ ]
3835
4498
  },
3836
4499
  "Tx": {
3837
4500
  "type": "object",
@@ -3905,7 +4568,23 @@
3905
4568
  "example": "8761"
3906
4569
  }
3907
4570
  },
3908
- "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
+ ]
3909
4588
  },
3910
4589
  "TxHash": {
3911
4590
  "type": "object",
@@ -3923,7 +4602,33 @@
3923
4602
  "example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
3924
4603
  }
3925
4604
  },
3926
- "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
+ ]
3927
4632
  },
3928
4633
  "Txs": {
3929
4634
  "type": "object",
@@ -3943,7 +4648,10 @@
3943
4648
  }
3944
4649
  }
3945
4650
  },
3946
- "title": "Txs"
4651
+ "title": "Txs",
4652
+ "required": [
4653
+ "txs"
4654
+ ]
3947
4655
  },
3948
4656
  "ValidatorInfo": {
3949
4657
  "type": "object",
@@ -3958,7 +4666,11 @@
3958
4666
  "example": "true"
3959
4667
  }
3960
4668
  },
3961
- "title": "ValidatorInfo"
4669
+ "title": "ValidatorInfo",
4670
+ "required": [
4671
+ "address",
4672
+ "is_active"
4673
+ ]
3962
4674
  }
3963
4675
  },
3964
4676
  "securityDefinitions": {