zklighter-perps 1.0.3 → 1.0.5

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 (87) hide show
  1. package/apis/BlockApi.ts +3 -0
  2. package/apis/CandlestickApi.ts +3 -0
  3. package/apis/InfoApi.ts +3 -0
  4. package/apis/OrderApi.ts +3 -0
  5. package/apis/RelayerApi.ts +3 -0
  6. package/apis/RootApi.ts +69 -0
  7. package/apis/TransactionApi.ts +37 -6
  8. package/models/AccountMarketStats.ts +18 -12
  9. package/models/AccountPnL.ts +7 -5
  10. package/models/AccountPosition.ts +33 -22
  11. package/models/AccountStats.ts +15 -10
  12. package/models/Block.ts +40 -27
  13. package/models/Blocks.ts +7 -5
  14. package/models/Candlestick.ts +21 -14
  15. package/models/Candlesticks.ts +7 -5
  16. package/models/ContractAddress.ts +6 -4
  17. package/models/CurrentHeight.ts +3 -2
  18. package/models/DetailedAccount.ts +11 -8
  19. package/models/DetailedAccounts.ts +7 -5
  20. package/models/EnrichedTx.ts +9 -6
  21. package/models/ExchangeStats.ts +13 -9
  22. package/models/Funding.ts +12 -8
  23. package/models/Fundings.ts +7 -5
  24. package/models/L1ProviderInfo.ts +12 -8
  25. package/models/Layer1BasicInfo.ts +24 -17
  26. package/models/Layer2BasicInfo.ts +9 -6
  27. package/models/MainAccount.ts +9 -6
  28. package/models/MainAccounts.ts +7 -5
  29. package/models/MarketInfo.ts +33 -22
  30. package/models/MarketSig.ts +12 -8
  31. package/models/NextNonce.ts +3 -2
  32. package/models/Order.ts +48 -32
  33. package/models/OrderBook.ts +30 -20
  34. package/models/OrderBookDepth.ts +11 -8
  35. package/models/OrderBookDetail.ts +54 -36
  36. package/models/OrderBookDetails.ts +4 -3
  37. package/models/OrderBookOrders.ts +14 -10
  38. package/models/OrderBookStats.ts +18 -12
  39. package/models/OrderBooks.ts +4 -3
  40. package/models/Orders.ts +4 -3
  41. package/models/Permission.ts +3 -2
  42. package/models/PnLEntry.ts +6 -4
  43. package/models/PriceLevel.ts +6 -4
  44. package/models/ReqDoFaucet.ts +3 -2
  45. package/models/ReqGetAccount.ts +6 -4
  46. package/models/ReqGetAccountActiveOrders.ts +9 -6
  47. package/models/ReqGetAccountByL1Address.ts +3 -2
  48. package/models/ReqGetAccountInactiveOrders.ts +12 -8
  49. package/models/ReqGetAccountOrders.ts +9 -6
  50. package/models/ReqGetAccountPnL.ts +18 -12
  51. package/models/ReqGetBlock.ts +6 -4
  52. package/models/ReqGetBlockTxs.ts +6 -4
  53. package/models/ReqGetByAccount.ts +6 -4
  54. package/models/ReqGetCandlesticks.ts +15 -10
  55. package/models/ReqGetFundings.ts +15 -10
  56. package/models/ReqGetL1Tx.ts +3 -2
  57. package/models/ReqGetMarketSig.ts +9 -6
  58. package/models/ReqGetNextNonce.ts +6 -4
  59. package/models/ReqGetOrderBookDetails.ts +3 -2
  60. package/models/ReqGetOrderBookOrders.ts +6 -4
  61. package/models/ReqGetOrderBooks.ts +3 -2
  62. package/models/ReqGetPermission.ts +9 -6
  63. package/models/ReqGetRangeWithCursor.ts +3 -2
  64. package/models/ReqGetRangeWithIndex.ts +3 -2
  65. package/models/ReqGetRecentTrades.ts +6 -4
  66. package/models/ReqGetRollbacks.ts +9 -6
  67. package/models/ReqGetSubAccount.ts +9 -6
  68. package/models/ReqGetTrades.ts +12 -8
  69. package/models/ReqGetTx.ts +6 -4
  70. package/models/ReqSearch.ts +3 -2
  71. package/models/ResultCode.ts +3 -2
  72. package/models/Rollback.ts +12 -8
  73. package/models/Rollbacks.ts +7 -5
  74. package/models/Search.ts +3 -2
  75. package/models/SignBody.ts +3 -2
  76. package/models/SimpleOrder.ts +18 -12
  77. package/models/Status.ts +6 -4
  78. package/models/SubAccount.ts +24 -16
  79. package/models/SubAccounts.ts +13 -9
  80. package/models/Trade.ts +36 -24
  81. package/models/Trades.ts +4 -3
  82. package/models/Tx.ts +42 -28
  83. package/models/TxHash.ts +3 -2
  84. package/models/Txs.ts +4 -3
  85. package/models/ValidatorInfo.ts +6 -4
  86. package/openapi.json +818 -80
  87. 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": [
@@ -42,6 +48,12 @@
42
48
  "schema": {
43
49
  "$ref": "#/definitions/DetailedAccounts"
44
50
  }
51
+ },
52
+ "400": {
53
+ "description": "Bad request",
54
+ "schema": {
55
+ "$ref": "#/definitions/ResultCode"
56
+ }
45
57
  }
46
58
  },
47
59
  "parameters": [
@@ -89,6 +101,12 @@
89
101
  "schema": {
90
102
  "$ref": "#/definitions/Orders"
91
103
  }
104
+ },
105
+ "400": {
106
+ "description": "Bad request",
107
+ "schema": {
108
+ "$ref": "#/definitions/ResultCode"
109
+ }
92
110
  }
93
111
  },
94
112
  "parameters": [
@@ -134,6 +152,12 @@
134
152
  "schema": {
135
153
  "$ref": "#/definitions/Orders"
136
154
  }
155
+ },
156
+ "400": {
157
+ "description": "Bad request",
158
+ "schema": {
159
+ "$ref": "#/definitions/ResultCode"
160
+ }
137
161
  }
138
162
  },
139
163
  "parameters": [
@@ -204,6 +228,12 @@
204
228
  "schema": {
205
229
  "$ref": "#/definitions/Orders"
206
230
  }
231
+ },
232
+ "400": {
233
+ "description": "Bad request",
234
+ "schema": {
235
+ "$ref": "#/definitions/ResultCode"
236
+ }
207
237
  }
208
238
  },
209
239
  "parameters": [
@@ -255,6 +285,12 @@
255
285
  "schema": {
256
286
  "$ref": "#/definitions/Txs"
257
287
  }
288
+ },
289
+ "400": {
290
+ "description": "Bad request",
291
+ "schema": {
292
+ "$ref": "#/definitions/ResultCode"
293
+ }
258
294
  }
259
295
  },
260
296
  "parameters": [
@@ -300,6 +336,12 @@
300
336
  "schema": {
301
337
  "$ref": "#/definitions/Txs"
302
338
  }
339
+ },
340
+ "400": {
341
+ "description": "Bad request",
342
+ "schema": {
343
+ "$ref": "#/definitions/ResultCode"
344
+ }
303
345
  }
304
346
  },
