zklighter-perps 1.0.180 → 1.0.182
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 +8 -3
- package/apis/AccountApi.ts +12 -0
- package/apis/OrderApi.ts +67 -0
- package/apis/index.ts +0 -1
- package/models/Account.ts +0 -9
- package/models/AccountAsset.ts +88 -0
- package/models/Asset.ts +144 -0
- package/models/AssetDetails.ts +85 -0
- package/models/DepositHistoryItem.ts +9 -0
- package/models/DetailedAccount.ts +15 -9
- package/models/EnrichedTx.ts +0 -9
- package/models/Order.ts +2 -1
- package/models/OrderBook.ts +36 -0
- package/models/OrderBookDetails.ts +24 -9
- package/models/PerpsMarketStats.ts +205 -0
- package/models/PerpsOrderBookDetail.ts +367 -0
- package/models/PnLEntry.ts +27 -0
- package/models/PublicPoolInfo.ts +0 -9
- package/models/PublicPoolMetadata.ts +0 -18
- package/models/ReqDoFaucet.ts +9 -0
- package/models/ReqGetAssetDetails.ts +60 -0
- package/models/ReqGetOrderBookDetails.ts +20 -0
- package/models/ReqGetOrderBooks.ts +20 -0
- package/models/SpotMarketStats.ts +142 -0
- package/models/SpotOrderBookDetail.ts +297 -0
- package/models/TransferHistoryItem.ts +47 -1
- package/models/Tx.ts +0 -9
- package/models/WithdrawHistoryItem.ts +9 -0
- package/models/index.ts +8 -2
- package/openapi.json +905 -414
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"in": "query",
|
|
123
123
|
"required": true,
|
|
124
124
|
"type": "integer",
|
|
125
|
-
"format": "
|
|
125
|
+
"format": "int16"
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
128
|
"name": "auth",
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
"in": "query",
|
|
187
187
|
"required": false,
|
|
188
188
|
"type": "integer",
|
|
189
|
-
"format": "
|
|
189
|
+
"format": "int16",
|
|
190
190
|
"default": "255"
|
|
191
191
|
},
|
|
192
192
|
{
|
|
@@ -520,6 +520,43 @@
|
|
|
520
520
|
"description": "Get account api key. Set `api_key_index` to 255 to retrieve all api keys associated with the account."
|
|
521
521
|
}
|
|
522
522
|
},
|
|
523
|
+
"/api/v1/assetDetails": {
|
|
524
|
+
"get": {
|
|
525
|
+
"summary": "assetDetails",
|
|
526
|
+
"operationId": "assetDetails",
|
|
527
|
+
"responses": {
|
|
528
|
+
"200": {
|
|
529
|
+
"description": "A successful response.",
|
|
530
|
+
"schema": {
|
|
531
|
+
"$ref": "#/definitions/AssetDetails"
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
"400": {
|
|
535
|
+
"description": "Bad request",
|
|
536
|
+
"schema": {
|
|
537
|
+
"$ref": "#/definitions/ResultCode"
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
"parameters": [
|
|
542
|
+
{
|
|
543
|
+
"name": "asset_id",
|
|
544
|
+
"in": "query",
|
|
545
|
+
"required": false,
|
|
546
|
+
"type": "integer",
|
|
547
|
+
"format": "int16",
|
|
548
|
+
"default": "0"
|
|
549
|
+
}
|
|
550
|
+
],
|
|
551
|
+
"tags": [
|
|
552
|
+
"order"
|
|
553
|
+
],
|
|
554
|
+
"consumes": [
|
|
555
|
+
"multipart/form-data"
|
|
556
|
+
],
|
|
557
|
+
"description": "Get asset details"
|
|
558
|
+
}
|
|
559
|
+
},
|
|
523
560
|
"/api/v1/block": {
|
|
524
561
|
"get": {
|
|
525
562
|
"summary": "block",
|
|
@@ -760,7 +797,7 @@
|
|
|
760
797
|
"in": "query",
|
|
761
798
|
"required": true,
|
|
762
799
|
"type": "integer",
|
|
763
|
-
"format": "
|
|
800
|
+
"format": "int16"
|
|
764
801
|
},
|
|
765
802
|
{
|
|
766
803
|
"name": "resolution",
|
|
@@ -1127,7 +1164,7 @@
|
|
|
1127
1164
|
"in": "query",
|
|
1128
1165
|
"required": false,
|
|
1129
1166
|
"type": "integer",
|
|
1130
|
-
"format": "
|
|
1167
|
+
"format": "int16",
|
|
1131
1168
|
"default": "255"
|
|
1132
1169
|
},
|
|
1133
1170
|
{
|
|
@@ -1292,6 +1329,14 @@
|
|
|
1292
1329
|
"in": "query",
|
|
1293
1330
|
"required": true,
|
|
1294
1331
|
"type": "string"
|
|
1332
|
+
},
|
|
1333
|
+
{
|
|
1334
|
+
"name": "do_l1_transfer",
|
|
1335
|
+
"in": "query",
|
|
1336
|
+
"required": true,
|
|
1337
|
+
"type": "boolean",
|
|
1338
|
+
"format": "boolean",
|
|
1339
|
+
"default": "false"
|
|
1295
1340
|
}
|
|
1296
1341
|
],
|
|
1297
1342
|
"tags": [
|
|
@@ -1351,7 +1396,7 @@
|
|
|
1351
1396
|
"in": "query",
|
|
1352
1397
|
"required": true,
|
|
1353
1398
|
"type": "integer",
|
|
1354
|
-
"format": "
|
|
1399
|
+
"format": "int16"
|
|
1355
1400
|
},
|
|
1356
1401
|
{
|
|
1357
1402
|
"name": "resolution",
|
|
@@ -1471,30 +1516,6 @@
|
|
|
1471
1516
|
"description": "Coin Gecko Orderbook"
|
|
1472
1517
|
}
|
|
1473
1518
|
},
|
|
1474
|
-
"/api/v1/geoLocation": {
|
|
1475
|
-
"get": {
|
|
1476
|
-
"summary": "geoLocation",
|
|
1477
|
-
"operationId": "geoLocation",
|
|
1478
|
-
"responses": {
|
|
1479
|
-
"200": {
|
|
1480
|
-
"description": "A successful response.",
|
|
1481
|
-
"schema": {
|
|
1482
|
-
"$ref": "#/definitions/ResultCode"
|
|
1483
|
-
}
|
|
1484
|
-
},
|
|
1485
|
-
"400": {
|
|
1486
|
-
"description": "Bad request",
|
|
1487
|
-
"schema": {
|
|
1488
|
-
"$ref": "#/definitions/ResultCode"
|
|
1489
|
-
}
|
|
1490
|
-
}
|
|
1491
|
-
},
|
|
1492
|
-
"tags": [
|
|
1493
|
-
"geo"
|
|
1494
|
-
],
|
|
1495
|
-
"description": "Get geo location"
|
|
1496
|
-
}
|
|
1497
|
-
},
|
|
1498
1519
|
"/api/v1/isWhitelisted": {
|
|
1499
1520
|
"get": {
|
|
1500
1521
|
"summary": "isWhitelisted",
|
|
@@ -1712,7 +1733,7 @@
|
|
|
1712
1733
|
"in": "query",
|
|
1713
1734
|
"required": false,
|
|
1714
1735
|
"type": "integer",
|
|
1715
|
-
"format": "
|
|
1736
|
+
"format": "int16",
|
|
1716
1737
|
"default": "255"
|
|
1717
1738
|
},
|
|
1718
1739
|
{
|
|
@@ -1851,8 +1872,20 @@
|
|
|
1851
1872
|
"in": "query",
|
|
1852
1873
|
"required": false,
|
|
1853
1874
|
"type": "integer",
|
|
1854
|
-
"format": "
|
|
1875
|
+
"format": "int16",
|
|
1855
1876
|
"default": "255"
|
|
1877
|
+
},
|
|
1878
|
+
{
|
|
1879
|
+
"name": "filter",
|
|
1880
|
+
"in": "query",
|
|
1881
|
+
"required": false,
|
|
1882
|
+
"type": "string",
|
|
1883
|
+
"enum": [
|
|
1884
|
+
"all",
|
|
1885
|
+
"spot",
|
|
1886
|
+
"perp"
|
|
1887
|
+
],
|
|
1888
|
+
"default": "all"
|
|
1856
1889
|
}
|
|
1857
1890
|
],
|
|
1858
1891
|
"tags": [
|
|
@@ -1888,7 +1921,7 @@
|
|
|
1888
1921
|
"in": "query",
|
|
1889
1922
|
"required": true,
|
|
1890
1923
|
"type": "integer",
|
|
1891
|
-
"format": "
|
|
1924
|
+
"format": "int16"
|
|
1892
1925
|
},
|
|
1893
1926
|
{
|
|
1894
1927
|
"name": "limit",
|
|
@@ -1933,8 +1966,20 @@
|
|
|
1933
1966
|
"in": "query",
|
|
1934
1967
|
"required": false,
|
|
1935
1968
|
"type": "integer",
|
|
1936
|
-
"format": "
|
|
1969
|
+
"format": "int16",
|
|
1937
1970
|
"default": "255"
|
|
1971
|
+
},
|
|
1972
|
+
{
|
|
1973
|
+
"name": "filter",
|
|
1974
|
+
"in": "query",
|
|
1975
|
+
"required": false,
|
|
1976
|
+
"type": "string",
|
|
1977
|
+
"enum": [
|
|
1978
|
+
"all",
|
|
1979
|
+
"spot",
|
|
1980
|
+
"perp"
|
|
1981
|
+
],
|
|
1982
|
+
"default": "all"
|
|
1938
1983
|
}
|
|
1939
1984
|
],
|
|
1940
1985
|
"tags": [
|
|
@@ -2092,7 +2137,7 @@
|
|
|
2092
2137
|
"in": "query",
|
|
2093
2138
|
"required": false,
|
|
2094
2139
|
"type": "integer",
|
|
2095
|
-
"format": "
|
|
2140
|
+
"format": "int16",
|
|
2096
2141
|
"default": "255"
|
|
2097
2142
|
},
|
|
2098
2143
|
{
|
|
@@ -2232,7 +2277,7 @@
|
|
|
2232
2277
|
"in": "query",
|
|
2233
2278
|
"required": true,
|
|
2234
2279
|
"type": "integer",
|
|
2235
|
-
"format": "
|
|
2280
|
+
"format": "int16"
|
|
2236
2281
|
},
|
|
2237
2282
|
{
|
|
2238
2283
|
"name": "limit",
|
|
@@ -2683,7 +2728,7 @@
|
|
|
2683
2728
|
"in": "query",
|
|
2684
2729
|
"required": false,
|
|
2685
2730
|
"type": "integer",
|
|
2686
|
-
"format": "
|
|
2731
|
+
"format": "int16",
|
|
2687
2732
|
"default": "255"
|
|
2688
2733
|
},
|
|
2689
2734
|
{
|
|
@@ -3186,11 +3231,6 @@
|
|
|
3186
3231
|
"format": "int64",
|
|
3187
3232
|
"example": "100"
|
|
3188
3233
|
},
|
|
3189
|
-
"total_isolated_order_count": {
|
|
3190
|
-
"type": "integer",
|
|
3191
|
-
"format": "int64",
|
|
3192
|
-
"example": "100"
|
|
3193
|
-
},
|
|
3194
3234
|
"pending_order_count": {
|
|
3195
3235
|
"type": "integer",
|
|
3196
3236
|
"format": "int64",
|
|
@@ -3218,7 +3258,6 @@
|
|
|
3218
3258
|
"l1_address",
|
|
3219
3259
|
"cancel_all_time",
|
|
3220
3260
|
"total_order_count",
|
|
3221
|
-
"total_isolated_order_count",
|
|
3222
3261
|
"pending_order_count",
|
|
3223
3262
|
"available_balance",
|
|
3224
3263
|
"status",
|
|
@@ -3249,6 +3288,35 @@
|
|
|
3249
3288
|
"api_keys"
|
|
3250
3289
|
]
|
|
3251
3290
|
},
|
|
3291
|
+
"AccountAsset": {
|
|
3292
|
+
"type": "object",
|
|
3293
|
+
"properties": {
|
|
3294
|
+
"symbol": {
|
|
3295
|
+
"type": "string",
|
|
3296
|
+
"example": "USDC"
|
|
3297
|
+
},
|
|
3298
|
+
"asset_id": {
|
|
3299
|
+
"type": "integer",
|
|
3300
|
+
"format": "int16",
|
|
3301
|
+
"example": "1"
|
|
3302
|
+
},
|
|
3303
|
+
"balance": {
|
|
3304
|
+
"type": "string",
|
|
3305
|
+
"example": "1000"
|
|
3306
|
+
},
|
|
3307
|
+
"locked_balance": {
|
|
3308
|
+
"type": "string",
|
|
3309
|
+
"example": "1000"
|
|
3310
|
+
}
|
|
3311
|
+
},
|
|
3312
|
+
"title": "AccountAsset",
|
|
3313
|
+
"required": [
|
|
3314
|
+
"symbol",
|
|
3315
|
+
"asset_id",
|
|
3316
|
+
"balance",
|
|
3317
|
+
"locked_balance"
|
|
3318
|
+
]
|
|
3319
|
+
},
|
|
3252
3320
|
"AccountLimits": {
|
|
3253
3321
|
"type": "object",
|
|
3254
3322
|
"properties": {
|
|
@@ -3331,7 +3399,7 @@
|
|
|
3331
3399
|
"properties": {
|
|
3332
3400
|
"market_id": {
|
|
3333
3401
|
"type": "integer",
|
|
3334
|
-
"format": "
|
|
3402
|
+
"format": "int16",
|
|
3335
3403
|
"example": "1"
|
|
3336
3404
|
},
|
|
3337
3405
|
"daily_trades_count": {
|
|
@@ -3502,7 +3570,7 @@
|
|
|
3502
3570
|
"properties": {
|
|
3503
3571
|
"market_id": {
|
|
3504
3572
|
"type": "integer",
|
|
3505
|
-
"format": "
|
|
3573
|
+
"format": "int16",
|
|
3506
3574
|
"example": "1"
|
|
3507
3575
|
},
|
|
3508
3576
|
"symbol": {
|
|
@@ -3772,6 +3840,90 @@
|
|
|
3772
3840
|
"public_key"
|
|
3773
3841
|
]
|
|
3774
3842
|
},
|
|
3843
|
+
"Asset": {
|
|
3844
|
+
"type": "object",
|
|
3845
|
+
"properties": {
|
|
3846
|
+
"asset_id": {
|
|
3847
|
+
"type": "integer",
|
|
3848
|
+
"format": "int16",
|
|
3849
|
+
"example": "1"
|
|
3850
|
+
},
|
|
3851
|
+
"symbol": {
|
|
3852
|
+
"type": "string",
|
|
3853
|
+
"example": "ETH"
|
|
3854
|
+
},
|
|
3855
|
+
"l1_decimals": {
|
|
3856
|
+
"type": "integer",
|
|
3857
|
+
"format": "uint8",
|
|
3858
|
+
"example": "18"
|
|
3859
|
+
},
|
|
3860
|
+
"decimals": {
|
|
3861
|
+
"type": "integer",
|
|
3862
|
+
"format": "uint8",
|
|
3863
|
+
"example": "2"
|
|
3864
|
+
},
|
|
3865
|
+
"min_transfer_amount": {
|
|
3866
|
+
"type": "string",
|
|
3867
|
+
"example": "0.01"
|
|
3868
|
+
},
|
|
3869
|
+
"min_withdrawal_amount": {
|
|
3870
|
+
"type": "string",
|
|
3871
|
+
"example": "0.01"
|
|
3872
|
+
},
|
|
3873
|
+
"margin_mode": {
|
|
3874
|
+
"type": "string",
|
|
3875
|
+
"example": "enabled",
|
|
3876
|
+
"enum": [
|
|
3877
|
+
"enabled",
|
|
3878
|
+
"disabled"
|
|
3879
|
+
]
|
|
3880
|
+
},
|
|
3881
|
+
"index_price": {
|
|
3882
|
+
"type": "string",
|
|
3883
|
+
"example": "3024.66"
|
|
3884
|
+
},
|
|
3885
|
+
"l1_address": {
|
|
3886
|
+
"type": "string",
|
|
3887
|
+
"example": "0x0000000000000000000000000000000000000000"
|
|
3888
|
+
}
|
|
3889
|
+
},
|
|
3890
|
+
"title": "Asset",
|
|
3891
|
+
"required": [
|
|
3892
|
+
"asset_id",
|
|
3893
|
+
"symbol",
|
|
3894
|
+
"l1_decimals",
|
|
3895
|
+
"decimals",
|
|
3896
|
+
"min_transfer_amount",
|
|
3897
|
+
"min_withdrawal_amount",
|
|
3898
|
+
"margin_mode",
|
|
3899
|
+
"index_price",
|
|
3900
|
+
"l1_address"
|
|
3901
|
+
]
|
|
3902
|
+
},
|
|
3903
|
+
"AssetDetails": {
|
|
3904
|
+
"type": "object",
|
|
3905
|
+
"properties": {
|
|
3906
|
+
"code": {
|
|
3907
|
+
"type": "integer",
|
|
3908
|
+
"format": "int32",
|
|
3909
|
+
"example": "200"
|
|
3910
|
+
},
|
|
3911
|
+
"message": {
|
|
3912
|
+
"type": "string"
|
|
3913
|
+
},
|
|
3914
|
+
"asset_details": {
|
|
3915
|
+
"type": "array",
|
|
3916
|
+
"items": {
|
|
3917
|
+
"$ref": "#/definitions/Asset"
|
|
3918
|
+
}
|
|
3919
|
+
}
|
|
3920
|
+
},
|
|
3921
|
+
"title": "AssetDetails",
|
|
3922
|
+
"required": [
|
|
3923
|
+
"code",
|
|
3924
|
+
"asset_details"
|
|
3925
|
+
]
|
|
3926
|
+
},
|
|
3775
3927
|
"Block": {
|
|
3776
3928
|
"type": "object",
|
|
3777
3929
|
"properties": {
|
|
@@ -4320,6 +4472,11 @@
|
|
|
4320
4472
|
"id": {
|
|
4321
4473
|
"type": "string"
|
|
4322
4474
|
},
|
|
4475
|
+
"asset_id": {
|
|
4476
|
+
"type": "integer",
|
|
4477
|
+
"format": "int16",
|
|
4478
|
+
"example": "1"
|
|
4479
|
+
},
|
|
4323
4480
|
"amount": {
|
|
4324
4481
|
"type": "string",
|
|
4325
4482
|
"example": "0.1"
|
|
@@ -4346,6 +4503,7 @@
|
|
|
4346
4503
|
"title": "DepositHistoryItem",
|
|
4347
4504
|
"required": [
|
|
4348
4505
|
"id",
|
|
4506
|
+
"asset_id",
|
|
4349
4507
|
"amount",
|
|
4350
4508
|
"timestamp",
|
|
4351
4509
|
"status",
|
|
@@ -4387,11 +4545,6 @@
|
|
|
4387
4545
|
"format": "int64",
|
|
4388
4546
|
"example": "100"
|
|
4389
4547
|
},
|
|
4390
|
-
"total_isolated_order_count": {
|
|
4391
|
-
"type": "integer",
|
|
4392
|
-
"format": "int64",
|
|
4393
|
-
"example": "100"
|
|
4394
|
-
},
|
|
4395
4548
|
"pending_order_count": {
|
|
4396
4549
|
"type": "integer",
|
|
4397
4550
|
"format": "int64",
|
|
@@ -4435,6 +4588,12 @@
|
|
|
4435
4588
|
"$ref": "#/definitions/AccountPosition"
|
|
4436
4589
|
}
|
|
4437
4590
|
},
|
|
4591
|
+
"assets": {
|
|
4592
|
+
"type": "array",
|
|
4593
|
+
"items": {
|
|
4594
|
+
"$ref": "#/definitions/AccountAsset"
|
|
4595
|
+
}
|
|
4596
|
+
},
|
|
4438
4597
|
"total_asset_value": {
|
|
4439
4598
|
"type": "string",
|
|
4440
4599
|
"example": "19995"
|
|
@@ -4461,7 +4620,6 @@
|
|
|
4461
4620
|
"l1_address",
|
|
4462
4621
|
"cancel_all_time",
|
|
4463
4622
|
"total_order_count",
|
|
4464
|
-
"total_isolated_order_count",
|
|
4465
4623
|
"pending_order_count",
|
|
4466
4624
|
"available_balance",
|
|
4467
4625
|
"status",
|
|
@@ -4472,6 +4630,7 @@
|
|
|
4472
4630
|
"can_invite",
|
|
4473
4631
|
"referral_points_percentage",
|
|
4474
4632
|
"positions",
|
|
4633
|
+
"assets",
|
|
4475
4634
|
"total_asset_value",
|
|
4476
4635
|
"cross_asset_value",
|
|
4477
4636
|
"pool_info",
|
|
@@ -4677,11 +4836,6 @@
|
|
|
4677
4836
|
"type": "string",
|
|
4678
4837
|
"example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
|
|
4679
4838
|
},
|
|
4680
|
-
"api_key_index": {
|
|
4681
|
-
"type": "integer",
|
|
4682
|
-
"format": "uint8",
|
|
4683
|
-
"example": "0"
|
|
4684
|
-
},
|
|
4685
4839
|
"committed_at": {
|
|
4686
4840
|
"type": "integer",
|
|
4687
4841
|
"format": "int64",
|
|
@@ -4711,7 +4865,6 @@
|
|
|
4711
4865
|
"executed_at",
|
|
4712
4866
|
"sequence_index",
|
|
4713
4867
|
"parent_hash",
|
|
4714
|
-
"api_key_index",
|
|
4715
4868
|
"committed_at",
|
|
4716
4869
|
"verified_at"
|
|
4717
4870
|
]
|
|
@@ -4814,7 +4967,7 @@
|
|
|
4814
4967
|
"properties": {
|
|
4815
4968
|
"market_id": {
|
|
4816
4969
|
"type": "integer",
|
|
4817
|
-
"format": "
|
|
4970
|
+
"format": "int16"
|
|
4818
4971
|
},
|
|
4819
4972
|
"exchange": {
|
|
4820
4973
|
"type": "string",
|
|
@@ -5285,7 +5438,7 @@
|
|
|
5285
5438
|
},
|
|
5286
5439
|
"market_id": {
|
|
5287
5440
|
"type": "integer",
|
|
5288
|
-
"format": "
|
|
5441
|
+
"format": "int16"
|
|
5289
5442
|
},
|
|
5290
5443
|
"type": {
|
|
5291
5444
|
"type": "string",
|
|
@@ -5405,160 +5558,65 @@
|
|
|
5405
5558
|
"trading_hours"
|
|
5406
5559
|
]
|
|
5407
5560
|
},
|
|
5408
|
-
"
|
|
5561
|
+
"NextNonce": {
|
|
5562
|
+
"type": "object",
|
|
5563
|
+
"properties": {
|
|
5564
|
+
"code": {
|
|
5565
|
+
"type": "integer",
|
|
5566
|
+
"format": "int32",
|
|
5567
|
+
"example": "200"
|
|
5568
|
+
},
|
|
5569
|
+
"message": {
|
|
5570
|
+
"type": "string"
|
|
5571
|
+
},
|
|
5572
|
+
"nonce": {
|
|
5573
|
+
"type": "integer",
|
|
5574
|
+
"format": "int64",
|
|
5575
|
+
"example": "722"
|
|
5576
|
+
}
|
|
5577
|
+
},
|
|
5578
|
+
"title": "NextNonce",
|
|
5579
|
+
"required": [
|
|
5580
|
+
"code",
|
|
5581
|
+
"nonce"
|
|
5582
|
+
]
|
|
5583
|
+
},
|
|
5584
|
+
"Order": {
|
|
5409
5585
|
"type": "object",
|
|
5410
5586
|
"properties": {
|
|
5411
|
-
"
|
|
5587
|
+
"order_index": {
|
|
5412
5588
|
"type": "integer",
|
|
5413
|
-
"format": "
|
|
5589
|
+
"format": "int64",
|
|
5414
5590
|
"example": "1"
|
|
5415
5591
|
},
|
|
5416
|
-
"
|
|
5417
|
-
"type": "
|
|
5418
|
-
"
|
|
5592
|
+
"client_order_index": {
|
|
5593
|
+
"type": "integer",
|
|
5594
|
+
"format": "int64",
|
|
5595
|
+
"example": "234"
|
|
5419
5596
|
},
|
|
5420
|
-
"
|
|
5597
|
+
"order_id": {
|
|
5421
5598
|
"type": "string",
|
|
5422
|
-
"example": "
|
|
5599
|
+
"example": "1"
|
|
5423
5600
|
},
|
|
5424
|
-
"
|
|
5601
|
+
"client_order_id": {
|
|
5425
5602
|
"type": "string",
|
|
5426
|
-
"example": "
|
|
5603
|
+
"example": "234"
|
|
5427
5604
|
},
|
|
5428
|
-
"
|
|
5429
|
-
"type": "
|
|
5430
|
-
"
|
|
5605
|
+
"market_index": {
|
|
5606
|
+
"type": "integer",
|
|
5607
|
+
"format": "int16",
|
|
5608
|
+
"example": "1"
|
|
5431
5609
|
},
|
|
5432
|
-
"
|
|
5433
|
-
"type": "
|
|
5434
|
-
"
|
|
5610
|
+
"owner_account_index": {
|
|
5611
|
+
"type": "integer",
|
|
5612
|
+
"format": "int64",
|
|
5613
|
+
"example": "1"
|
|
5435
5614
|
},
|
|
5436
|
-
"
|
|
5615
|
+
"initial_base_amount": {
|
|
5437
5616
|
"type": "string",
|
|
5438
|
-
"example": "0.
|
|
5617
|
+
"example": "0.1"
|
|
5439
5618
|
},
|
|
5440
|
-
"
|
|
5441
|
-
"type": "string",
|
|
5442
|
-
"example": "3024.66"
|
|
5443
|
-
},
|
|
5444
|
-
"current_funding_rate": {
|
|
5445
|
-
"type": "string",
|
|
5446
|
-
"example": "0.0001"
|
|
5447
|
-
},
|
|
5448
|
-
"funding_rate": {
|
|
5449
|
-
"type": "string",
|
|
5450
|
-
"example": "0.0001"
|
|
5451
|
-
},
|
|
5452
|
-
"funding_timestamp": {
|
|
5453
|
-
"type": "integer",
|
|
5454
|
-
"format": "int64",
|
|
5455
|
-
"example": "1640995200"
|
|
5456
|
-
},
|
|
5457
|
-
"daily_base_token_volume": {
|
|
5458
|
-
"type": "number",
|
|
5459
|
-
"format": "double",
|
|
5460
|
-
"example": "235.25"
|
|
5461
|
-
},
|
|
5462
|
-
"daily_quote_token_volume": {
|
|
5463
|
-
"type": "number",
|
|
5464
|
-
"format": "double",
|
|
5465
|
-
"example": "93566.25"
|
|
5466
|
-
},
|
|
5467
|
-
"daily_price_low": {
|
|
5468
|
-
"type": "number",
|
|
5469
|
-
"format": "double",
|
|
5470
|
-
"example": "3014.66"
|
|
5471
|
-
},
|
|
5472
|
-
"daily_price_high": {
|
|
5473
|
-
"type": "number",
|
|
5474
|
-
"format": "double",
|
|
5475
|
-
"example": "3024.66"
|
|
5476
|
-
},
|
|
5477
|
-
"daily_price_change": {
|
|
5478
|
-
"type": "number",
|
|
5479
|
-
"format": "double",
|
|
5480
|
-
"example": "3.66"
|
|
5481
|
-
}
|
|
5482
|
-
},
|
|
5483
|
-
"title": "MarketInfo",
|
|
5484
|
-
"required": [
|
|
5485
|
-
"market_id",
|
|
5486
|
-
"index_price",
|
|
5487
|
-
"mark_price",
|
|
5488
|
-
"open_interest",
|
|
5489
|
-
"open_interest_limit",
|
|
5490
|
-
"funding_clamp_small",
|
|
5491
|
-
"funding_clamp_big",
|
|
5492
|
-
"last_trade_price",
|
|
5493
|
-
"current_funding_rate",
|
|
5494
|
-
"funding_rate",
|
|
5495
|
-
"funding_timestamp",
|
|
5496
|
-
"daily_base_token_volume",
|
|
5497
|
-
"daily_quote_token_volume",
|
|
5498
|
-
"daily_price_low",
|
|
5499
|
-
"daily_price_high",
|
|
5500
|
-
"daily_price_change"
|
|
5501
|
-
]
|
|
5502
|
-
},
|
|
5503
|
-
"NextNonce": {
|
|
5504
|
-
"type": "object",
|
|
5505
|
-
"properties": {
|
|
5506
|
-
"code": {
|
|
5507
|
-
"type": "integer",
|
|
5508
|
-
"format": "int32",
|
|
5509
|
-
"example": "200"
|
|
5510
|
-
},
|
|
5511
|
-
"message": {
|
|
5512
|
-
"type": "string"
|
|
5513
|
-
},
|
|
5514
|
-
"nonce": {
|
|
5515
|
-
"type": "integer",
|
|
5516
|
-
"format": "int64",
|
|
5517
|
-
"example": "722"
|
|
5518
|
-
}
|
|
5519
|
-
},
|
|
5520
|
-
"title": "NextNonce",
|
|
5521
|
-
"required": [
|
|
5522
|
-
"code",
|
|
5523
|
-
"nonce"
|
|
5524
|
-
]
|
|
5525
|
-
},
|
|
5526
|
-
"Order": {
|
|
5527
|
-
"type": "object",
|
|
5528
|
-
"properties": {
|
|
5529
|
-
"order_index": {
|
|
5530
|
-
"type": "integer",
|
|
5531
|
-
"format": "int64",
|
|
5532
|
-
"example": "1"
|
|
5533
|
-
},
|
|
5534
|
-
"client_order_index": {
|
|
5535
|
-
"type": "integer",
|
|
5536
|
-
"format": "int64",
|
|
5537
|
-
"example": "234"
|
|
5538
|
-
},
|
|
5539
|
-
"order_id": {
|
|
5540
|
-
"type": "string",
|
|
5541
|
-
"example": "1"
|
|
5542
|
-
},
|
|
5543
|
-
"client_order_id": {
|
|
5544
|
-
"type": "string",
|
|
5545
|
-
"example": "234"
|
|
5546
|
-
},
|
|
5547
|
-
"market_index": {
|
|
5548
|
-
"type": "integer",
|
|
5549
|
-
"format": "uint8",
|
|
5550
|
-
"example": "1"
|
|
5551
|
-
},
|
|
5552
|
-
"owner_account_index": {
|
|
5553
|
-
"type": "integer",
|
|
5554
|
-
"format": "int64",
|
|
5555
|
-
"example": "1"
|
|
5556
|
-
},
|
|
5557
|
-
"initial_base_amount": {
|
|
5558
|
-
"type": "string",
|
|
5559
|
-
"example": "0.1"
|
|
5560
|
-
},
|
|
5561
|
-
"price": {
|
|
5619
|
+
"price": {
|
|
5562
5620
|
"type": "string",
|
|
5563
5621
|
"example": "3024.66"
|
|
5564
5622
|
},
|
|
@@ -5658,7 +5716,8 @@
|
|
|
5658
5716
|
"canceled-expired",
|
|
5659
5717
|
"canceled-oco",
|
|
5660
5718
|
"canceled-child",
|
|
5661
|
-
"canceled-liquidation"
|
|
5719
|
+
"canceled-liquidation",
|
|
5720
|
+
"canceled-invalid-balance"
|
|
5662
5721
|
]
|
|
5663
5722
|
},
|
|
5664
5723
|
"trigger_status": {
|
|
@@ -5765,9 +5824,27 @@
|
|
|
5765
5824
|
},
|
|
5766
5825
|
"market_id": {
|
|
5767
5826
|
"type": "integer",
|
|
5768
|
-
"format": "
|
|
5827
|
+
"format": "int16",
|
|
5828
|
+
"example": "1"
|
|
5829
|
+
},
|
|
5830
|
+
"market_type": {
|
|
5831
|
+
"type": "string",
|
|
5832
|
+
"example": "perp",
|
|
5833
|
+
"enum": [
|
|
5834
|
+
"perp",
|
|
5835
|
+
"spot"
|
|
5836
|
+
]
|
|
5837
|
+
},
|
|
5838
|
+
"base_asset_id": {
|
|
5839
|
+
"type": "integer",
|
|
5840
|
+
"format": "int16",
|
|
5769
5841
|
"example": "1"
|
|
5770
5842
|
},
|
|
5843
|
+
"quote_asset_id": {
|
|
5844
|
+
"type": "integer",
|
|
5845
|
+
"format": "int16",
|
|
5846
|
+
"example": "2"
|
|
5847
|
+
},
|
|
5771
5848
|
"status": {
|
|
5772
5849
|
"type": "string",
|
|
5773
5850
|
"example": "active",
|
|
@@ -5820,6 +5897,9 @@
|
|
|
5820
5897
|
"required": [
|
|
5821
5898
|
"symbol",
|
|
5822
5899
|
"market_id",
|
|
5900
|
+
"market_type",
|
|
5901
|
+
"base_asset_id",
|
|
5902
|
+
"quote_asset_id",
|
|
5823
5903
|
"status",
|
|
5824
5904
|
"taker_fee",
|
|
5825
5905
|
"maker_fee",
|
|
@@ -5855,27 +5935,295 @@
|
|
|
5855
5935
|
"$ref": "#/definitions/PriceLevel"
|
|
5856
5936
|
}
|
|
5857
5937
|
},
|
|
5858
|
-
"offset": {
|
|
5859
|
-
"type": "integer",
|
|
5860
|
-
"format": "int64",
|
|
5861
|
-
"example": "0"
|
|
5938
|
+
"offset": {
|
|
5939
|
+
"type": "integer",
|
|
5940
|
+
"format": "int64",
|
|
5941
|
+
"example": "0"
|
|
5942
|
+
},
|
|
5943
|
+
"nonce": {
|
|
5944
|
+
"type": "integer",
|
|
5945
|
+
"format": "int64",
|
|
5946
|
+
"example": "0"
|
|
5947
|
+
}
|
|
5948
|
+
},
|
|
5949
|
+
"title": "OrderBookDepth",
|
|
5950
|
+
"required": [
|
|
5951
|
+
"code",
|
|
5952
|
+
"asks",
|
|
5953
|
+
"bids",
|
|
5954
|
+
"offset",
|
|
5955
|
+
"nonce"
|
|
5956
|
+
]
|
|
5957
|
+
},
|
|
5958
|
+
"OrderBookDetails": {
|
|
5959
|
+
"type": "object",
|
|
5960
|
+
"properties": {
|
|
5961
|
+
"code": {
|
|
5962
|
+
"type": "integer",
|
|
5963
|
+
"format": "int32",
|
|
5964
|
+
"example": "200"
|
|
5965
|
+
},
|
|
5966
|
+
"message": {
|
|
5967
|
+
"type": "string"
|
|
5968
|
+
},
|
|
5969
|
+
"order_book_details": {
|
|
5970
|
+
"type": "array",
|
|
5971
|
+
"items": {
|
|
5972
|
+
"$ref": "#/definitions/PerpsOrderBookDetail"
|
|
5973
|
+
}
|
|
5974
|
+
},
|
|
5975
|
+
"spot_order_book_details": {
|
|
5976
|
+
"type": "array",
|
|
5977
|
+
"items": {
|
|
5978
|
+
"$ref": "#/definitions/SpotOrderBookDetail"
|
|
5979
|
+
}
|
|
5980
|
+
}
|
|
5981
|
+
},
|
|
5982
|
+
"title": "OrderBookDetails",
|
|
5983
|
+
"required": [
|
|
5984
|
+
"code",
|
|
5985
|
+
"order_book_details",
|
|
5986
|
+
"spot_order_book_details"
|
|
5987
|
+
]
|
|
5988
|
+
},
|
|
5989
|
+
"OrderBookOrders": {
|
|
5990
|
+
"type": "object",
|
|
5991
|
+
"properties": {
|
|
5992
|
+
"code": {
|
|
5993
|
+
"type": "integer",
|
|
5994
|
+
"format": "int32",
|
|
5995
|
+
"example": "200"
|
|
5996
|
+
},
|
|
5997
|
+
"message": {
|
|
5998
|
+
"type": "string"
|
|
5999
|
+
},
|
|
6000
|
+
"total_asks": {
|
|
6001
|
+
"type": "integer",
|
|
6002
|
+
"format": "int64",
|
|
6003
|
+
"example": "1"
|
|
6004
|
+
},
|
|
6005
|
+
"asks": {
|
|
6006
|
+
"type": "array",
|
|
6007
|
+
"items": {
|
|
6008
|
+
"$ref": "#/definitions/SimpleOrder"
|
|
6009
|
+
}
|
|
6010
|
+
},
|
|
6011
|
+
"total_bids": {
|
|
6012
|
+
"type": "integer",
|
|
6013
|
+
"format": "int64",
|
|
6014
|
+
"example": "1"
|
|
6015
|
+
},
|
|
6016
|
+
"bids": {
|
|
6017
|
+
"type": "array",
|
|
6018
|
+
"items": {
|
|
6019
|
+
"$ref": "#/definitions/SimpleOrder"
|
|
6020
|
+
}
|
|
6021
|
+
}
|
|
6022
|
+
},
|
|
6023
|
+
"title": "OrderBookOrders",
|
|
6024
|
+
"required": [
|
|
6025
|
+
"code",
|
|
6026
|
+
"total_asks",
|
|
6027
|
+
"asks",
|
|
6028
|
+
"total_bids",
|
|
6029
|
+
"bids"
|
|
6030
|
+
]
|
|
6031
|
+
},
|
|
6032
|
+
"OrderBookStats": {
|
|
6033
|
+
"type": "object",
|
|
6034
|
+
"properties": {
|
|
6035
|
+
"symbol": {
|
|
6036
|
+
"type": "string",
|
|
6037
|
+
"example": "ETH"
|
|
6038
|
+
},
|
|
6039
|
+
"last_trade_price": {
|
|
6040
|
+
"type": "number",
|
|
6041
|
+
"format": "double",
|
|
6042
|
+
"example": "3024.66"
|
|
6043
|
+
},
|
|
6044
|
+
"daily_trades_count": {
|
|
6045
|
+
"type": "integer",
|
|
6046
|
+
"format": "int64",
|
|
6047
|
+
"example": "68"
|
|
6048
|
+
},
|
|
6049
|
+
"daily_base_token_volume": {
|
|
6050
|
+
"type": "number",
|
|
6051
|
+
"format": "double",
|
|
6052
|
+
"example": "235.25"
|
|
6053
|
+
},
|
|
6054
|
+
"daily_quote_token_volume": {
|
|
6055
|
+
"type": "number",
|
|
6056
|
+
"format": "double",
|
|
6057
|
+
"example": "93566.25"
|
|
6058
|
+
},
|
|
6059
|
+
"daily_price_change": {
|
|
6060
|
+
"type": "number",
|
|
6061
|
+
"format": "double",
|
|
6062
|
+
"example": "3.66"
|
|
6063
|
+
}
|
|
6064
|
+
},
|
|
6065
|
+
"title": "OrderBookStats",
|
|
6066
|
+
"required": [
|
|
6067
|
+
"symbol",
|
|
6068
|
+
"last_trade_price",
|
|
6069
|
+
"daily_trades_count",
|
|
6070
|
+
"daily_base_token_volume",
|
|
6071
|
+
"daily_quote_token_volume",
|
|
6072
|
+
"daily_price_change"
|
|
6073
|
+
]
|
|
6074
|
+
},
|
|
6075
|
+
"OrderBooks": {
|
|
6076
|
+
"type": "object",
|
|
6077
|
+
"properties": {
|
|
6078
|
+
"code": {
|
|
6079
|
+
"type": "integer",
|
|
6080
|
+
"format": "int32",
|
|
6081
|
+
"example": "200"
|
|
6082
|
+
},
|
|
6083
|
+
"message": {
|
|
6084
|
+
"type": "string"
|
|
6085
|
+
},
|
|
6086
|
+
"order_books": {
|
|
6087
|
+
"type": "array",
|
|
6088
|
+
"items": {
|
|
6089
|
+
"$ref": "#/definitions/OrderBook"
|
|
6090
|
+
}
|
|
6091
|
+
}
|
|
6092
|
+
},
|
|
6093
|
+
"title": "OrderBooks",
|
|
6094
|
+
"required": [
|
|
6095
|
+
"code",
|
|
6096
|
+
"order_books"
|
|
6097
|
+
]
|
|
6098
|
+
},
|
|
6099
|
+
"Orders": {
|
|
6100
|
+
"type": "object",
|
|
6101
|
+
"properties": {
|
|
6102
|
+
"code": {
|
|
6103
|
+
"type": "integer",
|
|
6104
|
+
"format": "int32",
|
|
6105
|
+
"example": "200"
|
|
6106
|
+
},
|
|
6107
|
+
"message": {
|
|
6108
|
+
"type": "string"
|
|
6109
|
+
},
|
|
6110
|
+
"next_cursor": {
|
|
6111
|
+
"type": "string"
|
|
6112
|
+
},
|
|
6113
|
+
"orders": {
|
|
6114
|
+
"type": "array",
|
|
6115
|
+
"items": {
|
|
6116
|
+
"$ref": "#/definitions/Order"
|
|
6117
|
+
}
|
|
6118
|
+
}
|
|
6119
|
+
},
|
|
6120
|
+
"title": "Orders",
|
|
6121
|
+
"required": [
|
|
6122
|
+
"code",
|
|
6123
|
+
"orders"
|
|
6124
|
+
]
|
|
6125
|
+
},
|
|
6126
|
+
"PerpsMarketStats": {
|
|
6127
|
+
"type": "object",
|
|
6128
|
+
"properties": {
|
|
6129
|
+
"symbol": {
|
|
6130
|
+
"type": "string",
|
|
6131
|
+
"example": "ETH"
|
|
6132
|
+
},
|
|
6133
|
+
"market_id": {
|
|
6134
|
+
"type": "integer",
|
|
6135
|
+
"format": "int16",
|
|
6136
|
+
"example": "1"
|
|
6137
|
+
},
|
|
6138
|
+
"index_price": {
|
|
6139
|
+
"type": "string",
|
|
6140
|
+
"example": "3024.66"
|
|
6141
|
+
},
|
|
6142
|
+
"mark_price": {
|
|
6143
|
+
"type": "string",
|
|
6144
|
+
"example": "3024.66"
|
|
6145
|
+
},
|
|
6146
|
+
"open_interest": {
|
|
6147
|
+
"type": "string",
|
|
6148
|
+
"example": "235.25"
|
|
6149
|
+
},
|
|
6150
|
+
"open_interest_limit": {
|
|
6151
|
+
"type": "string",
|
|
6152
|
+
"example": "235.25"
|
|
6153
|
+
},
|
|
6154
|
+
"funding_clamp_small": {
|
|
6155
|
+
"type": "string",
|
|
6156
|
+
"example": "0.005"
|
|
6157
|
+
},
|
|
6158
|
+
"funding_clamp_big": {
|
|
6159
|
+
"type": "string",
|
|
6160
|
+
"example": "0.4"
|
|
6161
|
+
},
|
|
6162
|
+
"last_trade_price": {
|
|
6163
|
+
"type": "string",
|
|
6164
|
+
"example": "3024.66"
|
|
6165
|
+
},
|
|
6166
|
+
"current_funding_rate": {
|
|
6167
|
+
"type": "string",
|
|
6168
|
+
"example": "0.0001"
|
|
6169
|
+
},
|
|
6170
|
+
"funding_rate": {
|
|
6171
|
+
"type": "string",
|
|
6172
|
+
"example": "0.0001"
|
|
5862
6173
|
},
|
|
5863
|
-
"
|
|
6174
|
+
"funding_timestamp": {
|
|
5864
6175
|
"type": "integer",
|
|
5865
6176
|
"format": "int64",
|
|
5866
|
-
"example": "
|
|
6177
|
+
"example": "1640995200"
|
|
6178
|
+
},
|
|
6179
|
+
"daily_base_token_volume": {
|
|
6180
|
+
"type": "number",
|
|
6181
|
+
"format": "double",
|
|
6182
|
+
"example": "235.25"
|
|
6183
|
+
},
|
|
6184
|
+
"daily_quote_token_volume": {
|
|
6185
|
+
"type": "number",
|
|
6186
|
+
"format": "double",
|
|
6187
|
+
"example": "93566.25"
|
|
6188
|
+
},
|
|
6189
|
+
"daily_price_low": {
|
|
6190
|
+
"type": "number",
|
|
6191
|
+
"format": "double",
|
|
6192
|
+
"example": "3014.66"
|
|
6193
|
+
},
|
|
6194
|
+
"daily_price_high": {
|
|
6195
|
+
"type": "number",
|
|
6196
|
+
"format": "double",
|
|
6197
|
+
"example": "3024.66"
|
|
6198
|
+
},
|
|
6199
|
+
"daily_price_change": {
|
|
6200
|
+
"type": "number",
|
|
6201
|
+
"format": "double",
|
|
6202
|
+
"example": "3.66"
|
|
5867
6203
|
}
|
|
5868
6204
|
},
|
|
5869
|
-
"title": "
|
|
6205
|
+
"title": "PerpsMarketStats",
|
|
5870
6206
|
"required": [
|
|
5871
|
-
"
|
|
5872
|
-
"
|
|
5873
|
-
"
|
|
5874
|
-
"
|
|
5875
|
-
"
|
|
6207
|
+
"symbol",
|
|
6208
|
+
"market_id",
|
|
6209
|
+
"index_price",
|
|
6210
|
+
"mark_price",
|
|
6211
|
+
"open_interest",
|
|
6212
|
+
"open_interest_limit",
|
|
6213
|
+
"funding_clamp_small",
|
|
6214
|
+
"funding_clamp_big",
|
|
6215
|
+
"last_trade_price",
|
|
6216
|
+
"current_funding_rate",
|
|
6217
|
+
"funding_rate",
|
|
6218
|
+
"funding_timestamp",
|
|
6219
|
+
"daily_base_token_volume",
|
|
6220
|
+
"daily_quote_token_volume",
|
|
6221
|
+
"daily_price_low",
|
|
6222
|
+
"daily_price_high",
|
|
6223
|
+
"daily_price_change"
|
|
5876
6224
|
]
|
|
5877
6225
|
},
|
|
5878
|
-
"
|
|
6226
|
+
"PerpsOrderBookDetail": {
|
|
5879
6227
|
"type": "object",
|
|
5880
6228
|
"properties": {
|
|
5881
6229
|
"symbol": {
|
|
@@ -5884,9 +6232,27 @@
|
|
|
5884
6232
|
},
|
|
5885
6233
|
"market_id": {
|
|
5886
6234
|
"type": "integer",
|
|
5887
|
-
"format": "
|
|
6235
|
+
"format": "int16",
|
|
6236
|
+
"example": "1"
|
|
6237
|
+
},
|
|
6238
|
+
"market_type": {
|
|
6239
|
+
"type": "string",
|
|
6240
|
+
"example": "perp",
|
|
6241
|
+
"enum": [
|
|
6242
|
+
"perp",
|
|
6243
|
+
"spot"
|
|
6244
|
+
]
|
|
6245
|
+
},
|
|
6246
|
+
"base_asset_id": {
|
|
6247
|
+
"type": "integer",
|
|
6248
|
+
"format": "int16",
|
|
5888
6249
|
"example": "1"
|
|
5889
6250
|
},
|
|
6251
|
+
"quote_asset_id": {
|
|
6252
|
+
"type": "integer",
|
|
6253
|
+
"format": "int16",
|
|
6254
|
+
"example": "2"
|
|
6255
|
+
},
|
|
5890
6256
|
"status": {
|
|
5891
6257
|
"type": "string",
|
|
5892
6258
|
"example": "active",
|
|
@@ -6021,10 +6387,13 @@
|
|
|
6021
6387
|
"$ref": "#/definitions/MarketConfig"
|
|
6022
6388
|
}
|
|
6023
6389
|
},
|
|
6024
|
-
"title": "
|
|
6390
|
+
"title": "PerpsOrderBookDetail",
|
|
6025
6391
|
"required": [
|
|
6026
6392
|
"symbol",
|
|
6027
6393
|
"market_id",
|
|
6394
|
+
"market_type",
|
|
6395
|
+
"base_asset_id",
|
|
6396
|
+
"quote_asset_id",
|
|
6028
6397
|
"status",
|
|
6029
6398
|
"taker_fee",
|
|
6030
6399
|
"maker_fee",
|
|
@@ -6054,186 +6423,40 @@
|
|
|
6054
6423
|
"market_config"
|
|
6055
6424
|
]
|
|
6056
6425
|
},
|
|
6057
|
-
"
|
|
6058
|
-
"type": "object",
|
|
6059
|
-
"properties": {
|
|
6060
|
-
"code": {
|
|
6061
|
-
"type": "integer",
|
|
6062
|
-
"format": "int32",
|
|
6063
|
-
"example": "200"
|
|
6064
|
-
},
|
|
6065
|
-
"message": {
|
|
6066
|
-
"type": "string"
|
|
6067
|
-
},
|
|
6068
|
-
"order_book_details": {
|
|
6069
|
-
"type": "array",
|
|
6070
|
-
"items": {
|
|
6071
|
-
"$ref": "#/definitions/OrderBookDetail"
|
|
6072
|
-
}
|
|
6073
|
-
}
|
|
6074
|
-
},
|
|
6075
|
-
"title": "OrderBookDetails",
|
|
6076
|
-
"required": [
|
|
6077
|
-
"code",
|
|
6078
|
-
"order_book_details"
|
|
6079
|
-
]
|
|
6080
|
-
},
|
|
6081
|
-
"OrderBookOrders": {
|
|
6082
|
-
"type": "object",
|
|
6083
|
-
"properties": {
|
|
6084
|
-
"code": {
|
|
6085
|
-
"type": "integer",
|
|
6086
|
-
"format": "int32",
|
|
6087
|
-
"example": "200"
|
|
6088
|
-
},
|
|
6089
|
-
"message": {
|
|
6090
|
-
"type": "string"
|
|
6091
|
-
},
|
|
6092
|
-
"total_asks": {
|
|
6093
|
-
"type": "integer",
|
|
6094
|
-
"format": "int64",
|
|
6095
|
-
"example": "1"
|
|
6096
|
-
},
|
|
6097
|
-
"asks": {
|
|
6098
|
-
"type": "array",
|
|
6099
|
-
"items": {
|
|
6100
|
-
"$ref": "#/definitions/SimpleOrder"
|
|
6101
|
-
}
|
|
6102
|
-
},
|
|
6103
|
-
"total_bids": {
|
|
6104
|
-
"type": "integer",
|
|
6105
|
-
"format": "int64",
|
|
6106
|
-
"example": "1"
|
|
6107
|
-
},
|
|
6108
|
-
"bids": {
|
|
6109
|
-
"type": "array",
|
|
6110
|
-
"items": {
|
|
6111
|
-
"$ref": "#/definitions/SimpleOrder"
|
|
6112
|
-
}
|
|
6113
|
-
}
|
|
6114
|
-
},
|
|
6115
|
-
"title": "OrderBookOrders",
|
|
6116
|
-
"required": [
|
|
6117
|
-
"code",
|
|
6118
|
-
"total_asks",
|
|
6119
|
-
"asks",
|
|
6120
|
-
"total_bids",
|
|
6121
|
-
"bids"
|
|
6122
|
-
]
|
|
6123
|
-
},
|
|
6124
|
-
"OrderBookStats": {
|
|
6426
|
+
"PnLEntry": {
|
|
6125
6427
|
"type": "object",
|
|
6126
6428
|
"properties": {
|
|
6127
|
-
"
|
|
6128
|
-
"type": "string",
|
|
6129
|
-
"example": "ETH"
|
|
6130
|
-
},
|
|
6131
|
-
"last_trade_price": {
|
|
6132
|
-
"type": "number",
|
|
6133
|
-
"format": "double",
|
|
6134
|
-
"example": "3024.66"
|
|
6135
|
-
},
|
|
6136
|
-
"daily_trades_count": {
|
|
6429
|
+
"timestamp": {
|
|
6137
6430
|
"type": "integer",
|
|
6138
6431
|
"format": "int64",
|
|
6139
|
-
"example": "
|
|
6432
|
+
"example": "1640995200"
|
|
6140
6433
|
},
|
|
6141
|
-
"
|
|
6434
|
+
"trade_pnl": {
|
|
6142
6435
|
"type": "number",
|
|
6143
6436
|
"format": "double",
|
|
6144
|
-
"example": "
|
|
6437
|
+
"example": "12.0"
|
|
6145
6438
|
},
|
|
6146
|
-
"
|
|
6439
|
+
"trade_spot_pnl": {
|
|
6147
6440
|
"type": "number",
|
|
6148
6441
|
"format": "double",
|
|
6149
|
-
"example": "
|
|
6442
|
+
"example": "12.0"
|
|
6150
6443
|
},
|
|
6151
|
-
"
|
|
6444
|
+
"inflow": {
|
|
6152
6445
|
"type": "number",
|
|
6153
6446
|
"format": "double",
|
|
6154
|
-
"example": "
|
|
6155
|
-
}
|
|
6156
|
-
},
|
|
6157
|
-
"title": "OrderBookStats",
|
|
6158
|
-
"required": [
|
|
6159
|
-
"symbol",
|
|
6160
|
-
"last_trade_price",
|
|
6161
|
-
"daily_trades_count",
|
|
6162
|
-
"daily_base_token_volume",
|
|
6163
|
-
"daily_quote_token_volume",
|
|
6164
|
-
"daily_price_change"
|
|
6165
|
-
]
|
|
6166
|
-
},
|
|
6167
|
-
"OrderBooks": {
|
|
6168
|
-
"type": "object",
|
|
6169
|
-
"properties": {
|
|
6170
|
-
"code": {
|
|
6171
|
-
"type": "integer",
|
|
6172
|
-
"format": "int32",
|
|
6173
|
-
"example": "200"
|
|
6174
|
-
},
|
|
6175
|
-
"message": {
|
|
6176
|
-
"type": "string"
|
|
6177
|
-
},
|
|
6178
|
-
"order_books": {
|
|
6179
|
-
"type": "array",
|
|
6180
|
-
"items": {
|
|
6181
|
-
"$ref": "#/definitions/OrderBook"
|
|
6182
|
-
}
|
|
6183
|
-
}
|
|
6184
|
-
},
|
|
6185
|
-
"title": "OrderBooks",
|
|
6186
|
-
"required": [
|
|
6187
|
-
"code",
|
|
6188
|
-
"order_books"
|
|
6189
|
-
]
|
|
6190
|
-
},
|
|
6191
|
-
"Orders": {
|
|
6192
|
-
"type": "object",
|
|
6193
|
-
"properties": {
|
|
6194
|
-
"code": {
|
|
6195
|
-
"type": "integer",
|
|
6196
|
-
"format": "int32",
|
|
6197
|
-
"example": "200"
|
|
6198
|
-
},
|
|
6199
|
-
"message": {
|
|
6200
|
-
"type": "string"
|
|
6201
|
-
},
|
|
6202
|
-
"next_cursor": {
|
|
6203
|
-
"type": "string"
|
|
6204
|
-
},
|
|
6205
|
-
"orders": {
|
|
6206
|
-
"type": "array",
|
|
6207
|
-
"items": {
|
|
6208
|
-
"$ref": "#/definitions/Order"
|
|
6209
|
-
}
|
|
6210
|
-
}
|
|
6211
|
-
},
|
|
6212
|
-
"title": "Orders",
|
|
6213
|
-
"required": [
|
|
6214
|
-
"code",
|
|
6215
|
-
"orders"
|
|
6216
|
-
]
|
|
6217
|
-
},
|
|
6218
|
-
"PnLEntry": {
|
|
6219
|
-
"type": "object",
|
|
6220
|
-
"properties": {
|
|
6221
|
-
"timestamp": {
|
|
6222
|
-
"type": "integer",
|
|
6223
|
-
"format": "int64",
|
|
6224
|
-
"example": "1640995200"
|
|
6447
|
+
"example": "12.0"
|
|
6225
6448
|
},
|
|
6226
|
-
"
|
|
6449
|
+
"outflow": {
|
|
6227
6450
|
"type": "number",
|
|
6228
6451
|
"format": "double",
|
|
6229
6452
|
"example": "12.0"
|
|
6230
6453
|
},
|
|
6231
|
-
"
|
|
6454
|
+
"spot_outflow": {
|
|
6232
6455
|
"type": "number",
|
|
6233
6456
|
"format": "double",
|
|
6234
6457
|
"example": "12.0"
|
|
6235
6458
|
},
|
|
6236
|
-
"
|
|
6459
|
+
"spot_inflow": {
|
|
6237
6460
|
"type": "number",
|
|
6238
6461
|
"format": "double",
|
|
6239
6462
|
"example": "12.0"
|
|
@@ -6263,8 +6486,11 @@
|
|
|
6263
6486
|
"required": [
|
|
6264
6487
|
"timestamp",
|
|
6265
6488
|
"trade_pnl",
|
|
6489
|
+
"trade_spot_pnl",
|
|
6266
6490
|
"inflow",
|
|
6267
6491
|
"outflow",
|
|
6492
|
+
"spot_outflow",
|
|
6493
|
+
"spot_inflow",
|
|
6268
6494
|
"pool_pnl",
|
|
6269
6495
|
"pool_inflow",
|
|
6270
6496
|
"pool_outflow",
|
|
@@ -6281,7 +6507,7 @@
|
|
|
6281
6507
|
},
|
|
6282
6508
|
"market_id": {
|
|
6283
6509
|
"type": "integer",
|
|
6284
|
-
"format": "
|
|
6510
|
+
"format": "int16",
|
|
6285
6511
|
"example": "1"
|
|
6286
6512
|
},
|
|
6287
6513
|
"funding_id": {
|
|
@@ -6397,11 +6623,6 @@
|
|
|
6397
6623
|
"format": "double",
|
|
6398
6624
|
"example": "20.5000"
|
|
6399
6625
|
},
|
|
6400
|
-
"sharpe_ratio": {
|
|
6401
|
-
"type": "number",
|
|
6402
|
-
"format": "double",
|
|
6403
|
-
"example": "1.5"
|
|
6404
|
-
},
|
|
6405
6626
|
"daily_returns": {
|
|
6406
6627
|
"type": "array",
|
|
6407
6628
|
"items": {
|
|
@@ -6423,7 +6644,6 @@
|
|
|
6423
6644
|
"total_shares",
|
|
6424
6645
|
"operator_shares",
|
|
6425
6646
|
"annual_percentage_yield",
|
|
6426
|
-
"sharpe_ratio",
|
|
6427
6647
|
"daily_returns",
|
|
6428
6648
|
"share_prices"
|
|
6429
6649
|
]
|
|
@@ -6444,10 +6664,6 @@
|
|
|
6444
6664
|
"format": "int64",
|
|
6445
6665
|
"example": "3"
|
|
6446
6666
|
},
|
|
6447
|
-
"created_at": {
|
|
6448
|
-
"type": "integer",
|
|
6449
|
-
"format": "int64"
|
|
6450
|
-
},
|
|
6451
6667
|
"master_account_index": {
|
|
6452
6668
|
"type": "integer",
|
|
6453
6669
|
"format": "int64",
|
|
@@ -6470,11 +6686,6 @@
|
|
|
6470
6686
|
"format": "double",
|
|
6471
6687
|
"example": "20.5000"
|
|
6472
6688
|
},
|
|
6473
|
-
"sharpe_ratio": {
|
|
6474
|
-
"type": "number",
|
|
6475
|
-
"format": "double",
|
|
6476
|
-
"example": "1.5"
|
|
6477
|
-
},
|
|
6478
6689
|
"status": {
|
|
6479
6690
|
"type": "integer",
|
|
6480
6691
|
"format": "uint8",
|
|
@@ -6501,13 +6712,11 @@
|
|
|
6501
6712
|
"required": [
|
|
6502
6713
|
"code",
|
|
6503
6714
|
"account_index",
|
|
6504
|
-
"created_at",
|
|
6505
6715
|
"master_account_index",
|
|
6506
6716
|
"account_type",
|
|
6507
6717
|
"name",
|
|
6508
6718
|
"l1_address",
|
|
6509
6719
|
"annual_percentage_yield",
|
|
6510
|
-
"sharpe_ratio",
|
|
6511
6720
|
"status",
|
|
6512
6721
|
"operator_fee",
|
|
6513
6722
|
"total_asset_value",
|
|
@@ -6741,11 +6950,17 @@
|
|
|
6741
6950
|
"properties": {
|
|
6742
6951
|
"l1_address": {
|
|
6743
6952
|
"type": "string"
|
|
6953
|
+
},
|
|
6954
|
+
"do_l1_transfer": {
|
|
6955
|
+
"type": "boolean",
|
|
6956
|
+
"format": "boolean",
|
|
6957
|
+
"default": "false"
|
|
6744
6958
|
}
|
|
6745
6959
|
},
|
|
6746
6960
|
"title": "ReqDoFaucet",
|
|
6747
6961
|
"required": [
|
|
6748
|
-
"l1_address"
|
|
6962
|
+
"l1_address",
|
|
6963
|
+
"do_l1_transfer"
|
|
6749
6964
|
]
|
|
6750
6965
|
},
|
|
6751
6966
|
"ReqExportData": {
|
|
@@ -6761,7 +6976,7 @@
|
|
|
6761
6976
|
},
|
|
6762
6977
|
"market_id": {
|
|
6763
6978
|
"type": "integer",
|
|
6764
|
-
"format": "
|
|
6979
|
+
"format": "int16",
|
|
6765
6980
|
"default": "255"
|
|
6766
6981
|
},
|
|
6767
6982
|
"type": {
|
|
@@ -6826,7 +7041,7 @@
|
|
|
6826
7041
|
},
|
|
6827
7042
|
"market_id": {
|
|
6828
7043
|
"type": "integer",
|
|
6829
|
-
"format": "
|
|
7044
|
+
"format": "int16"
|
|
6830
7045
|
},
|
|
6831
7046
|
"auth": {
|
|
6832
7047
|
"type": "string",
|
|
@@ -6882,7 +7097,7 @@
|
|
|
6882
7097
|
},
|
|
6883
7098
|
"market_id": {
|
|
6884
7099
|
"type": "integer",
|
|
6885
|
-
"format": "
|
|
7100
|
+
"format": "int16",
|
|
6886
7101
|
"default": "255"
|
|
6887
7102
|
},
|
|
6888
7103
|
"ask_filter": {
|
|
@@ -7040,6 +7255,17 @@
|
|
|
7040
7255
|
},
|
|
7041
7256
|
"title": "ReqGetAccountTxs"
|
|
7042
7257
|
},
|
|
7258
|
+
"ReqGetAssetDetails": {
|
|
7259
|
+
"type": "object",
|
|
7260
|
+
"properties": {
|
|
7261
|
+
"asset_id": {
|
|
7262
|
+
"type": "integer",
|
|
7263
|
+
"format": "int16",
|
|
7264
|
+
"default": "0"
|
|
7265
|
+
}
|
|
7266
|
+
},
|
|
7267
|
+
"title": "ReqGetAssetDetails"
|
|
7268
|
+
},
|
|
7043
7269
|
"ReqGetBlock": {
|
|
7044
7270
|
"type": "object",
|
|
7045
7271
|
"properties": {
|
|
@@ -7116,7 +7342,7 @@
|
|
|
7116
7342
|
"properties": {
|
|
7117
7343
|
"market_id": {
|
|
7118
7344
|
"type": "integer",
|
|
7119
|
-
"format": "
|
|
7345
|
+
"format": "int16"
|
|
7120
7346
|
},
|
|
7121
7347
|
"resolution": {
|
|
7122
7348
|
"type": "string",
|
|
@@ -7219,7 +7445,7 @@
|
|
|
7219
7445
|
"properties": {
|
|
7220
7446
|
"market_id": {
|
|
7221
7447
|
"type": "integer",
|
|
7222
|
-
"format": "
|
|
7448
|
+
"format": "int16"
|
|
7223
7449
|
},
|
|
7224
7450
|
"resolution": {
|
|
7225
7451
|
"type": "string",
|
|
@@ -7347,7 +7573,7 @@
|
|
|
7347
7573
|
},
|
|
7348
7574
|
"market_id": {
|
|
7349
7575
|
"type": "integer",
|
|
7350
|
-
"format": "
|
|
7576
|
+
"format": "int16",
|
|
7351
7577
|
"default": "255"
|
|
7352
7578
|
},
|
|
7353
7579
|
"cursor": {
|
|
@@ -7389,8 +7615,17 @@
|
|
|
7389
7615
|
"properties": {
|
|
7390
7616
|
"market_id": {
|
|
7391
7617
|
"type": "integer",
|
|
7392
|
-
"format": "
|
|
7618
|
+
"format": "int16",
|
|
7393
7619
|
"default": "255"
|
|
7620
|
+
},
|
|
7621
|
+
"filter": {
|
|
7622
|
+
"type": "string",
|
|
7623
|
+
"enum": [
|
|
7624
|
+
"all",
|
|
7625
|
+
"spot",
|
|
7626
|
+
"perp"
|
|
7627
|
+
],
|
|
7628
|
+
"default": "all"
|
|
7394
7629
|
}
|
|
7395
7630
|
},
|
|
7396
7631
|
"title": "ReqGetOrderBookDetails"
|
|
@@ -7400,7 +7635,7 @@
|
|
|
7400
7635
|
"properties": {
|
|
7401
7636
|
"market_id": {
|
|
7402
7637
|
"type": "integer",
|
|
7403
|
-
"format": "
|
|
7638
|
+
"format": "int16"
|
|
7404
7639
|
},
|
|
7405
7640
|
"limit": {
|
|
7406
7641
|
"type": "integer",
|
|
@@ -7420,8 +7655,17 @@
|
|
|
7420
7655
|
"properties": {
|
|
7421
7656
|
"market_id": {
|
|
7422
7657
|
"type": "integer",
|
|
7423
|
-
"format": "
|
|
7658
|
+
"format": "int16",
|
|
7424
7659
|
"default": "255"
|
|
7660
|
+
},
|
|
7661
|
+
"filter": {
|
|
7662
|
+
"type": "string",
|
|
7663
|
+
"enum": [
|
|
7664
|
+
"all",
|
|
7665
|
+
"spot",
|
|
7666
|
+
"perp"
|
|
7667
|
+
],
|
|
7668
|
+
"default": "all"
|
|
7425
7669
|
}
|
|
7426
7670
|
},
|
|
7427
7671
|
"title": "ReqGetOrderBooks"
|
|
@@ -7438,7 +7682,7 @@
|
|
|
7438
7682
|
},
|
|
7439
7683
|
"market_id": {
|
|
7440
7684
|
"type": "integer",
|
|
7441
|
-
"format": "
|
|
7685
|
+
"format": "int16",
|
|
7442
7686
|
"default": "255"
|
|
7443
7687
|
},
|
|
7444
7688
|
"cursor": {
|
|
@@ -7568,7 +7812,7 @@
|
|
|
7568
7812
|
"properties": {
|
|
7569
7813
|
"market_id": {
|
|
7570
7814
|
"type": "integer",
|
|
7571
|
-
"format": "
|
|
7815
|
+
"format": "int16"
|
|
7572
7816
|
},
|
|
7573
7817
|
"limit": {
|
|
7574
7818
|
"type": "integer",
|
|
@@ -7625,7 +7869,7 @@
|
|
|
7625
7869
|
},
|
|
7626
7870
|
"market_id": {
|
|
7627
7871
|
"type": "integer",
|
|
7628
|
-
"format": "
|
|
7872
|
+
"format": "int16",
|
|
7629
7873
|
"default": "255"
|
|
7630
7874
|
},
|
|
7631
7875
|
"account_index": {
|
|
@@ -8256,7 +8500,7 @@
|
|
|
8256
8500
|
"properties": {
|
|
8257
8501
|
"market_id": {
|
|
8258
8502
|
"type": "integer",
|
|
8259
|
-
"format": "
|
|
8503
|
+
"format": "int16"
|
|
8260
8504
|
},
|
|
8261
8505
|
"collateral": {
|
|
8262
8506
|
"type": "string"
|
|
@@ -8350,6 +8594,230 @@
|
|
|
8350
8594
|
"order_expiry"
|
|
8351
8595
|
]
|
|
8352
8596
|
},
|
|
8597
|
+
"SpotMarketStats": {
|
|
8598
|
+
"type": "object",
|
|
8599
|
+
"properties": {
|
|
8600
|
+
"symbol": {
|
|
8601
|
+
"type": "string",
|
|
8602
|
+
"example": "ETH/USDC"
|
|
8603
|
+
},
|
|
8604
|
+
"market_id": {
|
|
8605
|
+
"type": "integer",
|
|
8606
|
+
"format": "int16",
|
|
8607
|
+
"example": "1"
|
|
8608
|
+
},
|
|
8609
|
+
"index_price": {
|
|
8610
|
+
"type": "string",
|
|
8611
|
+
"example": "3024.66"
|
|
8612
|
+
},
|
|
8613
|
+
"mid_price": {
|
|
8614
|
+
"type": "string",
|
|
8615
|
+
"example": "3024.66"
|
|
8616
|
+
},
|
|
8617
|
+
"last_trade_price": {
|
|
8618
|
+
"type": "string",
|
|
8619
|
+
"example": "3024.66"
|
|
8620
|
+
},
|
|
8621
|
+
"daily_base_token_volume": {
|
|
8622
|
+
"type": "number",
|
|
8623
|
+
"format": "double",
|
|
8624
|
+
"example": "235.25"
|
|
8625
|
+
},
|
|
8626
|
+
"daily_quote_token_volume": {
|
|
8627
|
+
"type": "number",
|
|
8628
|
+
"format": "double",
|
|
8629
|
+
"example": "93566.25"
|
|
8630
|
+
},
|
|
8631
|
+
"daily_price_low": {
|
|
8632
|
+
"type": "number",
|
|
8633
|
+
"format": "double",
|
|
8634
|
+
"example": "3014.66"
|
|
8635
|
+
},
|
|
8636
|
+
"daily_price_high": {
|
|
8637
|
+
"type": "number",
|
|
8638
|
+
"format": "double",
|
|
8639
|
+
"example": "3024.66"
|
|
8640
|
+
},
|
|
8641
|
+
"daily_price_change": {
|
|
8642
|
+
"type": "number",
|
|
8643
|
+
"format": "double",
|
|
8644
|
+
"example": "3.66"
|
|
8645
|
+
}
|
|
8646
|
+
},
|
|
8647
|
+
"title": "SpotMarketStats",
|
|
8648
|
+
"required": [
|
|
8649
|
+
"symbol",
|
|
8650
|
+
"market_id",
|
|
8651
|
+
"index_price",
|
|
8652
|
+
"mid_price",
|
|
8653
|
+
"last_trade_price",
|
|
8654
|
+
"daily_base_token_volume",
|
|
8655
|
+
"daily_quote_token_volume",
|
|
8656
|
+
"daily_price_low",
|
|
8657
|
+
"daily_price_high",
|
|
8658
|
+
"daily_price_change"
|
|
8659
|
+
]
|
|
8660
|
+
},
|
|
8661
|
+
"SpotOrderBookDetail": {
|
|
8662
|
+
"type": "object",
|
|
8663
|
+
"properties": {
|
|
8664
|
+
"symbol": {
|
|
8665
|
+
"type": "string",
|
|
8666
|
+
"example": "ETH"
|
|
8667
|
+
},
|
|
8668
|
+
"market_id": {
|
|
8669
|
+
"type": "integer",
|
|
8670
|
+
"format": "int16",
|
|
8671
|
+
"example": "1"
|
|
8672
|
+
},
|
|
8673
|
+
"market_type": {
|
|
8674
|
+
"type": "string",
|
|
8675
|
+
"example": "perp",
|
|
8676
|
+
"enum": [
|
|
8677
|
+
"perp",
|
|
8678
|
+
"spot"
|
|
8679
|
+
]
|
|
8680
|
+
},
|
|
8681
|
+
"base_asset_id": {
|
|
8682
|
+
"type": "integer",
|
|
8683
|
+
"format": "int16",
|
|
8684
|
+
"example": "1"
|
|
8685
|
+
},
|
|
8686
|
+
"quote_asset_id": {
|
|
8687
|
+
"type": "integer",
|
|
8688
|
+
"format": "int16",
|
|
8689
|
+
"example": "2"
|
|
8690
|
+
},
|
|
8691
|
+
"status": {
|
|
8692
|
+
"type": "string",
|
|
8693
|
+
"example": "active",
|
|
8694
|
+
"enum": [
|
|
8695
|
+
"inactive",
|
|
8696
|
+
"active"
|
|
8697
|
+
]
|
|
8698
|
+
},
|
|
8699
|
+
"taker_fee": {
|
|
8700
|
+
"type": "string",
|
|
8701
|
+
"example": "0.0001"
|
|
8702
|
+
},
|
|
8703
|
+
"maker_fee": {
|
|
8704
|
+
"type": "string",
|
|
8705
|
+
"example": "0.0000"
|
|
8706
|
+
},
|
|
8707
|
+
"liquidation_fee": {
|
|
8708
|
+
"type": "string",
|
|
8709
|
+
"example": "0.01"
|
|
8710
|
+
},
|
|
8711
|
+
"min_base_amount": {
|
|
8712
|
+
"type": "string",
|
|
8713
|
+
"example": "0.01"
|
|
8714
|
+
},
|
|
8715
|
+
"min_quote_amount": {
|
|
8716
|
+
"type": "string",
|
|
8717
|
+
"example": "0.1"
|
|
8718
|
+
},
|
|
8719
|
+
"order_quote_limit": {
|
|
8720
|
+
"type": "string",
|
|
8721
|
+
"example": "235.25"
|
|
8722
|
+
},
|
|
8723
|
+
"supported_size_decimals": {
|
|
8724
|
+
"type": "integer",
|
|
8725
|
+
"format": "uint8",
|
|
8726
|
+
"example": "4"
|
|
8727
|
+
},
|
|
8728
|
+
"supported_price_decimals": {
|
|
8729
|
+
"type": "integer",
|
|
8730
|
+
"format": "uint8",
|
|
8731
|
+
"example": "4"
|
|
8732
|
+
},
|
|
8733
|
+
"supported_quote_decimals": {
|
|
8734
|
+
"type": "integer",
|
|
8735
|
+
"format": "uint8",
|
|
8736
|
+
"example": "4"
|
|
8737
|
+
},
|
|
8738
|
+
"size_decimals": {
|
|
8739
|
+
"type": "integer",
|
|
8740
|
+
"format": "uint8",
|
|
8741
|
+
"example": "4"
|
|
8742
|
+
},
|
|
8743
|
+
"price_decimals": {
|
|
8744
|
+
"type": "integer",
|
|
8745
|
+
"format": "uint8",
|
|
8746
|
+
"example": "4"
|
|
8747
|
+
},
|
|
8748
|
+
"last_trade_price": {
|
|
8749
|
+
"type": "number",
|
|
8750
|
+
"format": "double",
|
|
8751
|
+
"example": "3024.66"
|
|
8752
|
+
},
|
|
8753
|
+
"daily_trades_count": {
|
|
8754
|
+
"type": "integer",
|
|
8755
|
+
"format": "int64",
|
|
8756
|
+
"example": "68"
|
|
8757
|
+
},
|
|
8758
|
+
"daily_base_token_volume": {
|
|
8759
|
+
"type": "number",
|
|
8760
|
+
"format": "double",
|
|
8761
|
+
"example": "235.25"
|
|
8762
|
+
},
|
|
8763
|
+
"daily_quote_token_volume": {
|
|
8764
|
+
"type": "number",
|
|
8765
|
+
"format": "double",
|
|
8766
|
+
"example": "93566.25"
|
|
8767
|
+
},
|
|
8768
|
+
"daily_price_low": {
|
|
8769
|
+
"type": "number",
|
|
8770
|
+
"format": "double",
|
|
8771
|
+
"example": "3014.66"
|
|
8772
|
+
},
|
|
8773
|
+
"daily_price_high": {
|
|
8774
|
+
"type": "number",
|
|
8775
|
+
"format": "double",
|
|
8776
|
+
"example": "3024.66"
|
|
8777
|
+
},
|
|
8778
|
+
"daily_price_change": {
|
|
8779
|
+
"type": "number",
|
|
8780
|
+
"format": "double",
|
|
8781
|
+
"example": "3.66"
|
|
8782
|
+
},
|
|
8783
|
+
"daily_chart": {
|
|
8784
|
+
"type": "object",
|
|
8785
|
+
"example": "{1640995200:3024.66}",
|
|
8786
|
+
"additionalProperties": {
|
|
8787
|
+
"type": "number",
|
|
8788
|
+
"format": "double"
|
|
8789
|
+
}
|
|
8790
|
+
}
|
|
8791
|
+
},
|
|
8792
|
+
"title": "SpotOrderBookDetail",
|
|
8793
|
+
"required": [
|
|
8794
|
+
"symbol",
|
|
8795
|
+
"market_id",
|
|
8796
|
+
"market_type",
|
|
8797
|
+
"base_asset_id",
|
|
8798
|
+
"quote_asset_id",
|
|
8799
|
+
"status",
|
|
8800
|
+
"taker_fee",
|
|
8801
|
+
"maker_fee",
|
|
8802
|
+
"liquidation_fee",
|
|
8803
|
+
"min_base_amount",
|
|
8804
|
+
"min_quote_amount",
|
|
8805
|
+
"order_quote_limit",
|
|
8806
|
+
"supported_size_decimals",
|
|
8807
|
+
"supported_price_decimals",
|
|
8808
|
+
"supported_quote_decimals",
|
|
8809
|
+
"size_decimals",
|
|
8810
|
+
"price_decimals",
|
|
8811
|
+
"last_trade_price",
|
|
8812
|
+
"daily_trades_count",
|
|
8813
|
+
"daily_base_token_volume",
|
|
8814
|
+
"daily_quote_token_volume",
|
|
8815
|
+
"daily_price_low",
|
|
8816
|
+
"daily_price_high",
|
|
8817
|
+
"daily_price_change",
|
|
8818
|
+
"daily_chart"
|
|
8819
|
+
]
|
|
8820
|
+
},
|
|
8353
8821
|
"Status": {
|
|
8354
8822
|
"type": "object",
|
|
8355
8823
|
"properties": {
|
|
@@ -8451,7 +8919,7 @@
|
|
|
8451
8919
|
},
|
|
8452
8920
|
"market_id": {
|
|
8453
8921
|
"type": "integer",
|
|
8454
|
-
"format": "
|
|
8922
|
+
"format": "int16",
|
|
8455
8923
|
"example": "1"
|
|
8456
8924
|
},
|
|
8457
8925
|
"size": {
|
|
@@ -8669,6 +9137,11 @@
|
|
|
8669
9137
|
"id": {
|
|
8670
9138
|
"type": "string"
|
|
8671
9139
|
},
|
|
9140
|
+
"asset_id": {
|
|
9141
|
+
"type": "integer",
|
|
9142
|
+
"format": "int16",
|
|
9143
|
+
"example": "1"
|
|
9144
|
+
},
|
|
8672
9145
|
"amount": {
|
|
8673
9146
|
"type": "string",
|
|
8674
9147
|
"example": "0.1"
|
|
@@ -8686,7 +9159,8 @@
|
|
|
8686
9159
|
"L2BurnSharesInflow",
|
|
8687
9160
|
"L2BurnSharesOutflow",
|
|
8688
9161
|
"L2MintSharesInflow",
|
|
8689
|
-
"L2MintSharesOutflow"
|
|
9162
|
+
"L2MintSharesOutflow",
|
|
9163
|
+
"L2SelfTransfer"
|
|
8690
9164
|
]
|
|
8691
9165
|
},
|
|
8692
9166
|
"from_l1_address": {
|
|
@@ -8707,6 +9181,20 @@
|
|
|
8707
9181
|
"format": "int64",
|
|
8708
9182
|
"example": "1"
|
|
8709
9183
|
},
|
|
9184
|
+
"from_route": {
|
|
9185
|
+
"type": "string",
|
|
9186
|
+
"enum": [
|
|
9187
|
+
"spot",
|
|
9188
|
+
"perps"
|
|
9189
|
+
]
|
|
9190
|
+
},
|
|
9191
|
+
"to_route": {
|
|
9192
|
+
"type": "string",
|
|
9193
|
+
"enum": [
|
|
9194
|
+
"spot",
|
|
9195
|
+
"perps"
|
|
9196
|
+
]
|
|
9197
|
+
},
|
|
8710
9198
|
"tx_hash": {
|
|
8711
9199
|
"type": "string",
|
|
8712
9200
|
"example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
|
|
@@ -8715,6 +9203,7 @@
|
|
|
8715
9203
|
"title": "TransferHistoryItem",
|
|
8716
9204
|
"required": [
|
|
8717
9205
|
"id",
|
|
9206
|
+
"asset_id",
|
|
8718
9207
|
"amount",
|
|
8719
9208
|
"timestamp",
|
|
8720
9209
|
"type",
|
|
@@ -8722,6 +9211,8 @@
|
|
|
8722
9211
|
"to_l1_address",
|
|
8723
9212
|
"from_account_index",
|
|
8724
9213
|
"to_account_index",
|
|
9214
|
+
"from_route",
|
|
9215
|
+
"to_route",
|
|
8725
9216
|
"tx_hash"
|
|
8726
9217
|
]
|
|
8727
9218
|
},
|
|
@@ -8799,11 +9290,6 @@
|
|
|
8799
9290
|
"parent_hash": {
|
|
8800
9291
|
"type": "string",
|
|
8801
9292
|
"example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
|
|
8802
|
-
},
|
|
8803
|
-
"api_key_index": {
|
|
8804
|
-
"type": "integer",
|
|
8805
|
-
"format": "uint8",
|
|
8806
|
-
"example": "0"
|
|
8807
9293
|
}
|
|
8808
9294
|
},
|
|
8809
9295
|
"title": "Tx",
|
|
@@ -8822,8 +9308,7 @@
|
|
|
8822
9308
|
"queued_at",
|
|
8823
9309
|
"executed_at",
|
|
8824
9310
|
"sequence_index",
|
|
8825
|
-
"parent_hash"
|
|
8826
|
-
"api_key_index"
|
|
9311
|
+
"parent_hash"
|
|
8827
9312
|
]
|
|
8828
9313
|
},
|
|
8829
9314
|
"TxHash": {
|
|
@@ -8949,6 +9434,11 @@
|
|
|
8949
9434
|
"id": {
|
|
8950
9435
|
"type": "string"
|
|
8951
9436
|
},
|
|
9437
|
+
"asset_id": {
|
|
9438
|
+
"type": "integer",
|
|
9439
|
+
"format": "int16",
|
|
9440
|
+
"example": "1"
|
|
9441
|
+
},
|
|
8952
9442
|
"amount": {
|
|
8953
9443
|
"type": "string",
|
|
8954
9444
|
"example": "0.1"
|
|
@@ -8983,6 +9473,7 @@
|
|
|
8983
9473
|
"title": "WithdrawHistoryItem",
|
|
8984
9474
|
"required": [
|
|
8985
9475
|
"id",
|
|
9476
|
+
"asset_id",
|
|
8986
9477
|
"amount",
|
|
8987
9478
|
"timestamp",
|
|
8988
9479
|
"status",
|