zklighter-perps 1.0.119 → 1.0.121

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.json CHANGED
@@ -103,6 +103,13 @@
103
103
  }
104
104
  },
105
105
  "parameters": [
106
+ {
107
+ "name": "authorization",
108
+ "description": " make required after integ is done",
109
+ "in": "header",
110
+ "required": false,
111
+ "type": "string"
112
+ },
106
113
  {
107
114
  "name": "account_index",
108
115
  "in": "query",
@@ -119,8 +126,9 @@
119
126
  },
120
127
  {
121
128
  "name": "auth",
129
+ "description": " made optional to support header auth clients",
122
130
  "in": "query",
123
- "required": true,
131
+ "required": false,
124
132
  "type": "string"
125
133
  }
126
134
  ],
@@ -152,10 +160,18 @@
152
160
  }
153
161
  },
154
162
  "parameters": [
163
+ {
164
+ "name": "authorization",
165
+ "description": " make required after integ is done",
166
+ "in": "header",
167
+ "required": false,
168
+ "type": "string"
169
+ },
155
170
  {
156
171
  "name": "auth",
172
+ "description": " made optional to support header auth clients",
157
173
  "in": "query",
158
- "required": true,
174
+ "required": false,
159
175
  "type": "string"
160
176
  },
161
177
  {
@@ -231,6 +247,13 @@
231
247
  }
232
248
  },
233
249
  "parameters": [
250
+ {
251
+ "name": "authorization",
252
+ "description": " make required after integ is done",
253
+ "in": "header",
254
+ "required": false,
255
+ "type": "string"
256
+ },
234
257
  {
235
258
  "name": "account_index",
236
259
  "in": "query",
@@ -240,8 +263,9 @@
240
263
  },
241
264
  {
242
265
  "name": "auth",
266
+ "description": " made optional to support header auth clients",
243
267
  "in": "query",
244
- "required": true,
268
+ "required": false,
245
269
  "type": "string"
246
270
  }
247
271
  ],
@@ -254,15 +278,15 @@
254
278
  "description": "Get account limits"
255
279
  }
256
280
  },