305
347
  "parameters": [
@@ -361,6 +403,12 @@
361
403
  "schema": {
362
404
  "$ref": "#/definitions/MainAccounts"
363
405
  }
406
+ },
407
+ "400": {
408
+ "description": "Bad request",
409
+ "schema": {
410
+ "$ref": "#/definitions/ResultCode"
411
+ }
364
412
  }
365
413
  },
366
414
  "parameters": [
@@ -410,6 +458,12 @@
410
458
  "schema": {
411
459
  "$ref": "#/definitions/SubAccounts"
412
460
  }
461
+ },
462
+ "400": {
463
+ "description": "Bad request",
464
+ "schema": {
465
+ "$ref": "#/definitions/ResultCode"
466
+ }
413
467
  }
414
468
  },
415
469
  "parameters": [
@@ -438,6 +492,12 @@
438
492
  "schema": {
439
493
  "$ref": "#/definitions/Blocks"
440
494
  }
495
+ },
496
+ "400": {
497
+ "description": "Bad request",
498
+ "schema": {
499
+ "$ref": "#/definitions/ResultCode"
500
+ }
441
501
  }
442
502
  },
443
503
  "parameters": [
@@ -476,6 +536,12 @@
476
536
  "schema": {
477
537
  "$ref": "#/definitions/Txs"
478
538
  }
539
+ },
540
+ "400": {
541
+ "description": "Bad request",
542
+ "schema": {
543
+ "$ref": "#/definitions/ResultCode"
544
+ }
479
545
  }
480
546
  },
481
547
  "parameters": [
@@ -514,6 +580,12 @@
514
580
  "schema": {
515
581
  "$ref": "#/definitions/Blocks"
516
582
  }
583
+ },
584
+ "400": {
585
+ "description": "Bad request",
586
+ "schema": {
587
+ "$ref": "#/definitions/ResultCode"
588
+ }
517
589
  }
518
590
  },
519
591
  "parameters": [
@@ -563,6 +635,12 @@
563
635
  "schema": {
564
636
  "$ref": "#/definitions/Candlesticks"
565
637
  }
638
+ },
639
+ "400": {
640
+ "description": "Bad request",
641
+ "schema": {
642
+ "$ref": "#/definitions/ResultCode"
643
+ }
566
644
  }
567
645
  },
568
646
  "parameters": [
@@ -626,6 +704,12 @@
626
704
  "schema": {
627
705
  "$ref": "#/definitions/CurrentHeight"
628
706
  }
707
+ },
708
+ "400": {
709
+ "description": "Bad request",
710
+ "schema": {
711
+ "$ref": "#/definitions/ResultCode"
712
+ }
629
713
  }
630
714
  },
631
715
  "tags": [
@@ -643,6 +727,12 @@
643
727
  "schema": {
644
728
  "$ref": "#/definitions/ExchangeStats"
645
729
  }
730
+ },
731
+ "400": {
732
+ "description": "Bad request",
733
+ "schema": {
734
+ "$ref": "#/definitions/ResultCode"
735
+ }
646
736
  }
647
737
  },
648
738
  "tags": [
@@ -660,6 +750,12 @@
660
750
  "schema": {
661
751
  "$ref": "#/definitions/ResultCode"
662
752
  }
753
+ },
754
+ "400": {
755
+ "description": "Bad request",
756
+ "schema": {
757
+ "$ref": "#/definitions/ResultCode"
758
+ }
663
759
  }
664
760
  },
665
761
  "parameters": [
@@ -678,6 +774,42 @@
678
774
  ]
679
775
  }
680
776
  },
777
+ "/api/v1/feedback": {
778
+ "post": {
779
+ "summary": "Send feedback",
780
+ "operationId": "SendFeedback",
781
+ "responses": {
782
+ "200": {
783
+ "description": "A successful response.",
784
+ "schema": {
785
+ "$ref": "#/definitions/ResultCode"
786
+ }
787
+ },
788
+ "400": {
789
+ "description": "Bad request",
790
+ "schema": {
791
+ "$ref": "#/definitions/ResultCode"
792
+ }
793
+ }
794
+ },
795
+ "parameters": [
796
+ {
797
+ "name": "body",
798
+ "in": "body",
799
+ "required": true,
800
+ "schema": {
801
+ "$ref": "#/definitions/ReqSendFeedback"
802
+ }
803
+ }
804
+ ],
805
+ "tags": [
806
+ "root"
807
+ ],
808
+ "consumes": [
809
+ "multipart/form-data"
810
+ ]
811
+ }
812
+ },
681
813
  "/api/v1/fundings": {
682
814
  "get": {
683
815
  "summary": "Get fundings",
@@ -688,6 +820,12 @@
688
820
  "schema": {
689
821
  "$ref": "#/definitions/Fundings"
690
822
  }
823
+ },
824
+ "400": {
825
+ "description": "Bad request",
826
+ "schema": {
827
+ "$ref": "#/definitions/ResultCode"
828
+ }
691
829
  }
692
830
  },
693
831
  "parameters": [
@@ -747,6 +885,12 @@
747
885
  "schema": {
748
886
  "$ref": "#/definitions/SignBody"
749
887
  }
888
+ },
889
+ "400": {
890
+ "description": "Bad request",
891
+ "schema": {
892
+ "$ref": "#/definitions/ResultCode"
893
+ }
750
894
  }
751
895
  },
752
896
  "parameters": [
@@ -777,6 +921,12 @@
777
921
  "schema": {
778
922
  "$ref": "#/definitions/Layer1BasicInfo"
779
923
  }
924
+ },
925
+ "400": {
926
+ "description": "Bad request",
927
+ "schema": {
928
+ "$ref": "#/definitions/ResultCode"
929
+ }
780
930
  }
781
931
  },
782
932
  "tags": [
@@ -794,6 +944,12 @@
794
944
  "schema": {
795
945
  "$ref": "#/definitions/Layer2BasicInfo"
796
946
  }
947
+ },
948
+ "400": {
949
+ "description": "Bad request",
950
+ "schema": {
951
+ "$ref": "#/definitions/ResultCode"
952
+ }
797
953
  }
798
954
  },
799
955
  "tags": [
@@ -811,6 +967,12 @@
811
967
  "schema": {
812
968
  "$ref": "#/definitions/NextNonce"
813
969
  }
970
+ },
971
+ "400": {
972
+ "description": "Bad request",
973
+ "schema": {
974
+ "$ref": "#/definitions/ResultCode"
975
+ }
814
976
  }
815
977
  },
816
978
  "parameters": [
@@ -847,6 +1009,12 @@
847
1009
  "schema": {
848
1010
  "$ref": "#/definitions/OrderBookDetails"
849
1011
  }
1012
+ },
1013
+ "400": {
1014
+ "description": "Bad request",
1015
+ "schema": {
1016
+ "$ref": "#/definitions/ResultCode"
1017
+ }
850
1018
  }
851
1019
  },
852
1020
  "parameters": [
@@ -886,6 +1054,12 @@
886
1054
  "schema": {
887
1055
  "$ref": "#/definitions/OrderBookOrders"
888
1056
  }
1057
+ },
1058
+ "400": {
1059
+ "description": "Bad request",
1060
+ "schema": {
1061
+ "$ref": "#/definitions/ResultCode"
1062
+ }
889
1063
  }
890
1064
  },
