zklighter-perps 1.0.93 → 1.0.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +7 -0
- package/apis/AnnouncementApi.ts +61 -0
- package/apis/BridgeApi.ts +31 -0
- package/apis/ReferralApi.ts +58 -0
- package/apis/index.ts +1 -0
- package/models/AccountMarketStats.ts +54 -0
- package/models/AccountTradeStats.ts +46 -10
- package/models/Announcement.ts +79 -0
- package/models/Announcements.ts +85 -0
- package/models/L1ProviderInfo.ts +0 -9
- package/models/ReferralPointEntry.ts +88 -0
- package/models/ReferralPoints.ts +122 -0
- package/models/ReqGetReferralPoints.ts +70 -0
- package/models/RespGetFastBridgeInfo.ts +78 -0
- package/models/index.ts +6 -0
- package/openapi.json +322 -12
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -479,6 +479,30 @@
|
|
|
479
479
|
"description": "Get accounts by l1_address returns all accounts associated with the given L1 address"
|
|
480
480
|
}
|
|
481
481
|
},
|
|
482
|
+
"/api/v1/announcement": {
|
|
483
|
+
"get": {
|
|
484
|
+
"summary": "announcement",
|
|
485
|
+
"operationId": "announcement",
|
|
486
|
+
"responses": {
|
|
487
|
+
"200": {
|
|
488
|
+
"description": "A successful response.",
|
|
489
|
+
"schema": {
|
|
490
|
+
"$ref": "#/definitions/Announcements"
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
"400": {
|
|
494
|
+
"description": "Bad request",
|
|
495
|
+
"schema": {
|
|
496
|
+
"$ref": "#/definitions/ResultCode"
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
"tags": [
|
|
501
|
+
"announcement"
|
|
502
|
+
],
|
|
503
|
+
"description": "Get announcement"
|
|
504
|
+
}
|
|
505
|
+
},
|
|
482
506
|
"/api/v1/apikeys": {
|
|
483
507
|
"get": {
|
|
484
508
|
"summary": "apikeys",
|
|
@@ -981,6 +1005,30 @@
|
|
|
981
1005
|
"description": "Get exchange stats"
|
|
982
1006
|
}
|
|
983
1007
|
},
|
|
1008
|
+
"/api/v1/fastbridge/info": {
|
|
1009
|
+
"get": {
|
|
1010
|
+
"summary": "fastbridge_info",
|
|
1011
|
+
"operationId": "fastbridge_info",
|
|
1012
|
+
"responses": {
|
|
1013
|
+
"200": {
|
|
1014
|
+
"description": "A successful response.",
|
|
1015
|
+
"schema": {
|
|
1016
|
+
"$ref": "#/definitions/RespGetFastBridgeInfo"
|
|
1017
|
+
}
|
|
1018
|
+
},
|
|
1019
|
+
"400": {
|
|
1020
|
+
"description": "Bad request",
|
|
1021
|
+
"schema": {
|
|
1022
|
+
"$ref": "#/definitions/ResultCode"
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
},
|
|
1026
|
+
"tags": [
|
|
1027
|
+
"bridge"
|
|
1028
|
+
],
|
|
1029
|
+
"description": "Get fast bridge info"
|
|
1030
|
+
}
|
|
1031
|
+
},
|
|
984
1032
|
"/api/v1/fastwithdraw": {
|
|
985
1033
|
"post": {
|
|
986
1034
|
"summary": "fastwithdraw",
|
|
@@ -1826,6 +1874,48 @@
|
|
|
1826
1874
|
"description": "Get referral code"
|
|
1827
1875
|
}
|
|
1828
1876
|
},
|
|
1877
|
+
"/api/v1/referral/points": {
|
|
1878
|
+
"get": {
|
|
1879
|
+
"summary": "referral_points",
|
|
1880
|
+
"operationId": "referral_points",
|
|
1881
|
+
"responses": {
|
|
1882
|
+
"200": {
|
|
1883
|
+
"description": "A successful response.",
|
|
1884
|
+
"schema": {
|
|
1885
|
+
"$ref": "#/definitions/ReferralPoints"
|
|
1886
|
+
}
|
|
1887
|
+
},
|
|
1888
|
+
"400": {
|
|
1889
|
+
"description": "Bad request",
|
|
1890
|
+
"schema": {
|
|
1891
|
+
"$ref": "#/definitions/ResultCode"
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
},
|
|
1895
|
+
"parameters": [
|
|
1896
|
+
{
|
|
1897
|
+
"name": "auth",
|
|
1898
|
+
"in": "query",
|
|
1899
|
+
"required": true,
|
|
1900
|
+
"type": "string"
|
|
1901
|
+
},
|
|
1902
|
+
{
|
|
1903
|
+
"name": "account_index",
|
|
1904
|
+
"in": "query",
|
|
1905
|
+
"required": true,
|
|
1906
|
+
"type": "integer",
|
|
1907
|
+
"format": "int64"
|
|
1908
|
+
}
|
|
1909
|
+
],
|
|
1910
|
+
"tags": [
|
|
1911
|
+
"referral"
|
|
1912
|
+
],
|
|
1913
|
+
"consumes": [
|
|
1914
|
+
"multipart/form-data"
|
|
1915
|
+
],
|
|
1916
|
+
"description": "Get referral points"
|
|
1917
|
+
}
|
|
1918
|
+
},
|
|
1829
1919
|
"/api/v1/referral/use": {
|
|
1830
1920
|
"post": {
|
|
1831
1921
|
"summary": "referral_use",
|
|
@@ -2393,6 +2483,36 @@
|
|
|
2393
2483
|
"format": "double",
|
|
2394
2484
|
"example": "93566.25"
|
|
2395
2485
|
},
|
|
2486
|
+
"weekly_trades_count": {
|
|
2487
|
+
"type": "integer",
|
|
2488
|
+
"format": "int64",
|
|
2489
|
+
"example": "68"
|
|
2490
|
+
},
|
|
2491
|
+
"weekly_base_token_volume": {
|
|
2492
|
+
"type": "number",
|
|
2493
|
+
"format": "double",
|
|
2494
|
+
"example": "235.25"
|
|
2495
|
+
},
|
|
2496
|
+
"weekly_quote_token_volume": {
|
|
2497
|
+
"type": "number",
|
|
2498
|
+
"format": "double",
|
|
2499
|
+
"example": "93566.25"
|
|
2500
|
+
},
|
|
2501
|
+
"monthly_trades_count": {
|
|
2502
|
+
"type": "integer",
|
|
2503
|
+
"format": "int64",
|
|
2504
|
+
"example": "68"
|
|
2505
|
+
},
|
|
2506
|
+
"monthly_base_token_volume": {
|
|
2507
|
+
"type": "number",
|
|
2508
|
+
"format": "double",
|
|
2509
|
+
"example": "235.25"
|
|
2510
|
+
},
|
|
2511
|
+
"monthly_quote_token_volume": {
|
|
2512
|
+
"type": "number",
|
|
2513
|
+
"format": "double",
|
|
2514
|
+
"example": "93566.25"
|
|
2515
|
+
},
|
|
2396
2516
|
"total_trades_count": {
|
|
2397
2517
|
"type": "integer",
|
|
2398
2518
|
"format": "int64",
|
|
@@ -2415,6 +2535,12 @@
|
|
|
2415
2535
|
"daily_trades_count",
|
|
2416
2536
|
"daily_base_token_volume",
|
|
2417
2537
|
"daily_quote_token_volume",
|
|
2538
|
+
"weekly_trades_count",
|
|
2539
|
+
"weekly_base_token_volume",
|
|
2540
|
+
"weekly_quote_token_volume",
|
|
2541
|
+
"monthly_trades_count",
|
|
2542
|
+
"monthly_base_token_volume",
|
|
2543
|
+
"monthly_quote_token_volume",
|
|
2418
2544
|
"total_trades_count",
|
|
2419
2545
|
"total_base_token_volume",
|
|
2420
2546
|
"total_quote_token_volume"
|
|
@@ -2587,22 +2713,42 @@
|
|
|
2587
2713
|
"AccountTradeStats": {
|
|
2588
2714
|
"type": "object",
|
|
2589
2715
|
"properties": {
|
|
2590
|
-
"
|
|
2716
|
+
"daily_trades_count": {
|
|
2591
2717
|
"type": "integer",
|
|
2592
2718
|
"format": "int64",
|
|
2593
2719
|
"example": "68"
|
|
2594
2720
|
},
|
|
2595
|
-
"
|
|
2721
|
+
"daily_volume": {
|
|
2596
2722
|
"type": "number",
|
|
2597
2723
|
"format": "double",
|
|
2598
2724
|
"example": "235.25"
|
|
2599
2725
|
},
|
|
2600
|
-
"
|
|
2726
|
+
"weekly_trades_count": {
|
|
2601
2727
|
"type": "integer",
|
|
2602
2728
|
"format": "int64",
|
|
2603
2729
|
"example": "68"
|
|
2604
2730
|
},
|
|
2605
|
-
"
|
|
2731
|
+
"weekly_volume": {
|
|
2732
|
+
"type": "number",
|
|
2733
|
+
"format": "double",
|
|
2734
|
+
"example": "235.25"
|
|
2735
|
+
},
|
|
2736
|
+
"monthly_trades_count": {
|
|
2737
|
+
"type": "integer",
|
|
2738
|
+
"format": "int64",
|
|
2739
|
+
"example": "68"
|
|
2740
|
+
},
|
|
2741
|
+
"monthly_volume": {
|
|
2742
|
+
"type": "number",
|
|
2743
|
+
"format": "double",
|
|
2744
|
+
"example": "235.25"
|
|
2745
|
+
},
|
|
2746
|
+
"total_trades_count": {
|
|
2747
|
+
"type": "integer",
|
|
2748
|
+
"format": "int64",
|
|
2749
|
+
"example": "68"
|
|
2750
|
+
},
|
|
2751
|
+
"total_volume": {
|
|
2606
2752
|
"type": "number",
|
|
2607
2753
|
"format": "double",
|
|
2608
2754
|
"example": "235.25"
|
|
@@ -2610,10 +2756,14 @@
|
|
|
2610
2756
|
},
|
|
2611
2757
|
"title": "AccountTradeStats",
|
|
2612
2758
|
"required": [
|
|
2613
|
-
"total_trades_count",
|
|
2614
|
-
"total_volume",
|
|
2615
2759
|
"daily_trades_count",
|
|
2616
|
-
"daily_volume"
|
|
2760
|
+
"daily_volume",
|
|
2761
|
+
"weekly_trades_count",
|
|
2762
|
+
"weekly_volume",
|
|
2763
|
+
"monthly_trades_count",
|
|
2764
|
+
"monthly_volume",
|
|
2765
|
+
"total_trades_count",
|
|
2766
|
+
"total_volume"
|
|
2617
2767
|
]
|
|
2618
2768
|
},
|
|
2619
2769
|
"Accounts": {
|
|
@@ -2646,6 +2796,51 @@
|
|
|
2646
2796
|
"accounts"
|
|
2647
2797
|
]
|
|
2648
2798
|
},
|
|
2799
|
+
"Announcement": {
|
|
2800
|
+
"type": "object",
|
|
2801
|
+
"properties": {
|
|
2802
|
+
"title": {
|
|
2803
|
+
"type": "string"
|
|
2804
|
+
},
|
|
2805
|
+
"content": {
|
|
2806
|
+
"type": "string"
|
|
2807
|
+
},
|
|
2808
|
+
"created_at": {
|
|
2809
|
+
"type": "integer",
|
|
2810
|
+
"format": "int64"
|
|
2811
|
+
}
|
|
2812
|
+
},
|
|
2813
|
+
"title": "Announcement",
|
|
2814
|
+
"required": [
|
|
2815
|
+
"title",
|
|
2816
|
+
"content",
|
|
2817
|
+
"created_at"
|
|
2818
|
+
]
|
|
2819
|
+
},
|
|
2820
|
+
"Announcements": {
|
|
2821
|
+
"type": "object",
|
|
2822
|
+
"properties": {
|
|
2823
|
+
"code": {
|
|
2824
|
+
"type": "integer",
|
|
2825
|
+
"format": "int32",
|
|
2826
|
+
"example": "200"
|
|
2827
|
+
},
|
|
2828
|
+
"message": {
|
|
2829
|
+
"type": "string"
|
|
2830
|
+
},
|
|
2831
|
+
"announcements": {
|
|
2832
|
+
"type": "array",
|
|
2833
|
+
"items": {
|
|
2834
|
+
"$ref": "#/definitions/Announcement"
|
|
2835
|
+
}
|
|
2836
|
+
}
|
|
2837
|
+
},
|
|
2838
|
+
"title": "Announcements",
|
|
2839
|
+
"required": [
|
|
2840
|
+
"code",
|
|
2841
|
+
"announcements"
|
|
2842
|
+
]
|
|
2843
|
+
},
|
|
2649
2844
|
"ApiKey": {
|
|
2650
2845
|
"type": "object",
|
|
2651
2846
|
"properties": {
|
|
@@ -3610,17 +3805,13 @@
|
|
|
3610
3805
|
"type": "integer",
|
|
3611
3806
|
"format": "int64",
|
|
3612
3807
|
"example": "45434"
|
|
3613
|
-
},
|
|
3614
|
-
"NetworkRpc": {
|
|
3615
|
-
"type": "string"
|
|
3616
3808
|
}
|
|
3617
3809
|
},
|
|
3618
3810
|
"title": "L1ProviderInfo",
|
|
3619
3811
|
"required": [
|
|
3620
3812
|
"chainId",
|
|
3621
3813
|
"networkId",
|
|
3622
|
-
"latestBlockNumber"
|
|
3623
|
-
"NetworkRpc"
|
|
3814
|
+
"latestBlockNumber"
|
|
3624
3815
|
]
|
|
3625
3816
|
},
|
|
3626
3817
|
"Layer1BasicInfo": {
|
|
@@ -4846,6 +5037,87 @@
|
|
|
4846
5037
|
"remaining_usage"
|
|
4847
5038
|
]
|
|
4848
5039
|
},
|
|
5040
|
+
"ReferralPointEntry": {
|
|
5041
|
+
"type": "object",
|
|
5042
|
+
"properties": {
|
|
5043
|
+
"l1_address": {
|
|
5044
|
+
"type": "string"
|
|
5045
|
+
},
|
|
5046
|
+
"total_points": {
|
|
5047
|
+
"type": "integer",
|
|
5048
|
+
"format": "int64",
|
|
5049
|
+
"example": "1000"
|
|
5050
|
+
},
|
|
5051
|
+
"week_points": {
|
|
5052
|
+
"type": "integer",
|
|
5053
|
+
"format": "int64",
|
|
5054
|
+
"example": "1000"
|
|
5055
|
+
},
|
|
5056
|
+
"reward_points": {
|
|
5057
|
+
"type": "integer",
|
|
5058
|
+
"format": "int64",
|
|
5059
|
+
"example": "200"
|
|
5060
|
+
}
|
|
5061
|
+
},
|
|
5062
|
+
"title": "ReferralPointEntry",
|
|
5063
|
+
"required": [
|
|
5064
|
+
"l1_address",
|
|
5065
|
+
"total_points",
|
|
5066
|
+
"week_points",
|
|
5067
|
+
"reward_points"
|
|
5068
|
+
]
|
|
5069
|
+
},
|
|
5070
|
+
"ReferralPoints": {
|
|
5071
|
+
"type": "object",
|
|
5072
|
+
"properties": {
|
|
5073
|
+
"referrals": {
|
|
5074
|
+
"type": "array",
|
|
5075
|
+
"items": {
|
|
5076
|
+
"$ref": "#/definitions/ReferralPointEntry"
|
|
5077
|
+
}
|
|
5078
|
+
},
|
|
5079
|
+
"user_total_points": {
|
|
5080
|
+
"type": "integer",
|
|
5081
|
+
"format": "int64",
|
|
5082
|
+
"example": "1000"
|
|
5083
|
+
},
|
|
5084
|
+
"user_last_week_points": {
|
|
5085
|
+
"type": "integer",
|
|
5086
|
+
"format": "int64",
|
|
5087
|
+
"example": "1000"
|
|
5088
|
+
},
|
|
5089
|
+
"user_referral_reward_points": {
|
|
5090
|
+
"type": "integer",
|
|
5091
|
+
"format": "int64",
|
|
5092
|
+
"example": "1000"
|
|
5093
|
+
},
|
|
5094
|
+
"all_referral_count": {
|
|
5095
|
+
"type": "integer",
|
|
5096
|
+
"format": "int32",
|
|
5097
|
+
"example": "100"
|
|
5098
|
+
},
|
|
5099
|
+
"referral_with_account_count": {
|
|
5100
|
+
"type": "integer",
|
|
5101
|
+
"format": "int32",
|
|
5102
|
+
"example": "100"
|
|
5103
|
+
},
|
|
5104
|
+
"week_start": {
|
|
5105
|
+
"type": "integer",
|
|
5106
|
+
"format": "int64",
|
|
5107
|
+
"example": "1730073600000"
|
|
5108
|
+
}
|
|
5109
|
+
},
|
|
5110
|
+
"title": "ReferralPoints",
|
|
5111
|
+
"required": [
|
|
5112
|
+
"referrals",
|
|
5113
|
+
"user_total_points",
|
|
5114
|
+
"user_last_week_points",
|
|
5115
|
+
"user_referral_reward_points",
|
|
5116
|
+
"all_referral_count",
|
|
5117
|
+
"referral_with_account_count",
|
|
5118
|
+
"week_start"
|
|
5119
|
+
]
|
|
5120
|
+
},
|
|
4849
5121
|
"ReqCancelDeposit": {
|
|
4850
5122
|
"type": "object",
|
|
4851
5123
|
"properties": {
|
|
@@ -5590,6 +5862,23 @@
|
|
|
5590
5862
|
"account_index"
|
|
5591
5863
|
]
|
|
5592
5864
|
},
|
|
5865
|
+
"ReqGetReferralPoints": {
|
|
5866
|
+
"type": "object",
|
|
5867
|
+
"properties": {
|
|
5868
|
+
"auth": {
|
|
5869
|
+
"type": "string"
|
|
5870
|
+
},
|
|
5871
|
+
"account_index": {
|
|
5872
|
+
"type": "integer",
|
|
5873
|
+
"format": "int64"
|
|
5874
|
+
}
|
|
5875
|
+
},
|
|
5876
|
+
"title": "ReqGetReferralPoints",
|
|
5877
|
+
"required": [
|
|
5878
|
+
"auth",
|
|
5879
|
+
"account_index"
|
|
5880
|
+
]
|
|
5881
|
+
},
|
|
5593
5882
|
"ReqGetTrades": {
|
|
5594
5883
|
"type": "object",
|
|
5595
5884
|
"properties": {
|
|
@@ -5833,6 +6122,27 @@
|
|
|
5833
6122
|
"x"
|
|
5834
6123
|
]
|
|
5835
6124
|
},
|
|
6125
|
+
"RespGetFastBridgeInfo": {
|
|
6126
|
+
"type": "object",
|
|
6127
|
+
"properties": {
|
|
6128
|
+
"code": {
|
|
6129
|
+
"type": "integer",
|
|
6130
|
+
"format": "int32",
|
|
6131
|
+
"example": "200"
|
|
6132
|
+
},
|
|
6133
|
+
"message": {
|
|
6134
|
+
"type": "string"
|
|
6135
|
+
},
|
|
6136
|
+
"fast_bridge_limit": {
|
|
6137
|
+
"type": "string"
|
|
6138
|
+
}
|
|
6139
|
+
},
|
|
6140
|
+
"title": "RespGetFastBridgeInfo",
|
|
6141
|
+
"required": [
|
|
6142
|
+
"code",
|
|
6143
|
+
"fast_bridge_limit"
|
|
6144
|
+
]
|
|
6145
|
+
},
|
|
5836
6146
|
"RespGetFastwithdrawalInfo": {
|
|
5837
6147
|
"type": "object",
|
|
5838
6148
|
"properties": {
|