257
- "/api/v1/accountOrders": {
281
+ "/api/v1/accountMetadata": {
258
282
  "get": {
259
- "summary": "accountOrders",
260
- "operationId": "accountOrders",
283
+ "summary": "accountMetadata",
284
+ "operationId": "accountMetadata",
261
285
  "responses": {
262
286
  "200": {
263
287
  "description": "A successful response.",
264
288
  "schema": {
265
- "$ref": "#/definitions/Orders"
289
+ "$ref": "#/definitions/AccountMetadatas"
266
290
  }
267
291
  },
268
292
  "400": {
@@ -274,48 +298,41 @@
274
298
  },
275
299
  "parameters": [
276
300
  {
277
- "name": "auth",
278
- "in": "query",
279
- "required": true,
301
+ "name": "authorization",
302
+ "in": "header",
303
+ "required": false,
280
304
  "type": "string"
281
305
  },
282
306
  {
283
- "name": "account_index",
307
+ "name": "by",
284
308
  "in": "query",
285
309
  "required": true,
286
- "type": "integer",
287
- "format": "int64"
310
+ "type": "string",
311
+ "enum": [
312
+ "index",
313
+ "l1_address"
314
+ ]
288
315
  },
289
316
  {
290
- "name": "market_id",
317
+ "name": "value",
291
318
  "in": "query",
292
319
  "required": true,
293
- "type": "integer",
294
- "format": "uint8"
320
+ "type": "string"
295
321
  },
296
322
  {
297
- "name": "cursor",
323
+ "name": "auth",
298
324
  "in": "query",
299
325
  "required": false,
300
326
  "type": "string"
301
- },
302
- {
303
- "name": "limit",
304
- "in": "query",
305
- "required": true,
306
- "type": "integer",
307
- "format": "int64",
308
- "minimum": 1,
309
- "maximum": 100
310
327
  }
311
328
  ],
312
329
  "tags": [
313
- "order"
330
+ "account"
314
331
  ],
315
332
  "consumes": [
316
333
  "multipart/form-data"
317
334
  ],
318
- "description": "Get account orders"
335
+ "description": "Get account metadatas"
319
336
  }
320
337
  },
321
338
  "/api/v1/accountPendingTxs": {
@@ -891,6 +908,13 @@
891
908
  }
892
909
  },
893
910
  "parameters": [
911
+ {
912
+ "name": "authorization",
913
+ "description": " make required after integ is done",
914
+ "in": "header",
915
+ "required": false,
916
+ "type": "string"
917
+ },
894
918
  {
895
919
  "name": "account_index",
896
920
  "in": "query",
@@ -900,8 +924,9 @@
900
924
  },
901
925
  {
902
926
  "name": "auth",
927
+ "description": " made optional to support header auth clients",
903
928
  "in": "query",
904
- "required": true,
929
+ "required": false,
905
930
  "type": "string"
906
931
  },
907
932
  {
@@ -1063,6 +1088,13 @@
1063
1088
  }
1064
1089
  },
1065
1090
  "parameters": [
1091
+ {
1092
+ "name": "authorization",
1093
+ "description": " make required after integ is done",
1094
+ "in": "header",
1095
+ "required": false,
1096
+ "type": "string"
1097
+ },
1066
1098
  {
1067
1099
  "name": "body",
1068
1100
  "in": "body",
@@ -1100,6 +1132,13 @@
1100
1132
  }
1101
1133
  },
1102
1134
  "parameters": [
1135
+ {
1136
+ "name": "authorization",
1137
+ "description": " make required after integ is done",
1138
+ "in": "header",
1139
+ "required": false,
1140
+ "type": "string"
1141
+ },
1103
1142
  {
1104
1143
  "name": "account_index",
1105
1144
  "in": "query",
@@ -1109,8 +1148,9 @@
1109
1148
  },
1110
1149
  {
1111
1150
  "name": "auth",
1151
+ "description": " made optional to support header auth clients",
1112
1152
  "in": "query",
1113
- "required": true,
1153
+ "required": false,
1114
1154
  "type": "string"
1115
1155
  }
1116
1156
  ],
@@ -1158,42 +1198,6 @@
1158
1198
  "description": "Request funds from faucet"
1159
1199
  }
1160
1200
  },
1161
- "/api/v1/feeBucket": {
1162
- "get": {
1163
- "summary": "feeBucket",
1164
- "operationId": "feeBucket",
1165
- "responses": {
1166
- "200": {
1167
- "description": "A successful response.",
1168
- "schema": {
1169
- "$ref": "#/definitions/FeeBucket"
1170
- }
1171
- },
1172
- "400": {
1173
- "description": "Bad request",
1174
- "schema": {
1175
- "$ref": "#/definitions/ResultCode"
1176
- }
1177
- }
1178
- },
1179
- "parameters": [
1180
- {
1181
- "name": "account_index",
1182
- "in": "query",
1183
- "required": true,
1184
- "type": "integer",
1185
- "format": "int64"
1186
- }
1187
- ],
1188
- "tags": [
1189
- "account"
1190
- ],
1191
- "consumes": [
1192
- "multipart/form-data"
1193
- ],
1194
- "description": "Get account fee bucket"
1195
- }
1196
- },
1197
1201
  "/api/v1/funding-rates": {
1198
1202
  "get": {
1199
1203
  "summary": "funding-rates",
@@ -1323,6 +1327,55 @@
1323
1327
  "description": "Get is account whitelisted"
1324
1328
  }
1325
1329
  },
