zklighter-perps 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apis/AccountApi.ts +12 -0
- package/apis/BlockApi.ts +6 -0
- package/apis/CandlestickApi.ts +4 -0
- package/apis/InfoApi.ts +8 -0
- package/apis/OrderApi.ts +18 -0
- package/apis/RelayerApi.ts +2 -0
- package/apis/RootApi.ts +2 -0
- package/apis/TransactionApi.ts +26 -34
- package/apis/WsApi.ts +4 -0
- package/models/AccountMarketStats.ts +12 -18
- package/models/AccountPnL.ts +5 -7
- package/models/AccountPosition.ts +22 -33
- package/models/AccountStats.ts +10 -15
- package/models/Block.ts +27 -40
- package/models/Blocks.ts +5 -7
- package/models/Candlestick.ts +14 -21
- package/models/Candlesticks.ts +5 -7
- package/models/ContractAddress.ts +4 -6
- package/models/CurrentHeight.ts +2 -3
- package/models/DetailedAccount.ts +8 -11
- package/models/DetailedAccounts.ts +5 -7
- package/models/EnrichedTx.ts +6 -9
- package/models/ExchangeStats.ts +9 -13
- package/models/Funding.ts +8 -12
- package/models/Fundings.ts +5 -7
- package/models/L1ProviderInfo.ts +8 -12
- package/models/Layer1BasicInfo.ts +17 -24
- package/models/Layer2BasicInfo.ts +6 -9
- package/models/MainAccount.ts +6 -9
- package/models/MainAccounts.ts +5 -7
- package/models/MarketInfo.ts +22 -33
- package/models/MarketSig.ts +8 -12
- package/models/NextNonce.ts +2 -3
- package/models/Order.ts +32 -48
- package/models/OrderBook.ts +20 -30
- package/models/OrderBookDepth.ts +8 -11
- package/models/OrderBookDetail.ts +36 -54
- package/models/OrderBookDetails.ts +3 -4
- package/models/OrderBookOrders.ts +10 -14
- package/models/OrderBookStats.ts +12 -18
- package/models/OrderBooks.ts +3 -4
- package/models/Orders.ts +3 -4
- package/models/Permission.ts +2 -3
- package/models/PnLEntry.ts +4 -6
- package/models/PriceLevel.ts +4 -6
- package/models/ReqDoFaucet.ts +2 -3
- package/models/ReqGetAccount.ts +4 -6
- package/models/ReqGetAccountActiveOrders.ts +6 -9
- package/models/ReqGetAccountByL1Address.ts +2 -3
- package/models/ReqGetAccountInactiveOrders.ts +8 -12
- package/models/ReqGetAccountOrders.ts +6 -9
- package/models/ReqGetAccountPnL.ts +12 -18
- package/models/ReqGetBlock.ts +4 -6
- package/models/ReqGetBlockTxs.ts +4 -6
- package/models/ReqGetByAccount.ts +4 -6
- package/models/ReqGetCandlesticks.ts +10 -15
- package/models/ReqGetFundings.ts +10 -15
- package/models/ReqGetL1Tx.ts +2 -3
- package/models/ReqGetMarketSig.ts +6 -9
- package/models/ReqGetNextNonce.ts +4 -6
- package/models/ReqGetOrderBookDetails.ts +2 -3
- package/models/ReqGetOrderBookOrders.ts +4 -6
- package/models/ReqGetOrderBooks.ts +2 -3
- package/models/ReqGetPermission.ts +6 -9
- package/models/ReqGetRangeWithCursor.ts +2 -3
- package/models/ReqGetRangeWithIndex.ts +2 -3
- package/models/ReqGetRecentTrades.ts +4 -6
- package/models/ReqGetRollbacks.ts +6 -9
- package/models/ReqGetSubAccount.ts +6 -9
- package/models/ReqGetTrades.ts +8 -12
- package/models/ReqGetTx.ts +4 -6
- package/models/ReqSearch.ts +2 -3
- package/models/ResultCode.ts +2 -3
- package/models/Rollback.ts +8 -12
- package/models/Rollbacks.ts +5 -7
- package/models/Search.ts +2 -3
- package/models/SignBody.ts +2 -3
- package/models/SimpleOrder.ts +12 -18
- package/models/Status.ts +4 -6
- package/models/SubAccount.ts +16 -24
- package/models/SubAccounts.ts +9 -13
- package/models/Trade.ts +24 -36
- package/models/Trades.ts +3 -4
- package/models/Tx.ts +28 -42
- package/models/TxHash.ts +2 -3
- package/models/Txs.ts +3 -4
- package/models/ValidatorInfo.ts +4 -6
- package/openapi.json +192 -610
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"paths": {
|
|
18
18
|
"/": {
|
|
19
19
|
"get": {
|
|
20
|
-
"summary": "
|
|
20
|
+
"summary": "GetStatus",
|
|
21
21
|
"operationId": "GetStatus",
|
|
22
22
|
"responses": {
|
|
23
23
|
"200": {
|
|
@@ -29,12 +29,13 @@
|
|
|
29
29
|
},
|
|
30
30
|
"tags": [
|
|
31
31
|
"root"
|
|
32
|
-
]
|
|
32
|
+
],
|
|
33
|
+
"description": "Get status of zklighter"
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
36
|
"/api/v1/account": {
|
|
36
37
|
"get": {
|
|
37
|
-
"summary": "
|
|
38
|
+
"summary": "GetAccount",
|
|
38
39
|
"operationId": "GetAccount",
|
|
39
40
|
"responses": {
|
|
40
41
|
"200": {
|
|
@@ -76,12 +77,13 @@
|
|
|
76
77
|
],
|
|
77
78
|
"consumes": [
|
|
78
79
|
"multipart/form-data"
|
|
79
|
-
]
|
|
80
|
+
],
|
|
81
|
+
"description": "Get account by main account's l1_address or index and sub account's index. Returns detailed account info"
|
|
80
82
|
}
|
|
81
83
|
},
|
|
82
84
|
"/api/v1/accountActiveOrders": {
|
|
83
85
|
"get": {
|
|
84
|
-
"summary": "
|
|
86
|
+
"summary": "GetAccountActiveOrders",
|
|
85
87
|
"operationId": "GetAccountActiveOrders",
|
|
86
88
|
"responses": {
|
|
87
89
|
"200": {
|
|
@@ -121,12 +123,13 @@
|
|
|
121
123
|
],
|
|
122
124
|
"consumes": [
|
|
123
125
|
"multipart/form-data"
|
|
124
|
-
]
|
|
126
|
+
],
|
|
127
|
+
"description": "Get account active orders"
|
|
125
128
|
}
|
|
126
129
|
},
|
|
127
130
|
"/api/v1/accountInactiveOrders": {
|
|
128
131
|
"get": {
|
|
129
|
-
"summary": "
|
|
132
|
+
"summary": "GetAccountInactiveOrders",
|
|
130
133
|
"operationId": "GetAccountInactiveOrders",
|
|
131
134
|
"responses": {
|
|
132
135
|
"200": {
|
|
@@ -191,12 +194,13 @@
|
|
|
191
194
|
],
|
|
192
195
|
"consumes": [
|
|
193
196
|
"multipart/form-data"
|
|
194
|
-
]
|
|
197
|
+
],
|
|
198
|
+
"description": "Get account active orders"
|
|
195
199
|
}
|
|
196
200
|
},
|
|
197
201
|
"/api/v1/accountOrders": {
|
|
198
202
|
"get": {
|
|
199
|
-
"summary": "
|
|
203
|
+
"summary": "GetAccountOrders",
|
|
200
204
|
"operationId": "GetAccountOrders",
|
|
201
205
|
"responses": {
|
|
202
206
|
"200": {
|
|
@@ -242,12 +246,13 @@
|
|
|
242
246
|
],
|
|
243
247
|
"consumes": [
|
|
244
248
|
"multipart/form-data"
|
|
245
|
-
]
|
|
249
|
+
],
|
|
250
|
+
"description": "Get account orders"
|
|
246
251
|
}
|
|
247
252
|
},
|
|
248
253
|
"/api/v1/accountPendingTxs": {
|
|
249
254
|
"get": {
|
|
250
|
-
"summary": "
|
|
255
|
+
"summary": "GetAccountPendingTxs",
|
|
251
256
|
"operationId": "GetAccountPendingTxs",
|
|
252
257
|
"responses": {
|
|
253
258
|
"200": {
|
|
@@ -287,12 +292,13 @@
|
|
|
287
292
|
],
|
|
288
293
|
"consumes": [
|
|
289
294
|
"multipart/form-data"
|
|
290
|
-
]
|
|
295
|
+
],
|
|
296
|
+
"description": "Get pending transactions of a specific account"
|
|
291
297
|
}
|
|
292
298
|
},
|
|
293
299
|
"/api/v1/accountTxs": {
|
|
294
300
|
"get": {
|
|
295
|
-
"summary": "
|
|
301
|
+
"summary": "GetAccountTxs",
|
|
296
302
|
"operationId": "GetAccountTxs",
|
|
297
303
|
"responses": {
|
|
298
304
|
"200": {
|
|
@@ -348,12 +354,13 @@
|
|
|
348
354
|
],
|
|
349
355
|
"consumes": [
|
|
350
356
|
"multipart/form-data"
|
|
351
|
-
]
|
|
357
|
+
],
|
|
358
|
+
"description": "Get transactions of a specific account"
|
|
352
359
|
}
|
|
353
360
|
},
|
|
354
361
|
"/api/v1/accounts": {
|
|
355
362
|
"get": {
|
|
356
|
-
"summary": "
|
|
363
|
+
"summary": "GetAccounts",
|
|
357
364
|
"operationId": "GetAccounts",
|
|
358
365
|
"responses": {
|
|
359
366
|
"200": {
|
|
@@ -397,12 +404,13 @@
|
|
|
397
404
|
],
|
|
398
405
|
"consumes": [
|
|
399
406
|
"multipart/form-data"
|
|
400
|
-
]
|
|
407
|
+
],
|
|
408
|
+
"description": "Get accounts returns main accounts by account index"
|
|
401
409
|
}
|
|
402
410
|
},
|
|
403
411
|
"/api/v1/accountsByL1Address": {
|
|
404
412
|
"get": {
|
|
405
|
-
"summary": "
|
|
413
|
+
"summary": "GetAccountsByL1Address",
|
|
406
414
|
"operationId": "GetAccountsByL1Address",
|
|
407
415
|
"responses": {
|
|
408
416
|
"200": {
|
|
@@ -425,12 +433,13 @@
|
|
|
425
433
|
],
|
|
426
434
|
"consumes": [
|
|
427
435
|
"multipart/form-data"
|
|
428
|
-
]
|
|
436
|
+
],
|
|
437
|
+
"description": "Get accounts by l1_address returns main account and its sub accounts"
|
|
429
438
|
}
|
|
430
439
|
},
|
|
431
440
|
"/api/v1/block": {
|
|
432
441
|
"get": {
|
|
433
|
-
"summary": "
|
|
442
|
+
"summary": "GetBlock",
|
|
434
443
|
"operationId": "GetBlock",
|
|
435
444
|
"responses": {
|
|
436
445
|
"200": {
|
|
@@ -463,12 +472,13 @@
|
|
|
463
472
|
],
|
|
464
473
|
"consumes": [
|
|
465
474
|
"multipart/form-data"
|
|
466
|
-
]
|
|
475
|
+
],
|
|
476
|
+
"description": "Get block by its height or commitment"
|
|
467
477
|
}
|
|
468
478
|
},
|
|
469
479
|
"/api/v1/blockTxs": {
|
|
470
480
|
"get": {
|
|
471
|
-
"summary": "
|
|
481
|
+
"summary": "GetBlockTxs",
|
|
472
482
|
"operationId": "GetBlockTxs",
|
|
473
483
|
"responses": {
|
|
474
484
|
"200": {
|
|
@@ -501,12 +511,13 @@
|
|
|
501
511
|
],
|
|
502
512
|
"consumes": [
|
|
503
513
|
"multipart/form-data"
|
|
504
|
-
]
|
|
514
|
+
],
|
|
515
|
+
"description": "Get transactions in a block"
|
|
505
516
|
}
|
|
506
517
|
},
|
|
507
518
|
"/api/v1/blocks": {
|
|
508
519
|
"get": {
|
|
509
|
-
"summary": "
|
|
520
|
+
"summary": "GetBlocks",
|
|
510
521
|
"operationId": "GetBlocks",
|
|
511
522
|
"responses": {
|
|
512
523
|
"200": {
|
|
@@ -550,12 +561,13 @@
|
|
|
550
561
|
],
|
|
551
562
|
"consumes": [
|
|
552
563
|
"multipart/form-data"
|
|
553
|
-
]
|
|
564
|
+
],
|
|
565
|
+
"description": "Get blocks"
|
|
554
566
|
}
|
|
555
567
|
},
|
|
556
568
|
"/api/v1/candlesticks": {
|
|
557
569
|
"get": {
|
|
558
|
-
"summary": "
|
|
570
|
+
"summary": "GetCandlesticks",
|
|
559
571
|
"operationId": "GetCandlesticks",
|
|
560
572
|
"responses": {
|
|
561
573
|
"200": {
|
|
@@ -614,7 +626,8 @@
|
|
|
614
626
|
],
|
|
615
627
|
"consumes": [
|
|
616
628
|
"multipart/form-data"
|
|
617
|
-
]
|
|
629
|
+
],
|
|
630
|
+
"description": "Get candlesticks"
|
|
618
631
|
}
|
|
619
632
|
},
|
|
620
633
|
"/api/v1/currentHeight": {
|
|
@@ -630,12 +643,13 @@
|
|
|
630
643
|
},
|
|
631
644
|
"tags": [
|
|
632
645
|
"block"
|
|
633
|
-
]
|
|
646
|
+
],
|
|
647
|
+
"summary": "GetCurrentHeight"
|
|
634
648
|
}
|
|
635
649
|
},
|
|
636
650
|
"/api/v1/exchangeStats": {
|
|
637
651
|
"get": {
|
|
638
|
-
"summary": "
|
|
652
|
+
"summary": "GetExchangeStats",
|
|
639
653
|
"operationId": "GetExchangeStats",
|
|
640
654
|
"responses": {
|
|
641
655
|
"200": {
|
|
@@ -647,12 +661,13 @@
|
|
|
647
661
|
},
|
|
648
662
|
"tags": [
|
|
649
663
|
"order"
|
|
650
|
-
]
|
|
664
|
+
],
|
|
665
|
+
"description": "Get exchange stats"
|
|
651
666
|
}
|
|
652
667
|
},
|
|
653
668
|
"/api/v1/faucet": {
|
|
654
669
|
"get": {
|
|
655
|
-
"summary": "
|
|
670
|
+
"summary": "DoFaucet",
|
|
656
671
|
"operationId": "DoFaucet",
|
|
657
672
|
"responses": {
|
|
658
673
|
"200": {
|
|
@@ -675,12 +690,13 @@
|
|
|
675
690
|
],
|
|
676
691
|
"consumes": [
|
|
677
692
|
"multipart/form-data"
|
|
678
|
-
]
|
|
693
|
+
],
|
|
694
|
+
"description": "Request funds from faucet"
|
|
679
695
|
}
|
|
680
696
|
},
|
|
681
697
|
"/api/v1/fundings": {
|
|
682
698
|
"get": {
|
|
683
|
-
"summary": "
|
|
699
|
+
"summary": "GetFundings",
|
|
684
700
|
"operationId": "GetFundings",
|
|
685
701
|
"responses": {
|
|
686
702
|
"200": {
|
|
@@ -734,12 +750,13 @@
|
|
|
734
750
|
],
|
|
735
751
|
"consumes": [
|
|
736
752
|
"multipart/form-data"
|
|
737
|
-
]
|
|
753
|
+
],
|
|
754
|
+
"description": "Get fundings"
|
|
738
755
|
}
|
|
739
756
|
},
|
|
740
757
|
"/api/v1/l2Signature": {
|
|
741
758
|
"post": {
|
|
742
|
-
"summary": "
|
|
759
|
+
"summary": "GetL2SignatureBody",
|
|
743
760
|
"operationId": "GetL2SignatureBody",
|
|
744
761
|
"responses": {
|
|
745
762
|
"200": {
|
|
@@ -764,12 +781,13 @@
|
|
|
764
781
|
],
|
|
765
782
|
"consumes": [
|
|
766
783
|
"multipart/form-data"
|
|
767
|
-
]
|
|
784
|
+
],
|
|
785
|
+
"description": "Get transaction signature body"
|
|
768
786
|
}
|
|
769
787
|
},
|
|
770
788
|
"/api/v1/layer1BasicInfo": {
|
|
771
789
|
"get": {
|
|
772
|
-
"summary": "
|
|
790
|
+
"summary": "GetLayer1BasicInfo",
|
|
773
791
|
"operationId": "GetLayer1BasicInfo",
|
|
774
792
|
"responses": {
|
|
775
793
|
"200": {
|
|
@@ -781,12 +799,13 @@
|
|
|
781
799
|
},
|
|
782
800
|
"tags": [
|
|
783
801
|
"info"
|
|
784
|
-
]
|
|
802
|
+
],
|
|
803
|
+
"description": "Get zklighter l1 general info, including contract address and rpc info"
|
|
785
804
|
}
|
|
786
805
|
},
|
|
787
806
|
"/api/v1/layer2BasicInfo": {
|
|
788
807
|
"get": {
|
|
789
|
-
"summary": "
|
|
808
|
+
"summary": "GetLayer2BasicInfo",
|
|
790
809
|
"operationId": "GetLayer2BasicInfo",
|
|
791
810
|
"responses": {
|
|
792
811
|
"200": {
|
|
@@ -798,12 +817,13 @@
|
|
|
798
817
|
},
|
|
799
818
|
"tags": [
|
|
800
819
|
"info"
|
|
801
|
-
]
|
|
820
|
+
],
|
|
821
|
+
"description": "Get zklighter general info, including contract address, and count of transactions and active users"
|
|
802
822
|
}
|
|
803
823
|
},
|
|
804
824
|
"/api/v1/nextNonce": {
|
|
805
825
|
"get": {
|
|
806
|
-
"summary": "
|
|
826
|
+
"summary": "GetNextNonce",
|
|
807
827
|
"operationId": "GetNextNonce",
|
|
808
828
|
"responses": {
|
|
809
829
|
"200": {
|
|
@@ -834,12 +854,13 @@
|
|
|
834
854
|
],
|
|
835
855
|
"consumes": [
|
|
836
856
|
"multipart/form-data"
|
|
837
|
-
]
|
|
857
|
+
],
|
|
858
|
+
"description": "Get next nonce for a specific account"
|
|
838
859
|
}
|
|
839
860
|
},
|
|
840
861
|
"/api/v1/orderBookDetails": {
|
|
841
862
|
"get": {
|
|
842
|
-
"summary": "
|
|
863
|
+
"summary": "GetOrderBookDetails",
|
|
843
864
|
"operationId": "GetOrderBookDetails",
|
|
844
865
|
"responses": {
|
|
845
866
|
"200": {
|
|
@@ -873,12 +894,13 @@
|
|
|
873
894
|
],
|
|
874
895
|
"consumes": [
|
|
875
896
|
"multipart/form-data"
|
|
876
|
-
]
|
|
897
|
+
],
|
|
898
|
+
"description": "Get order books metadata"
|
|
877
899
|
}
|
|
878
900
|
},
|
|
879
901
|
"/api/v1/orderBookOrders": {
|
|
880
902
|
"get": {
|
|
881
|
-
"summary": "
|
|
903
|
+
"summary": "GetOrderBookOrders",
|
|
882
904
|
"operationId": "GetOrderBookOrders",
|
|
883
905
|
"responses": {
|
|
884
906
|
"200": {
|
|
@@ -911,12 +933,13 @@
|
|
|
911
933
|
],
|
|
912
934
|
"consumes": [
|
|
913
935
|
"multipart/form-data"
|
|
914
|
-
]
|
|
936
|
+
],
|
|
937
|
+
"description": "Get order book orders"
|
|
915
938
|
}
|
|
916
939
|
},
|
|
917
940
|
"/api/v1/orderBooks": {
|
|
918
941
|
"get": {
|
|
919
|
-
"summary": "
|
|
942
|
+
"summary": "GetOrderBooks",
|
|
920
943
|
"operationId": "GetOrderBooks",
|
|
921
944
|
"responses": {
|
|
922
945
|
"200": {
|
|
@@ -950,12 +973,13 @@
|
|
|
950
973
|
],
|
|
951
974
|
"consumes": [
|
|
952
975
|
"multipart/form-data"
|
|
953
|
-
]
|
|
976
|
+
],
|
|
977
|
+
"description": "Get order books metadata"
|
|
954
978
|
}
|
|
955
979
|
},
|
|
956
980
|
"/api/v1/pendingTxs": {
|
|
957
981
|
"get": {
|
|
958
|
-
"summary": "
|
|
982
|
+
"summary": "GetPendingTxs",
|
|
959
983
|
"operationId": "GetPendingTxs",
|
|
960
984
|
"responses": {
|
|
961
985
|
"200": {
|
|
@@ -988,12 +1012,13 @@
|
|
|
988
1012
|
],
|
|
989
1013
|
"consumes": [
|
|
990
1014
|
"multipart/form-data"
|
|
991
|
-
]
|
|
1015
|
+
],
|
|
1016
|
+
"description": "Get pending transactions"
|
|
992
1017
|
}
|
|
993
1018
|
},
|
|
994
1019
|
"/api/v1/permission": {
|
|
995
1020
|
"get": {
|
|
996
|
-
"summary": "
|
|
1021
|
+
"summary": "GetPermission",
|
|
997
1022
|
"operationId": "GetPermission",
|
|
998
1023
|
"responses": {
|
|
999
1024
|
"200": {
|
|
@@ -1033,12 +1058,13 @@
|
|
|
1033
1058
|
],
|
|
1034
1059
|
"consumes": [
|
|
1035
1060
|
"multipart/form-data"
|
|
1036
|
-
]
|
|
1061
|
+
],
|
|
1062
|
+
"description": "Get permission by account's l1_address, index and tx_type"
|
|
1037
1063
|
}
|
|
1038
1064
|
},
|
|
1039
1065
|
"/api/v1/pnl": {
|
|
1040
1066
|
"get": {
|
|
1041
|
-
"summary": "
|
|
1067
|
+
"summary": "GetAccountPnl",
|
|
1042
1068
|
"operationId": "GetAccountPnl",
|
|
1043
1069
|
"responses": {
|
|
1044
1070
|
"200": {
|
|
@@ -1106,12 +1132,13 @@
|
|
|
1106
1132
|
],
|
|
1107
1133
|
"consumes": [
|
|
1108
1134
|
"multipart/form-data"
|
|
1109
|
-
]
|
|
1135
|
+
],
|
|
1136
|
+
"description": "Get account PnL chart"
|
|
1110
1137
|
}
|
|
1111
1138
|
},
|
|
1112
1139
|
"/api/v1/quote": {
|
|
1113
1140
|
"get": {
|
|
1114
|
-
"summary": "
|
|
1141
|
+
"summary": "GetMarketSig",
|
|
1115
1142
|
"operationId": "GetMarketSig",
|
|
1116
1143
|
"responses": {
|
|
1117
1144
|
"200": {
|
|
@@ -1149,12 +1176,13 @@
|
|
|
1149
1176
|
],
|
|
1150
1177
|
"consumes": [
|
|
1151
1178
|
"multipart/form-data"
|
|
1152
|
-
]
|
|
1179
|
+
],
|
|
1180
|
+
"description": "Get Market Signature"
|
|
1153
1181
|
}
|
|
1154
1182
|
},
|
|
1155
1183
|
"/api/v1/recentTrades": {
|
|
1156
1184
|
"get": {
|
|
1157
|
-
"summary": "
|
|
1185
|
+
"summary": "GetRecentTrades",
|
|
1158
1186
|
"operationId": "GetRecentTrades",
|
|
1159
1187
|
"responses": {
|
|
1160
1188
|
"200": {
|
|
@@ -1187,12 +1215,13 @@
|
|
|
1187
1215
|
],
|
|
1188
1216
|
"consumes": [
|
|
1189
1217
|
"multipart/form-data"
|
|
1190
|
-
]
|
|
1218
|
+
],
|
|
1219
|
+
"description": "Get recent trades"
|
|
1191
1220
|
}
|
|
1192
1221
|
},
|
|
1193
1222
|
"/api/v1/rollbacks": {
|
|
1194
1223
|
"get": {
|
|
1195
|
-
"summary": "
|
|
1224
|
+
"summary": "GetRollbacks",
|
|
1196
1225
|
"operationId": "GetRollbacks",
|
|
1197
1226
|
"responses": {
|
|
1198
1227
|
"200": {
|
|
@@ -1234,12 +1263,13 @@
|
|
|
1234
1263
|
],
|
|
1235
1264
|
"consumes": [
|
|
1236
1265
|
"multipart/form-data"
|
|
1237
|
-
]
|
|
1266
|
+
],
|
|
1267
|
+
"description": "Get rollbacks"
|
|
1238
1268
|
}
|
|
1239
1269
|
},
|
|
1240
1270
|
"/api/v1/search": {
|
|
1241
1271
|
"get": {
|
|
1242
|
-
"summary": "Search
|
|
1272
|
+
"summary": "Search",
|
|
1243
1273
|
"operationId": "Search",
|
|
1244
1274
|
"responses": {
|
|
1245
1275
|
"200": {
|
|
@@ -1262,12 +1292,13 @@
|
|
|
1262
1292
|
],
|
|
1263
1293
|
"consumes": [
|
|
1264
1294
|
"multipart/form-data"
|
|
1265
|
-
]
|
|
1295
|
+
],
|
|
1296
|
+
"description": "Search with a specific keyword"
|
|
1266
1297
|
}
|
|
1267
1298
|
},
|
|
1268
1299
|
"/api/v1/sendTx": {
|
|
1269
1300
|
"post": {
|
|
1270
|
-
"summary": "
|
|
1301
|
+
"summary": "SendTx",
|
|
1271
1302
|
"operationId": "SendTx",
|
|
1272
1303
|
"responses": {
|
|
1273
1304
|
"200": {
|
|
@@ -1292,12 +1323,13 @@
|
|
|
1292
1323
|
],
|
|
1293
1324
|
"consumes": [
|
|
1294
1325
|
"multipart/form-data"
|
|
1295
|
-
]
|
|
1326
|
+
],
|
|
1327
|
+
"description": "Send raw transaction"
|
|
1296
1328
|
}
|
|
1297
1329
|
},
|
|
1298
1330
|
"/api/v1/trades": {
|
|
1299
1331
|
"get": {
|
|
1300
|
-
"summary": "
|
|
1332
|
+
"summary": "GetTrades",
|
|
1301
1333
|
"operationId": "GetTrades",
|
|
1302
1334
|
"responses": {
|
|
1303
1335
|
"200": {
|
|
@@ -1355,12 +1387,13 @@
|
|
|
1355
1387
|
],
|
|
1356
1388
|
"consumes": [
|
|
1357
1389
|
"multipart/form-data"
|
|
1358
|
-
]
|
|
1390
|
+
],
|
|
1391
|
+
"description": "Get trades"
|
|
1359
1392
|
}
|
|
1360
1393
|
},
|
|
1361
1394
|
"/api/v1/tx": {
|
|
1362
1395
|
"get": {
|
|
1363
|
-
"summary": "
|
|
1396
|
+
"summary": "GetTx",
|
|
1364
1397
|
"operationId": "GetTx",
|
|
1365
1398
|
"responses": {
|
|
1366
1399
|
"200": {
|
|
@@ -1393,12 +1426,13 @@
|
|
|
1393
1426
|
],
|
|
1394
1427
|
"consumes": [
|
|
1395
1428
|
"multipart/form-data"
|
|
1396
|
-
]
|
|
1429
|
+
],
|
|
1430
|
+
"description": "Get transaction by hash or sequence index"
|
|
1397
1431
|
}
|
|
1398
1432
|
},
|
|
1399
1433
|
"/api/v1/txFromL1TxHash": {
|
|
1400
1434
|
"get": {
|
|
1401
|
-
"summary": "
|
|
1435
|
+
"summary": "getTxFromL1TxHash",
|
|
1402
1436
|
"operationId": "getTxFromL1TxHash",
|
|
1403
1437
|
"responses": {
|
|
1404
1438
|
"200": {
|
|
@@ -1421,12 +1455,13 @@
|
|
|
1421
1455
|
],
|
|
1422
1456
|
"consumes": [
|
|
1423
1457
|
"multipart/form-data"
|
|
1424
|
-
]
|
|
1458
|
+
],
|
|
1459
|
+
"description": "Get L1 transaction by L1 transaction hash"
|
|
1425
1460
|
}
|
|
1426
1461
|
},
|
|
1427
1462
|
"/api/v1/txs": {
|
|
1428
1463
|
"get": {
|
|
1429
|
-
"summary": "
|
|
1464
|
+
"summary": "GetTxs",
|
|
1430
1465
|
"operationId": "GetTxs",
|
|
1431
1466
|
"responses": {
|
|
1432
1467
|
"200": {
|
|
@@ -1459,12 +1494,13 @@
|
|
|
1459
1494
|
],
|
|
1460
1495
|
"consumes": [
|
|
1461
1496
|
"multipart/form-data"
|
|
1462
|
-
]
|
|
1497
|
+
],
|
|
1498
|
+
"description": "Get transactions which are already packed into blocks"
|
|
1463
1499
|
}
|
|
1464
1500
|
},
|
|
1465
1501
|
"/api/v1/ws_status": {
|
|
1466
1502
|
"get": {
|
|
1467
|
-
"summary": "
|
|
1503
|
+
"summary": "GetWebSocketStatus",
|
|
1468
1504
|
"operationId": "GetWebSocketStatus",
|
|
1469
1505
|
"responses": {
|
|
1470
1506
|
"200": {
|
|
@@ -1476,12 +1512,13 @@
|
|
|
1476
1512
|
},
|
|
1477
1513
|
"tags": [
|
|
1478
1514
|
"ws"
|
|
1479
|
-
]
|
|
1515
|
+
],
|
|
1516
|
+
"description": "WebSocket Status"
|
|
1480
1517
|
}
|
|
1481
1518
|
},
|
|
1482
1519
|
"/stream": {
|
|
1483
1520
|
"get": {
|
|
1484
|
-
"summary": "
|
|
1521
|
+
"summary": "Stream",
|
|
1485
1522
|
"operationId": "Stream",
|
|
1486
1523
|
"responses": {
|
|
1487
1524
|
"200": {
|
|
@@ -1493,7 +1530,8 @@
|
|
|
1493
1530
|
},
|
|
1494
1531
|
"tags": [
|
|
1495
1532
|
"ws"
|
|
1496
|
-
]
|
|
1533
|
+
],
|
|
1534
|
+
"description": "WebSocket"
|
|
1497
1535
|
}
|
|
1498
1536
|
}
|
|
1499
1537
|
},
|
|
@@ -1532,15 +1570,7 @@
|
|
|
1532
1570
|
"example": "1276.0"
|
|
1533
1571
|
}
|
|
1534
1572
|
},
|
|
1535
|
-
"title": "AccountMarketStats"
|
|
1536
|
-
"required": [
|
|
1537
|
-
"market_id",
|
|
1538
|
-
"daily_trades_count",
|
|
1539
|
-
"daily_base_token_volume",
|
|
1540
|
-
"daily_quote_token_volume",
|
|
1541
|
-
"open_position_base",
|
|
1542
|
-
"open_position_quote"
|
|
1543
|
-
]
|
|
1573
|
+
"title": "AccountMarketStats"
|
|
1544
1574
|
},
|
|
1545
1575
|
"AccountPnL": {
|
|
1546
1576
|
"type": "object",
|
|
@@ -1564,11 +1594,7 @@
|
|
|
1564
1594
|
}
|
|
1565
1595
|
}
|
|
1566
1596
|
},
|
|
1567
|
-
"title": "AccountPnL"
|
|
1568
|
-
"required": [
|
|
1569
|
-
"resolution",
|
|
1570
|
-
"pnl"
|
|
1571
|
-
]
|
|
1597
|
+
"title": "AccountPnL"
|
|
1572
1598
|
},
|
|
1573
1599
|
"AccountPosition": {
|
|
1574
1600
|
"type": "object",
|
|
@@ -1620,20 +1646,7 @@
|
|
|
1620
1646
|
"example": "2.000000"
|
|
1621
1647
|
}
|
|
1622
1648
|
},
|
|
1623
|
-
"title": "AccountPosition"
|
|
1624
|
-
"required": [
|
|
1625
|
-
"market_id",
|
|
1626
|
-
"name",
|
|
1627
|
-
"symbol",
|
|
1628
|
-
"sign",
|
|
1629
|
-
"position",
|
|
1630
|
-
"ask_order_size",
|
|
1631
|
-
"bid_order_size",
|
|
1632
|
-
"avg_entry_price",
|
|
1633
|
-
"position_value",
|
|
1634
|
-
"unrealized_pnl",
|
|
1635
|
-
"realized_pnl"
|
|
1636
|
-
]
|
|
1649
|
+
"title": "AccountPosition"
|
|
1637
1650
|
},
|
|
1638
1651
|
"AccountStats": {
|
|
1639
1652
|
"type": "object",
|
|
@@ -1659,14 +1672,7 @@
|
|
|
1659
1672
|
"example": "199955"
|
|
1660
1673
|
}
|
|
1661
1674
|
},
|
|
1662
|
-
"title": "AccountStats"
|
|
1663
|
-
"required": [
|
|
1664
|
-
"portfolio_value",
|
|
1665
|
-
"leverage",
|
|
1666
|
-
"free_collateral",
|
|
1667
|
-
"margin_usage",
|
|
1668
|
-
"buying_power"
|
|
1669
|
-
]
|
|
1675
|
+
"title": "AccountStats"
|
|
1670
1676
|
},
|
|
1671
1677
|
"Block": {
|
|
1672
1678
|
"type": "object",
|
|
@@ -1721,22 +1727,7 @@
|
|
|
1721
1727
|
"format": "uin16"
|
|
1722
1728
|
}
|
|
1723
1729
|
},
|
|
1724
|
-
"title": "Block"
|
|
1725
|
-
"required": [
|
|
1726
|
-
"commitment",
|
|
1727
|
-
"height",
|
|
1728
|
-
"state_root",
|
|
1729
|
-
"priority_operations",
|
|
1730
|
-
"on_chain_l2_operations",
|
|
1731
|
-
"pending_on_chain_operations_pub_data",
|
|
1732
|
-
"committed_tx_hash",
|
|
1733
|
-
"committed_at",
|
|
1734
|
-
"verified_tx_hash",
|
|
1735
|
-
"verified_at",
|
|
1736
|
-
"txs",
|
|
1737
|
-
"status",
|
|
1738
|
-
"size"
|
|
1739
|
-
]
|
|
1730
|
+
"title": "Block"
|
|
1740
1731
|
},
|
|
1741
1732
|
"Blocks": {
|
|
1742
1733
|
"type": "object",
|
|
@@ -1760,11 +1751,7 @@
|
|
|
1760
1751
|
}
|
|
1761
1752
|
}
|
|
1762
1753
|
},
|
|
1763
|
-
"title": "Blocks"
|
|
1764
|
-
"required": [
|
|
1765
|
-
"total",
|
|
1766
|
-
"blocks"
|
|
1767
|
-
]
|
|
1754
|
+
"title": "Blocks"
|
|
1768
1755
|
},
|
|
1769
1756
|
"Candlestick": {
|
|
1770
1757
|
"type": "object",
|
|
@@ -1805,16 +1792,7 @@
|
|
|
1805
1792
|
"example": "93566.25"
|
|
1806
1793
|
}
|
|
1807
1794
|
},
|
|
1808
|
-
"title": "Candlestick"
|
|
1809
|
-
"required": [
|
|
1810
|
-
"timestamp",
|
|
1811
|
-
"open",
|
|
1812
|
-
"high",
|
|
1813
|
-
"low",
|
|
1814
|
-
"close",
|
|
1815
|
-
"volume0",
|
|
1816
|
-
"volume1"
|
|
1817
|
-
]
|
|
1795
|
+
"title": "Candlestick"
|
|
1818
1796
|
},
|
|
1819
1797
|
"Candlesticks": {
|
|
1820
1798
|
"type": "object",
|
|
@@ -1838,11 +1816,7 @@
|
|
|
1838
1816
|
}
|
|
1839
1817
|
}
|
|
1840
1818
|
},
|
|
1841
|
-
"title": "Candlesticks"
|
|
1842
|
-
"required": [
|
|
1843
|
-
"resolution",
|
|
1844
|
-
"candlesticks"
|
|
1845
|
-
]
|
|
1819
|
+
"title": "Candlesticks"
|
|
1846
1820
|
},
|
|
1847
1821
|
"ContractAddress": {
|
|
1848
1822
|
"type": "object",
|
|
@@ -1856,11 +1830,7 @@
|
|
|
1856
1830
|
"example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
|
|
1857
1831
|
}
|
|
1858
1832
|
},
|
|
1859
|
-
"title": "ContractAddress"
|
|
1860
|
-
"required": [
|
|
1861
|
-
"name",
|
|
1862
|
-
"address"
|
|
1863
|
-
]
|
|
1833
|
+
"title": "ContractAddress"
|
|
1864
1834
|
},
|
|
1865
1835
|
"CurrentHeight": {
|
|
1866
1836
|
"type": "object",
|
|
@@ -1878,10 +1848,7 @@
|
|
|
1878
1848
|
"format": "int64"
|
|
1879
1849
|
}
|
|
1880
1850
|
},
|
|
1881
|
-
"title": "CurrentHeight"
|
|
1882
|
-
"required": [
|
|
1883
|
-
"height"
|
|
1884
|
-
]
|
|
1851
|
+
"title": "CurrentHeight"
|
|
1885
1852
|
},
|
|
1886
1853
|
"Cursor": {
|
|
1887
1854
|
"type": "object",
|
|
@@ -1957,12 +1924,7 @@
|
|
|
1957
1924
|
}
|
|
1958
1925
|
}
|
|
1959
1926
|
},
|
|
1960
|
-
"title": "DetailedAccount"
|
|
1961
|
-
"required": [
|
|
1962
|
-
"positions",
|
|
1963
|
-
"total_asset_value",
|
|
1964
|
-
"market_stats"
|
|
1965
|
-
]
|
|
1927
|
+
"title": "DetailedAccount"
|
|
1966
1928
|
},
|
|
1967
1929
|
"DetailedAccounts": {
|
|
1968
1930
|
"type": "object",
|
|
@@ -1987,11 +1949,7 @@
|
|
|
1987
1949
|
}
|
|
1988
1950
|
}
|
|
1989
1951
|
},
|
|
1990
|
-
"title": "DetailedAccounts"
|
|
1991
|
-
"required": [
|
|
1992
|
-
"total",
|
|
1993
|
-
"accounts"
|
|
1994
|
-
]
|
|
1952
|
+
"title": "DetailedAccounts"
|
|
1995
1953
|
},
|
|
1996
1954
|
"EnrichedTx": {
|
|
1997
1955
|
"type": "object",
|
|
@@ -2088,12 +2046,7 @@
|
|
|
2088
2046
|
"example": "1640995200"
|
|
2089
2047
|
}
|
|
2090
2048
|
},
|
|
2091
|
-
"title": "EnrichedTx"
|
|
2092
|
-
"required": [
|
|
2093
|
-
"committed_at",
|
|
2094
|
-
"verified_at",
|
|
2095
|
-
"executed_at"
|
|
2096
|
-
]
|
|
2049
|
+
"title": "EnrichedTx"
|
|
2097
2050
|
},
|
|
2098
2051
|
"ExchangeStats": {
|
|
2099
2052
|
"type": "object",
|
|
@@ -2129,13 +2082,7 @@
|
|
|
2129
2082
|
"example": "68"
|
|
2130
2083
|
}
|
|
2131
2084
|
},
|
|
2132
|
-
"title": "ExchangeStats"
|
|
2133
|
-
"required": [
|
|
2134
|
-
"total",
|
|
2135
|
-
"order_book_stats",
|
|
2136
|
-
"daily_usd_volume",
|
|
2137
|
-
"daily_trades_count"
|
|
2138
|
-
]
|
|
2085
|
+
"title": "ExchangeStats"
|
|
2139
2086
|
},
|
|
2140
2087
|
"Funding": {
|
|
2141
2088
|
"type": "object",
|
|
@@ -2158,13 +2105,7 @@
|
|
|
2158
2105
|
"example": "long"
|
|
2159
2106
|
}
|
|
2160
2107
|
},
|
|
2161
|
-
"title": "Funding"
|
|
2162
|
-
"required": [
|
|
2163
|
-
"timestamp",
|
|
2164
|
-
"value",
|
|
2165
|
-
"rate",
|
|
2166
|
-
"direction"
|
|
2167
|
-
]
|
|
2108
|
+
"title": "Funding"
|
|
2168
2109
|
},
|
|
2169
2110
|
"Fundings": {
|
|
2170
2111
|
"type": "object",
|
|
@@ -2188,11 +2129,7 @@
|
|
|
2188
2129
|
}
|
|
2189
2130
|
}
|
|
2190
2131
|
},
|
|
2191
|
-
"title": "Fundings"
|
|
2192
|
-
"required": [
|
|
2193
|
-
"resolution",
|
|
2194
|
-
"fundings"
|
|
2195
|
-
]
|
|
2132
|
+
"title": "Fundings"
|
|
2196
2133
|
},
|
|
2197
2134
|
"L1ProviderInfo": {
|
|
2198
2135
|
"type": "object",
|
|
@@ -2216,13 +2153,7 @@
|
|
|
2216
2153
|
"type": "string"
|
|
2217
2154
|
}
|
|
2218
2155
|
},
|
|
2219
|
-
"title": "L1ProviderInfo"
|
|
2220
|
-
"required": [
|
|
2221
|
-
"chainId",
|
|
2222
|
-
"networkId",
|
|
2223
|
-
"latestBlockNumber",
|
|
2224
|
-
"NetworkRpc"
|
|
2225
|
-
]
|
|
2156
|
+
"title": "L1ProviderInfo"
|
|
2226
2157
|
},
|
|
2227
2158
|
"Layer1BasicInfo": {
|
|
2228
2159
|
"type": "object",
|
|
@@ -2274,16 +2205,7 @@
|
|
|
2274
2205
|
"example": "45434"
|
|
2275
2206
|
}
|
|
2276
2207
|
},
|
|
2277
|
-
"title": "Layer1BasicInfo"
|
|
2278
|
-
"required": [
|
|
2279
|
-
"l1_providers",
|
|
2280
|
-
"l1_providers_health",
|
|
2281
|
-
"validator_Info",
|
|
2282
|
-
"contract_addresses",
|
|
2283
|
-
"latest_l1_generic_block",
|
|
2284
|
-
"latest_l1_governance_block",
|
|
2285
|
-
"latest_l1_desert_block"
|
|
2286
|
-
]
|
|
2208
|
+
"title": "Layer1BasicInfo"
|
|
2287
2209
|
},
|
|
2288
2210
|
"Layer2BasicInfo": {
|
|
2289
2211
|
"type": "object",
|
|
@@ -2312,12 +2234,7 @@
|
|
|
2312
2234
|
"example": "75434"
|
|
2313
2235
|
}
|
|
2314
2236
|
},
|
|
2315
|
-
"title": "Layer2BasicInfo"
|
|
2316
|
-
"required": [
|
|
2317
|
-
"block_committed",
|
|
2318
|
-
"block_verified",
|
|
2319
|
-
"total_transaction_count"
|
|
2320
|
-
]
|
|
2237
|
+
"title": "Layer2BasicInfo"
|
|
2321
2238
|
},
|
|
2322
2239
|
"MainAccount": {
|
|
2323
2240
|
"type": "object",
|
|
@@ -2345,12 +2262,7 @@
|
|
|
2345
2262
|
"example": "1"
|
|
2346
2263
|
}
|
|
2347
2264
|
},
|
|
2348
|
-
"title": "MainAccount"
|
|
2349
|
-
"required": [
|
|
2350
|
-
"index",
|
|
2351
|
-
"l1_address",
|
|
2352
|
-
"status"
|
|
2353
|
-
]
|
|
2265
|
+
"title": "MainAccount"
|
|
2354
2266
|
},
|
|
2355
2267
|
"MainAccounts": {
|
|
2356
2268
|
"type": "object",
|
|
@@ -2375,11 +2287,7 @@
|
|
|
2375
2287
|
}
|
|
2376
2288
|
}
|
|
2377
2289
|
},
|
|
2378
|
-
"title": "MainAccounts"
|
|
2379
|
-
"required": [
|
|
2380
|
-
"total",
|
|
2381
|
-
"accounts"
|
|
2382
|
-
]
|
|
2290
|
+
"title": "MainAccounts"
|
|
2383
2291
|
},
|
|
2384
2292
|
"MarketInfo": {
|
|
2385
2293
|
"type": "object",
|
|
@@ -2436,20 +2344,7 @@
|
|
|
2436
2344
|
"example": "3.66"
|
|
2437
2345
|
}
|
|
2438
2346
|
},
|
|
2439
|
-
"title": "MarketInfo"
|
|
2440
|
-
"required": [
|
|
2441
|
-
"market_id",
|
|
2442
|
-
"index_price",
|
|
2443
|
-
"mark_price",
|
|
2444
|
-
"last_trade_price",
|
|
2445
|
-
"funding_rate",
|
|
2446
|
-
"funding_timestamp",
|
|
2447
|
-
"daily_base_token_volume",
|
|
2448
|
-
"daily_quote_token_volume",
|
|
2449
|
-
"daily_price_low",
|
|
2450
|
-
"daily_price_high",
|
|
2451
|
-
"daily_price_change"
|
|
2452
|
-
]
|
|
2347
|
+
"title": "MarketInfo"
|
|
2453
2348
|
},
|
|
2454
2349
|
"MarketSig": {
|
|
2455
2350
|
"type": "object",
|
|
@@ -2482,13 +2377,7 @@
|
|
|
2482
2377
|
"example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
|
|
2483
2378
|
}
|
|
2484
2379
|
},
|
|
2485
|
-
"title": "MarketSig"
|
|
2486
|
-
"required": [
|
|
2487
|
-
"can_be_filled",
|
|
2488
|
-
"is_ask",
|
|
2489
|
-
"quote_amount",
|
|
2490
|
-
"signature"
|
|
2491
|
-
]
|
|
2380
|
+
"title": "MarketSig"
|
|
2492
2381
|
},
|
|
2493
2382
|
"NextNonce": {
|
|
2494
2383
|
"type": "object",
|
|
@@ -2507,10 +2396,7 @@
|
|
|
2507
2396
|
"example": "722"
|
|
2508
2397
|
}
|
|
2509
2398
|
},
|
|
2510
|
-
"title": "NextNonce"
|
|
2511
|
-
"required": [
|
|
2512
|
-
"nonce"
|
|
2513
|
-
]
|
|
2399
|
+
"title": "NextNonce"
|
|
2514
2400
|
},
|
|
2515
2401
|
"Order": {
|
|
2516
2402
|
"type": "object",
|
|
@@ -2603,26 +2489,7 @@
|
|
|
2603
2489
|
"example": "1640995200"
|
|
2604
2490
|
}
|
|
2605
2491
|
},
|
|
2606
|
-
"title": "Order"
|
|
2607
|
-
"required": [
|
|
2608
|
-
"market_index",
|
|
2609
|
-
"-",
|
|
2610
|
-
"owner_account_index",
|
|
2611
|
-
"initial_base_amount",
|
|
2612
|
-
"remaining_base_amount",
|
|
2613
|
-
"filled_base_amount",
|
|
2614
|
-
"filled_quote_amount",
|
|
2615
|
-
"price",
|
|
2616
|
-
"base_size",
|
|
2617
|
-
"base_price",
|
|
2618
|
-
"nonce",
|
|
2619
|
-
"is_ask",
|
|
2620
|
-
"side",
|
|
2621
|
-
"type",
|
|
2622
|
-
"status",
|
|
2623
|
-
"block_height",
|
|
2624
|
-
"timestamp"
|
|
2625
|
-
]
|
|
2492
|
+
"title": "Order"
|
|
2626
2493
|
},
|
|
2627
2494
|
"OrderBook": {
|
|
2628
2495
|
"type": "object",
|
|
@@ -2676,19 +2543,7 @@
|
|
|
2676
2543
|
"example": "4"
|
|
2677
2544
|
}
|
|
2678
2545
|
},
|
|
2679
|
-
"title": "OrderBook"
|
|
2680
|
-
"required": [
|
|
2681
|
-
"symbol",
|
|
2682
|
-
"market_id",
|
|
2683
|
-
"status",
|
|
2684
|
-
"taker_fee",
|
|
2685
|
-
"maker_fee",
|
|
2686
|
-
"min_base_amount",
|
|
2687
|
-
"min_quote_amount",
|
|
2688
|
-
"supported_size_decimals",
|
|
2689
|
-
"supported_price_decimals",
|
|
2690
|
-
"supported_quote_decimals"
|
|
2691
|
-
]
|
|
2546
|
+
"title": "OrderBook"
|
|
2692
2547
|
},
|
|
2693
2548
|
"OrderBookDepth": {
|
|
2694
2549
|
"type": "object",
|
|
@@ -2719,12 +2574,7 @@
|
|
|
2719
2574
|
"example": "0"
|
|
2720
2575
|
}
|
|
2721
2576
|
},
|
|
2722
|
-
"title": "OrderBookDepth"
|
|
2723
|
-
"required": [
|
|
2724
|
-
"asks",
|
|
2725
|
-
"bids",
|
|
2726
|
-
"offset"
|
|
2727
|
-
]
|
|
2577
|
+
"title": "OrderBookDepth"
|
|
2728
2578
|
},
|
|
2729
2579
|
"OrderBookDetail": {
|
|
2730
2580
|
"type": "object",
|
|
@@ -2871,27 +2721,7 @@
|
|
|
2871
2721
|
}
|
|
2872
2722
|
}
|
|
2873
2723
|
},
|
|
2874
|
-
"title": "OrderBookDetail"
|
|
2875
|
-
"required": [
|
|
2876
|
-
"decimal",
|
|
2877
|
-
"price_tick",
|
|
2878
|
-
"quote_multiplier",
|
|
2879
|
-
"initial_margin",
|
|
2880
|
-
"maintenance_margin",
|
|
2881
|
-
"closeoute_margin",
|
|
2882
|
-
"ask_nonce",
|
|
2883
|
-
"bid_nonce",
|
|
2884
|
-
"last_trade_price",
|
|
2885
|
-
"daily_trades_count",
|
|
2886
|
-
"daily_base_token_volume",
|
|
2887
|
-
"daily_quote_token_volume",
|
|
2888
|
-
"daily_price_low",
|
|
2889
|
-
"daily_price_high",
|
|
2890
|
-
"daily_price_change",
|
|
2891
|
-
"open_position_base",
|
|
2892
|
-
"open_position_quote",
|
|
2893
|
-
"daily_chart"
|
|
2894
|
-
]
|
|
2724
|
+
"title": "OrderBookDetail"
|
|
2895
2725
|
},
|
|
2896
2726
|
"OrderBookDetails": {
|
|
2897
2727
|
"type": "object",
|
|
@@ -2911,10 +2741,7 @@
|
|
|
2911
2741
|
}
|
|
2912
2742
|
}
|
|
2913
2743
|
},
|
|
2914
|
-
"title": "OrderBookDetails"
|
|
2915
|
-
"required": [
|
|
2916
|
-
"order_book_details"
|
|
2917
|
-
]
|
|
2744
|
+
"title": "OrderBookDetails"
|
|
2918
2745
|
},
|
|
2919
2746
|
"OrderBookOrders": {
|
|
2920
2747
|
"type": "object",
|
|
@@ -2950,13 +2777,7 @@
|
|
|
2950
2777
|
}
|
|
2951
2778
|
}
|
|
2952
2779
|
},
|
|
2953
|
-
"title": "OrderBookOrders"
|
|
2954
|
-
"required": [
|
|
2955
|
-
"total_asks",
|
|
2956
|
-
"asks",
|
|
2957
|
-
"total_bids",
|
|
2958
|
-
"bids"
|
|
2959
|
-
]
|
|
2780
|
+
"title": "OrderBookOrders"
|
|
2960
2781
|
},
|
|
2961
2782
|
"OrderBookStats": {
|
|
2962
2783
|
"type": "object",
|
|
@@ -2991,15 +2812,7 @@
|
|
|
2991
2812
|
"example": "3.66"
|
|
2992
2813
|
}
|
|
2993
2814
|
},
|
|
2994
|
-
"title": "OrderBookStats"
|
|
2995
|
-
"required": [
|
|
2996
|
-
"symbol",
|
|
2997
|
-
"last_trade_price",
|
|
2998
|
-
"daily_trades_count",
|
|
2999
|
-
"daily_base_token_volume",
|
|
3000
|
-
"daily_quote_token_volume",
|
|
3001
|
-
"daily_price_change"
|
|
3002
|
-
]
|
|
2815
|
+
"title": "OrderBookStats"
|
|
3003
2816
|
},
|
|
3004
2817
|
"OrderBooks": {
|
|
3005
2818
|
"type": "object",
|
|
@@ -3019,10 +2832,7 @@
|
|
|
3019
2832
|
}
|
|
3020
2833
|
}
|
|
3021
2834
|
},
|
|
3022
|
-
"title": "OrderBooks"
|
|
3023
|
-
"required": [
|
|
3024
|
-
"order_books"
|
|
3025
|
-
]
|
|
2835
|
+
"title": "OrderBooks"
|
|
3026
2836
|
},
|
|
3027
2837
|
"Orders": {
|
|
3028
2838
|
"type": "object",
|
|
@@ -3045,10 +2855,7 @@
|
|
|
3045
2855
|
}
|
|
3046
2856
|
}
|
|
3047
2857
|
},
|
|
3048
|
-
"title": "Orders"
|
|
3049
|
-
"required": [
|
|
3050
|
-
"orders"
|
|
3051
|
-
]
|
|
2858
|
+
"title": "Orders"
|
|
3052
2859
|
},
|
|
3053
2860
|
"Permission": {
|
|
3054
2861
|
"type": "object",
|
|
@@ -3067,10 +2874,7 @@
|
|
|
3067
2874
|
"example": "true"
|
|
3068
2875
|
}
|
|
3069
2876
|
},
|
|
3070
|
-
"title": "Permission"
|
|
3071
|
-
"required": [
|
|
3072
|
-
"permit"
|
|
3073
|
-
]
|
|
2877
|
+
"title": "Permission"
|
|
3074
2878
|
},
|
|
3075
2879
|
"PnLEntry": {
|
|
3076
2880
|
"type": "object",
|
|
@@ -3086,11 +2890,7 @@
|
|
|
3086
2890
|
"example": "12.0"
|
|
3087
2891
|
}
|
|
3088
2892
|
},
|
|
3089
|
-
"title": "PnLEntry"
|
|
3090
|
-
"required": [
|
|
3091
|
-
"timestamp",
|
|
3092
|
-
"value"
|
|
3093
|
-
]
|
|
2893
|
+
"title": "PnLEntry"
|
|
3094
2894
|
},
|
|
3095
2895
|
"PriceLevel": {
|
|
3096
2896
|
"type": "object",
|
|
@@ -3104,11 +2904,7 @@
|
|
|
3104
2904
|
"example": "0.1"
|
|
3105
2905
|
}
|
|
3106
2906
|
},
|
|
3107
|
-
"title": "PriceLevel"
|
|
3108
|
-
"required": [
|
|
3109
|
-
"price",
|
|
3110
|
-
"size"
|
|
3111
|
-
]
|
|
2907
|
+
"title": "PriceLevel"
|
|
3112
2908
|
},
|
|
3113
2909
|
"ReqDoFaucet": {
|
|
3114
2910
|
"type": "object",
|
|
@@ -3117,10 +2913,7 @@
|
|
|
3117
2913
|
"type": "string"
|
|
3118
2914
|
}
|
|
3119
2915
|
},
|
|
3120
|
-
"title": "ReqDoFaucet"
|
|
3121
|
-
"required": [
|
|
3122
|
-
"l1_address"
|
|
3123
|
-
]
|
|
2916
|
+
"title": "ReqDoFaucet"
|
|
3124
2917
|
},
|
|
3125
2918
|
"ReqGetAccount": {
|
|
3126
2919
|
"type": "object",
|
|
@@ -3136,11 +2929,7 @@
|
|
|
3136
2929
|
"type": "string"
|
|
3137
2930
|
}
|
|
3138
2931
|
},
|
|
3139
|
-
"title": "ReqGetAccount"
|
|
3140
|
-
"required": [
|
|
3141
|
-
"by",
|
|
3142
|
-
"value"
|
|
3143
|
-
]
|
|
2932
|
+
"title": "ReqGetAccount"
|
|
3144
2933
|
},
|
|
3145
2934
|
"ReqGetAccountActiveOrders": {
|
|
3146
2935
|
"type": "object",
|
|
@@ -3160,12 +2949,7 @@
|
|
|
3160
2949
|
"format": "uin16"
|
|
3161
2950
|
}
|
|
3162
2951
|
},
|
|
3163
|
-
"title": "ReqGetAccountActiveOrders"
|
|
3164
|
-
"required": [
|
|
3165
|
-
"account_index",
|
|
3166
|
-
"sub_account_index",
|
|
3167
|
-
"market_id"
|
|
3168
|
-
]
|
|
2952
|
+
"title": "ReqGetAccountActiveOrders"
|
|
3169
2953
|
},
|
|
3170
2954
|
"ReqGetAccountByL1Address": {
|
|
3171
2955
|
"type": "object",
|
|
@@ -3174,10 +2958,7 @@
|
|
|
3174
2958
|
"type": "string"
|
|
3175
2959
|
}
|
|
3176
2960
|
},
|
|
3177
|
-
"title": "ReqGetAccountByL1Address"
|
|
3178
|
-
"required": [
|
|
3179
|
-
"l1_address"
|
|
3180
|
-
]
|
|
2961
|
+
"title": "ReqGetAccountByL1Address"
|
|
3181
2962
|
},
|
|
3182
2963
|
"ReqGetAccountInactiveOrders": {
|
|
3183
2964
|
"type": "object",
|
|
@@ -3213,13 +2994,7 @@
|
|
|
3213
2994
|
"minimum": 1
|
|
3214
2995
|
}
|
|
3215
2996
|
},
|
|
3216
|
-
"title": "ReqGetAccountInactiveOrders"
|
|
3217
|
-
"required": [
|
|
3218
|
-
"account_index",
|
|
3219
|
-
"sub_account_index",
|
|
3220
|
-
"filter",
|
|
3221
|
-
"limit"
|
|
3222
|
-
]
|
|
2997
|
+
"title": "ReqGetAccountInactiveOrders"
|
|
3223
2998
|
},
|
|
3224
2999
|
"ReqGetAccountOrders": {
|
|
3225
3000
|
"type": "object",
|
|
@@ -3242,12 +3017,7 @@
|
|
|
3242
3017
|
"minimum": 1
|
|
3243
3018
|
}
|
|
3244
3019
|
},
|
|
3245
|
-
"title": "ReqGetAccountOrders"
|
|
3246
|
-
"required": [
|
|
3247
|
-
"account_index",
|
|
3248
|
-
"market_id",
|
|
3249
|
-
"limit"
|
|
3250
|
-
]
|
|
3020
|
+
"title": "ReqGetAccountOrders"
|
|
3251
3021
|
},
|
|
3252
3022
|
"ReqGetAccountPendingTxs": {
|
|
3253
3023
|
"type": "object",
|
|
@@ -3309,15 +3079,7 @@
|
|
|
3309
3079
|
"format": "int64"
|
|
3310
3080
|
}
|
|
3311
3081
|
},
|
|
3312
|
-
"title": "ReqGetAccountPnL"
|
|
3313
|
-
"required": [
|
|
3314
|
-
"by",
|
|
3315
|
-
"value",
|
|
3316
|
-
"resolution",
|
|
3317
|
-
"start_timestamp",
|
|
3318
|
-
"end_timestamp",
|
|
3319
|
-
"count_back"
|
|
3320
|
-
]
|
|
3082
|
+
"title": "ReqGetAccountPnL"
|
|
3321
3083
|
},
|
|
3322
3084
|
"ReqGetAccountTxs": {
|
|
3323
3085
|
"type": "object",
|
|
@@ -3366,11 +3128,7 @@
|
|
|
3366
3128
|
"type": "string"
|
|
3367
3129
|
}
|
|
3368
3130
|
},
|
|
3369
|
-
"title": "ReqGetBlock"
|
|
3370
|
-
"required": [
|
|
3371
|
-
"by",
|
|
3372
|
-
"value"
|
|
3373
|
-
]
|
|
3131
|
+
"title": "ReqGetBlock"
|
|
3374
3132
|
},
|
|
3375
3133
|
"ReqGetBlockTxs": {
|
|
3376
3134
|
"type": "object",
|
|
@@ -3386,11 +3144,7 @@
|
|
|
3386
3144
|
"type": "string"
|
|
3387
3145
|
}
|
|
3388
3146
|
},
|
|
3389
|
-
"title": "ReqGetBlockTxs"
|
|
3390
|
-
"required": [
|
|
3391
|
-
"by",
|
|
3392
|
-
"value"
|
|
3393
|
-
]
|
|
3147
|
+
"title": "ReqGetBlockTxs"
|
|
3394
3148
|
},
|
|
3395
3149
|
"ReqGetByAccount": {
|
|
3396
3150
|
"type": "object",
|
|
@@ -3406,11 +3160,7 @@
|
|
|
3406
3160
|
"type": "string"
|
|
3407
3161
|
}
|
|
3408
3162
|
},
|
|
3409
|
-
"title": "ReqGetByAccount"
|
|
3410
|
-
"required": [
|
|
3411
|
-
"by",
|
|
3412
|
-
"value"
|
|
3413
|
-
]
|
|
3163
|
+
"title": "ReqGetByAccount"
|
|
3414
3164
|
},
|
|
3415
3165
|
"ReqGetCandlesticks": {
|
|
3416
3166
|
"type": "object",
|
|
@@ -3443,14 +3193,7 @@
|
|
|
3443
3193
|
"format": "int64"
|
|
3444
3194
|
}
|
|
3445
3195
|
},
|
|
3446
|
-
"title": "ReqGetCandlesticks"
|
|
3447
|
-
"required": [
|
|
3448
|
-
"market_id",
|
|
3449
|
-
"resolution",
|
|
3450
|
-
"start_timestamp",
|
|
3451
|
-
"end_timestamp",
|
|
3452
|
-
"count_back"
|
|
3453
|
-
]
|
|
3196
|
+
"title": "ReqGetCandlesticks"
|
|
3454
3197
|
},
|
|
3455
3198
|
"ReqGetExchangeStats": {
|
|
3456
3199
|
"type": "object",
|
|
@@ -3482,14 +3225,7 @@
|
|
|
3482
3225
|
"format": "int64"
|
|
3483
3226
|
}
|
|
3484
3227
|
},
|
|
3485
|
-
"title": "ReqGetFundings"
|
|
3486
|
-
"required": [
|
|
3487
|
-
"market_id",
|
|
3488
|
-
"resolution",
|
|
3489
|
-
"start_timestamp",
|
|
3490
|
-
"end_timestamp",
|
|
3491
|
-
"count_back"
|
|
3492
|
-
]
|
|
3228
|
+
"title": "ReqGetFundings"
|
|
3493
3229
|
},
|
|
3494
3230
|
"ReqGetL1Tx": {
|
|
3495
3231
|
"type": "object",
|
|
@@ -3498,10 +3234,7 @@
|
|
|
3498
3234
|
"type": "string"
|
|
3499
3235
|
}
|
|
3500
3236
|
},
|
|
3501
|
-
"title": "ReqGetL1Tx"
|
|
3502
|
-
"required": [
|
|
3503
|
-
"hash"
|
|
3504
|
-
]
|
|
3237
|
+
"title": "ReqGetL1Tx"
|
|
3505
3238
|
},
|
|
3506
3239
|
"ReqGetMarketSig": {
|
|
3507
3240
|
"type": "object",
|
|
@@ -3519,12 +3252,7 @@
|
|
|
3519
3252
|
"format": "int64"
|
|
3520
3253
|
}
|
|
3521
3254
|
},
|
|
3522
|
-
"title": "ReqGetMarketSig"
|
|
3523
|
-
"required": [
|
|
3524
|
-
"market_id",
|
|
3525
|
-
"is_ask",
|
|
3526
|
-
"base_amount"
|
|
3527
|
-
]
|
|
3255
|
+
"title": "ReqGetMarketSig"
|
|
3528
3256
|
},
|
|
3529
3257
|
"ReqGetNextNonce": {
|
|
3530
3258
|
"type": "object",
|
|
@@ -3538,11 +3266,7 @@
|
|
|
3538
3266
|
"format": "uint8"
|
|
3539
3267
|
}
|
|
3540
3268
|
},
|
|
3541
|
-
"title": "ReqGetNextNonce"
|
|
3542
|
-
"required": [
|
|
3543
|
-
"account_index",
|
|
3544
|
-
"sub_account_index"
|
|
3545
|
-
]
|
|
3269
|
+
"title": "ReqGetNextNonce"
|
|
3546
3270
|
},
|
|
3547
3271
|
"ReqGetOrderBookDetails": {
|
|
3548
3272
|
"type": "object",
|
|
@@ -3559,10 +3283,7 @@
|
|
|
3559
3283
|
"format": "uin16"
|
|
3560
3284
|
}
|
|
3561
3285
|
},
|
|
3562
|
-
"title": "ReqGetOrderBookDetails"
|
|
3563
|
-
"required": [
|
|
3564
|
-
"filter"
|
|
3565
|
-
]
|
|
3286
|
+
"title": "ReqGetOrderBookDetails"
|
|
3566
3287
|
},
|
|
3567
3288
|
"ReqGetOrderBookOrders": {
|
|
3568
3289
|
"type": "object",
|
|
@@ -3578,11 +3299,7 @@
|
|
|
3578
3299
|
"minimum": 1
|
|
3579
3300
|
}
|
|
3580
3301
|
},
|
|
3581
|
-
"title": "ReqGetOrderBookOrders"
|
|
3582
|
-
"required": [
|
|
3583
|
-
"market_id",
|
|
3584
|
-
"limit"
|
|
3585
|
-
]
|
|
3302
|
+
"title": "ReqGetOrderBookOrders"
|
|
3586
3303
|
},
|
|
3587
3304
|
"ReqGetOrderBooks": {
|
|
3588
3305
|
"type": "object",
|
|
@@ -3599,10 +3316,7 @@
|
|
|
3599
3316
|
"format": "uin16"
|
|
3600
3317
|
}
|
|
3601
3318
|
},
|
|
3602
|
-
"title": "ReqGetOrderBooks"
|
|
3603
|
-
"required": [
|
|
3604
|
-
"filter"
|
|
3605
|
-
]
|
|
3319
|
+
"title": "ReqGetOrderBooks"
|
|
3606
3320
|
},
|
|
3607
3321
|
"ReqGetPermission": {
|
|
3608
3322
|
"type": "object",
|
|
@@ -3622,12 +3336,7 @@
|
|
|
3622
3336
|
"format": "uint8"
|
|
3623
3337
|
}
|
|
3624
3338
|
},
|
|
3625
|
-
"title": "ReqGetPermission"
|
|
3626
|
-
"required": [
|
|
3627
|
-
"by",
|
|
3628
|
-
"value",
|
|
3629
|
-
"tx_type"
|
|
3630
|
-
]
|
|
3339
|
+
"title": "ReqGetPermission"
|
|
3631
3340
|
},
|
|
3632
3341
|
"ReqGetRangeWithCursor": {
|
|
3633
3342
|
"type": "object",
|
|
@@ -3642,10 +3351,7 @@
|
|
|
3642
3351
|
"minimum": 1
|
|
3643
3352
|
}
|
|
3644
3353
|
},
|
|
3645
|
-
"title": "ReqGetRangeWithCursor"
|
|
3646
|
-
"required": [
|
|
3647
|
-
"limit"
|
|
3648
|
-
]
|
|
3354
|
+
"title": "ReqGetRangeWithCursor"
|
|
3649
3355
|
},
|
|
3650
3356
|
"ReqGetRangeWithIndex": {
|
|
3651
3357
|
"type": "object",
|
|
@@ -3661,10 +3367,7 @@
|
|
|
3661
3367
|
"minimum": 1
|
|
3662
3368
|
}
|
|
3663
3369
|
},
|
|
3664
|
-
"title": "ReqGetRangeWithIndex"
|
|
3665
|
-
"required": [
|
|
3666
|
-
"limit"
|
|
3667
|
-
]
|
|
3370
|
+
"title": "ReqGetRangeWithIndex"
|
|
3668
3371
|
},
|
|
3669
3372
|
"ReqGetRangeWithIndexSortable": {
|
|
3670
3373
|
"type": "object",
|
|
@@ -3704,11 +3407,7 @@
|
|
|
3704
3407
|
"minimum": 1
|
|
3705
3408
|
}
|
|
3706
3409
|
},
|
|
3707
|
-
"title": "ReqGetRecentTrades"
|
|
3708
|
-
"required": [
|
|
3709
|
-
"market_id",
|
|
3710
|
-
"limit"
|
|
3711
|
-
]
|
|
3410
|
+
"title": "ReqGetRecentTrades"
|
|
3712
3411
|
},
|
|
3713
3412
|
"ReqGetRollbacks": {
|
|
3714
3413
|
"type": "object",
|
|
@@ -3729,12 +3428,7 @@
|
|
|
3729
3428
|
"minimum": 1
|
|
3730
3429
|
}
|
|
3731
3430
|
},
|
|
3732
|
-
"title": "ReqGetRollbacks"
|
|
3733
|
-
"required": [
|
|
3734
|
-
"from_block_height",
|
|
3735
|
-
"offset",
|
|
3736
|
-
"limit"
|
|
3737
|
-
]
|
|
3431
|
+
"title": "ReqGetRollbacks"
|
|
3738
3432
|
},
|
|
3739
3433
|
"ReqGetSubAccount": {
|
|
3740
3434
|
"type": "object",
|
|
@@ -3756,12 +3450,7 @@
|
|
|
3756
3450
|
"description": " NilSubAccountIndex"
|
|
3757
3451
|
}
|
|
3758
3452
|
},
|
|
3759
|
-
"title": "ReqGetSubAccount"
|
|
3760
|
-
"required": [
|
|
3761
|
-
"by",
|
|
3762
|
-
"value",
|
|
3763
|
-
"sub_account_index"
|
|
3764
|
-
]
|
|
3453
|
+
"title": "ReqGetSubAccount"
|
|
3765
3454
|
},
|
|
3766
3455
|
"ReqGetTrades": {
|
|
3767
3456
|
"type": "object",
|
|
@@ -3793,13 +3482,7 @@
|
|
|
3793
3482
|
"minimum": 1
|
|
3794
3483
|
}
|
|
3795
3484
|
},
|
|
3796
|
-
"title": "ReqGetTrades"
|
|
3797
|
-
"required": [
|
|
3798
|
-
"market_id",
|
|
3799
|
-
"by",
|
|
3800
|
-
"from",
|
|
3801
|
-
"limit"
|
|
3802
|
-
]
|
|
3485
|
+
"title": "ReqGetTrades"
|
|
3803
3486
|
},
|
|
3804
3487
|
"ReqGetTx": {
|
|
3805
3488
|
"type": "object",
|
|
@@ -3815,11 +3498,7 @@
|
|
|
3815
3498
|
"type": "string"
|
|
3816
3499
|
}
|
|
3817
3500
|
},
|
|
3818
|
-
"title": "ReqGetTx"
|
|
3819
|
-
"required": [
|
|
3820
|
-
"by",
|
|
3821
|
-
"value"
|
|
3822
|
-
]
|
|
3501
|
+
"title": "ReqGetTx"
|
|
3823
3502
|
},
|
|
3824
3503
|
"ReqSearch": {
|
|
3825
3504
|
"type": "object",
|
|
@@ -3828,10 +3507,7 @@
|
|
|
3828
3507
|
"type": "string"
|
|
3829
3508
|
}
|
|
3830
3509
|
},
|
|
3831
|
-
"title": "ReqSearch"
|
|
3832
|
-
"required": [
|
|
3833
|
-
"keyword"
|
|
3834
|
-
]
|
|
3510
|
+
"title": "ReqSearch"
|
|
3835
3511
|
},
|
|
3836
3512
|
"ReqSendTx": {
|
|
3837
3513
|
"type": "object",
|
|
@@ -3844,11 +3520,7 @@
|
|
|
3844
3520
|
"type": "string"
|
|
3845
3521
|
}
|
|
3846
3522
|
},
|
|
3847
|
-
"title": "ReqSendTx"
|
|
3848
|
-
"required": [
|
|
3849
|
-
"tx_type",
|
|
3850
|
-
"tx_info"
|
|
3851
|
-
]
|
|
3523
|
+
"title": "ReqSendTx"
|
|
3852
3524
|
},
|
|
3853
3525
|
"ResultCode": {
|
|
3854
3526
|
"type": "object",
|
|
@@ -3862,10 +3534,7 @@
|
|
|
3862
3534
|
"type": "string"
|
|
3863
3535
|
}
|
|
3864
3536
|
},
|
|
3865
|
-
"title": "ResultCode"
|
|
3866
|
-
"required": [
|
|
3867
|
-
"code"
|
|
3868
|
-
]
|
|
3537
|
+
"title": "ResultCode"
|
|
3869
3538
|
},
|
|
3870
3539
|
"Rollback": {
|
|
3871
3540
|
"type": "object",
|
|
@@ -3890,13 +3559,7 @@
|
|
|
3890
3559
|
"example": "1640995200"
|
|
3891
3560
|
}
|
|
3892
3561
|
},
|
|
3893
|
-
"title": "Rollback"
|
|
3894
|
-
"required": [
|
|
3895
|
-
"from_block_height",
|
|
3896
|
-
"from_tx_hash",
|
|
3897
|
-
"id",
|
|
3898
|
-
"created_at"
|
|
3899
|
-
]
|
|
3562
|
+
"title": "Rollback"
|
|
3900
3563
|
},
|
|
3901
3564
|
"Rollbacks": {
|
|
3902
3565
|
"type": "object",
|
|
@@ -3921,11 +3584,7 @@
|
|
|
3921
3584
|
}
|
|
3922
3585
|
}
|
|
3923
3586
|
},
|
|
3924
|
-
"title": "Rollbacks"
|
|
3925
|
-
"required": [
|
|
3926
|
-
"total",
|
|
3927
|
-
"rollbacks"
|
|
3928
|
-
]
|
|
3587
|
+
"title": "Rollbacks"
|
|
3929
3588
|
},
|
|
3930
3589
|
"Search": {
|
|
3931
3590
|
"type": "object",
|
|
@@ -3944,10 +3603,7 @@
|
|
|
3944
3603
|
"example": "1"
|
|
3945
3604
|
}
|
|
3946
3605
|
},
|
|
3947
|
-
"title": "Search"
|
|
3948
|
-
"required": [
|
|
3949
|
-
"data_type"
|
|
3950
|
-
]
|
|
3606
|
+
"title": "Search"
|
|
3951
3607
|
},
|
|
3952
3608
|
"SignBody": {
|
|
3953
3609
|
"type": "object",
|
|
@@ -3965,10 +3621,7 @@
|
|
|
3965
3621
|
"example": "success"
|
|
3966
3622
|
}
|
|
3967
3623
|
},
|
|
3968
|
-
"title": "SignBody"
|
|
3969
|
-
"required": [
|
|
3970
|
-
"sign_body"
|
|
3971
|
-
]
|
|
3624
|
+
"title": "SignBody"
|
|
3972
3625
|
},
|
|
3973
3626
|
"SimpleOrder": {
|
|
3974
3627
|
"type": "object",
|
|
@@ -4001,15 +3654,7 @@
|
|
|
4001
3654
|
"example": "234"
|
|
4002
3655
|
}
|
|
4003
3656
|
},
|
|
4004
|
-
"title": "SimpleOrder"
|
|
4005
|
-
"required": [
|
|
4006
|
-
"owner_account_index",
|
|
4007
|
-
"owner_sub_account_index",
|
|
4008
|
-
"initial_base_amount",
|
|
4009
|
-
"remaining_base_amount",
|
|
4010
|
-
"price",
|
|
4011
|
-
"nonce"
|
|
4012
|
-
]
|
|
3657
|
+
"title": "SimpleOrder"
|
|
4013
3658
|
},
|
|
4014
3659
|
"Status": {
|
|
4015
3660
|
"type": "object",
|
|
@@ -4025,11 +3670,7 @@
|
|
|
4025
3670
|
"example": "1"
|
|
4026
3671
|
}
|
|
4027
3672
|
},
|
|
4028
|
-
"title": "Status"
|
|
4029
|
-
"required": [
|
|
4030
|
-
"status",
|
|
4031
|
-
"network_id"
|
|
4032
|
-
]
|
|
3673
|
+
"title": "Status"
|
|
4033
3674
|
},
|
|
4034
3675
|
"SubAccount": {
|
|
4035
3676
|
"type": "object",
|
|
@@ -4072,17 +3713,7 @@
|
|
|
4072
3713
|
"example": "1"
|
|
4073
3714
|
}
|
|
4074
3715
|
},
|
|
4075
|
-
"title": "SubAccount"
|
|
4076
|
-
"required": [
|
|
4077
|
-
"index",
|
|
4078
|
-
"sub_account_index",
|
|
4079
|
-
"l1_address",
|
|
4080
|
-
"pk",
|
|
4081
|
-
"nonce",
|
|
4082
|
-
"status",
|
|
4083
|
-
"collateral",
|
|
4084
|
-
"collateral_type"
|
|
4085
|
-
]
|
|
3716
|
+
"title": "SubAccount"
|
|
4086
3717
|
},
|
|
4087
3718
|
"SubAccounts": {
|
|
4088
3719
|
"type": "object",
|
|
@@ -4117,13 +3748,7 @@
|
|
|
4117
3748
|
}
|
|
4118
3749
|
}
|
|
4119
3750
|
},
|
|
4120
|
-
"title": "SubAccounts"
|
|
4121
|
-
"required": [
|
|
4122
|
-
"index",
|
|
4123
|
-
"l1_address",
|
|
4124
|
-
"status",
|
|
4125
|
-
"sub_accounts"
|
|
4126
|
-
]
|
|
3751
|
+
"title": "SubAccounts"
|
|
4127
3752
|
},
|
|
4128
3753
|
"Trade": {
|
|
4129
3754
|
"type": "object",
|
|
@@ -4186,21 +3811,7 @@
|
|
|
4186
3811
|
"example": "1640995200"
|
|
4187
3812
|
}
|
|
4188
3813
|
},
|
|
4189
|
-
"title": "Trade"
|
|
4190
|
-
"required": [
|
|
4191
|
-
"trade_id",
|
|
4192
|
-
"tx_hash",
|
|
4193
|
-
"market_id",
|
|
4194
|
-
"size",
|
|
4195
|
-
"price",
|
|
4196
|
-
"ask_id",
|
|
4197
|
-
"bid_id",
|
|
4198
|
-
"maker_account_id",
|
|
4199
|
-
"taker_account_id",
|
|
4200
|
-
"is_maker_ask",
|
|
4201
|
-
"block_height",
|
|
4202
|
-
"timestamp"
|
|
4203
|
-
]
|
|
3814
|
+
"title": "Trade"
|
|
4204
3815
|
},
|
|
4205
3816
|
"Trades": {
|
|
4206
3817
|
"type": "object",
|
|
@@ -4220,10 +3831,7 @@
|
|
|
4220
3831
|
}
|
|
4221
3832
|
}
|
|
4222
3833
|
},
|
|
4223
|
-
"title": "Trades"
|
|
4224
|
-
"required": [
|
|
4225
|
-
"trades"
|
|
4226
|
-
]
|
|
3834
|
+
"title": "Trades"
|
|
4227
3835
|
},
|
|
4228
3836
|
"Tx": {
|
|
4229
3837
|
"type": "object",
|
|
@@ -4297,23 +3905,7 @@
|
|
|
4297
3905
|
"example": "8761"
|
|
4298
3906
|
}
|
|
4299
3907
|
},
|
|
4300
|
-
"title": "Tx"
|
|
4301
|
-
"required": [
|
|
4302
|
-
"hash",
|
|
4303
|
-
"type",
|
|
4304
|
-
"info",
|
|
4305
|
-
"event_info",
|
|
4306
|
-
"status",
|
|
4307
|
-
"transaction_index",
|
|
4308
|
-
"l1_address",
|
|
4309
|
-
"account_index",
|
|
4310
|
-
"nonce",
|
|
4311
|
-
"expire_at",
|
|
4312
|
-
"block_height",
|
|
4313
|
-
"created_at",
|
|
4314
|
-
"verify_at",
|
|
4315
|
-
"sequence_index"
|
|
4316
|
-
]
|
|
3908
|
+
"title": "Tx"
|
|
4317
3909
|
},
|
|
4318
3910
|
"TxHash": {
|
|
4319
3911
|
"type": "object",
|
|
@@ -4331,10 +3923,7 @@
|
|
|
4331
3923
|
"example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
|
|
4332
3924
|
}
|
|
4333
3925
|
},
|
|
4334
|
-
"title": "TxHash"
|
|
4335
|
-
"required": [
|
|
4336
|
-
"tx_hash"
|
|
4337
|
-
]
|
|
3926
|
+
"title": "TxHash"
|
|
4338
3927
|
},
|
|
4339
3928
|
"Txs": {
|
|
4340
3929
|
"type": "object",
|
|
@@ -4354,10 +3943,7 @@
|
|
|
4354
3943
|
}
|
|
4355
3944
|
}
|
|
4356
3945
|
},
|
|
4357
|
-
"title": "Txs"
|
|
4358
|
-
"required": [
|
|
4359
|
-
"txs"
|
|
4360
|
-
]
|
|
3946
|
+
"title": "Txs"
|
|
4361
3947
|
},
|
|
4362
3948
|
"ValidatorInfo": {
|
|
4363
3949
|
"type": "object",
|
|
@@ -4372,11 +3958,7 @@
|
|
|
4372
3958
|
"example": "true"
|
|
4373
3959
|
}
|
|
4374
3960
|
},
|
|
4375
|
-
"title": "ValidatorInfo"
|
|
4376
|
-
"required": [
|
|
4377
|
-
"address",
|
|
4378
|
-
"is_active"
|
|
4379
|
-
]
|
|
3961
|
+
"title": "ValidatorInfo"
|
|
4380
3962
|
}
|
|
4381
3963
|
},
|
|
4382
3964
|
"securityDefinitions": {
|