zklighter-perps 1.0.183 → 1.0.185
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 +6 -0
- package/apis/AccountApi.ts +256 -20
- package/apis/BridgeApi.ts +6 -6
- package/apis/InfoApi.ts +4 -4
- package/apis/OrderApi.ts +20 -20
- package/apis/ReferralApi.ts +8 -8
- package/apis/TransactionApi.ts +26 -26
- package/models/Account.ts +9 -0
- package/models/ApiToken.ts +124 -0
- package/models/Auth.ts +61 -0
- package/models/DetailedAccount.ts +9 -0
- package/models/ReqExportData.ts +1 -1
- package/models/ReqGetAccountActiveOrders.ts +8 -8
- package/models/ReqGetAccountPnL.ts +1 -1
- package/models/ReqGetAccountTxs.ts +7 -7
- package/models/ReqGetApiTokens.ts +61 -0
- package/models/ReqGetDepositHistory.ts +8 -8
- package/models/ReqGetFastWithdrawInfo.ts +8 -8
- package/models/ReqGetPositionFunding.ts +1 -1
- package/models/ReqGetPublicPoolsMetadata.ts +1 -1
- package/models/ReqGetTrades.ts +1 -1
- package/models/ReqGetTransferFeeInfo.ts +1 -1
- package/models/ReqGetTransferHistory.ts +8 -8
- package/models/ReqGetWithdrawHistory.ts +8 -8
- package/models/RespGetApiTokens.ts +85 -0
- package/models/RespPostApiToken.ts +141 -0
- package/models/RespRevokeApiToken.ts +87 -0
- package/models/TransferHistoryItem.ts +9 -0
- package/models/index.ts +6 -0
- package/openapi.json +491 -98
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -106,7 +106,14 @@
|
|
|
106
106
|
{
|
|
107
107
|
"name": "authorization",
|
|
108
108
|
"description": " make required after integ is done",
|
|
109
|
-
"in": "
|
|
109
|
+
"in": "query",
|
|
110
|
+
"required": false,
|
|
111
|
+
"type": "string"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "auth",
|
|
115
|
+
"description": " made optional to support header auth clients",
|
|
116
|
+
"in": "query",
|
|
110
117
|
"required": false,
|
|
111
118
|
"type": "string"
|
|
112
119
|
},
|
|
@@ -123,13 +130,6 @@
|
|
|
123
130
|
"required": true,
|
|
124
131
|
"type": "integer",
|
|
125
132
|
"format": "int16"
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
"name": "auth",
|
|
129
|
-
"description": " made optional to support header auth clients",
|
|
130
|
-
"in": "query",
|
|
131
|
-
"required": false,
|
|
132
|
-
"type": "string"
|
|
133
133
|
}
|
|
134
134
|
],
|
|
135
135
|
"tags": [
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
{
|
|
164
164
|
"name": "authorization",
|
|
165
165
|
"description": " make required after integ is done",
|
|
166
|
-
"in": "
|
|
166
|
+
"in": "query",
|
|
167
167
|
"required": false,
|
|
168
168
|
"type": "string"
|
|
169
169
|
},
|
|
@@ -247,13 +247,6 @@
|
|
|
247
247
|
}
|
|
248
248
|
},
|
|
249
249
|
"parameters": [
|
|
250
|
-
{
|
|
251
|
-
"name": "authorization",
|
|
252
|
-
"description": " make required after integ is done",
|
|
253
|
-
"in": "header",
|
|
254
|
-
"required": false,
|
|
255
|
-
"type": "string"
|
|
256
|
-
},
|
|
257
250
|
{
|
|
258
251
|
"name": "account_index",
|
|
259
252
|
"in": "query",
|
|
@@ -261,6 +254,13 @@
|
|
|
261
254
|
"type": "integer",
|
|
262
255
|
"format": "int64"
|
|
263
256
|
},
|
|
257
|
+
{
|
|
258
|
+
"name": "authorization",
|
|
259
|
+
"description": " make required after integ is done",
|
|
260
|
+
"in": "query",
|
|
261
|
+
"required": false,
|
|
262
|
+
"type": "string"
|
|
263
|
+
},
|
|
264
264
|
{
|
|
265
265
|
"name": "auth",
|
|
266
266
|
"description": " made optional to support header auth clients",
|
|
@@ -354,12 +354,6 @@
|
|
|
354
354
|
}
|
|
355
355
|
},
|
|
356
356
|
"parameters": [
|
|
357
|
-
{
|
|
358
|
-
"name": "authorization",
|
|
359
|
-
"in": "header",
|
|
360
|
-
"required": false,
|
|
361
|
-
"type": "string"
|
|
362
|
-
},
|
|
363
357
|
{
|
|
364
358
|
"name": "index",
|
|
365
359
|
"in": "query",
|
|
@@ -392,20 +386,28 @@
|
|
|
392
386
|
"type": "string"
|
|
393
387
|
},
|
|
394
388
|
{
|
|
395
|
-
"name": "
|
|
389
|
+
"name": "authorization",
|
|
390
|
+
"description": " make required after integ is done",
|
|
396
391
|
"in": "query",
|
|
397
392
|
"required": false,
|
|
398
|
-
"type": "
|
|
399
|
-
"items": {
|
|
400
|
-
"type": "integer",
|
|
401
|
-
"format": "uint8"
|
|
402
|
-
}
|
|
393
|
+
"type": "string"
|
|
403
394
|
},
|
|
404
395
|
{
|
|
405
396
|
"name": "auth",
|
|
397
|
+
"description": " made optional to support header auth clients",
|
|
406
398
|
"in": "query",
|
|
407
399
|
"required": false,
|
|
408
400
|
"type": "string"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"name": "types",
|
|
404
|
+
"in": "query",
|
|
405
|
+
"required": false,
|
|
406
|
+
"type": "array",
|
|
407
|
+
"items": {
|
|
408
|
+
"type": "integer",
|
|
409
|
+
"format": "uint8"
|
|
410
|
+
}
|
|
409
411
|
}
|
|
410
412
|
],
|
|
411
413
|
"tags": [
|
|
@@ -986,17 +988,10 @@
|
|
|
986
988
|
{
|
|
987
989
|
"name": "authorization",
|
|
988
990
|
"description": " make required after integ is done",
|
|
989
|
-
"in": "
|
|
991
|
+
"in": "query",
|
|
990
992
|
"required": false,
|
|
991
993
|
"type": "string"
|
|
992
994
|
},
|
|
993
|
-
{
|
|
994
|
-
"name": "account_index",
|
|
995
|
-
"in": "query",
|
|
996
|
-
"required": true,
|
|
997
|
-
"type": "integer",
|
|
998
|
-
"format": "int64"
|
|
999
|
-
},
|
|
1000
995
|
{
|
|
1001
996
|
"name": "auth",
|
|
1002
997
|
"description": " made optional to support header auth clients",
|
|
@@ -1004,6 +999,13 @@
|
|
|
1004
999
|
"required": false,
|
|
1005
1000
|
"type": "string"
|
|
1006
1001
|
},
|
|
1002
|
+
{
|
|
1003
|
+
"name": "account_index",
|
|
1004
|
+
"in": "query",
|
|
1005
|
+
"required": true,
|
|
1006
|
+
"type": "integer",
|
|
1007
|
+
"format": "int64"
|
|
1008
|
+
},
|
|
1007
1009
|
{
|
|
1008
1010
|
"name": "l1_address",
|
|
1009
1011
|
"in": "query",
|
|
@@ -1141,12 +1143,14 @@
|
|
|
1141
1143
|
"parameters": [
|
|
1142
1144
|
{
|
|
1143
1145
|
"name": "authorization",
|
|
1144
|
-
"
|
|
1146
|
+
"description": " make required after integ is done",
|
|
1147
|
+
"in": "query",
|
|
1145
1148
|
"required": false,
|
|
1146
1149
|
"type": "string"
|
|
1147
1150
|
},
|
|
1148
1151
|
{
|
|
1149
1152
|
"name": "auth",
|
|
1153
|
+
"description": " made optional to support header auth clients",
|
|
1150
1154
|
"in": "query",
|
|
1151
1155
|
"required": false,
|
|
1152
1156
|
"type": "string"
|
|
@@ -1277,23 +1281,23 @@
|
|
|
1277
1281
|
{
|
|
1278
1282
|
"name": "authorization",
|
|
1279
1283
|
"description": " make required after integ is done",
|
|
1280
|
-
"in": "
|
|
1284
|
+
"in": "query",
|
|
1281
1285
|
"required": false,
|
|
1282
1286
|
"type": "string"
|
|
1283
1287
|
},
|
|
1284
|
-
{
|
|
1285
|
-
"name": "account_index",
|
|
1286
|
-
"in": "query",
|
|
1287
|
-
"required": true,
|
|
1288
|
-
"type": "integer",
|
|
1289
|
-
"format": "int64"
|
|
1290
|
-
},
|
|
1291
1288
|
{
|
|
1292
1289
|
"name": "auth",
|
|
1293
1290
|
"description": " made optional to support header auth clients",
|
|
1294
1291
|
"in": "query",
|
|
1295
1292
|
"required": false,
|
|
1296
1293
|
"type": "string"
|
|
1294
|
+
},
|
|
1295
|
+
{
|
|
1296
|
+
"name": "account_index",
|
|
1297
|
+
"in": "query",
|
|
1298
|
+
"required": true,
|
|
1299
|
+
"type": "integer",
|
|
1300
|
+
"format": "int64"
|
|
1297
1301
|
}
|
|
1298
1302
|
],
|
|
1299
1303
|
"tags": [
|
|
@@ -1734,7 +1738,7 @@
|
|
|
1734
1738
|
{
|
|
1735
1739
|
"name": "authorization",
|
|
1736
1740
|
"description": " make required after integ is done",
|
|
1737
|
-
"in": "
|
|
1741
|
+
"in": "query",
|
|
1738
1742
|
"required": false,
|
|
1739
1743
|
"type": "string"
|
|
1740
1744
|
},
|
|
@@ -2036,12 +2040,14 @@
|
|
|
2036
2040
|
"parameters": [
|
|
2037
2041
|
{
|
|
2038
2042
|
"name": "authorization",
|
|
2039
|
-
"
|
|
2043
|
+
"description": " make required after integ is done",
|
|
2044
|
+
"in": "query",
|
|
2040
2045
|
"required": false,
|
|
2041
2046
|
"type": "string"
|
|
2042
2047
|
},
|
|
2043
2048
|
{
|
|
2044
2049
|
"name": "auth",
|
|
2050
|
+
"description": " made optional to support header auth clients",
|
|
2045
2051
|
"in": "query",
|
|
2046
2052
|
"required": false,
|
|
2047
2053
|
"type": "string"
|
|
@@ -2139,12 +2145,14 @@
|
|
|
2139
2145
|
"parameters": [
|
|
2140
2146
|
{
|
|
2141
2147
|
"name": "authorization",
|
|
2142
|
-
"
|
|
2148
|
+
"description": " make required after integ is done",
|
|
2149
|
+
"in": "query",
|
|
2143
2150
|
"required": false,
|
|
2144
2151
|
"type": "string"
|
|
2145
2152
|
},
|
|
2146
2153
|
{
|
|
2147
2154
|
"name": "auth",
|
|
2155
|
+
"description": " made optional to support header auth clients",
|
|
2148
2156
|
"in": "query",
|
|
2149
2157
|
"required": false,
|
|
2150
2158
|
"type": "string"
|
|
@@ -2222,12 +2230,14 @@
|
|
|
2222
2230
|
"parameters": [
|
|
2223
2231
|
{
|
|
2224
2232
|
"name": "authorization",
|
|
2225
|
-
"
|
|
2233
|
+
"description": " make required after integ is done",
|
|
2234
|
+
"in": "query",
|
|
2226
2235
|
"required": false,
|
|
2227
2236
|
"type": "string"
|
|
2228
2237
|
},
|
|
2229
2238
|
{
|
|
2230
2239
|
"name": "auth",
|
|
2240
|
+
"description": " made optional to support header auth clients",
|
|
2231
2241
|
"in": "query",
|
|
2232
2242
|
"required": false,
|
|
2233
2243
|
"type": "string"
|
|
@@ -2388,7 +2398,7 @@
|
|
|
2388
2398
|
{
|
|
2389
2399
|
"name": "authorization",
|
|
2390
2400
|
"description": " make required after integ is done",
|
|
2391
|
-
"in": "
|
|
2401
|
+
"in": "query",
|
|
2392
2402
|
"required": false,
|
|
2393
2403
|
"type": "string"
|
|
2394
2404
|
},
|
|
@@ -2482,7 +2492,7 @@
|
|
|
2482
2492
|
{
|
|
2483
2493
|
"name": "authorization",
|
|
2484
2494
|
"description": " make required after integ is done",
|
|
2485
|
-
"in": "
|
|
2495
|
+
"in": "query",
|
|
2486
2496
|
"required": false,
|
|
2487
2497
|
"type": "string"
|
|
2488
2498
|
},
|
|
@@ -2716,6 +2726,135 @@
|
|
|
2716
2726
|
"description": "Set account metadata"
|
|
2717
2727
|
}
|
|
2718
2728
|
},
|
|
2729
|
+
"/api/v1/tokens": {
|
|
2730
|
+
"get": {
|
|
2731
|
+
"summary": "tokens",
|
|
2732
|
+
"operationId": "tokens",
|
|
2733
|
+
"responses": {
|
|
2734
|
+
"200": {
|
|
2735
|
+
"description": "A successful response.",
|
|
2736
|
+
"schema": {
|
|
2737
|
+
"$ref": "#/definitions/RespGetApiTokens"
|
|
2738
|
+
}
|
|
2739
|
+
},
|
|
2740
|
+
"400": {
|
|
2741
|
+
"description": "Bad request",
|
|
2742
|
+
"schema": {
|
|
2743
|
+
"$ref": "#/definitions/ResultCode"
|
|
2744
|
+
}
|
|
2745
|
+
}
|
|
2746
|
+
},
|
|
2747
|
+
"parameters": [
|
|
2748
|
+
{
|
|
2749
|
+
"name": "authorization",
|
|
2750
|
+
"description": " make required after integ is done",
|
|
2751
|
+
"in": "header",
|
|
2752
|
+
"required": false,
|
|
2753
|
+
"type": "string"
|
|
2754
|
+
},
|
|
2755
|
+
{
|
|
2756
|
+
"name": "account_index",
|
|
2757
|
+
"in": "query",
|
|
2758
|
+
"required": true,
|
|
2759
|
+
"type": "integer",
|
|
2760
|
+
"format": "int64"
|
|
2761
|
+
}
|
|
2762
|
+
],
|
|
2763
|
+
"tags": [
|
|
2764
|
+
"account"
|
|
2765
|
+
],
|
|
2766
|
+
"consumes": [
|
|
2767
|
+
"multipart/form-data"
|
|
2768
|
+
],
|
|
2769
|
+
"description": "Get api tokens of an account"
|
|
2770
|
+
}
|
|
2771
|
+
},
|
|
2772
|
+
"/api/v1/tokens/create": {
|
|
2773
|
+
"post": {
|
|
2774
|
+
"summary": "tokens_create",
|
|
2775
|
+
"operationId": "tokens_create",
|
|
2776
|
+
"responses": {
|
|
2777
|
+
"200": {
|
|
2778
|
+
"description": "A successful response.",
|
|
2779
|
+
"schema": {
|
|
2780
|
+
"$ref": "#/definitions/RespPostApiToken"
|
|
2781
|
+
}
|
|
2782
|
+
},
|
|
2783
|
+
"400": {
|
|
2784
|
+
"description": "Bad request",
|
|
2785
|
+
"schema": {
|
|
2786
|
+
"$ref": "#/definitions/ResultCode"
|
|
2787
|
+
}
|
|
2788
|
+
}
|
|
2789
|
+
},
|
|
2790
|
+
"parameters": [
|
|
2791
|
+
{
|
|
2792
|
+
"name": "authorization",
|
|
2793
|
+
"in": "header",
|
|
2794
|
+
"required": false,
|
|
2795
|
+
"type": "string"
|
|
2796
|
+
},
|
|
2797
|
+
{
|
|
2798
|
+
"name": "body",
|
|
2799
|
+
"in": "body",
|
|
2800
|
+
"required": true,
|
|
2801
|
+
"schema": {
|
|
2802
|
+
"$ref": "#/definitions/ReqPostApiToken"
|
|
2803
|
+
}
|
|
2804
|
+
}
|
|
2805
|
+
],
|
|
2806
|
+
"tags": [
|
|
2807
|
+
"account"
|
|
2808
|
+
],
|
|
2809
|
+
"consumes": [
|
|
2810
|
+
"multipart/form-data"
|
|
2811
|
+
],
|
|
2812
|
+
"description": "Create api token"
|
|
2813
|
+
}
|
|
2814
|
+
},
|
|
2815
|
+
"/api/v1/tokens/revoke": {
|
|
2816
|
+
"post": {
|
|
2817
|
+
"summary": "tokens_revoke",
|
|
2818
|
+
"operationId": "tokens_revoke",
|
|
2819
|
+
"responses": {
|
|
2820
|
+
"200": {
|
|
2821
|
+
"description": "A successful response.",
|
|
2822
|
+
"schema": {
|
|
2823
|
+
"$ref": "#/definitions/RespRevokeApiToken"
|
|
2824
|
+
}
|
|
2825
|
+
},
|
|
2826
|
+
"400": {
|
|
2827
|
+
"description": "Bad request",
|
|
2828
|
+
"schema": {
|
|
2829
|
+
"$ref": "#/definitions/ResultCode"
|
|
2830
|
+
}
|
|
2831
|
+
}
|
|
2832
|
+
},
|
|
2833
|
+
"parameters": [
|
|
2834
|
+
{
|
|
2835
|
+
"name": "authorization",
|
|
2836
|
+
"in": "header",
|
|
2837
|
+
"required": false,
|
|
2838
|
+
"type": "string"
|
|
2839
|
+
},
|
|
2840
|
+
{
|
|
2841
|
+
"name": "body",
|
|
2842
|
+
"in": "body",
|
|
2843
|
+
"required": true,
|
|
2844
|
+
"schema": {
|
|
2845
|
+
"$ref": "#/definitions/ReqRevokeApiToken"
|
|
2846
|
+
}
|
|
2847
|
+
}
|
|
2848
|
+
],
|
|
2849
|
+
"tags": [
|
|
2850
|
+
"account"
|
|
2851
|
+
],
|
|
2852
|
+
"consumes": [
|
|
2853
|
+
"multipart/form-data"
|
|
2854
|
+
],
|
|
2855
|
+
"description": "Revoke api token"
|
|
2856
|
+
}
|
|
2857
|
+
},
|
|
2719
2858
|
"/api/v1/trades": {
|
|
2720
2859
|
"get": {
|
|
2721
2860
|
"summary": "trades",
|
|
@@ -2737,12 +2876,14 @@
|
|
|
2737
2876
|
"parameters": [
|
|
2738
2877
|
{
|
|
2739
2878
|
"name": "authorization",
|
|
2740
|
-
"
|
|
2879
|
+
"description": " make required after integ is done",
|
|
2880
|
+
"in": "query",
|
|
2741
2881
|
"required": false,
|
|
2742
2882
|
"type": "string"
|
|
2743
2883
|
},
|
|
2744
2884
|
{
|
|
2745
2885
|
"name": "auth",
|
|
2886
|
+
"description": " made optional to support header auth clients",
|
|
2746
2887
|
"in": "query",
|
|
2747
2888
|
"required": false,
|
|
2748
2889
|
"type": "string"
|
|
@@ -2888,17 +3029,10 @@
|
|
|
2888
3029
|
{
|
|
2889
3030
|
"name": "authorization",
|
|
2890
3031
|
"description": " make required after integ is done",
|
|
2891
|
-
"in": "
|
|
3032
|
+
"in": "query",
|
|
2892
3033
|
"required": false,
|
|
2893
3034
|
"type": "string"
|
|
2894
3035
|
},
|
|
2895
|
-
{
|
|
2896
|
-
"name": "account_index",
|
|
2897
|
-
"in": "query",
|
|
2898
|
-
"required": true,
|
|
2899
|
-
"type": "integer",
|
|
2900
|
-
"format": "int64"
|
|
2901
|
-
},
|
|
2902
3036
|
{
|
|
2903
3037
|
"name": "auth",
|
|
2904
3038
|
"description": " made optional to support header auth clients",
|
|
@@ -2906,6 +3040,13 @@
|
|
|
2906
3040
|
"required": false,
|
|
2907
3041
|
"type": "string"
|
|
2908
3042
|
},
|
|
3043
|
+
{
|
|
3044
|
+
"name": "account_index",
|
|
3045
|
+
"in": "query",
|
|
3046
|
+
"required": true,
|
|
3047
|
+
"type": "integer",
|
|
3048
|
+
"format": "int64"
|
|
3049
|
+
},
|
|
2909
3050
|
{
|
|
2910
3051
|
"name": "cursor",
|
|
2911
3052
|
"in": "query",
|
|
@@ -2943,12 +3084,14 @@
|
|
|
2943
3084
|
"parameters": [
|
|
2944
3085
|
{
|
|
2945
3086
|
"name": "authorization",
|
|
2946
|
-
"
|
|
3087
|
+
"description": " make required after integ is done",
|
|
3088
|
+
"in": "query",
|
|
2947
3089
|
"required": false,
|
|
2948
3090
|
"type": "string"
|
|
2949
3091
|
},
|
|
2950
3092
|
{
|
|
2951
3093
|
"name": "auth",
|
|
3094
|
+
"description": " made optional to support header auth clients",
|
|
2952
3095
|
"in": "query",
|
|
2953
3096
|
"required": false,
|
|
2954
3097
|
"type": "string"
|
|
@@ -3125,17 +3268,10 @@
|
|
|
3125
3268
|
{
|
|
3126
3269
|
"name": "authorization",
|
|
3127
3270
|
"description": " make required after integ is done",
|
|
3128
|
-
"in": "
|
|
3271
|
+
"in": "query",
|
|
3129
3272
|
"required": false,
|
|
3130
3273
|
"type": "string"
|
|
3131
3274
|
},
|
|
3132
|
-
{
|
|
3133
|
-
"name": "account_index",
|
|
3134
|
-
"in": "query",
|
|
3135
|
-
"required": true,
|
|
3136
|
-
"type": "integer",
|
|
3137
|
-
"format": "int64"
|
|
3138
|
-
},
|
|
3139
3275
|
{
|
|
3140
3276
|
"name": "auth",
|
|
3141
3277
|
"description": " made optional to support header auth clients",
|
|
@@ -3143,6 +3279,13 @@
|
|
|
3143
3279
|
"required": false,
|
|
3144
3280
|
"type": "string"
|
|
3145
3281
|
},
|
|
3282
|
+
{
|
|
3283
|
+
"name": "account_index",
|
|
3284
|
+
"in": "query",
|
|
3285
|
+
"required": true,
|
|
3286
|
+
"type": "integer",
|
|
3287
|
+
"format": "int64"
|
|
3288
|
+
},
|
|
3146
3289
|
{
|
|
3147
3290
|
"name": "cursor",
|
|
3148
3291
|
"in": "query",
|
|
@@ -3255,6 +3398,11 @@
|
|
|
3255
3398
|
"format": "int64",
|
|
3256
3399
|
"example": "100"
|
|
3257
3400
|
},
|
|
3401
|
+
"total_isolated_order_count": {
|
|
3402
|
+
"type": "integer",
|
|
3403
|
+
"format": "int64",
|
|
3404
|
+
"example": "100"
|
|
3405
|
+
},
|
|
3258
3406
|
"pending_order_count": {
|
|
3259
3407
|
"type": "integer",
|
|
3260
3408
|
"format": "int64",
|
|
@@ -3282,6 +3430,7 @@
|
|
|
3282
3430
|
"l1_address",
|
|
3283
3431
|
"cancel_all_time",
|
|
3284
3432
|
"total_order_count",
|
|
3433
|
+
"total_isolated_order_count",
|
|
3285
3434
|
"pending_order_count",
|
|
3286
3435
|
"available_balance",
|
|
3287
3436
|
"status",
|
|
@@ -3864,6 +4013,51 @@
|
|
|
3864
4013
|
"public_key"
|
|
3865
4014
|
]
|
|
3866
4015
|
},
|
|
4016
|
+
"ApiToken": {
|
|
4017
|
+
"type": "object",
|
|
4018
|
+
"properties": {
|
|
4019
|
+
"token_id": {
|
|
4020
|
+
"type": "integer",
|
|
4021
|
+
"format": "int64"
|
|
4022
|
+
},
|
|
4023
|
+
"api_token": {
|
|
4024
|
+
"type": "string"
|
|
4025
|
+
},
|
|
4026
|
+
"name": {
|
|
4027
|
+
"type": "string"
|
|
4028
|
+
},
|
|
4029
|
+
"account_index": {
|
|
4030
|
+
"type": "integer",
|
|
4031
|
+
"format": "int64"
|
|
4032
|
+
},
|
|
4033
|
+
"expiry": {
|
|
4034
|
+
"type": "integer",
|
|
4035
|
+
"format": "int64"
|
|
4036
|
+
},
|
|
4037
|
+
"sub_account_access": {
|
|
4038
|
+
"type": "boolean",
|
|
4039
|
+
"format": "boolean"
|
|
4040
|
+
},
|
|
4041
|
+
"revoked": {
|
|
4042
|
+
"type": "boolean",
|
|
4043
|
+
"format": "boolean"
|
|
4044
|
+
},
|
|
4045
|
+
"scopes": {
|
|
4046
|
+
"type": "string"
|
|
4047
|
+
}
|
|
4048
|
+
},
|
|
4049
|
+
"title": "ApiToken",
|
|
4050
|
+
"required": [
|
|
4051
|
+
"token_id",
|
|
4052
|
+
"api_token",
|
|
4053
|
+
"name",
|
|
4054
|
+
"account_index",
|
|
4055
|
+
"expiry",
|
|
4056
|
+
"sub_account_access",
|
|
4057
|
+
"revoked",
|
|
4058
|
+
"scopes"
|
|
4059
|
+
]
|
|
4060
|
+
},
|
|
3867
4061
|
"Asset": {
|
|
3868
4062
|
"type": "object",
|
|
3869
4063
|
"properties": {
|
|
@@ -3948,6 +4142,19 @@
|
|
|
3948
4142
|
"asset_details"
|
|
3949
4143
|
]
|
|
3950
4144
|
},
|
|
4145
|
+
"Auth": {
|
|
4146
|
+
"type": "object",
|
|
4147
|
+
"properties": {
|
|
4148
|
+
"auth": {
|
|
4149
|
+
"type": "string",
|
|
4150
|
+
"description": " made optional to support header auth clients"
|
|
4151
|
+
}
|
|
4152
|
+
},
|
|
4153
|
+
"title": "Auth",
|
|
4154
|
+
"required": [
|
|
4155
|
+
"auth"
|
|
4156
|
+
]
|
|
4157
|
+
},
|
|
3951
4158
|
"Block": {
|
|
3952
4159
|
"type": "object",
|
|
3953
4160
|
"properties": {
|
|
@@ -4569,6 +4776,11 @@
|
|
|
4569
4776
|
"format": "int64",
|
|
4570
4777
|
"example": "100"
|
|
4571
4778
|
},
|
|
4779
|
+
"total_isolated_order_count": {
|
|
4780
|
+
"type": "integer",
|
|
4781
|
+
"format": "int64",
|
|
4782
|
+
"example": "100"
|
|
4783
|
+
},
|
|
4572
4784
|
"pending_order_count": {
|
|
4573
4785
|
"type": "integer",
|
|
4574
4786
|
"format": "int64",
|
|
@@ -4644,6 +4856,7 @@
|
|
|
4644
4856
|
"l1_address",
|
|
4645
4857
|
"cancel_all_time",
|
|
4646
4858
|
"total_order_count",
|
|
4859
|
+
"total_isolated_order_count",
|
|
4647
4860
|
"pending_order_count",
|
|
4648
4861
|
"available_balance",
|
|
4649
4862
|
"status",
|
|
@@ -7014,7 +7227,8 @@
|
|
|
7014
7227
|
"type": "object",
|
|
7015
7228
|
"properties": {
|
|
7016
7229
|
"auth": {
|
|
7017
|
-
"type": "string"
|
|
7230
|
+
"type": "string",
|
|
7231
|
+
"description": " made optional to support header auth clients"
|
|
7018
7232
|
},
|
|
7019
7233
|
"account_index": {
|
|
7020
7234
|
"type": "integer",
|
|
@@ -7082,6 +7296,10 @@
|
|
|
7082
7296
|
"ReqGetAccountActiveOrders": {
|
|
7083
7297
|
"type": "object",
|
|
7084
7298
|
"properties": {
|
|
7299
|
+
"auth": {
|
|
7300
|
+
"type": "string",
|
|
7301
|
+
"description": " made optional to support header auth clients"
|
|
7302
|
+
},
|
|
7085
7303
|
"account_index": {
|
|
7086
7304
|
"type": "integer",
|
|
7087
7305
|
"format": "int64"
|
|
@@ -7089,10 +7307,6 @@
|
|
|
7089
7307
|
"market_id": {
|
|
7090
7308
|
"type": "integer",
|
|
7091
7309
|
"format": "int16"
|
|
7092
|
-
},
|
|
7093
|
-
"auth": {
|
|
7094
|
-
"type": "string",
|
|
7095
|
-
"description": " made optional to support header auth clients"
|
|
7096
7310
|
}
|
|
7097
7311
|
},
|
|
7098
7312
|
"title": "ReqGetAccountActiveOrders",
|
|
@@ -7215,7 +7429,8 @@
|
|
|
7215
7429
|
"type": "object",
|
|
7216
7430
|
"properties": {
|
|
7217
7431
|
"auth": {
|
|
7218
|
-
"type": "string"
|
|
7432
|
+
"type": "string",
|
|
7433
|
+
"description": " made optional to support header auth clients"
|
|
7219
7434
|
},
|
|
7220
7435
|
"by": {
|
|
7221
7436
|
"type": "string",
|
|
@@ -7289,19 +7504,33 @@
|
|
|
7289
7504
|
"value": {
|
|
7290
7505
|
"type": "string"
|
|
7291
7506
|
},
|
|
7507
|
+
"auth": {
|
|
7508
|
+
"type": "string",
|
|
7509
|
+
"description": " made optional to support header auth clients"
|
|
7510
|
+
},
|
|
7292
7511
|
"types": {
|
|
7293
7512
|
"type": "array",
|
|
7294
7513
|
"items": {
|
|
7295
7514
|
"type": "integer",
|
|
7296
7515
|
"format": "uint8"
|
|
7297
7516
|
}
|
|
7298
|
-
},
|
|
7299
|
-
"auth": {
|
|
7300
|
-
"type": "string"
|
|
7301
7517
|
}
|
|
7302
7518
|
},
|
|
7303
7519
|
"title": "ReqGetAccountTxs"
|
|
7304
7520
|
},
|
|
7521
|
+
"ReqGetApiTokens": {
|
|
7522
|
+
"type": "object",
|
|
7523
|
+
"properties": {
|
|
7524
|
+
"account_index": {
|
|
7525
|
+
"type": "integer",
|
|
7526
|
+
"format": "int64"
|
|
7527
|
+
}
|
|
7528
|
+
},
|
|
7529
|
+
"title": "ReqGetApiTokens",
|
|
7530
|
+
"required": [
|
|
7531
|
+
"account_index"
|
|
7532
|
+
]
|
|
7533
|
+
},
|
|
7305
7534
|
"ReqGetAssetDetails": {
|
|
7306
7535
|
"type": "object",
|
|
7307
7536
|
"properties": {
|
|
@@ -7437,14 +7666,14 @@
|
|
|
7437
7666
|
"ReqGetDepositHistory": {
|
|
7438
7667
|
"type": "object",
|
|
7439
7668
|
"properties": {
|
|
7440
|
-
"account_index": {
|
|
7441
|
-
"type": "integer",
|
|
7442
|
-
"format": "int64"
|
|
7443
|
-
},
|
|
7444
7669
|
"auth": {
|
|
7445
7670
|
"type": "string",
|
|
7446
7671
|
"description": " made optional to support header auth clients"
|
|
7447
7672
|
},
|
|
7673
|
+
"account_index": {
|
|
7674
|
+
"type": "integer",
|
|
7675
|
+
"format": "int64"
|
|
7676
|
+
},
|
|
7448
7677
|
"l1_address": {
|
|
7449
7678
|
"type": "string"
|
|
7450
7679
|
},
|
|
@@ -7473,13 +7702,13 @@
|
|
|
7473
7702
|
"ReqGetFastWithdrawInfo": {
|
|
7474
7703
|
"type": "object",
|
|
7475
7704
|
"properties": {
|
|
7476
|
-
"account_index": {
|
|
7477
|
-
"type": "integer",
|
|
7478
|
-
"format": "int64"
|
|
7479
|
-
},
|
|
7480
7705
|
"auth": {
|
|
7481
7706
|
"type": "string",
|
|
7482
7707
|
"description": " made optional to support header auth clients"
|
|
7708
|
+
},
|
|
7709
|
+
"account_index": {
|
|
7710
|
+
"type": "integer",
|
|
7711
|
+
"format": "int64"
|
|
7483
7712
|
}
|
|
7484
7713
|
},
|
|
7485
7714
|
"title": "ReqGetFastWithdrawInfo",
|
|
@@ -7721,7 +7950,8 @@
|
|
|
7721
7950
|
"type": "object",
|
|
7722
7951
|
"properties": {
|
|
7723
7952
|
"auth": {
|
|
7724
|
-
"type": "string"
|
|
7953
|
+
"type": "string",
|
|
7954
|
+
"description": " made optional to support header auth clients"
|
|
7725
7955
|
},
|
|
7726
7956
|
"account_index": {
|
|
7727
7957
|
"type": "integer",
|
|
@@ -7761,7 +7991,8 @@
|
|
|
7761
7991
|
"type": "object",
|
|
7762
7992
|
"properties": {
|
|
7763
7993
|
"auth": {
|
|
7764
|
-
"type": "string"
|
|
7994
|
+
"type": "string",
|
|
7995
|
+
"description": " made optional to support header auth clients"
|
|
7765
7996
|
},
|
|
7766
7997
|
"filter": {
|
|
7767
7998
|
"type": "string",
|
|
@@ -7912,7 +8143,8 @@
|
|
|
7912
8143
|
"type": "object",
|
|
7913
8144
|
"properties": {
|
|
7914
8145
|
"auth": {
|
|
7915
|
-
"type": "string"
|
|
8146
|
+
"type": "string",
|
|
8147
|
+
"description": " made optional to support header auth clients"
|
|
7916
8148
|
},
|
|
7917
8149
|
"market_id": {
|
|
7918
8150
|
"type": "integer",
|
|
@@ -7998,7 +8230,8 @@
|
|
|
7998
8230
|
"type": "object",
|
|
7999
8231
|
"properties": {
|
|
8000
8232
|
"auth": {
|
|
8001
|
-
"type": "string"
|
|
8233
|
+
"type": "string",
|
|
8234
|
+
"description": " made optional to support header auth clients"
|
|
8002
8235
|
},
|
|
8003
8236
|
"account_index": {
|
|
8004
8237
|
"type": "integer",
|
|
@@ -8018,14 +8251,14 @@
|
|
|
8018
8251
|
"ReqGetTransferHistory": {
|
|
8019
8252
|
"type": "object",
|
|
8020
8253
|
"properties": {
|
|
8021
|
-
"account_index": {
|
|
8022
|
-
"type": "integer",
|
|
8023
|
-
"format": "int64"
|
|
8024
|
-
},
|
|
8025
8254
|
"auth": {
|
|
8026
8255
|
"type": "string",
|
|
8027
8256
|
"description": " made optional to support header auth clients"
|
|
8028
8257
|
},
|
|
8258
|
+
"account_index": {
|
|
8259
|
+
"type": "integer",
|
|
8260
|
+
"format": "int64"
|
|
8261
|
+
},
|
|
8029
8262
|
"cursor": {
|
|
8030
8263
|
"type": "string"
|
|
8031
8264
|
}
|
|
@@ -8058,14 +8291,14 @@
|
|
|
8058
8291
|
"ReqGetWithdrawHistory": {
|
|
8059
8292
|
"type": "object",
|
|
8060
8293
|
"properties": {
|
|
8061
|
-
"account_index": {
|
|
8062
|
-
"type": "integer",
|
|
8063
|
-
"format": "int64"
|
|
8064
|
-
},
|
|
8065
8294
|
"auth": {
|
|
8066
8295
|
"type": "string",
|
|
8067
8296
|
"description": " made optional to support header auth clients"
|
|
8068
8297
|
},
|
|
8298
|
+
"account_index": {
|
|
8299
|
+
"type": "integer",
|
|
8300
|
+
"format": "int64"
|
|
8301
|
+
},
|
|
8069
8302
|
"cursor": {
|
|
8070
8303
|
"type": "string"
|
|
8071
8304
|
},
|
|
@@ -8095,6 +8328,56 @@
|
|
|
8095
8328
|
"l1_address"
|
|
8096
8329
|
]
|
|
8097
8330
|
},
|
|
8331
|
+
"ReqPostApiToken": {
|
|
8332
|
+
"type": "object",
|
|
8333
|
+
"properties": {
|
|
8334
|
+
"name": {
|
|
8335
|
+
"type": "string"
|
|
8336
|
+
},
|
|
8337
|
+
"account_index": {
|
|
8338
|
+
"type": "integer",
|
|
8339
|
+
"format": "int64"
|
|
8340
|
+
},
|
|
8341
|
+
"expiry": {
|
|
8342
|
+
"type": "integer",
|
|
8343
|
+
"format": "int64"
|
|
8344
|
+
},
|
|
8345
|
+
"sub_account_access": {
|
|
8346
|
+
"type": "boolean",
|
|
8347
|
+
"format": "boolean"
|
|
8348
|
+
},
|
|
8349
|
+
"scopes": {
|
|
8350
|
+
"type": "string",
|
|
8351
|
+
"example": "read.*",
|
|
8352
|
+
"default": "read.*"
|
|
8353
|
+
}
|
|
8354
|
+
},
|
|
8355
|
+
"title": "ReqPostApiToken",
|
|
8356
|
+
"required": [
|
|
8357
|
+
"name",
|
|
8358
|
+
"account_index",
|
|
8359
|
+
"expiry",
|
|
8360
|
+
"sub_account_access"
|
|
8361
|
+
]
|
|
8362
|
+
},
|
|
8363
|
+
"ReqRevokeApiToken": {
|
|
8364
|
+
"type": "object",
|
|
8365
|
+
"properties": {
|
|
8366
|
+
"token_id": {
|
|
8367
|
+
"type": "integer",
|
|
8368
|
+
"format": "int64"
|
|
8369
|
+
},
|
|
8370
|
+
"account_index": {
|
|
8371
|
+
"type": "integer",
|
|
8372
|
+
"format": "int64"
|
|
8373
|
+
}
|
|
8374
|
+
},
|
|
8375
|
+
"title": "ReqRevokeApiToken",
|
|
8376
|
+
"required": [
|
|
8377
|
+
"token_id",
|
|
8378
|
+
"account_index"
|
|
8379
|
+
]
|
|
8380
|
+
},
|
|
8098
8381
|
"ReqSendTx": {
|
|
8099
8382
|
"type": "object",
|
|
8100
8383
|
"properties": {
|
|
@@ -8257,6 +8540,30 @@
|
|
|
8257
8540
|
"code"
|
|
8258
8541
|
]
|
|
8259
8542
|
},
|
|
8543
|
+
"RespGetApiTokens": {
|
|
8544
|
+
"type": "object",
|
|
8545
|
+
"properties": {
|
|
8546
|
+
"code": {
|
|
8547
|
+
"type": "integer",
|
|
8548
|
+
"format": "int32",
|
|
8549
|
+
"example": "200"
|
|
8550
|
+
},
|
|
8551
|
+
"message": {
|
|
8552
|
+
"type": "string"
|
|
8553
|
+
},
|
|
8554
|
+
"api_tokens": {
|
|
8555
|
+
"type": "array",
|
|
8556
|
+
"items": {
|
|
8557
|
+
"$ref": "#/definitions/ApiToken"
|
|
8558
|
+
}
|
|
8559
|
+
}
|
|
8560
|
+
},
|
|
8561
|
+
"title": "RespGetApiTokens",
|
|
8562
|
+
"required": [
|
|
8563
|
+
"code",
|
|
8564
|
+
"api_tokens"
|
|
8565
|
+
]
|
|
8566
|
+
},
|
|
8260
8567
|
"RespGetBridgesByL1Addr": {
|
|
8261
8568
|
"type": "object",
|
|
8262
8569
|
"properties": {
|
|
@@ -8354,6 +8661,60 @@
|
|
|
8354
8661
|
"is_next_bridge_fast"
|
|
8355
8662
|
]
|
|
8356
8663
|
},
|
|
8664
|
+
"RespPostApiToken": {
|
|
8665
|
+
"type": "object",
|
|
8666
|
+
"properties": {
|
|
8667
|
+
"code": {
|
|
8668
|
+
"type": "integer",
|
|
8669
|
+
"format": "int32",
|
|
8670
|
+
"example": "200"
|
|
8671
|
+
},
|
|
8672
|
+
"message": {
|
|
8673
|
+
"type": "string"
|
|
8674
|
+
},
|
|
8675
|
+
"token_id": {
|
|
8676
|
+
"type": "integer",
|
|
8677
|
+
"format": "int64"
|
|
8678
|
+
},
|
|
8679
|
+
"api_token": {
|
|
8680
|
+
"type": "string"
|
|
8681
|
+
},
|
|
8682
|
+
"name": {
|
|
8683
|
+
"type": "string"
|
|
8684
|
+
},
|
|
8685
|
+
"account_index": {
|
|
8686
|
+
"type": "integer",
|
|
8687
|
+
"format": "int64"
|
|
8688
|
+
},
|
|
8689
|
+
"expiry": {
|
|
8690
|
+
"type": "integer",
|
|
8691
|
+
"format": "int64"
|
|
8692
|
+
},
|
|
8693
|
+
"sub_account_access": {
|
|
8694
|
+
"type": "boolean",
|
|
8695
|
+
"format": "boolean"
|
|
8696
|
+
},
|
|
8697
|
+
"revoked": {
|
|
8698
|
+
"type": "boolean",
|
|
8699
|
+
"format": "boolean"
|
|
8700
|
+
},
|
|
8701
|
+
"scopes": {
|
|
8702
|
+
"type": "string"
|
|
8703
|
+
}
|
|
8704
|
+
},
|
|
8705
|
+
"title": "RespPostApiToken",
|
|
8706
|
+
"required": [
|
|
8707
|
+
"code",
|
|
8708
|
+
"token_id",
|
|
8709
|
+
"api_token",
|
|
8710
|
+
"name",
|
|
8711
|
+
"account_index",
|
|
8712
|
+
"expiry",
|
|
8713
|
+
"sub_account_access",
|
|
8714
|
+
"revoked",
|
|
8715
|
+
"scopes"
|
|
8716
|
+
]
|
|
8717
|
+
},
|
|
8357
8718
|
"RespPublicPoolsMetadata": {
|
|
8358
8719
|
"type": "object",
|
|
8359
8720
|
"properties": {
|
|
@@ -8378,6 +8739,33 @@
|
|
|
8378
8739
|
"public_pools"
|
|
8379
8740
|
]
|
|
8380
8741
|
},
|
|
8742
|
+
"RespRevokeApiToken": {
|
|
8743
|
+
"type": "object",
|
|
8744
|
+
"properties": {
|
|
8745
|
+
"code": {
|
|
8746
|
+
"type": "integer",
|
|
8747
|
+
"format": "int32",
|
|
8748
|
+
"example": "200"
|
|
8749
|
+
},
|
|
8750
|
+
"message": {
|
|
8751
|
+
"type": "string"
|
|
8752
|
+
},
|
|
8753
|
+
"token_id": {
|
|
8754
|
+
"type": "integer",
|
|
8755
|
+
"format": "int64"
|
|
8756
|
+
},
|
|
8757
|
+
"revoked": {
|
|
8758
|
+
"type": "boolean",
|
|
8759
|
+
"format": "boolean"
|
|
8760
|
+
}
|
|
8761
|
+
},
|
|
8762
|
+
"title": "RespRevokeApiToken",
|
|
8763
|
+
"required": [
|
|
8764
|
+
"code",
|
|
8765
|
+
"token_id",
|
|
8766
|
+
"revoked"
|
|
8767
|
+
]
|
|
8768
|
+
},
|
|
8381
8769
|
"RespSendTx": {
|
|
8382
8770
|
"type": "object",
|
|
8383
8771
|
"properties": {
|
|
@@ -9193,6 +9581,10 @@
|
|
|
9193
9581
|
"type": "string",
|
|
9194
9582
|
"example": "0.1"
|
|
9195
9583
|
},
|
|
9584
|
+
"fee": {
|
|
9585
|
+
"type": "string",
|
|
9586
|
+
"example": "3"
|
|
9587
|
+
},
|
|
9196
9588
|
"timestamp": {
|
|
9197
9589
|
"type": "integer",
|
|
9198
9590
|
"format": "int64",
|
|
@@ -9252,6 +9644,7 @@
|
|
|
9252
9644
|
"id",
|
|
9253
9645
|
"asset_id",
|
|
9254
9646
|
"amount",
|
|
9647
|
+
"fee",
|
|
9255
9648
|
"timestamp",
|
|
9256
9649
|
"type",
|
|
9257
9650
|
"from_l1_address",
|