1330
+ "/api/v1/l1Metadata": {
1331
+ "get": {
1332
+ "summary": "l1Metadata",
1333
+ "operationId": "l1Metadata",
1334
+ "responses": {
1335
+ "200": {
1336
+ "description": "A successful response.",
1337
+ "schema": {
1338
+ "$ref": "#/definitions/L1Metadata"
1339
+ }
1340
+ },
1341
+ "400": {
1342
+ "description": "Bad request",
1343
+ "schema": {
1344
+ "$ref": "#/definitions/ResultCode"
1345
+ }
1346
+ }
1347
+ },
1348
+ "parameters": [
1349
+ {
1350
+ "name": "authorization",
1351
+ "description": " make required after integ is done",
1352
+ "in": "header",
1353
+ "required": false,
1354
+ "type": "string"
1355
+ },
1356
+ {
1357
+ "name": "auth",
1358
+ "description": " made optional to support header auth clients",
1359
+ "in": "query",
1360
+ "required": false,
1361
+ "type": "string"
1362
+ },
1363
+ {
1364
+ "name": "l1_address",
1365
+ "in": "query",
1366
+ "required": true,
1367
+ "type": "string"
1368
+ }
1369
+ ],
1370
+ "tags": [
1371
+ "account"
1372
+ ],
1373
+ "consumes": [
1374
+ "multipart/form-data"
1375
+ ],
1376
+ "description": "Get L1 metadata"
1377
+ }
1378
+ },
1326
1379
  "/api/v1/layer1BasicInfo": {
1327
1380
  "get": {
1328
1381
  "summary": "layer1BasicInfo",
@@ -1454,6 +1507,13 @@
1454
1507
  }
1455
1508
  },
1456
1509
  "parameters": [
1510
+ {
1511
+ "name": "authorization",
1512
+ "description": " make required after integ is done",
1513
+ "in": "header",
1514
+ "required": false,
1515
+ "type": "string"
1516
+ },
1457
1517
  {
1458
1518
  "name": "body",
1459
1519
  "in": "body",
@@ -1655,6 +1715,12 @@
1655
1715
  }
1656
1716
  },
1657
1717
  "parameters": [
1718
+ {
1719
+ "name": "authorization",
1720
+ "in": "header",
1721
+ "required": false,
1722
+ "type": "string"
1723
+ },
1658
1724
  {
1659
1725
  "name": "auth",
1660
1726
  "in": "query",
@@ -1752,6 +1818,12 @@
1752
1818
  }
1753
1819
  },
1754
1820
  "parameters": [
1821
+ {
1822
+ "name": "authorization",
1823
+ "in": "header",
1824
+ "required": false,
1825
+ "type": "string"
1826
+ },
1755
1827
  {
1756
1828
  "name": "auth",
1757
1829
  "in": "query",
@@ -1829,6 +1901,12 @@
1829
1901
  }
1830
1902
  },
1831
1903
  "parameters": [
1904
+ {
1905
+ "name": "authorization",
1906
+ "in": "header",
1907
+ "required": false,
1908
+ "type": "string"
1909
+ },
1832
1910
  {
1833
1911
  "name": "auth",
1834
1912
  "in": "query",
@@ -1944,6 +2022,13 @@
1944
2022
  }
1945
2023
  },
1946
2024
  "parameters": [
2025
+ {
2026
+ "name": "authorization",
2027
+ "description": " make required after integ is done",
2028
+ "in": "header",
2029
+ "required": false,
2030
+ "type": "string"
2031
+ },
1947
2032
  {
1948
2033
  "name": "body",
1949
2034
  "in": "body",
@@ -1981,10 +2066,18 @@
1981
2066
  }
1982
2067
  },
1983
2068
  "parameters": [
2069
+ {
2070
+ "name": "authorization",
2071
+ "description": " make required after integ is done",
2072
+ "in": "header",
2073
+ "required": false,
2074
+ "type": "string"
2075
+ },
1984
2076
  {
1985
2077
  "name": "auth",
2078
+ "description": " made optional to support header auth clients",
1986
2079
  "in": "query",
1987
- "required": true,
2080
+ "required": false,
1988
2081
  "type": "string"
1989
2082
  },
1990
2083
  {
@@ -2023,10 +2116,18 @@
2023
2116
  }
2024
2117
  },
2025
2118
  "parameters": [
2119
+ {
2120
+ "name": "authorization",
2121
+ "description": " make required after integ is done",
2122
+ "in": "header",
2123
+ "required": false,
2124
+ "type": "string"
2125
+ },
2026
2126
  {
2027
2127
  "name": "auth",
2128
+ "description": " made optional to support header auth clients",
2028
2129
  "in": "query",
2029
- "required": true,
2130
+ "required": false,
2030
2131
  "type": "string"
2031
2132
  },
2032
2133
  {
@@ -2176,6 +2277,13 @@
2176
2277
  }
2177
2278
  },