891
1065
  "parameters": [
@@ -924,6 +1098,12 @@
924
1098
  "schema": {
925
1099
  "$ref": "#/definitions/OrderBooks"
926
1100
  }
1101
+ },
1102
+ "400": {
1103
+ "description": "Bad request",
1104
+ "schema": {
1105
+ "$ref": "#/definitions/ResultCode"
1106
+ }
927
1107
  }
928
1108
  },
929
1109
  "parameters": [
@@ -963,6 +1143,12 @@
963
1143
  "schema": {
964
1144
  "$ref": "#/definitions/Txs"
965
1145
  }
1146
+ },
1147
+ "400": {
1148
+ "description": "Bad request",
1149
+ "schema": {
1150
+ "$ref": "#/definitions/ResultCode"
1151
+ }
966
1152
  }
967
1153
  },
968
1154
  "parameters": [
@@ -1001,6 +1187,12 @@
1001
1187
  "schema": {
1002
1188
  "$ref": "#/definitions/Permission"
1003
1189
  }
1190
+ },
1191
+ "400": {
1192
+ "description": "Bad request",
1193
+ "schema": {
1194
+ "$ref": "#/definitions/ResultCode"
1195
+ }
1004
1196
  }
1005
1197
  },
1006
1198
  "parameters": [
@@ -1046,6 +1238,12 @@
1046
1238
  "schema": {
1047
1239
  "$ref": "#/definitions/AccountPnL"
1048
1240
  }
1241
+ },
1242
+ "400": {
1243
+ "description": "Bad request",
1244
+ "schema": {
1245
+ "$ref": "#/definitions/ResultCode"
1246
+ }
1049
1247
  }
1050
1248
  },
1051
1249
  "parameters": [
@@ -1119,6 +1317,12 @@
1119
1317
  "schema": {
1120
1318
  "$ref": "#/definitions/MarketSig"
1121
1319
  }
1320
+ },
1321
+ "400": {
1322
+ "description": "Bad request",
1323
+ "schema": {
1324
+ "$ref": "#/definitions/ResultCode"
1325
+ }
1122
1326
  }
1123
1327
  },
1124
1328
  "parameters": [
@@ -1162,6 +1366,12 @@
1162
1366
  "schema": {
1163
1367
  "$ref": "#/definitions/Trades"
1164
1368
  }
1369
+ },
1370
+ "400": {
1371
+ "description": "Bad request",
1372
+ "schema": {
1373
+ "$ref": "#/definitions/ResultCode"
1374
+ }
1165
1375
  }
1166
1376
  },
1167
1377
  "parameters": [
@@ -1200,6 +1410,12 @@
1200
1410
  "schema": {
1201
1411
  "$ref": "#/definitions/Rollbacks"
1202
1412
  }
1413
+ },
1414
+ "400": {
1415
+ "description": "Bad request",
1416
+ "schema": {
1417
+ "$ref": "#/definitions/ResultCode"
1418
+ }
1203
1419
  }
1204
1420
  },
1205
1421
  "parameters": [
@@ -1247,6 +1463,12 @@
1247
1463
  "schema": {
1248
1464
  "$ref": "#/definitions/Search"
1249
1465
  }
1466
+ },
1467
+ "400": {
1468
+ "description": "Bad request",
1469
+ "schema": {
1470
+ "$ref": "#/definitions/ResultCode"
1471
+ }
1250
1472
  }
1251
1473
  },
1252
1474
  "parameters": [
@@ -1275,6 +1497,12 @@
1275
1497
  "schema": {
1276
1498
  "$ref": "#/definitions/TxHash"
1277
1499
  }
1500
+ },
1501
+ "400": {
1502
+ "description": "Bad request",
1503
+ "schema": {
1504
+ "$ref": "#/definitions/ResultCode"
1505
+ }
1278
1506
  }
1279
1507
  },
1280
1508
  "parameters": [
@@ -1305,6 +1533,12 @@
1305
1533
  "schema": {
1306
1534
  "$ref": "#/definitions/Trades"
1307
1535
  }
1536
+ },
1537
+ "400": {
1538
+ "description": "Bad request",
1539
+ "schema": {
1540
+ "$ref": "#/definitions/ResultCode"
1541
+ }
1308
1542
  }
1309
1543
  },
1310
1544
  "parameters": [
@@ -1368,6 +1602,12 @@
1368
1602
  "schema": {
1369
1603
  "$ref": "#/definitions/EnrichedTx"
1370
1604
  }
1605
+ },
1606
+ "400": {
1607
+ "description": "Bad request",
1608
+ "schema": {
1609
+ "$ref": "#/definitions/ResultCode"
1610
+ }
1371
1611
  }
1372
1612
  },
1373
1613
  "parameters": [
@@ -1406,6 +1646,12 @@
1406
1646
  "schema": {
1407
1647
  "$ref": "#/definitions/EnrichedTx"
1408
1648
  }
1649
+ },
1650
+ "400": {
1651
+ "description": "Bad request",
1652
+ "schema": {
1653
+ "$ref": "#/definitions/ResultCode"
1654
+ }
1409
1655
  }
1410
1656
  },
1411
1657
  "parameters": [
@@ -1434,6 +1680,12 @@
1434
1680
  "schema": {
1435
1681
  "$ref": "#/definitions/Txs"
1436
1682
  }
1683
+ },
1684
+ "400": {
1685
+ "description": "Bad request",
1686
+ "schema": {
1687
+ "$ref": "#/definitions/ResultCode"
1688
+ }
1437
1689
  }
1438
1690
  },
1439
1691
  "parameters": [
@@ -1472,6 +1724,12 @@
1472
1724
  "schema": {
1473
1725
  "$ref": "#/definitions/ResultCode"
1474
1726
  }
1727
+ },
1728
+ "400": {
1729
+ "description": "Bad request",
1730
+ "schema": {
1731
+ "$ref": "#/definitions/ResultCode"
1732
+ }
1475
1733
  }
1476
1734
  },
1477
1735
  "tags": [
@@ -1489,6 +1747,12 @@
1489
1747
  "schema": {
1490
1748
  "$ref": "#/definitions/ResultCode"
1491
1749
  }
1750
+ },
1751
+ "400": {
1752
+ "description": "Bad request",
1753
+ "schema": {
1754
+ "$ref": "#/definitions/ResultCode"
1755
+ }
1492
1756
  }
1493
1757
  },
1494
1758
  "tags": [
@@ -1532,7 +1796,15 @@
1532
1796
  "example": "1276.0"
1533
1797
  }
1534
1798
  },
1535
- "title": "AccountMarketStats"
1799
+ "title": "AccountMarketStats",
1800
+ "required": [
1801
+ "market_id",
1802
+ "daily_trades_count",
1803
+ "daily_base_token_volume",
1804
+ "daily_quote_token_volume",
1805
+ "open_position_base",
1806
+ "open_position_quote"
1807
+ ]
1536
1808
  },
1537
1809
  "AccountPnL": {
1538
1810
  "type": "object",
@@ -1556,7 +1828,11 @@
1556
1828
  }
1557
1829
  }
1558
1830
  },
1559
- "title": "AccountPnL"
1831
+ "title": "AccountPnL",
1832
+ "required": [
1833
+ "resolution",
1834
+ "pnl"
1835
+ ]
1560
1836
  },
1561
1837
  "AccountPosition": {
1562
1838
  "type": "object",
@@ -1608,7 +1884,20 @@
1608
1884
  "example": "2.000000"
1609
1885
  }
1610
1886
  },
