zklighter-perps 1.0.184 → 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/ApiToken.ts +124 -0
- package/models/Auth.ts +61 -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/index.ts +6 -0
- package/openapi.json +474 -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",
|
|
@@ -3870,6 +4013,51 @@
|
|
|
3870
4013
|
"public_key"
|
|
3871
4014
|
]
|
|
3872
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
|
+
},
|
|
3873
4061
|
"Asset": {
|
|
3874
4062
|
"type": "object",
|
|
3875
4063
|
"properties": {
|
|
@@ -3954,6 +4142,19 @@
|
|
|
3954
4142
|
"asset_details"
|
|
3955
4143
|
]
|
|
3956
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
|
+
},
|
|
3957
4158
|
"Block": {
|
|
3958
4159
|
"type": "object",
|
|
3959
4160
|
"properties": {
|
|
@@ -7026,7 +7227,8 @@
|
|
|
7026
7227
|
"type": "object",
|
|
7027
7228
|
"properties": {
|
|
7028
7229
|
"auth": {
|
|
7029
|
-
"type": "string"
|
|
7230
|
+
"type": "string",
|
|
7231
|
+
"description": " made optional to support header auth clients"
|
|
7030
7232
|
},
|
|
7031
7233
|
"account_index": {
|
|
7032
7234
|
"type": "integer",
|
|
@@ -7094,6 +7296,10 @@
|
|
|
7094
7296
|
"ReqGetAccountActiveOrders": {
|
|
7095
7297
|
"type": "object",
|
|
7096
7298
|
"properties": {
|
|
7299
|
+
"auth": {
|
|
7300
|
+
"type": "string",
|
|
7301
|
+
"description": " made optional to support header auth clients"
|
|
7302
|
+
},
|
|
7097
7303
|
"account_index": {
|
|
7098
7304
|
"type": "integer",
|
|
7099
7305
|
"format": "int64"
|
|
@@ -7101,10 +7307,6 @@
|
|
|
7101
7307
|
"market_id": {
|
|
7102
7308
|
"type": "integer",
|
|
7103
7309
|
"format": "int16"
|
|
7104
|
-
},
|
|
7105
|
-
"auth": {
|
|
7106
|
-
"type": "string",
|
|
7107
|
-
"description": " made optional to support header auth clients"
|
|
7108
7310
|
}
|
|
7109
7311
|
},
|
|
7110
7312
|
"title": "ReqGetAccountActiveOrders",
|
|
@@ -7227,7 +7429,8 @@
|
|
|
7227
7429
|
"type": "object",
|
|
7228
7430
|
"properties": {
|
|
7229
7431
|
"auth": {
|
|
7230
|
-
"type": "string"
|
|
7432
|
+
"type": "string",
|
|
7433
|
+
"description": " made optional to support header auth clients"
|
|
7231
7434
|
},
|
|
7232
7435
|
"by": {
|
|
7233
7436
|
"type": "string",
|
|
@@ -7301,19 +7504,33 @@
|
|
|
7301
7504
|
"value": {
|
|
7302
7505
|
"type": "string"
|
|
7303
7506
|
},
|
|
7507
|
+
"auth": {
|
|
7508
|
+
"type": "string",
|
|
7509
|
+
"description": " made optional to support header auth clients"
|
|
7510
|
+
},
|
|
7304
7511
|
"types": {
|
|
7305
7512
|
"type": "array",
|
|
7306
7513
|
"items": {
|
|
7307
7514
|
"type": "integer",
|
|
7308
7515
|
"format": "uint8"
|
|
7309
7516
|
}
|
|
7310
|
-
},
|
|
7311
|
-
"auth": {
|
|
7312
|
-
"type": "string"
|
|
7313
7517
|
}
|
|
7314
7518
|
},
|
|
7315
7519
|
"title": "ReqGetAccountTxs"
|
|
7316
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
|
+
},
|
|
7317
7534
|
"ReqGetAssetDetails": {
|
|
7318
7535
|
"type": "object",
|
|
7319
7536
|
"properties": {
|
|
@@ -7449,14 +7666,14 @@
|
|
|
7449
7666
|
"ReqGetDepositHistory": {
|
|
7450
7667
|
"type": "object",
|
|
7451
7668
|
"properties": {
|
|
7452
|
-
"account_index": {
|
|
7453
|
-
"type": "integer",
|
|
7454
|
-
"format": "int64"
|
|
7455
|
-
},
|
|
7456
7669
|
"auth": {
|
|
7457
7670
|
"type": "string",
|
|
7458
7671
|
"description": " made optional to support header auth clients"
|
|
7459
7672
|
},
|
|
7673
|
+
"account_index": {
|
|
7674
|
+
"type": "integer",
|
|
7675
|
+
"format": "int64"
|
|
7676
|
+
},
|
|
7460
7677
|
"l1_address": {
|
|
7461
7678
|
"type": "string"
|
|
7462
7679
|
},
|
|
@@ -7485,13 +7702,13 @@
|
|
|
7485
7702
|
"ReqGetFastWithdrawInfo": {
|
|
7486
7703
|
"type": "object",
|
|
7487
7704
|
"properties": {
|
|
7488
|
-
"account_index": {
|
|
7489
|
-
"type": "integer",
|
|
7490
|
-
"format": "int64"
|
|
7491
|
-
},
|
|
7492
7705
|
"auth": {
|
|
7493
7706
|
"type": "string",
|
|
7494
7707
|
"description": " made optional to support header auth clients"
|
|
7708
|
+
},
|
|
7709
|
+
"account_index": {
|
|
7710
|
+
"type": "integer",
|
|
7711
|
+
"format": "int64"
|
|
7495
7712
|
}
|
|
7496
7713
|
},
|
|
7497
7714
|
"title": "ReqGetFastWithdrawInfo",
|
|
@@ -7733,7 +7950,8 @@
|
|
|
7733
7950
|
"type": "object",
|
|
7734
7951
|
"properties": {
|
|
7735
7952
|
"auth": {
|
|
7736
|
-
"type": "string"
|
|
7953
|
+
"type": "string",
|
|
7954
|
+
"description": " made optional to support header auth clients"
|
|
7737
7955
|
},
|
|
7738
7956
|
"account_index": {
|
|
7739
7957
|
"type": "integer",
|
|
@@ -7773,7 +7991,8 @@
|
|
|
7773
7991
|
"type": "object",
|
|
7774
7992
|
"properties": {
|
|
7775
7993
|
"auth": {
|
|
7776
|
-
"type": "string"
|
|
7994
|
+
"type": "string",
|
|
7995
|
+
"description": " made optional to support header auth clients"
|
|
7777
7996
|
},
|
|
7778
7997
|
"filter": {
|
|
7779
7998
|
"type": "string",
|
|
@@ -7924,7 +8143,8 @@
|
|
|
7924
8143
|
"type": "object",
|
|
7925
8144
|
"properties": {
|
|
7926
8145
|
"auth": {
|
|
7927
|
-
"type": "string"
|
|
8146
|
+
"type": "string",
|
|
8147
|
+
"description": " made optional to support header auth clients"
|
|
7928
8148
|
},
|
|
7929
8149
|
"market_id": {
|
|
7930
8150
|
"type": "integer",
|
|
@@ -8010,7 +8230,8 @@
|
|
|
8010
8230
|
"type": "object",
|
|
8011
8231
|
"properties": {
|
|
8012
8232
|
"auth": {
|
|
8013
|
-
"type": "string"
|
|
8233
|
+
"type": "string",
|
|
8234
|
+
"description": " made optional to support header auth clients"
|
|
8014
8235
|
},
|
|
8015
8236
|
"account_index": {
|
|
8016
8237
|
"type": "integer",
|
|
@@ -8030,14 +8251,14 @@
|
|
|
8030
8251
|
"ReqGetTransferHistory": {
|
|
8031
8252
|
"type": "object",
|
|
8032
8253
|
"properties": {
|
|
8033
|
-
"account_index": {
|
|
8034
|
-
"type": "integer",
|
|
8035
|
-
"format": "int64"
|
|
8036
|
-
},
|
|
8037
8254
|
"auth": {
|
|
8038
8255
|
"type": "string",
|
|
8039
8256
|
"description": " made optional to support header auth clients"
|
|
8040
8257
|
},
|
|
8258
|
+
"account_index": {
|
|
8259
|
+
"type": "integer",
|
|
8260
|
+
"format": "int64"
|
|
8261
|
+
},
|
|
8041
8262
|
"cursor": {
|
|
8042
8263
|
"type": "string"
|
|
8043
8264
|
}
|
|
@@ -8070,14 +8291,14 @@
|
|
|
8070
8291
|
"ReqGetWithdrawHistory": {
|
|
8071
8292
|
"type": "object",
|
|
8072
8293
|
"properties": {
|
|
8073
|
-
"account_index": {
|
|
8074
|
-
"type": "integer",
|
|
8075
|
-
"format": "int64"
|
|
8076
|
-
},
|
|
8077
8294
|
"auth": {
|
|
8078
8295
|
"type": "string",
|
|
8079
8296
|
"description": " made optional to support header auth clients"
|
|
8080
8297
|
},
|
|
8298
|
+
"account_index": {
|
|
8299
|
+
"type": "integer",
|
|
8300
|
+
"format": "int64"
|
|
8301
|
+
},
|
|
8081
8302
|
"cursor": {
|
|
8082
8303
|
"type": "string"
|
|
8083
8304
|
},
|
|
@@ -8107,6 +8328,56 @@
|
|
|
8107
8328
|
"l1_address"
|
|
8108
8329
|
]
|
|
8109
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
|
+
},
|
|
8110
8381
|
"ReqSendTx": {
|
|
8111
8382
|
"type": "object",
|
|
8112
8383
|
"properties": {
|
|
@@ -8269,6 +8540,30 @@
|
|
|
8269
8540
|
"code"
|
|
8270
8541
|
]
|
|
8271
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
|
+
},
|
|
8272
8567
|
"RespGetBridgesByL1Addr": {
|
|
8273
8568
|
"type": "object",
|
|
8274
8569
|
"properties": {
|
|
@@ -8366,6 +8661,60 @@
|
|
|
8366
8661
|
"is_next_bridge_fast"
|
|
8367
8662
|
]
|
|
8368
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
|
+
},
|
|
8369
8718
|
"RespPublicPoolsMetadata": {
|
|
8370
8719
|
"type": "object",
|
|
8371
8720
|
"properties": {
|
|
@@ -8390,6 +8739,33 @@
|
|
|
8390
8739
|
"public_pools"
|
|
8391
8740
|
]
|
|
8392
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
|
+
},
|
|
8393
8769
|
"RespSendTx": {
|
|
8394
8770
|
"type": "object",
|
|
8395
8771
|
"properties": {
|