2178
2279
  "parameters": [
2280
+ {
2281
+ "name": "authorization",
2282
+ "description": " make required after integ is done",
2283
+ "in": "header",
2284
+ "required": false,
2285
+ "type": "string"
2286
+ },
2179
2287
  {
2180
2288
  "name": "body",
2181
2289
  "in": "body",
@@ -2213,6 +2321,12 @@
2213
2321
  }
2214
2322
  },
2215
2323
  "parameters": [
2324
+ {
2325
+ "name": "authorization",
2326
+ "in": "header",
2327
+ "required": false,
2328
+ "type": "string"
2329
+ },
2216
2330
  {
2217
2331
  "name": "auth",
2218
2332
  "in": "query",
@@ -2259,10 +2373,9 @@
2259
2373
  "required": false,
2260
2374
  "type": "string",
2261
2375
  "enum": [
2262
- "asc",
2263
2376
  "desc"
2264
2377
  ],
2265
- "default": "asc"
2378
+ "default": "desc"
2266
2379
  },
2267
2380
  {
2268
2381
  "name": "cursor",
@@ -2449,6 +2562,13 @@
2449
2562
  }
2450
2563
  },
2451
2564
  "parameters": [
2565
+ {
2566
+ "name": "authorizatio",
2567
+ "description": " make required after integ is done",
2568
+ "in": "header",
2569
+ "required": false,
2570
+ "type": "string"
2571
+ },
2452
2572
  {
2453
2573
  "name": "account_index",
2454
2574
  "in": "query",
@@ -2458,8 +2578,9 @@
2458
2578
  },
2459
2579
  {
2460
2580
  "name": "auth",
2581
+ "description": " made optional to support header auth clients",
2461
2582
  "in": "query",
2462
- "required": true,
2583
+ "required": false,
2463
2584
  "type": "string"
2464
2585
  },
2465
2586
  {
@@ -2714,6 +2835,10 @@
2714
2835
  "AccountMetadata": {
2715
2836
  "type": "object",
2716
2837
  "properties": {
2838
+ "account_index": {
2839
+ "type": "integer",
2840
+ "format": "int64"
2841
+ },
2717
2842
  "name": {
2718
2843
  "type": "string"
2719
2844
  },
@@ -2722,23 +2847,45 @@
2722
2847
  },
2723
2848
  "can_invite": {
2724
2849
  "type": "boolean",
2725
- "format": "boolean"
2850
+ "format": "boolean",
2851
+ "description": " Remove After FE uses L1 meta endpoint"
2726
2852
  },
2727
2853
  "referral_points_percentage": {
2728
- "type": "string"
2729
- },
2730
- "max_referral_usage_limit": {
2731
- "type": "integer",
2732
- "format": "int32"
2854
+ "type": "string",
2855
+ "description": " Remove After FE uses L1 meta endpoint"
2733
2856
  }
2734
2857
  },
2735
2858
  "title": "AccountMetadata",
2736
2859
  "required": [
2860
+ "account_index",
2737
2861
  "name",
2738
2862
  "description",
2739
2863
  "can_invite",
2740
- "referral_points_percentage",
2741
- "max_referral_usage_limit"
2864
+ "referral_points_percentage"
2865
+ ]
2866
+ },
2867
+ "AccountMetadatas": {
2868
+ "type": "object",
2869
+ "properties": {
2870
+ "code": {
2871
+ "type": "integer",
2872
+ "format": "int32",
2873
+ "example": "200"
2874
+ },
2875
+ "message": {
2876
+ "type": "string"
2877
+ },
2878
+ "account_metadatas": {
2879
+ "type": "array",
2880
+ "items": {
2881
+ "$ref": "#/definitions/AccountMetadata"
2882
+ }
2883
+ }
2884
+ },
2885
+ "title": "AccountMetadatas",
2886
+ "required": [
2887
+ "code",
2888
+ "account_metadatas"
2742
2889
  ]
2743
2890
  },
2744
2891
  "AccountPnL": {
@@ -3529,6 +3676,10 @@
3529
3676
  "type": "string",
3530
3677
  "example": "46342"
3531
3678
  },
3679
+ "account_index": {
3680
+ "type": "integer",
3681
+ "format": "int64"
3682
+ },
3532
3683
  "name": {
3533
3684
  "type": "string"
3534
3685
  },
@@ -3537,14 +3688,12 @@
3537
3688
  },