1611
- "title": "AccountPosition"
1887
+ "title": "AccountPosition",
1888
+ "required": [
1889
+ "market_id",
1890
+ "name",
1891
+ "symbol",
1892
+ "sign",
1893
+ "position",
1894
+ "ask_order_size",
1895
+ "bid_order_size",
1896
+ "avg_entry_price",
1897
+ "position_value",
1898
+ "unrealized_pnl",
1899
+ "realized_pnl"
1900
+ ]
1612
1901
  },
1613
1902
  "AccountStats": {
1614
1903
  "type": "object",
@@ -1634,7 +1923,14 @@
1634
1923
  "example": "199955"
1635
1924
  }
1636
1925
  },
1637
- "title": "AccountStats"
1926
+ "title": "AccountStats",
1927
+ "required": [
1928
+ "portfolio_value",
1929
+ "leverage",
1930
+ "free_collateral",
1931
+ "margin_usage",
1932
+ "buying_power"
1933
+ ]
1638
1934
  },
1639
1935
  "Block": {
1640
1936
  "type": "object",
@@ -1689,7 +1985,22 @@
1689
1985
  "format": "uin16"
1690
1986
  }
1691
1987
  },
1692
- "title": "Block"
1988
+ "title": "Block",
1989
+ "required": [
1990
+ "commitment",
1991
+ "height",
1992
+ "state_root",
1993
+ "priority_operations",
1994
+ "on_chain_l2_operations",
1995
+ "pending_on_chain_operations_pub_data",
1996
+ "committed_tx_hash",
1997
+ "committed_at",
1998
+ "verified_tx_hash",
1999
+ "verified_at",
2000
+ "txs",
2001
+ "status",
2002
+ "size"
2003
+ ]
1693
2004
  },
1694
2005
  "Blocks": {
1695
2006
  "type": "object",
@@ -1713,7 +2024,11 @@
1713
2024
  }
1714
2025
  }
1715
2026
  },
1716
- "title": "Blocks"
2027
+ "title": "Blocks",
2028
+ "required": [
2029
+ "total",
2030
+ "blocks"
2031
+ ]
1717
2032
  },
1718
2033
  "Candlestick": {
1719
2034
  "type": "object",
@@ -1754,7 +2069,16 @@
1754
2069
  "example": "93566.25"
1755
2070
  }
1756
2071
  },
1757
- "title": "Candlestick"
2072
+ "title": "Candlestick",
2073
+ "required": [
2074
+ "timestamp",
2075
+ "open",
2076
+ "high",
2077
+ "low",
2078
+ "close",
2079
+ "volume0",
2080
+ "volume1"
2081
+ ]
1758
2082
  },
1759
2083
  "Candlesticks": {
1760
2084
  "type": "object",
@@ -1778,7 +2102,11 @@
1778
2102
  }
1779
2103
  }
1780
2104
  },
1781
- "title": "Candlesticks"
2105
+ "title": "Candlesticks",
2106
+ "required": [
2107
+ "resolution",
2108
+ "candlesticks"
2109
+ ]
1782
2110
  },
1783
2111
  "ContractAddress": {
1784
2112
  "type": "object",
@@ -1792,7 +2120,11 @@
1792
2120
  "example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
1793
2121
  }
1794
2122
  },
1795
- "title": "ContractAddress"
2123
+ "title": "ContractAddress",
2124
+ "required": [
2125
+ "name",
2126
+ "address"
2127
+ ]
1796
2128
  },
1797
2129
  "CurrentHeight": {
1798
2130
  "type": "object",
@@ -1810,7 +2142,10 @@
1810
2142
  "format": "int64"
1811
2143
  }
1812
2144
  },
1813
- "title": "CurrentHeight"
2145
+ "title": "CurrentHeight",
2146
+ "required": [
2147
+ "height"
2148
+ ]
1814
2149
  },
1815
2150
  "Cursor": {
1816
2151
  "type": "object",
@@ -1886,7 +2221,12 @@
1886
2221
  }
1887
2222
  }
1888
2223
  },
1889
- "title": "DetailedAccount"
2224
+ "title": "DetailedAccount",
2225
+ "required": [
2226
+ "positions",
2227
+ "total_asset_value",
2228
+ "market_stats"
2229
+ ]
1890
2230
  },
1891
2231
  "DetailedAccounts": {
1892
2232
  "type": "object",
@@ -1911,7 +2251,11 @@
1911
2251
  }
1912
2252
  }
1913
2253
  },
1914
- "title": "DetailedAccounts"
2254
+ "title": "DetailedAccounts",
2255
+ "required": [
2256
+ "total",
2257
+ "accounts"
2258
+ ]
1915
2259
  },
1916
2260
  "EnrichedTx": {
1917
2261
  "type": "object",
@@ -2008,7 +2352,12 @@
2008
2352
  "example": "1640995200"
2009
2353
  }
2010
2354
  },
2011
- "title": "EnrichedTx"
2355
+ "title": "EnrichedTx",
2356
+ "required": [
2357
+ "committed_at",
2358
+ "verified_at",
2359
+ "executed_at"
2360
+ ]
2012
2361
  },
2013
2362
  "ExchangeStats": {
2014
2363
  "type": "object",
@@ -2044,7 +2393,13 @@
2044
2393
  "example": "68"
2045
2394
  }
2046
2395
  },
2047
- "title": "ExchangeStats"
2396
+ "title": "ExchangeStats",
2397
+ "required": [
2398
+ "total",
2399
+ "order_book_stats",
2400
+ "daily_usd_volume",
2401
+ "daily_trades_count"
2402
+ ]
2048
2403
  },
2049
2404
  "Funding": {
2050
2405
  "type": "object",
@@ -2067,7 +2422,13 @@
2067
2422
  "example": "long"
2068
2423
  }
2069
2424
  },
2070
- "title": "Funding"
2425
+ "title": "Funding",
2426
+ "required": [
2427
+ "timestamp",
2428
+ "value",
2429
+ "rate",
2430
+ "direction"
2431
+ ]
2071
2432
  },
2072
2433
  "Fundings": {
2073
2434
  "type": "object",
@@ -2091,7 +2452,11 @@
2091
2452
  }
2092
2453
  }
2093
2454
  },
2094
- "title": "Fundings"
2455
+ "title": "Fundings",
2456
+ "required": [
2457
+ "resolution",
2458
+ "fundings"
2459
+ ]
2095
2460
  },
2096
2461
  "L1ProviderInfo": {
2097
2462
  "type": "object",
@@ -2115,7 +2480,13 @@
2115
2480
  "type": "string"
2116
2481
  }
2117
2482
  },
2118
- "title": "L1ProviderInfo"
2483
+ "title": "L1ProviderInfo",
2484
+ "required": [
2485
+ "chainId",
2486
+ "networkId",
2487
+ "latestBlockNumber",
2488
+ "NetworkRpc"
2489
+ ]
2119
2490
  },
2120
2491
  "Layer1BasicInfo": {
2121
2492
  "type": "object",
@@ -2167,7 +2538,16 @@
2167
2538
  "example": "45434"
2168
2539
  }
2169
2540
  },
2170
- "title": "Layer1BasicInfo"
2541
+ "title": "Layer1BasicInfo",
2542
+ "required": [
2543
+ "l1_providers",
2544
+ "l1_providers_health",
2545
+ "validator_Info",
2546
+ "contract_addresses",
2547
+ "latest_l1_generic_block",
2548
+ "latest_l1_governance_block",
2549
+ "latest_l1_desert_block"
2550
+ ]
2171
2551
  },
