zklighter-perps 1.0.31 → 1.0.33
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 +0 -2
- package/apis/InfoApi.ts +0 -46
- package/models/Account.ts +3 -2
- package/models/AccountApiKeys.ts +3 -2
- package/models/AccountPnL.ts +3 -2
- package/models/Accounts.ts +3 -2
- package/models/Blocks.ts +3 -2
- package/models/Candlesticks.ts +3 -2
- package/models/CurrentHeight.ts +3 -2
- package/models/DetailedAccount.ts +24 -16
- package/models/DetailedAccounts.ts +3 -2
- package/models/EnrichedTx.ts +42 -28
- package/models/ExchangeStats.ts +3 -2
- package/models/Fundings.ts +3 -2
- package/models/Layer1BasicInfo.ts +3 -2
- package/models/Layer2BasicInfo.ts +3 -2
- package/models/NextNonce.ts +3 -2
- package/models/OrderBookDepth.ts +3 -2
- package/models/OrderBookDetail.ts +33 -22
- package/models/OrderBookDetails.ts +3 -2
- package/models/OrderBookOrders.ts +3 -2
- package/models/OrderBooks.ts +3 -2
- package/models/Orders.ts +3 -2
- package/models/Permission.ts +3 -2
- package/models/Rollbacks.ts +3 -2
- package/models/Search.ts +3 -2
- package/models/SignBody.ts +3 -2
- package/models/SubAccounts.ts +3 -2
- package/models/Trades.ts +3 -2
- package/models/TxHash.ts +3 -2
- package/models/TxHashes.ts +3 -2
- package/models/Txs.ts +3 -2
- package/models/index.ts +0 -2
- package/openapi.json +61 -71
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -1420,41 +1420,6 @@
|
|
|
1420
1420
|
"description": "Get rollbacks"
|
|
1421
1421
|
}
|
|
1422
1422
|
},
|
|
1423
|
-
"/api/v1/search": {
|
|
1424
|
-
"get": {
|
|
1425
|
-
"summary": "search",
|
|
1426
|
-
"operationId": "search",
|
|
1427
|
-
"responses": {
|
|
1428
|
-
"200": {
|
|
1429
|
-
"description": "A successful response.",
|
|
1430
|
-
"schema": {
|
|
1431
|
-
"$ref": "#/definitions/Search"
|
|
1432
|
-
}
|
|
1433
|
-
},
|
|
1434
|
-
"400": {
|
|
1435
|
-
"description": "Bad request",
|
|
1436
|
-
"schema": {
|
|
1437
|
-
"$ref": "#/definitions/ResultCode"
|
|
1438
|
-
}
|
|
1439
|
-
}
|
|
1440
|
-
},
|
|
1441
|
-
"parameters": [
|
|
1442
|
-
{
|
|
1443
|
-
"name": "keyword",
|
|
1444
|
-
"in": "query",
|
|
1445
|
-
"required": true,
|
|
1446
|
-
"type": "string"
|
|
1447
|
-
}
|
|
1448
|
-
],
|
|
1449
|
-
"tags": [
|
|
1450
|
-
"info"
|
|
1451
|
-
],
|
|
1452
|
-
"consumes": [
|
|
1453
|
-
"multipart/form-data"
|
|
1454
|
-
],
|
|
1455
|
-
"description": "Search with a specific keyword"
|
|
1456
|
-
}
|
|
1457
|
-
},
|
|
1458
1423
|
"/api/v1/sendTx": {
|
|
1459
1424
|
"post": {
|
|
1460
1425
|
"summary": "sendTx",
|
|
@@ -1773,6 +1738,7 @@
|
|
|
1773
1738
|
},
|
|
1774
1739
|
"title": "Account",
|
|
1775
1740
|
"required": [
|
|
1741
|
+
"code",
|
|
1776
1742
|
"account_type",
|
|
1777
1743
|
"index",
|
|
1778
1744
|
"l1_address",
|
|
@@ -1802,6 +1768,7 @@
|
|
|
1802
1768
|
},
|
|
1803
1769
|
"title": "AccountApiKeys",
|
|
1804
1770
|
"required": [
|
|
1771
|
+
"code",
|
|
1805
1772
|
"api_keys"
|
|
1806
1773
|
]
|
|
1807
1774
|
},
|
|
@@ -1873,6 +1840,7 @@
|
|
|
1873
1840
|
},
|
|
1874
1841
|
"title": "AccountPnL",
|
|
1875
1842
|
"required": [
|
|
1843
|
+
"code",
|
|
1876
1844
|
"resolution",
|
|
1877
1845
|
"pnl"
|
|
1878
1846
|
]
|
|
@@ -1991,6 +1959,7 @@
|
|
|
1991
1959
|
},
|
|
1992
1960
|
"title": "Accounts",
|
|
1993
1961
|
"required": [
|
|
1962
|
+
"code",
|
|
1994
1963
|
"total",
|
|
1995
1964
|
"accounts"
|
|
1996
1965
|
]
|
|
@@ -2119,6 +2088,7 @@
|
|
|
2119
2088
|
},
|
|
2120
2089
|
"title": "Blocks",
|
|
2121
2090
|
"required": [
|
|
2091
|
+
"code",
|
|
2122
2092
|
"total",
|
|
2123
2093
|
"blocks"
|
|
2124
2094
|
]
|
|
@@ -2197,6 +2167,7 @@
|
|
|
2197
2167
|
},
|
|
2198
2168
|
"title": "Candlesticks",
|
|
2199
2169
|
"required": [
|
|
2170
|
+
"code",
|
|
2200
2171
|
"resolution",
|
|
2201
2172
|
"candlesticks"
|
|
2202
2173
|
]
|
|
@@ -2237,6 +2208,7 @@
|
|
|
2237
2208
|
},
|
|
2238
2209
|
"title": "CurrentHeight",
|
|
2239
2210
|
"required": [
|
|
2211
|
+
"code",
|
|
2240
2212
|
"height"
|
|
2241
2213
|
]
|
|
2242
2214
|
},
|
|
@@ -2318,6 +2290,14 @@
|
|
|
2318
2290
|
},
|
|
2319
2291
|
"title": "DetailedAccount",
|
|
2320
2292
|
"required": [
|
|
2293
|
+
"code",
|
|
2294
|
+
"account_type",
|
|
2295
|
+
"index",
|
|
2296
|
+
"l1_address",
|
|
2297
|
+
"cancel_all_time",
|
|
2298
|
+
"open_order_count",
|
|
2299
|
+
"status",
|
|
2300
|
+
"collateral",
|
|
2321
2301
|
"positions",
|
|
2322
2302
|
"total_asset_value",
|
|
2323
2303
|
"market_stats",
|
|
@@ -2349,6 +2329,7 @@
|
|
|
2349
2329
|
},
|
|
2350
2330
|
"title": "DetailedAccounts",
|
|
2351
2331
|
"required": [
|
|
2332
|
+
"code",
|
|
2352
2333
|
"total",
|
|
2353
2334
|
"accounts"
|
|
2354
2335
|
]
|
|
@@ -2445,9 +2426,23 @@
|
|
|
2445
2426
|
},
|
|
2446
2427
|
"title": "EnrichedTx",
|
|
2447
2428
|
"required": [
|
|
2429
|
+
"code",
|
|
2430
|
+
"hash",
|
|
2431
|
+
"type",
|
|
2432
|
+
"info",
|
|
2433
|
+
"event_info",
|
|
2434
|
+
"status",
|
|
2435
|
+
"transaction_index",
|
|
2436
|
+
"l1_address",
|
|
2437
|
+
"account_index",
|
|
2438
|
+
"nonce",
|
|
2439
|
+
"expire_at",
|
|
2440
|
+
"block_height",
|
|
2441
|
+
"created_at",
|
|
2442
|
+
"executed_at",
|
|
2443
|
+
"sequence_index",
|
|
2448
2444
|
"committed_at",
|
|
2449
|
-
"verified_at"
|
|
2450
|
-
"executed_at"
|
|
2445
|
+
"verified_at"
|
|
2451
2446
|
]
|
|
2452
2447
|
},
|
|
2453
2448
|
"ExchangeStats": {
|
|
@@ -2486,6 +2481,7 @@
|
|
|
2486
2481
|
},
|
|
2487
2482
|
"title": "ExchangeStats",
|
|
2488
2483
|
"required": [
|
|
2484
|
+
"code",
|
|
2489
2485
|
"total",
|
|
2490
2486
|
"order_book_stats",
|
|
2491
2487
|
"daily_usd_volume",
|
|
@@ -2545,6 +2541,7 @@
|
|
|
2545
2541
|
},
|
|
2546
2542
|
"title": "Fundings",
|
|
2547
2543
|
"required": [
|
|
2544
|
+
"code",
|
|
2548
2545
|
"resolution",
|
|
2549
2546
|
"fundings"
|
|
2550
2547
|
]
|
|
@@ -2631,6 +2628,7 @@
|
|
|
2631
2628
|
},
|
|
2632
2629
|
"title": "Layer1BasicInfo",
|
|
2633
2630
|
"required": [
|
|
2631
|
+
"code",
|
|
2634
2632
|
"l1_providers",
|
|
2635
2633
|
"l1_providers_health",
|
|
2636
2634
|
"validator_info",
|
|
@@ -2669,6 +2667,7 @@
|
|
|
2669
2667
|
},
|
|
2670
2668
|
"title": "Layer2BasicInfo",
|
|
2671
2669
|
"required": [
|
|
2670
|
+
"code",
|
|
2672
2671
|
"block_committed",
|
|
2673
2672
|
"block_verified",
|
|
2674
2673
|
"total_transaction_count"
|
|
@@ -2794,6 +2793,7 @@
|
|
|
2794
2793
|
},
|
|
2795
2794
|
"title": "NextNonce",
|
|
2796
2795
|
"required": [
|
|
2796
|
+
"code",
|
|
2797
2797
|
"nonce"
|
|
2798
2798
|
]
|
|
2799
2799
|
},
|
|
@@ -3035,6 +3035,7 @@
|
|
|
3035
3035
|
},
|
|
3036
3036
|
"title": "OrderBookDepth",
|
|
3037
3037
|
"required": [
|
|
3038
|
+
"code",
|
|
3038
3039
|
"asks",
|
|
3039
3040
|
"bids",
|
|
3040
3041
|
"offset"
|
|
@@ -3181,6 +3182,17 @@
|
|
|
3181
3182
|
},
|
|
3182
3183
|
"title": "OrderBookDetail",
|
|
3183
3184
|
"required": [
|
|
3185
|
+
"symbol",
|
|
3186
|
+
"market_id",
|
|
3187
|
+
"status",
|
|
3188
|
+
"taker_fee",
|
|
3189
|
+
"maker_fee",
|
|
3190
|
+
"liquidation_fee",
|
|
3191
|
+
"min_base_amount",
|
|
3192
|
+
"min_quote_amount",
|
|
3193
|
+
"supported_size_decimals",
|
|
3194
|
+
"supported_price_decimals",
|
|
3195
|
+
"supported_quote_decimals",
|
|
3184
3196
|
"size_decimals",
|
|
3185
3197
|
"price_decimals",
|
|
3186
3198
|
"quote_multiplier",
|
|
@@ -3219,6 +3231,7 @@
|
|
|
3219
3231
|
},
|
|
3220
3232
|
"title": "OrderBookDetails",
|
|
3221
3233
|
"required": [
|
|
3234
|
+
"code",
|
|
3222
3235
|
"order_book_details"
|
|
3223
3236
|
]
|
|
3224
3237
|
},
|
|
@@ -3258,6 +3271,7 @@
|
|
|
3258
3271
|
},
|
|
3259
3272
|
"title": "OrderBookOrders",
|
|
3260
3273
|
"required": [
|
|
3274
|
+
"code",
|
|
3261
3275
|
"total_asks",
|
|
3262
3276
|
"asks",
|
|
3263
3277
|
"total_bids",
|
|
@@ -3327,6 +3341,7 @@
|
|
|
3327
3341
|
},
|
|
3328
3342
|
"title": "OrderBooks",
|
|
3329
3343
|
"required": [
|
|
3344
|
+
"code",
|
|
3330
3345
|
"order_books"
|
|
3331
3346
|
]
|
|
3332
3347
|
},
|
|
@@ -3353,6 +3368,7 @@
|
|
|
3353
3368
|
},
|
|
3354
3369
|
"title": "Orders",
|
|
3355
3370
|
"required": [
|
|
3371
|
+
"code",
|
|
3356
3372
|
"orders"
|
|
3357
3373
|
]
|
|
3358
3374
|
},
|
|
@@ -3375,6 +3391,7 @@
|
|
|
3375
3391
|
},
|
|
3376
3392
|
"title": "Permission",
|
|
3377
3393
|
"required": [
|
|
3394
|
+
"code",
|
|
3378
3395
|
"permit"
|
|
3379
3396
|
]
|
|
3380
3397
|
},
|
|
@@ -4132,18 +4149,6 @@
|
|
|
4132
4149
|
"signature"
|
|
4133
4150
|
]
|
|
4134
4151
|
},
|
|
4135
|
-
"ReqSearch": {
|
|
4136
|
-
"type": "object",
|
|
4137
|
-
"properties": {
|
|
4138
|
-
"keyword": {
|
|
4139
|
-
"type": "string"
|
|
4140
|
-
}
|
|
4141
|
-
},
|
|
4142
|
-
"title": "ReqSearch",
|
|
4143
|
-
"required": [
|
|
4144
|
-
"keyword"
|
|
4145
|
-
]
|
|
4146
|
-
},
|
|
4147
4152
|
"ReqSendTx": {
|
|
4148
4153
|
"type": "object",
|
|
4149
4154
|
"properties": {
|
|
@@ -4251,32 +4256,11 @@
|
|
|
4251
4256
|
},
|
|
4252
4257
|
"title": "Rollbacks",
|
|
4253
4258
|
"required": [
|
|
4259
|
+
"code",
|
|
4254
4260
|
"total",
|
|
4255
4261
|
"rollbacks"
|
|
4256
4262
|
]
|
|
4257
4263
|
},
|
|
4258
|
-
"Search": {
|
|
4259
|
-
"type": "object",
|
|
4260
|
-
"properties": {
|
|
4261
|
-
"code": {
|
|
4262
|
-
"type": "integer",
|
|
4263
|
-
"format": "int32",
|
|
4264
|
-
"example": "100"
|
|
4265
|
-
},
|
|
4266
|
-
"message": {
|
|
4267
|
-
"type": "string"
|
|
4268
|
-
},
|
|
4269
|
-
"data_type": {
|
|
4270
|
-
"type": "integer",
|
|
4271
|
-
"format": "int32",
|
|
4272
|
-
"example": "1"
|
|
4273
|
-
}
|
|
4274
|
-
},
|
|
4275
|
-
"title": "Search",
|
|
4276
|
-
"required": [
|
|
4277
|
-
"data_type"
|
|
4278
|
-
]
|
|
4279
|
-
},
|
|
4280
4264
|
"SignBody": {
|
|
4281
4265
|
"type": "object",
|
|
4282
4266
|
"properties": {
|
|
@@ -4295,6 +4279,7 @@
|
|
|
4295
4279
|
},
|
|
4296
4280
|
"title": "SignBody",
|
|
4297
4281
|
"required": [
|
|
4282
|
+
"code",
|
|
4298
4283
|
"sign_body"
|
|
4299
4284
|
]
|
|
4300
4285
|
},
|
|
@@ -4384,6 +4369,7 @@
|
|
|
4384
4369
|
},
|
|
4385
4370
|
"title": "SubAccounts",
|
|
4386
4371
|
"required": [
|
|
4372
|
+
"code",
|
|
4387
4373
|
"l1_address",
|
|
4388
4374
|
"sub_accounts"
|
|
4389
4375
|
]
|
|
@@ -4495,6 +4481,7 @@
|
|
|
4495
4481
|
},
|
|
4496
4482
|
"title": "Trades",
|
|
4497
4483
|
"required": [
|
|
4484
|
+
"code",
|
|
4498
4485
|
"trades"
|
|
4499
4486
|
]
|
|
4500
4487
|
},
|
|
@@ -4606,6 +4593,7 @@
|
|
|
4606
4593
|
},
|
|
4607
4594
|
"title": "TxHash",
|
|
4608
4595
|
"required": [
|
|
4596
|
+
"code",
|
|
4609
4597
|
"tx_hash"
|
|
4610
4598
|
]
|
|
4611
4599
|
},
|
|
@@ -4629,6 +4617,7 @@
|
|
|
4629
4617
|
},
|
|
4630
4618
|
"title": "TxHashes",
|
|
4631
4619
|
"required": [
|
|
4620
|
+
"code",
|
|
4632
4621
|
"tx_hash"
|
|
4633
4622
|
]
|
|
4634
4623
|
},
|
|
@@ -4652,6 +4641,7 @@
|
|
|
4652
4641
|
},
|
|
4653
4642
|
"title": "Txs",
|
|
4654
4643
|
"required": [
|
|
4644
|
+
"code",
|
|
4655
4645
|
"txs"
|
|
4656
4646
|
]
|
|
4657
4647
|
},
|