3538
3689
  "can_invite": {
3539
3690
  "type": "boolean",
3540
- "format": "boolean"
3691
+ "format": "boolean",
3692
+ "description": " Remove After FE uses L1 meta endpoint"
3541
3693
  },
3542
3694
  "referral_points_percentage": {
3543
- "type": "string"
3544
- },
3545
- "max_referral_usage_limit": {
3546
- "type": "integer",
3547
- "format": "int32"
3695
+ "type": "string",
3696
+ "description": " Remove After FE uses L1 meta endpoint"
3548
3697
  },
3549
3698
  "positions": {
3550
3699
  "type": "array",
@@ -3577,11 +3726,11 @@
3577
3726
  "pending_order_count",
3578
3727
  "status",
3579
3728
  "collateral",
3729
+ "account_index",
3580
3730
  "name",
3581
3731
  "description",
3582
3732
  "can_invite",
3583
3733
  "referral_points_percentage",
3584
- "max_referral_usage_limit",
3585
3734
  "positions",
3586
3735
  "total_asset_value",
3587
3736
  "pool_info",
@@ -3839,29 +3988,6 @@
3839
3988
  "daily_trades_count"
3840
3989
  ]
3841
3990
  },
3842
- "FeeBucket": {
3843
- "type": "object",
3844
- "properties": {
3845
- "vip_tier": {
3846
- "type": "integer",
3847
- "format": "uint8"
3848
- },
3849
- "taker_fee": {
3850
- "type": "integer",
3851
- "format": "int32"
3852
- },
3853
- "maker_fee": {
3854
- "type": "integer",
3855
- "format": "int32"
3856
- }
3857
- },
3858
- "title": "FeeBucket",
3859
- "required": [
3860
- "vip_tier",
3861
- "taker_fee",
3862
- "maker_fee"
3863
- ]
3864
- },
3865
3991
  "Funding": {
3866
3992
  "type": "object",
3867
3993
  "properties": {
@@ -4002,6 +4128,27 @@
4002
4128
  "deposit_amount_left"
4003
4129
  ]
4004
4130
  },
4131
+ "L1Metadata": {
4132
+ "type": "object",
4133
+ "properties": {
4134
+ "l1_address": {
4135
+ "type": "string"
4136
+ },
4137
+ "can_invite": {
4138
+ "type": "boolean",
4139
+ "format": "boolean"
4140
+ },
4141
+ "referral_points_percentage": {
4142
+ "type": "string"
4143
+ }
4144
+ },
4145
+ "title": "L1Metadata",
4146
+ "required": [
4147
+ "l1_address",
4148
+ "can_invite",
4149
+ "referral_points_percentage"
4150
+ ]
4151
+ },
4005
4152
  "L1ProviderInfo": {
4006
4153
  "type": "object",
4007
4154
  "properties": {
@@ -5090,6 +5237,10 @@
5090
5237
  "type": "string",
5091
5238
  "example": "46342"
5092
5239
  },
5240
+ "account_index": {
5241
+ "type": "integer",
5242
+ "format": "int64"
5243
+ },
5093
5244
  "name": {
5094
5245
  "type": "string"
5095
5246
  },
@@ -5098,14 +5249,12 @@
5098
5249
  },
5099
5250
  "can_invite": {
5100
5251
  "type": "boolean",
5101
- "format": "boolean"
5252
+ "format": "boolean",
5253
+ "description": " Remove After FE uses L1 meta endpoint"
5102
5254
  },
5103
5255
  "referral_points_percentage": {
5104
- "type": "string"
5105
- },
5106
- "max_referral_usage_limit": {
5107
- "type": "integer",
5108
- "format": "int32"
5256
+ "type": "string",
5257
+ "description": " Remove After FE uses L1 meta endpoint"
5109
5258
  },