2172
2552
  "Layer2BasicInfo": {
2173
2553
  "type": "object",
@@ -2196,7 +2576,12 @@
2196
2576
  "example": "75434"
2197
2577
  }
2198
2578
  },
2199
- "title": "Layer2BasicInfo"
2579
+ "title": "Layer2BasicInfo",
2580
+ "required": [
2581
+ "block_committed",
2582
+ "block_verified",
2583
+ "total_transaction_count"
2584
+ ]
2200
2585
  },
2201
2586
  "MainAccount": {
2202
2587
  "type": "object",
@@ -2224,7 +2609,12 @@
2224
2609
  "example": "1"
2225
2610
  }
2226
2611
  },
2227
- "title": "MainAccount"
2612
+ "title": "MainAccount",
2613
+ "required": [
2614
+ "index",
2615
+ "l1_address",
2616
+ "status"
2617
+ ]
2228
2618
  },
2229
2619
  "MainAccounts": {
2230
2620
  "type": "object",
@@ -2249,7 +2639,11 @@
2249
2639
  }
2250
2640
  }
2251
2641
  },
2252
- "title": "MainAccounts"
2642
+ "title": "MainAccounts",
2643
+ "required": [
2644
+ "total",
2645
+ "accounts"
2646
+ ]
2253
2647
  },
2254
2648
  "MarketInfo": {
2255
2649
  "type": "object",
@@ -2306,7 +2700,20 @@
2306
2700
  "example": "3.66"
2307
2701
  }
2308
2702
  },
2309
- "title": "MarketInfo"
2703
+ "title": "MarketInfo",
2704
+ "required": [
2705
+ "market_id",
2706
+ "index_price",
2707
+ "mark_price",
2708
+ "last_trade_price",
2709
+ "funding_rate",
2710
+ "funding_timestamp",
2711
+ "daily_base_token_volume",
2712
+ "daily_quote_token_volume",
2713
+ "daily_price_low",
2714
+ "daily_price_high",
2715
+ "daily_price_change"
2716
+ ]
2310
2717
  },
2311
2718
  "MarketSig": {
2312
2719
  "type": "object",
@@ -2339,7 +2746,13 @@
2339
2746
  "example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
2340
2747
  }
2341
2748
  },
2342
- "title": "MarketSig"
2749
+ "title": "MarketSig",
2750
+ "required": [
2751
+ "can_be_filled",
2752
+ "is_ask",
2753
+ "quote_amount",
2754
+ "signature"
2755
+ ]
2343
2756
  },
2344
2757
  "NextNonce": {
2345
2758
  "type": "object",
@@ -2358,7 +2771,10 @@
2358
2771
  "example": "722"
2359
2772
  }
2360
2773
  },
2361
- "title": "NextNonce"
2774
+ "title": "NextNonce",
2775
+ "required": [
2776
+ "nonce"
2777
+ ]
2362
2778
  },
2363
2779
  "Order": {
2364
2780
  "type": "object",
@@ -2451,7 +2867,26 @@
2451
2867
  "example": "1640995200"
2452
2868
  }
2453
2869
  },
2454
- "title": "Order"
2870
+ "title": "Order",
2871
+ "required": [
2872
+ "market_index",
2873
+ "-",
2874
+ "owner_account_index",
2875
+ "initial_base_amount",
2876
+ "remaining_base_amount",
2877
+ "filled_base_amount",
2878
+ "filled_quote_amount",
2879
+ "price",
2880
+ "base_size",
2881
+ "base_price",
2882
+ "nonce",
2883
+ "is_ask",
2884
+ "side",
2885
+ "type",
2886
+ "status",
2887
+ "block_height",
2888
+ "timestamp"
2889
+ ]
2455
2890
  },
2456
2891
  "OrderBook": {
2457
2892
  "type": "object",
@@ -2505,7 +2940,19 @@
2505
2940
  "example": "4"
2506
2941
  }
2507
2942
  },
2508
- "title": "OrderBook"
2943
+ "title": "OrderBook",
2944
+ "required": [
2945
+ "symbol",
2946
+ "market_id",
2947
+ "status",
2948
+ "taker_fee",
2949
+ "maker_fee",
2950
+ "min_base_amount",
2951
+ "min_quote_amount",
2952
+ "supported_size_decimals",
2953
+ "supported_price_decimals",
2954
+ "supported_quote_decimals"
2955
+ ]
2509
2956
  },
2510
2957
  "OrderBookDepth": {
2511
2958
  "type": "object",
@@ -2536,7 +2983,12 @@
2536
2983
  "example": "0"
2537
2984
  }
2538
2985
  },
2539
- "title": "OrderBookDepth"
2986
+ "title": "OrderBookDepth",
2987
+ "required": [
2988
+ "asks",
2989
+ "bids",
2990
+ "offset"
2991
+ ]
2540
2992
  },
2541
2993
  "OrderBookDetail": {
2542
2994
  "type": "object",
@@ -2683,7 +3135,27 @@
2683
3135
  }
2684
3136
  }
2685
3137
  },
2686
- "title": "OrderBookDetail"
3138
+ "title": "OrderBookDetail",
3139
+ "required": [
3140
+ "decimal",
3141
+ "price_tick",
3142
+ "quote_multiplier",
3143
+ "initial_margin",
3144
+ "maintenance_margin",
3145
+ "closeoute_margin",
3146
+ "ask_nonce",
3147
+ "bid_nonce",
3148
+ "last_trade_price",
3149
+ "daily_trades_count",
3150
+ "daily_base_token_volume",
3151
+ "daily_quote_token_volume",
3152
+ "daily_price_low",
3153
+ "daily_price_high",
3154
+ "daily_price_change",
3155
+ "open_position_base",
3156
+ "open_position_quote",
3157
+ "daily_chart"
3158
+ ]
2687
3159
  },
2688
3160
  "OrderBookDetails": {
2689
3161
  "type": "object",
@@ -2703,7 +3175,10 @@
2703
3175
  }
2704
3176
  }
2705
3177
  },
2706
- "title": "OrderBookDetails"
3178
+ "title": "OrderBookDetails",
3179
+ "required": [
3180
+ "order_book_details"
3181
+ ]
2707
3182
  },
2708
3183
  "OrderBookOrders": {
2709
3184
  "type": "object",
@@ -2739,7 +3214,13 @@
2739
3214
  }
2740
3215
  }
2741
3216
  },
2742
- "title": "OrderBookOrders"
3217
+ "title": "OrderBookOrders",
3218
+ "required": [
3219
+ "total_asks",
3220
+ "asks",
3221
+ "total_bids",
3222
+ "bids"
3223
+ ]
2743
3224
  },
2744
3225
  "OrderBookStats": {
2745
3226
  "type": "object",
@@ -2774,7 +3255,15 @@
2774
3255
  "example": "3.66"
2775
3256
  }
2776
3257
  },
2777
- "title": "OrderBookStats"
3258
+ "title": "OrderBookStats",
3259
+ "required": [
3260
+ "symbol",
3261
+ "last_trade_price",
3262
+ "daily_trades_count",
3263
+ "daily_base_token_volume",
3264
+ "daily_quote_token_volume",
3265
+ "daily_price_change"
3266
+ ]
2778
3267
  },