5110
5259
  "total_asset_value": {
5111
5260
  "type": "string",
@@ -5129,11 +5278,11 @@
5129
5278
  "pending_order_count",
5130
5279
  "status",
5131
5280
  "collateral",
5281
+ "account_index",
5132
5282
  "name",
5133
5283
  "description",
5134
5284
  "can_invite",
5135
5285
  "referral_points_percentage",
5136
- "max_referral_usage_limit",
5137
5286
  "total_asset_value",
5138
5287
  "pool_info"
5139
5288
  ]
@@ -5393,7 +5542,8 @@
5393
5542
  "example": "'liq:17:5898'"
5394
5543
  },
5395
5544
  "auth": {
5396
- "type": "string"
5545
+ "type": "string",
5546
+ "description": " made optional to support header auth clients"
5397
5547
  },
5398
5548
  "account_index": {
5399
5549
  "type": "integer",
@@ -5403,7 +5553,6 @@
5403
5553
  "title": "ReqAckNotif",
5404
5554
  "required": [
5405
5555
  "notif_id",
5406
- "auth",
5407
5556
  "account_index"
5408
5557
  ]
5409
5558
  },
@@ -5451,7 +5600,8 @@
5451
5600
  "type": "object",
5452
5601
  "properties": {
5453
5602
  "auth": {
5454
- "type": "string"
5603
+ "type": "string",
5604
+ "description": " made optional to support header auth clients"
5455
5605
  },
5456
5606
  "account_index": {
5457
5607
  "type": "integer",
@@ -5460,7 +5610,6 @@
5460
5610
  },
5461
5611
  "title": "ReqCreateReferralCode",
5462
5612
  "required": [
5463
- "auth",
5464
5613
  "account_index"
5465
5614
  ]
5466
5615
  },
@@ -5486,14 +5635,14 @@
5486
5635
  "type": "string"
5487
5636
  },
5488
5637
  "auth": {
5489
- "type": "string"
5638
+ "type": "string",
5639
+ "description": " made optional to support header auth clients"
5490
5640
  }
5491
5641
  },
5492
5642
  "title": "ReqFastwithdraw",
5493
5643
  "required": [
5494
5644
  "tx_info",
5495
- "to_address",
5496
- "auth"
5645
+ "to_address"
5497
5646
  ]
5498
5647
  },
5499
5648
  "ReqGetAccount": {
@@ -5528,14 +5677,14 @@
5528
5677
  "format": "uint8"
5529
5678
  },
5530
5679
  "auth": {
5531
- "type": "string"
5680
+ "type": "string",
5681
+ "description": " made optional to support header auth clients"
5532
5682
  }
5533
5683
  },
5534
5684
  "title": "ReqGetAccountActiveOrders",
5535
5685
  "required": [
5536
5686
  "account_index",
5537
- "market_id",
5538
- "auth"
5687
+ "market_id"
5539
5688
  ]
5540
5689
  },
5541
5690
  "ReqGetAccountApiKeys": {
@@ -5572,7 +5721,8 @@
5572
5721
  "type": "object",
5573
5722
  "properties": {
5574
5723
  "auth": {
5575
- "type": "string"
5724
+ "type": "string",
5725
+ "description": " made optional to support header auth clients"
5576
5726
  },
5577
5727
  "account_index": {
5578
5728
  "type": "integer",
@@ -5603,7 +5753,6 @@
5603
5753
  },
5604
5754
  "title": "ReqGetAccountInactiveOrders",
5605
5755
  "required": [
5606
- "auth",
5607
5756
  "account_index",
5608
5757
  "limit"
5609
5758
  ]
@@ -5616,45 +5765,36 @@
5616
5765
  "format": "int64"
5617
5766
  },
5618
5767
  "auth": {
5619
- "type": "string"
5768
+ "type": "string",
5769
+ "description": " made optional to support header auth clients"
5620
5770
  }
5621
5771
  },
5622
5772
  "title": "ReqGetAccountLimits",
5623
5773
  "required": [
5624
- "account_index",
5625
- "auth"
5774
+ "account_index"
5626
5775
  ]
5627
5776
  },
5628
- "ReqGetAccountOrders": {
5777
+ "ReqGetAccountMetadata": {
5629
5778
  "type": "object",
5630
5779
  "properties": {
5631
- "auth": {
5632
- "type": "string"
5633
- },
5634
- "account_index": {
5635
- "type": "integer",
5636
- "format": "int64"
5637
- },
5638
- "market_id": {
5639
- "type": "integer",
5640
- "format": "uint8"
5780
+ "by": {
5781
+ "type": "string",
5782
+ "enum": [
5783
+ "index",
5784
+ "l1_address"
5785
+ ]
5641
5786
  },
5642
- "cursor": {
5787
+ "value": {
5643
5788
  "type": "string"
5644
5789
  },
5645
- "limit": {
5646
- "type": "integer",
5647
- "format": "int64",
5648
- "maximum": 100,
5649
- "minimum": 1
5790
+ "auth": {
5791
+ "type": "string"
5650
5792
  }
5651
5793
  },
5652
- "title": "ReqGetAccountOrders",
5794
+ "title": "ReqGetAccountMetadata",
5653
5795
  "required": [
5654
- "auth",
5655
- "account_index",
5656
- "market_id",
5657
- "limit"
5796
+ "by",
5797
+ "value"
5658
5798
  ]
5659
5799
  },
5660
5800
  "ReqGetAccountPendingTxs": {
@@ -5881,7 +6021,8 @@
5881
6021
  "format": "int64"
5882
6022
  },
5883
6023
  "auth": {
5884
- "type": "string"
6024
+ "type": "string",
6025
+ "description": " made optional to support header auth clients"
5885
6026
  },
5886
6027
  "l1_address": {
5887
6028
  "type": "string"
@@ -5901,7 +6042,6 @@
5901
6042
  "title": "ReqGetDepositHistory",
5902
6043
  "required": [
5903
6044
  "account_index",
5904
- "auth",
5905
6045
  "l1_address"
5906
6046
  ]
5907
6047
  },
@@ -5917,24 +6057,11 @@
5917
6057
  "format": "int64"
5918
6058
  },
5919
6059
  "auth": {
5920
- "type": "string"
6060
+ "type": "string",
6061
+ "description": " made optional to support header auth clients"
5921
6062
  }
5922
6063
  },
5923
6064
  "title": "ReqGetFastWithdrawInfo",
5924
- "required": [
5925
- "account_index",
5926
- "auth"
5927
- ]
5928
- },
5929
- "ReqGetFeeBucket": {
5930
- "type": "object",
5931
- "properties": {
5932
- "account_index": {
5933
- "type": "integer",
5934
- "format": "int64"
5935
- }
5936
- },
5937
- "title": "ReqGetFeeBucket",
5938
6065
  "required": [
5939
6066
  "account_index"
5940
6067
  ]
@@ -5976,6 +6103,22 @@
5976
6103
  "count_back"
5977
6104
  ]
5978
6105
  },