2779
3268
  "OrderBooks": {
2780
3269
  "type": "object",
@@ -2794,7 +3283,10 @@
2794
3283
  }
2795
3284
  }
2796
3285
  },
2797
- "title": "OrderBooks"
3286
+ "title": "OrderBooks",
3287
+ "required": [
3288
+ "order_books"
3289
+ ]
2798
3290
  },
2799
3291
  "Orders": {
2800
3292
  "type": "object",
@@ -2817,7 +3309,10 @@
2817
3309
  }
2818
3310
  }
2819
3311
  },
2820
- "title": "Orders"
3312
+ "title": "Orders",
3313
+ "required": [
3314
+ "orders"
3315
+ ]
2821
3316
  },
2822
3317
  "Permission": {
2823
3318
  "type": "object",
@@ -2836,7 +3331,10 @@
2836
3331
  "example": "true"
2837
3332
  }
2838
3333
  },
2839
- "title": "Permission"
3334
+ "title": "Permission",
3335
+ "required": [
3336
+ "permit"
3337
+ ]
2840
3338
  },
2841
3339
  "PnLEntry": {
2842
3340
  "type": "object",
@@ -2852,7 +3350,11 @@
2852
3350
  "example": "12.0"
2853
3351
  }
2854
3352
  },
2855
- "title": "PnLEntry"
3353
+ "title": "PnLEntry",
3354
+ "required": [
3355
+ "timestamp",
3356
+ "value"
3357
+ ]
2856
3358
  },
2857
3359
  "PriceLevel": {
2858
3360
  "type": "object",
@@ -2866,7 +3368,11 @@
2866
3368
  "example": "0.1"
2867
3369
  }
2868
3370
  },
2869
- "title": "PriceLevel"
3371
+ "title": "PriceLevel",
3372
+ "required": [
3373
+ "price",
3374
+ "size"
3375
+ ]
2870
3376
  },
2871
3377
  "ReqDoFaucet": {
2872
3378
  "type": "object",
@@ -2875,7 +3381,10 @@
2875
3381
  "type": "string"
2876
3382
  }
2877
3383
  },
2878
- "title": "ReqDoFaucet"
3384
+ "title": "ReqDoFaucet",
3385
+ "required": [
3386
+ "l1_address"
3387
+ ]
2879
3388
  },
2880
3389
  "ReqGetAccount": {
2881
3390
  "type": "object",
@@ -2891,7 +3400,11 @@
2891
3400
  "type": "string"
2892
3401
  }
2893
3402
  },
2894
- "title": "ReqGetAccount"
3403
+ "title": "ReqGetAccount",
3404
+ "required": [
3405
+ "by",
3406
+ "value"
3407
+ ]
2895
3408
  },
2896
3409
  "ReqGetAccountActiveOrders": {
2897
3410
  "type": "object",
@@ -2911,7 +3424,12 @@
2911
3424
  "format": "uin16"
2912
3425
  }
2913
3426
  },
2914
- "title": "ReqGetAccountActiveOrders"
3427
+ "title": "ReqGetAccountActiveOrders",
3428
+ "required": [
3429
+ "account_index",
3430
+ "sub_account_index",
3431
+ "market_id"
3432
+ ]
2915
3433
  },
2916
3434
  "ReqGetAccountByL1Address": {
2917
3435
  "type": "object",
@@ -2920,7 +3438,10 @@
2920
3438
  "type": "string"
2921
3439
  }
2922
3440
  },
2923
- "title": "ReqGetAccountByL1Address"
3441
+ "title": "ReqGetAccountByL1Address",
3442
+ "required": [
3443
+ "l1_address"
3444
+ ]
2924
3445
  },
2925
3446
  "ReqGetAccountInactiveOrders": {
2926
3447
  "type": "object",
@@ -2956,7 +3477,13 @@
2956
3477
  "minimum": 1
2957
3478
  }
2958
3479
  },
2959
- "title": "ReqGetAccountInactiveOrders"
3480
+ "title": "ReqGetAccountInactiveOrders",
3481
+ "required": [
3482
+ "account_index",
3483
+ "sub_account_index",
3484
+ "filter",
3485
+ "limit"
3486
+ ]
2960
3487
  },
2961
3488
  "ReqGetAccountOrders": {
2962
3489
  "type": "object",
@@ -2979,7 +3506,12 @@
2979
3506
  "minimum": 1
2980
3507
  }
2981
3508
  },
2982
- "title": "ReqGetAccountOrders"
3509
+ "title": "ReqGetAccountOrders",
3510
+ "required": [
3511
+ "account_index",
3512
+ "market_id",
3513
+ "limit"
3514
+ ]
2983
3515
  },
2984
3516
  "ReqGetAccountPendingTxs": {
2985
3517
  "type": "object",
@@ -3041,7 +3573,15 @@
3041
3573
  "format": "int64"
3042
3574
  }
3043
3575
  },
3044
- "title": "ReqGetAccountPnL"
3576
+ "title": "ReqGetAccountPnL",
3577
+ "required": [
3578
+ "by",
3579
+ "value",
3580
+ "resolution",
3581
+ "start_timestamp",
3582
+ "end_timestamp",
3583
+ "count_back"
3584
+ ]
3045
3585
  },
3046
3586
  "ReqGetAccountTxs": {
3047
3587
  "type": "object",
@@ -3090,7 +3630,11 @@
3090
3630
  "type": "string"
3091
3631
  }
3092
3632
  },
3093
- "title": "ReqGetBlock"
3633
+ "title": "ReqGetBlock",
3634
+ "required": [
3635
+ "by",
3636
+ "value"
3637
+ ]
3094
3638
  },
3095
3639
  "ReqGetBlockTxs": {
3096
3640
  "type": "object",
@@ -3106,7 +3650,11 @@
3106
3650
  "type": "string"
3107
3651
  }
3108
3652
  },
3109
- "title": "ReqGetBlockTxs"
3653
+ "title": "ReqGetBlockTxs",
3654
+ "required": [
3655
+ "by",
3656
+ "value"
3657
+ ]
3110
3658
  },
3111
3659
  "ReqGetByAccount": {
3112
3660
  "type": "object",
@@ -3122,7 +3670,11 @@
3122
3670
  "type": "string"
3123
3671
  }
3124
3672
  },
3125
- "title": "ReqGetByAccount"
3673
+ "title": "ReqGetByAccount",
3674
+ "required": [
3675
+ "by",
3676
+ "value"
3677
+ ]
3126
3678
  },
3127
3679
  "ReqGetCandlesticks": {
3128
3680
  "type": "object",
@@ -3155,7 +3707,14 @@
3155
3707
  "format": "int64"
3156
3708
  }
3157
3709
  },
3158
- "title": "ReqGetCandlesticks"
3710
+ "title": "ReqGetCandlesticks",
3711
+ "required": [
3712
+ "market_id",
3713
+ "resolution",
3714
+ "start_timestamp",
3715
+ "end_timestamp",
3716
+ "count_back"
3717
+ ]
3159
3718
  },
3160
3719
  "ReqGetExchangeStats": {
3161
3720
  "type": "object",
@@ -3187,7 +3746,14 @@
3187
3746
  "format": "int64"
3188
3747
  }
3189
3748
  },
3190
- "title": "ReqGetFundings"
3749
+ "title": "ReqGetFundings",
3750
+ "required": [
3751
+ "market_id",
3752
+ "resolution",
3753
+ "start_timestamp",
3754
+ "end_timestamp",
3755
+ "count_back"
3756
+ ]
3191
3757
  },
3192
3758
  "ReqGetL1Tx": {
3193
3759
  "type": "object",
@@ -3196,7 +3762,10 @@
3196
3762
  "type": "string"
3197
3763
  }
3198
3764
  },
3199
- "title": "ReqGetL1Tx"
3765
+ "title": "ReqGetL1Tx",
3766
+ "required": [
3767
+ "hash"
3768
+ ]
3200
3769
  },
3201
3770
  "ReqGetMarketSig": {
3202
3771
  "type": "object",
@@ -3214,7 +3783,12 @@
3214
3783
  "format": "int64"
3215
3784
  }
3216
3785
  },
3217
- "title": "ReqGetMarketSig"
3786
+ "title": "ReqGetMarketSig",
3787
+ "required": [
3788
+ "market_id",
3789
+ "is_ask",
3790
+ "base_amount"
3791
+ ]
3218
3792
  },
3219
3793
  "ReqGetNextNonce": {
3220
3794
  "type": "object",
@@ -3228,7 +3802,11 @@
3228
3802
  "format": "uint8"
3229
3803
  }
3230
3804
  },
3231
- "title": "ReqGetNextNonce"
3805
+ "title": "ReqGetNextNonce",
3806
+ "required": [
3807
+ "account_index",
3808
+ "sub_account_index"
3809
+ ]
3232
3810
  },
3233
3811
  "ReqGetOrderBookDetails": {
3234
3812
  "type": "object",
@@ -3245,7 +3823,10 @@
3245
3823
  "format": "uin16"
3246
3824
  }
3247
3825
  },
3248
- "title": "ReqGetOrderBookDetails"
3826
+ "title": "ReqGetOrderBookDetails",
3827
+ "required": [
3828
+ "filter"
3829
+ ]
3249
3830
  },
3250
3831
  "ReqGetOrderBookOrders": {
3251
3832
  "type": "object",
@@ -3261,7 +3842,11 @@
3261
3842
  "minimum": 1
3262
3843
  }
3263
3844
  },
3264
- "title": "ReqGetOrderBookOrders"
3845
+ "title": "ReqGetOrderBookOrders",
3846
+ "required": [
3847
+ "market_id",
3848
+ "limit"
3849
+ ]
3265
3850
  },
3266
3851
  "ReqGetOrderBooks": {
3267
3852
  "type": "object",
@@ -3278,7 +3863,10 @@
3278
3863
  "format": "uin16"
3279
3864
  }
3280
3865
  },
3281
- "title": "ReqGetOrderBooks"
3866
+ "title": "ReqGetOrderBooks",
3867
+ "required": [
3868
+ "filter"
3869
+ ]
3282
3870
  },
3283
3871
  "ReqGetPermission": {
3284
3872
  "type": "object",
@@ -3298,7 +3886,12 @@
3298
3886
  "format": "uint8"
3299
3887
  }
3300
3888
  },
3301
- "title": "ReqGetPermission"
3889
+ "title": "ReqGetPermission",
3890
+ "required": [
3891
+ "by",
3892
+ "value",
3893
+ "tx_type"
3894
+ ]
3302
3895
  },
3303
3896
  "ReqGetRangeWithCursor": {
3304
3897
  "type": "object",
@@ -3313,7 +3906,10 @@
3313
3906
  "minimum": 1
3314
3907
  }
3315
3908
  },
3316
- "title": "ReqGetRangeWithCursor"
3909
+ "title": "ReqGetRangeWithCursor",
3910
+ "required": [
3911
+ "limit"
3912
+ ]
3317
3913
  },
3318
3914
  "ReqGetRangeWithIndex": {
3319
3915
  "type": "object",
@@ -3329,7 +3925,10 @@
3329
3925
  "minimum": 1
3330
3926
  }
3331
3927
  },
3332
- "title": "ReqGetRangeWithIndex"
3928
+ "title": "ReqGetRangeWithIndex",
3929
+ "required": [
3930
+ "limit"
3931
+ ]
3333
3932
  },
3334
3933
  "ReqGetRangeWithIndexSortable": {
3335
3934
  "type": "object",
@@ -3369,7 +3968,11 @@
3369
3968
  "minimum": 1
3370
3969
  }
3371
3970
  },
3372
- "title": "ReqGetRecentTrades"
3971
+ "title": "ReqGetRecentTrades",
3972
+ "required": [
3973
+ "market_id",
3974
+ "limit"
3975
+ ]
3373
3976
  },
3374
3977
  "ReqGetRollbacks": {
3375
3978
  "type": "object",
@@ -3390,7 +3993,12 @@
3390
3993
  "minimum": 1
3391
3994
  }
3392
3995
  },
3393
- "title": "ReqGetRollbacks"
3996
+ "title": "ReqGetRollbacks",
3997
+ "required": [
3998
+ "from_block_height",
3999
+ "offset",
4000
+ "limit"
4001
+ ]
3394
4002
  },
3395
4003
  "ReqGetSubAccount": {
3396
4004
  "type": "object",
@@ -3412,7 +4020,12 @@
3412
4020
  "description": " NilSubAccountIndex"
3413
4021
  }
3414
4022
  },
3415
- "title": "ReqGetSubAccount"
4023
+ "title": "ReqGetSubAccount",
4024
+ "required": [
4025
+ "by",
4026
+ "value",
4027
+ "sub_account_index"
4028
+ ]
3416
4029
  },
3417
4030
  "ReqGetTrades": {
3418
4031
  "type": "object",
@@ -3444,7 +4057,13 @@
3444
4057
  "minimum": 1
3445
4058
  }
3446
4059
  },
3447
- "title": "ReqGetTrades"
4060
+ "title": "ReqGetTrades",
4061
+ "required": [
4062
+ "market_id",
4063
+ "by",
4064
+ "from",
4065
+ "limit"
4066
+ ]
3448
4067
  },
3449
4068
  "ReqGetTx": {
3450
4069
  "type": "object",
@@ -3460,7 +4079,11 @@
3460
4079
  "type": "string"
3461
4080
  }
3462
4081
  },
3463
- "title": "ReqGetTx"
4082
+ "title": "ReqGetTx",
4083
+ "required": [
4084
+ "by",
4085
+ "value"
4086
+ ]
3464
4087
  },
3465
4088
  "ReqSearch": {
3466
4089
  "type": "object",
@@ -3469,7 +4092,28 @@
3469
4092
  "type": "string"
3470
4093
  }
3471
4094
  },
3472
- "title": "ReqSearch"
4095
+ "title": "ReqSearch",
4096
+ "required": [
4097
+ "keyword"
4098
+ ]
4099
+ },
4100
+ "ReqSendFeedback": {
4101
+ "type": "object",
4102
+ "properties": {
4103
+ "name": {
4104
+ "type": "string"
4105
+ },
4106
+ "email": {
4107
+ "type": "string"
4108
+ },
4109
+ "content": {
4110
+ "type": "string"
4111
+ }
4112
+ },
4113
+ "title": "ReqSendFeedback",
4114
+ "required": [
4115
+ "content"
4116
+ ]
3473
4117
  },
3474
4118
  "ReqSendTx": {
3475
4119
  "type": "object",
@@ -3482,7 +4126,11 @@
3482
4126
  "type": "string"
3483
4127
  }