6106
+ "ReqGetL1Metadata": {
6107
+ "type": "object",
6108
+ "properties": {
6109
+ "auth": {
6110
+ "type": "string",
6111
+ "description": " made optional to support header auth clients"
6112
+ },
6113
+ "l1_address": {
6114
+ "type": "string"
6115
+ }
6116
+ },
6117
+ "title": "ReqGetL1Metadata",
6118
+ "required": [
6119
+ "l1_address"
6120
+ ]
6121
+ },
5979
6122
  "ReqGetL1Tx": {
5980
6123
  "type": "object",
5981
6124
  "properties": {
@@ -6240,7 +6383,8 @@
6240
6383
  "type": "object",
6241
6384
  "properties": {
6242
6385
  "auth": {
6243
- "type": "string"
6386
+ "type": "string",
6387
+ "description": " made optional to support header auth clients"
6244
6388
  },
6245
6389
  "account_index": {
6246
6390
  "type": "integer",
@@ -6249,7 +6393,6 @@
6249
6393
  },
6250
6394
  "title": "ReqGetReferralCode",
6251
6395
  "required": [
6252
- "auth",
6253
6396
  "account_index"
6254
6397
  ]
6255
6398
  },
@@ -6257,7 +6400,8 @@
6257
6400
  "type": "object",
6258
6401
  "properties": {
6259
6402
  "auth": {
6260
- "type": "string"
6403
+ "type": "string",
6404
+ "description": " made optional to support header auth clients"
6261
6405
  },
6262
6406
  "account_index": {
6263
6407
  "type": "integer",
@@ -6266,7 +6410,6 @@
6266
6410
  },
6267
6411
  "title": "ReqGetReferralPoints",
6268
6412
  "required": [
6269
- "auth",
6270
6413
  "account_index"
6271
6414
  ]
6272
6415
  },
@@ -6301,10 +6444,9 @@
6301
6444
  "sort_dir": {
6302
6445
  "type": "string",
6303
6446
  "enum": [
6304
- "asc",
6305
6447
  "desc"
6306
6448
  ],
6307
- "default": "asc"
6449
+ "default": "desc"
6308
6450
  },
6309
6451
  "cursor": {
6310
6452
  "type": "string"
@@ -6360,7 +6502,8 @@
6360
6502
  "format": "int64"
6361
6503
  },
6362
6504
  "auth": {
6363
- "type": "string"
6505
+ "type": "string",
6506
+ "description": " made optional to support header auth clients"
6364
6507
  },
6365
6508
  "cursor": {
6366
6509
  "type": "string"
@@ -6376,8 +6519,7 @@
6376
6519
  },
6377
6520
  "title": "ReqGetWithdrawHistory",
6378
6521
  "required": [
6379
- "account_index",
6380
- "auth"
6522
+ "account_index"
6381
6523
  ]
6382
6524
  },
6383
6525
  "ReqIsWhitelisted": {
@@ -6525,13 +6667,17 @@
6525
6667
  },
6526
6668
  "withdraw_limit": {
6527
6669
  "type": "string"
6670
+ },
6671
+ "max_withdrawal_amount": {
6672
+ "type": "string"
6528
6673
  }
6529
6674
  },
6530
6675
  "title": "RespGetFastwithdrawalInfo",
6531
6676
  "required": [
6532
6677
  "code",
6533
6678
  "to_account_index",
6534
- "withdraw_limit"
6679
+ "withdraw_limit",
6680
+ "max_withdrawal_amount"
6535
6681
  ]
6536
6682
  },
6537
6683
  "ResultCode": {
@@ -6753,13 +6899,16 @@
6753
6899
  "example": "0"
6754
6900
  },
6755
6901
  "taker_position_size_before": {
6756
- "type": "integer",
6757
- "format": "int64",
6902
+ "type": "string",
6758
6903
  "example": "0"
6759
6904
  },
6760
6905
  "taker_entry_quote_before": {
6906
+ "type": "string",
6907
+ "example": "0"
6908
+ },
6909
+ "taker_initial_margin_fraction_before": {
6761
6910
  "type": "integer",
6762
- "format": "int64",
6911
+ "format": "uin16",
6763
6912
  "example": "0"
6764
6913
  },
6765
6914
  "taker_position_sign_changed": {
@@ -6773,13 +6922,16 @@
6773
6922
  "example": "0"
6774
6923
  },
6775
6924
  "maker_position_size_before": {
6776
- "type": "integer",
6777
- "format": "int64",
6925
+ "type": "string",
6778
6926
  "example": "0"
6779
6927
  },
6780
6928
  "maker_entry_quote_before": {
6929
+ "type": "string",
6930
+ "example": "0"
6931
+ },
6932
+ "maker_initial_margin_fraction_before": {
6781
6933
  "type": "integer",
6782
- "format": "int64",
6934
+ "format": "uin16",
6783
6935
  "example": "0"
6784
6936
  },
6785
6937
  "maker_position_sign_changed": {
@@ -6807,10 +6959,12 @@
6807
6959
  "taker_fee",
6808
6960
  "taker_position_size_before",
6809
6961
  "taker_entry_quote_before",
6962
+ "taker_initial_margin_fraction_before",
6810
6963
  "taker_position_sign_changed",
6811
6964
  "maker_fee",
6812
6965
  "maker_position_size_before",
6813
6966
  "maker_entry_quote_before",
6967
+ "maker_initial_margin_fraction_before",
6814
6968
  "maker_position_sign_changed"
6815
6969
  ]
6816
6970
  },