3484
4128
  },
3485
- "title": "ReqSendTx"
4129
+ "title": "ReqSendTx",
4130
+ "required": [
4131
+ "tx_type",
4132
+ "tx_info"
4133
+ ]
3486
4134
  },
3487
4135
  "ResultCode": {
3488
4136
  "type": "object",
@@ -3496,7 +4144,10 @@
3496
4144
  "type": "string"
3497
4145
  }
3498
4146
  },
3499
- "title": "ResultCode"
4147
+ "title": "ResultCode",
4148
+ "required": [
4149
+ "code"
4150
+ ]
3500
4151
  },
3501
4152
  "Rollback": {
3502
4153
  "type": "object",
@@ -3521,7 +4172,13 @@
3521
4172
  "example": "1640995200"
3522
4173
  }
3523
4174
  },
3524
- "title": "Rollback"
4175
+ "title": "Rollback",
4176
+ "required": [
4177
+ "from_block_height",
4178
+ "from_tx_hash",
4179
+ "id",
4180
+ "created_at"
4181
+ ]
3525
4182
  },
3526
4183
  "Rollbacks": {
3527
4184
  "type": "object",
@@ -3546,7 +4203,11 @@
3546
4203
  }
3547
4204
  }
3548
4205
  },
3549
- "title": "Rollbacks"
4206
+ "title": "Rollbacks",
4207
+ "required": [
4208
+ "total",
4209
+ "rollbacks"
4210
+ ]
3550
4211
  },
3551
4212
  "Search": {
3552
4213
  "type": "object",
@@ -3565,7 +4226,10 @@
3565
4226
  "example": "1"
3566
4227
  }
3567
4228
  },
3568
- "title": "Search"
4229
+ "title": "Search",
4230
+ "required": [
4231
+ "data_type"
4232
+ ]
3569
4233
  },
3570
4234
  "SignBody": {
3571
4235
  "type": "object",
@@ -3583,7 +4247,10 @@
3583
4247
  "example": "success"
3584
4248
  }
3585
4249
  },
3586
- "title": "SignBody"
4250
+ "title": "SignBody",
4251
+ "required": [
4252
+ "sign_body"
4253
+ ]
3587
4254
  },
3588
4255
  "SimpleOrder": {
3589
4256
  "type": "object",
@@ -3616,7 +4283,15 @@
3616
4283
  "example": "234"
3617
4284
  }
3618
4285
  },
3619
- "title": "SimpleOrder"
4286
+ "title": "SimpleOrder",
4287
+ "required": [
4288
+ "owner_account_index",
4289
+ "owner_sub_account_index",
4290
+ "initial_base_amount",
4291
+ "remaining_base_amount",
4292
+ "price",
4293
+ "nonce"
4294
+ ]
3620
4295
  },
3621
4296
  "Status": {
3622
4297
  "type": "object",
@@ -3632,7 +4307,11 @@
3632
4307
  "example": "1"
3633
4308
  }
3634
4309
  },
3635
- "title": "Status"
4310
+ "title": "Status",
4311
+ "required": [
4312
+ "status",
4313
+ "network_id"
4314
+ ]
3636
4315
  },
3637
4316
  "SubAccount": {
3638
4317
  "type": "object",
@@ -3675,7 +4354,17 @@
3675
4354
  "example": "1"
3676
4355
  }
3677
4356
  },
3678
- "title": "SubAccount"
4357
+ "title": "SubAccount",
4358
+ "required": [
4359
+ "index",
4360
+ "sub_account_index",
4361
+ "l1_address",
4362
+ "pk",
4363
+ "nonce",
4364
+ "status",
4365
+ "collateral",
4366
+ "collateral_type"
4367
+ ]
3679
4368
  },
3680
4369
  "SubAccounts": {
3681
4370
  "type": "object",
@@ -3710,7 +4399,13 @@
3710
4399
  }
3711
4400
  }
3712
4401
  },
3713
- "title": "SubAccounts"
4402
+ "title": "SubAccounts",
4403
+ "required": [
4404
+ "index",
4405
+ "l1_address",
4406
+ "status",
4407
+ "sub_accounts"
4408
+ ]
3714
4409
  },
3715
4410
  "Trade": {
3716
4411
  "type": "object",
@@ -3765,7 +4460,7 @@
3765
4460
  "block_height": {
3766
4461
  "type": "integer",
3767
4462
  "format": "int64",
3768
- "example": "45436"
4463
+ "example": "45434"
3769
4464
  },
3770
4465
  "timestamp": {
3771
4466
  "type": "integer",
@@ -3773,7 +4468,21 @@
3773
4468
  "example": "1640995200"
3774
4469
  }
3775
4470
  },
3776
- "title": "Trade"
4471
+ "title": "Trade",
4472
+ "required": [
4473
+ "trade_id",
4474
+ "tx_hash",
4475
+ "market_id",
4476
+ "size",
4477
+ "price",
4478
+ "ask_id",
4479
+ "bid_id",
4480
+ "maker_account_id",
4481
+ "taker_account_id",
4482
+ "is_maker_ask",
4483
+ "block_height",
4484
+ "timestamp"
4485
+ ]
3777
4486
  },
3778
4487
  "Trades": {
3779
4488
  "type": "object",
@@ -3793,7 +4502,10 @@
3793
4502
  }
3794
4503
  }
3795
4504
  },
3796
- "title": "Trades"
4505
+ "title": "Trades",
4506
+ "required": [
4507
+ "trades"
4508
+ ]
3797
4509
  },
3798
4510
  "Tx": {
3799
4511
  "type": "object",
@@ -3867,7 +4579,23 @@
3867
4579
  "example": "8761"
3868
4580
  }
3869
4581
  },
3870
- "title": "Tx"
4582
+ "title": "Tx",
4583
+ "required": [
4584
+ "hash",
4585
+ "type",
4586
+ "info",
4587
+ "event_info",
4588
+ "status",
4589
+ "transaction_index",
4590
+ "l1_address",
4591
+ "account_index",
4592
+ "nonce",
4593
+ "expire_at",
4594
+ "block_height",
4595
+ "created_at",
4596
+ "verify_at",
4597
+ "sequence_index"
4598
+ ]
3871
4599
  },
3872
4600
  "TxHash": {
3873
4601
  "type": "object",
@@ -3885,7 +4613,10 @@
3885
4613
  "example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
3886
4614
  }
3887
4615
  },
3888
- "title": "TxHash"
4616
+ "title": "TxHash",
4617
+ "required": [
4618
+ "tx_hash"
4619
+ ]
3889
4620
  },
3890
4621
  "Txs": {
3891
4622
  "type": "object",
@@ -3905,7 +4636,10 @@
3905
4636
  }
3906
4637
  }
3907
4638
  },
3908
- "title": "Txs"
4639
+ "title": "Txs",
4640
+ "required": [
4641
+ "txs"
4642
+ ]
3909
4643
  },
3910
4644
  "ValidatorInfo": {
3911
4645
  "type": "object",
@@ -3920,7 +4654,11 @@
3920
4654
  "example": "true"
3921
4655
  }
3922
4656
  },
3923
- "title": "ValidatorInfo"
4657
+ "title": "ValidatorInfo",
4658
+ "required": [
4659
+ "address",
4660
+ "is_active"
4661
+ ]
3924
4662
  }
3925
4663
  },
3926
4664
  "securityDefinitions": {