zklighter-perps 1.0.3 → 1.0.4
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/apis/TransactionApi.ts +34 -6
- package/models/AccountMarketStats.ts +18 -12
- package/models/AccountPnL.ts +7 -5
- package/models/AccountPosition.ts +33 -22
- package/models/AccountStats.ts +15 -10
- package/models/Block.ts +40 -27
- package/models/Blocks.ts +7 -5
- package/models/Candlestick.ts +21 -14
- package/models/Candlesticks.ts +7 -5
- package/models/ContractAddress.ts +6 -4
- package/models/CurrentHeight.ts +3 -2
- package/models/DetailedAccount.ts +11 -8
- package/models/DetailedAccounts.ts +7 -5
- package/models/EnrichedTx.ts +9 -6
- package/models/ExchangeStats.ts +13 -9
- package/models/Funding.ts +12 -8
- package/models/Fundings.ts +7 -5
- package/models/L1ProviderInfo.ts +12 -8
- package/models/Layer1BasicInfo.ts +24 -17
- package/models/Layer2BasicInfo.ts +9 -6
- package/models/MainAccount.ts +9 -6
- package/models/MainAccounts.ts +7 -5
- package/models/MarketInfo.ts +33 -22
- package/models/MarketSig.ts +12 -8
- package/models/NextNonce.ts +3 -2
- package/models/Order.ts +48 -32
- package/models/OrderBook.ts +30 -20
- package/models/OrderBookDepth.ts +11 -8
- package/models/OrderBookDetail.ts +54 -36
- package/models/OrderBookDetails.ts +4 -3
- package/models/OrderBookOrders.ts +14 -10
- package/models/OrderBookStats.ts +18 -12
- package/models/OrderBooks.ts +4 -3
- package/models/Orders.ts +4 -3
- package/models/Permission.ts +3 -2
- package/models/PnLEntry.ts +6 -4
- package/models/PriceLevel.ts +6 -4
- package/models/ReqDoFaucet.ts +3 -2
- package/models/ReqGetAccount.ts +6 -4
- package/models/ReqGetAccountActiveOrders.ts +9 -6
- package/models/ReqGetAccountByL1Address.ts +3 -2
- package/models/ReqGetAccountInactiveOrders.ts +12 -8
- package/models/ReqGetAccountOrders.ts +9 -6
- package/models/ReqGetAccountPnL.ts +18 -12
- package/models/ReqGetBlock.ts +6 -4
- package/models/ReqGetBlockTxs.ts +6 -4
- package/models/ReqGetByAccount.ts +6 -4
- package/models/ReqGetCandlesticks.ts +15 -10
- package/models/ReqGetFundings.ts +15 -10
- package/models/ReqGetL1Tx.ts +3 -2
- package/models/ReqGetMarketSig.ts +9 -6
- package/models/ReqGetNextNonce.ts +6 -4
- package/models/ReqGetOrderBookDetails.ts +3 -2
- package/models/ReqGetOrderBookOrders.ts +6 -4
- package/models/ReqGetOrderBooks.ts +3 -2
- package/models/ReqGetPermission.ts +9 -6
- package/models/ReqGetRangeWithCursor.ts +3 -2
- package/models/ReqGetRangeWithIndex.ts +3 -2
- package/models/ReqGetRecentTrades.ts +6 -4
- package/models/ReqGetRollbacks.ts +9 -6
- package/models/ReqGetSubAccount.ts +9 -6
- package/models/ReqGetTrades.ts +12 -8
- package/models/ReqGetTx.ts +6 -4
- package/models/ReqSearch.ts +3 -2
- package/models/ResultCode.ts +3 -2
- package/models/Rollback.ts +12 -8
- package/models/Rollbacks.ts +7 -5
- package/models/Search.ts +3 -2
- package/models/SignBody.ts +3 -2
- package/models/SimpleOrder.ts +18 -12
- package/models/Status.ts +6 -4
- package/models/SubAccount.ts +24 -16
- package/models/SubAccounts.ts +13 -9
- package/models/Trade.ts +36 -24
- package/models/Trades.ts +4 -3
- package/models/Tx.ts +42 -28
- package/models/TxHash.ts +3 -2
- package/models/Txs.ts +4 -3
- package/models/ValidatorInfo.ts +6 -4
- package/openapi.json +536 -80
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -1532,7 +1532,15 @@
|
|
|
1532
1532
|
"example": "1276.0"
|
|
1533
1533
|
}
|
|
1534
1534
|
},
|
|
1535
|
-
"title": "AccountMarketStats"
|
|
1535
|
+
"title": "AccountMarketStats",
|
|
1536
|
+
"required": [
|
|
1537
|
+
"market_id",
|
|
1538
|
+
"daily_trades_count",
|
|
1539
|
+
"daily_base_token_volume",
|
|
1540
|
+
"daily_quote_token_volume",
|
|
1541
|
+
"open_position_base",
|
|
1542
|
+
"open_position_quote"
|
|
1543
|
+
]
|
|
1536
1544
|
},
|
|
1537
1545
|
"AccountPnL": {
|
|
1538
1546
|
"type": "object",
|
|
@@ -1556,7 +1564,11 @@
|
|
|
1556
1564
|
}
|
|
1557
1565
|
}
|
|
1558
1566
|
},
|
|
1559
|
-
"title": "AccountPnL"
|
|
1567
|
+
"title": "AccountPnL",
|
|
1568
|
+
"required": [
|
|
1569
|
+
"resolution",
|
|
1570
|
+
"pnl"
|
|
1571
|
+
]
|
|
1560
1572
|
},
|
|
1561
1573
|
"AccountPosition": {
|
|
1562
1574
|
"type": "object",
|
|
@@ -1608,7 +1620,20 @@
|
|
|
1608
1620
|
"example": "2.000000"
|
|
1609
1621
|
}
|
|
1610
1622
|
},
|
|
1611
|
-
"title": "AccountPosition"
|
|
1623
|
+
"title": "AccountPosition",
|
|
1624
|
+
"required": [
|
|
1625
|
+
"market_id",
|
|
1626
|
+
"name",
|
|
1627
|
+
"symbol",
|
|
1628
|
+
"sign",
|
|
1629
|
+
"position",
|
|
1630
|
+
"ask_order_size",
|
|
1631
|
+
"bid_order_size",
|
|
1632
|
+
"avg_entry_price",
|
|
1633
|
+
"position_value",
|
|
1634
|
+
"unrealized_pnl",
|
|
1635
|
+
"realized_pnl"
|
|
1636
|
+
]
|
|
1612
1637
|
},
|
|
1613
1638
|
"AccountStats": {
|
|
1614
1639
|
"type": "object",
|
|
@@ -1634,7 +1659,14 @@
|
|
|
1634
1659
|
"example": "199955"
|
|
1635
1660
|
}
|
|
1636
1661
|
},
|
|
1637
|
-
"title": "AccountStats"
|
|
1662
|
+
"title": "AccountStats",
|
|
1663
|
+
"required": [
|
|
1664
|
+
"portfolio_value",
|
|
1665
|
+
"leverage",
|
|
1666
|
+
"free_collateral",
|
|
1667
|
+
"margin_usage",
|
|
1668
|
+
"buying_power"
|
|
1669
|
+
]
|
|
1638
1670
|
},
|
|
1639
1671
|
"Block": {
|
|
1640
1672
|
"type": "object",
|
|
@@ -1689,7 +1721,22 @@
|
|
|
1689
1721
|
"format": "uin16"
|
|
1690
1722
|
}
|
|
1691
1723
|
},
|
|
1692
|
-
"title": "Block"
|
|
1724
|
+
"title": "Block",
|
|
1725
|
+
"required": [
|
|
1726
|
+
"commitment",
|
|
1727
|
+
"height",
|
|
1728
|
+
"state_root",
|
|
1729
|
+
"priority_operations",
|
|
1730
|
+
"on_chain_l2_operations",
|
|
1731
|
+
"pending_on_chain_operations_pub_data",
|
|
1732
|
+
"committed_tx_hash",
|
|
1733
|
+
"committed_at",
|
|
1734
|
+
"verified_tx_hash",
|
|
1735
|
+
"verified_at",
|
|
1736
|
+
"txs",
|
|
1737
|
+
"status",
|
|
1738
|
+
"size"
|
|
1739
|
+
]
|
|
1693
1740
|
},
|
|
1694
1741
|
"Blocks": {
|
|
1695
1742
|
"type": "object",
|
|
@@ -1713,7 +1760,11 @@
|
|
|
1713
1760
|
}
|
|
1714
1761
|
}
|
|
1715
1762
|
},
|
|
1716
|
-
"title": "Blocks"
|
|
1763
|
+
"title": "Blocks",
|
|
1764
|
+
"required": [
|
|
1765
|
+
"total",
|
|
1766
|
+
"blocks"
|
|
1767
|
+
]
|
|
1717
1768
|
},
|
|
1718
1769
|
"Candlestick": {
|
|
1719
1770
|
"type": "object",
|
|
@@ -1754,7 +1805,16 @@
|
|
|
1754
1805
|
"example": "93566.25"
|
|
1755
1806
|
}
|
|
1756
1807
|
},
|
|
1757
|
-
"title": "Candlestick"
|
|
1808
|
+
"title": "Candlestick",
|
|
1809
|
+
"required": [
|
|
1810
|
+
"timestamp",
|
|
1811
|
+
"open",
|
|
1812
|
+
"high",
|
|
1813
|
+
"low",
|
|
1814
|
+
"close",
|
|
1815
|
+
"volume0",
|
|
1816
|
+
"volume1"
|
|
1817
|
+
]
|
|
1758
1818
|
},
|
|
1759
1819
|
"Candlesticks": {
|
|
1760
1820
|
"type": "object",
|
|
@@ -1778,7 +1838,11 @@
|
|
|
1778
1838
|
}
|
|
1779
1839
|
}
|
|
1780
1840
|
},
|
|
1781
|
-
"title": "Candlesticks"
|
|
1841
|
+
"title": "Candlesticks",
|
|
1842
|
+
"required": [
|
|
1843
|
+
"resolution",
|
|
1844
|
+
"candlesticks"
|
|
1845
|
+
]
|
|
1782
1846
|
},
|
|
1783
1847
|
"ContractAddress": {
|
|
1784
1848
|
"type": "object",
|
|
@@ -1792,7 +1856,11 @@
|
|
|
1792
1856
|
"example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
|
|
1793
1857
|
}
|
|
1794
1858
|
},
|
|
1795
|
-
"title": "ContractAddress"
|
|
1859
|
+
"title": "ContractAddress",
|
|
1860
|
+
"required": [
|
|
1861
|
+
"name",
|
|
1862
|
+
"address"
|
|
1863
|
+
]
|
|
1796
1864
|
},
|
|
1797
1865
|
"CurrentHeight": {
|
|
1798
1866
|
"type": "object",
|
|
@@ -1810,7 +1878,10 @@
|
|
|
1810
1878
|
"format": "int64"
|
|
1811
1879
|
}
|
|
1812
1880
|
},
|
|
1813
|
-
"title": "CurrentHeight"
|
|
1881
|
+
"title": "CurrentHeight",
|
|
1882
|
+
"required": [
|
|
1883
|
+
"height"
|
|
1884
|
+
]
|
|
1814
1885
|
},
|
|
1815
1886
|
"Cursor": {
|
|
1816
1887
|
"type": "object",
|
|
@@ -1886,7 +1957,12 @@
|
|
|
1886
1957
|
}
|
|
1887
1958
|
}
|
|
1888
1959
|
},
|
|
1889
|
-
"title": "DetailedAccount"
|
|
1960
|
+
"title": "DetailedAccount",
|
|
1961
|
+
"required": [
|
|
1962
|
+
"positions",
|
|
1963
|
+
"total_asset_value",
|
|
1964
|
+
"market_stats"
|
|
1965
|
+
]
|
|
1890
1966
|
},
|
|
1891
1967
|
"DetailedAccounts": {
|
|
1892
1968
|
"type": "object",
|
|
@@ -1911,7 +1987,11 @@
|
|
|
1911
1987
|
}
|
|
1912
1988
|
}
|
|
1913
1989
|
},
|
|
1914
|
-
"title": "DetailedAccounts"
|
|
1990
|
+
"title": "DetailedAccounts",
|
|
1991
|
+
"required": [
|
|
1992
|
+
"total",
|
|
1993
|
+
"accounts"
|
|
1994
|
+
]
|
|
1915
1995
|
},
|
|
1916
1996
|
"EnrichedTx": {
|
|
1917
1997
|
"type": "object",
|
|
@@ -2008,7 +2088,12 @@
|
|
|
2008
2088
|
"example": "1640995200"
|
|
2009
2089
|
}
|
|
2010
2090
|
},
|
|
2011
|
-
"title": "EnrichedTx"
|
|
2091
|
+
"title": "EnrichedTx",
|
|
2092
|
+
"required": [
|
|
2093
|
+
"committed_at",
|
|
2094
|
+
"verified_at",
|
|
2095
|
+
"executed_at"
|
|
2096
|
+
]
|
|
2012
2097
|
},
|
|
2013
2098
|
"ExchangeStats": {
|
|
2014
2099
|
"type": "object",
|
|
@@ -2044,7 +2129,13 @@
|
|
|
2044
2129
|
"example": "68"
|
|
2045
2130
|
}
|
|
2046
2131
|
},
|
|
2047
|
-
"title": "ExchangeStats"
|
|
2132
|
+
"title": "ExchangeStats",
|
|
2133
|
+
"required": [
|
|
2134
|
+
"total",
|
|
2135
|
+
"order_book_stats",
|
|
2136
|
+
"daily_usd_volume",
|
|
2137
|
+
"daily_trades_count"
|
|
2138
|
+
]
|
|
2048
2139
|
},
|
|
2049
2140
|
"Funding": {
|
|
2050
2141
|
"type": "object",
|
|
@@ -2067,7 +2158,13 @@
|
|
|
2067
2158
|
"example": "long"
|
|
2068
2159
|
}
|
|
2069
2160
|
},
|
|
2070
|
-
"title": "Funding"
|
|
2161
|
+
"title": "Funding",
|
|
2162
|
+
"required": [
|
|
2163
|
+
"timestamp",
|
|
2164
|
+
"value",
|
|
2165
|
+
"rate",
|
|
2166
|
+
"direction"
|
|
2167
|
+
]
|
|
2071
2168
|
},
|
|
2072
2169
|
"Fundings": {
|
|
2073
2170
|
"type": "object",
|
|
@@ -2091,7 +2188,11 @@
|
|
|
2091
2188
|
}
|
|
2092
2189
|
}
|
|
2093
2190
|
},
|
|
2094
|
-
"title": "Fundings"
|
|
2191
|
+
"title": "Fundings",
|
|
2192
|
+
"required": [
|
|
2193
|
+
"resolution",
|
|
2194
|
+
"fundings"
|
|
2195
|
+
]
|
|
2095
2196
|
},
|
|
2096
2197
|
"L1ProviderInfo": {
|
|
2097
2198
|
"type": "object",
|
|
@@ -2115,7 +2216,13 @@
|
|
|
2115
2216
|
"type": "string"
|
|
2116
2217
|
}
|
|
2117
2218
|
},
|
|
2118
|
-
"title": "L1ProviderInfo"
|
|
2219
|
+
"title": "L1ProviderInfo",
|
|
2220
|
+
"required": [
|
|
2221
|
+
"chainId",
|
|
2222
|
+
"networkId",
|
|
2223
|
+
"latestBlockNumber",
|
|
2224
|
+
"NetworkRpc"
|
|
2225
|
+
]
|
|
2119
2226
|
},
|
|
2120
2227
|
"Layer1BasicInfo": {
|
|
2121
2228
|
"type": "object",
|
|
@@ -2167,7 +2274,16 @@
|
|
|
2167
2274
|
"example": "45434"
|
|
2168
2275
|
}
|
|
2169
2276
|
},
|
|
2170
|
-
"title": "Layer1BasicInfo"
|
|
2277
|
+
"title": "Layer1BasicInfo",
|
|
2278
|
+
"required": [
|
|
2279
|
+
"l1_providers",
|
|
2280
|
+
"l1_providers_health",
|
|
2281
|
+
"validator_Info",
|
|
2282
|
+
"contract_addresses",
|
|
2283
|
+
"latest_l1_generic_block",
|
|
2284
|
+
"latest_l1_governance_block",
|
|
2285
|
+
"latest_l1_desert_block"
|
|
2286
|
+
]
|
|
2171
2287
|
},
|
|
2172
2288
|
"Layer2BasicInfo": {
|
|
2173
2289
|
"type": "object",
|
|
@@ -2196,7 +2312,12 @@
|
|
|
2196
2312
|
"example": "75434"
|
|
2197
2313
|
}
|
|
2198
2314
|
},
|
|
2199
|
-
"title": "Layer2BasicInfo"
|
|
2315
|
+
"title": "Layer2BasicInfo",
|
|
2316
|
+
"required": [
|
|
2317
|
+
"block_committed",
|
|
2318
|
+
"block_verified",
|
|
2319
|
+
"total_transaction_count"
|
|
2320
|
+
]
|
|
2200
2321
|
},
|
|
2201
2322
|
"MainAccount": {
|
|
2202
2323
|
"type": "object",
|
|
@@ -2224,7 +2345,12 @@
|
|
|
2224
2345
|
"example": "1"
|
|
2225
2346
|
}
|
|
2226
2347
|
},
|
|
2227
|
-
"title": "MainAccount"
|
|
2348
|
+
"title": "MainAccount",
|
|
2349
|
+
"required": [
|
|
2350
|
+
"index",
|
|
2351
|
+
"l1_address",
|
|
2352
|
+
"status"
|
|
2353
|
+
]
|
|
2228
2354
|
},
|
|
2229
2355
|
"MainAccounts": {
|
|
2230
2356
|
"type": "object",
|
|
@@ -2249,7 +2375,11 @@
|
|
|
2249
2375
|
}
|
|
2250
2376
|
}
|
|
2251
2377
|
},
|
|
2252
|
-
"title": "MainAccounts"
|
|
2378
|
+
"title": "MainAccounts",
|
|
2379
|
+
"required": [
|
|
2380
|
+
"total",
|
|
2381
|
+
"accounts"
|
|
2382
|
+
]
|
|
2253
2383
|
},
|
|
2254
2384
|
"MarketInfo": {
|
|
2255
2385
|
"type": "object",
|
|
@@ -2306,7 +2436,20 @@
|
|
|
2306
2436
|
"example": "3.66"
|
|
2307
2437
|
}
|
|
2308
2438
|
},
|
|
2309
|
-
"title": "MarketInfo"
|
|
2439
|
+
"title": "MarketInfo",
|
|
2440
|
+
"required": [
|
|
2441
|
+
"market_id",
|
|
2442
|
+
"index_price",
|
|
2443
|
+
"mark_price",
|
|
2444
|
+
"last_trade_price",
|
|
2445
|
+
"funding_rate",
|
|
2446
|
+
"funding_timestamp",
|
|
2447
|
+
"daily_base_token_volume",
|
|
2448
|
+
"daily_quote_token_volume",
|
|
2449
|
+
"daily_price_low",
|
|
2450
|
+
"daily_price_high",
|
|
2451
|
+
"daily_price_change"
|
|
2452
|
+
]
|
|
2310
2453
|
},
|
|
2311
2454
|
"MarketSig": {
|
|
2312
2455
|
"type": "object",
|
|
@@ -2339,7 +2482,13 @@
|
|
|
2339
2482
|
"example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
|
|
2340
2483
|
}
|
|
2341
2484
|
},
|
|
2342
|
-
"title": "MarketSig"
|
|
2485
|
+
"title": "MarketSig",
|
|
2486
|
+
"required": [
|
|
2487
|
+
"can_be_filled",
|
|
2488
|
+
"is_ask",
|
|
2489
|
+
"quote_amount",
|
|
2490
|
+
"signature"
|
|
2491
|
+
]
|
|
2343
2492
|
},
|
|
2344
2493
|
"NextNonce": {
|
|
2345
2494
|
"type": "object",
|
|
@@ -2358,7 +2507,10 @@
|
|
|
2358
2507
|
"example": "722"
|
|
2359
2508
|
}
|
|
2360
2509
|
},
|
|
2361
|
-
"title": "NextNonce"
|
|
2510
|
+
"title": "NextNonce",
|
|
2511
|
+
"required": [
|
|
2512
|
+
"nonce"
|
|
2513
|
+
]
|
|
2362
2514
|
},
|
|
2363
2515
|
"Order": {
|
|
2364
2516
|
"type": "object",
|
|
@@ -2451,7 +2603,26 @@
|
|
|
2451
2603
|
"example": "1640995200"
|
|
2452
2604
|
}
|
|
2453
2605
|
},
|
|
2454
|
-
"title": "Order"
|
|
2606
|
+
"title": "Order",
|
|
2607
|
+
"required": [
|
|
2608
|
+
"market_index",
|
|
2609
|
+
"-",
|
|
2610
|
+
"owner_account_index",
|
|
2611
|
+
"initial_base_amount",
|
|
2612
|
+
"remaining_base_amount",
|
|
2613
|
+
"filled_base_amount",
|
|
2614
|
+
"filled_quote_amount",
|
|
2615
|
+
"price",
|
|
2616
|
+
"base_size",
|
|
2617
|
+
"base_price",
|
|
2618
|
+
"nonce",
|
|
2619
|
+
"is_ask",
|
|
2620
|
+
"side",
|
|
2621
|
+
"type",
|
|
2622
|
+
"status",
|
|
2623
|
+
"block_height",
|
|
2624
|
+
"timestamp"
|
|
2625
|
+
]
|
|
2455
2626
|
},
|
|
2456
2627
|
"OrderBook": {
|
|
2457
2628
|
"type": "object",
|
|
@@ -2505,7 +2676,19 @@
|
|
|
2505
2676
|
"example": "4"
|
|
2506
2677
|
}
|
|
2507
2678
|
},
|
|
2508
|
-
"title": "OrderBook"
|
|
2679
|
+
"title": "OrderBook",
|
|
2680
|
+
"required": [
|
|
2681
|
+
"symbol",
|
|
2682
|
+
"market_id",
|
|
2683
|
+
"status",
|
|
2684
|
+
"taker_fee",
|
|
2685
|
+
"maker_fee",
|
|
2686
|
+
"min_base_amount",
|
|
2687
|
+
"min_quote_amount",
|
|
2688
|
+
"supported_size_decimals",
|
|
2689
|
+
"supported_price_decimals",
|
|
2690
|
+
"supported_quote_decimals"
|
|
2691
|
+
]
|
|
2509
2692
|
},
|
|
2510
2693
|
"OrderBookDepth": {
|
|
2511
2694
|
"type": "object",
|
|
@@ -2536,7 +2719,12 @@
|
|
|
2536
2719
|
"example": "0"
|
|
2537
2720
|
}
|
|
2538
2721
|
},
|
|
2539
|
-
"title": "OrderBookDepth"
|
|
2722
|
+
"title": "OrderBookDepth",
|
|
2723
|
+
"required": [
|
|
2724
|
+
"asks",
|
|
2725
|
+
"bids",
|
|
2726
|
+
"offset"
|
|
2727
|
+
]
|
|
2540
2728
|
},
|
|
2541
2729
|
"OrderBookDetail": {
|
|
2542
2730
|
"type": "object",
|
|
@@ -2683,7 +2871,27 @@
|
|
|
2683
2871
|
}
|
|
2684
2872
|
}
|
|
2685
2873
|
},
|
|
2686
|
-
"title": "OrderBookDetail"
|
|
2874
|
+
"title": "OrderBookDetail",
|
|
2875
|
+
"required": [
|
|
2876
|
+
"decimal",
|
|
2877
|
+
"price_tick",
|
|
2878
|
+
"quote_multiplier",
|
|
2879
|
+
"initial_margin",
|
|
2880
|
+
"maintenance_margin",
|
|
2881
|
+
"closeoute_margin",
|
|
2882
|
+
"ask_nonce",
|
|
2883
|
+
"bid_nonce",
|
|
2884
|
+
"last_trade_price",
|
|
2885
|
+
"daily_trades_count",
|
|
2886
|
+
"daily_base_token_volume",
|
|
2887
|
+
"daily_quote_token_volume",
|
|
2888
|
+
"daily_price_low",
|
|
2889
|
+
"daily_price_high",
|
|
2890
|
+
"daily_price_change",
|
|
2891
|
+
"open_position_base",
|
|
2892
|
+
"open_position_quote",
|
|
2893
|
+
"daily_chart"
|
|
2894
|
+
]
|
|
2687
2895
|
},
|
|
2688
2896
|
"OrderBookDetails": {
|
|
2689
2897
|
"type": "object",
|
|
@@ -2703,7 +2911,10 @@
|
|
|
2703
2911
|
}
|
|
2704
2912
|
}
|
|
2705
2913
|
},
|
|
2706
|
-
"title": "OrderBookDetails"
|
|
2914
|
+
"title": "OrderBookDetails",
|
|
2915
|
+
"required": [
|
|
2916
|
+
"order_book_details"
|
|
2917
|
+
]
|
|
2707
2918
|
},
|
|
2708
2919
|
"OrderBookOrders": {
|
|
2709
2920
|
"type": "object",
|
|
@@ -2739,7 +2950,13 @@
|
|
|
2739
2950
|
}
|
|
2740
2951
|
}
|
|
2741
2952
|
},
|
|
2742
|
-
"title": "OrderBookOrders"
|
|
2953
|
+
"title": "OrderBookOrders",
|
|
2954
|
+
"required": [
|
|
2955
|
+
"total_asks",
|
|
2956
|
+
"asks",
|
|
2957
|
+
"total_bids",
|
|
2958
|
+
"bids"
|
|
2959
|
+
]
|
|
2743
2960
|
},
|
|
2744
2961
|
"OrderBookStats": {
|
|
2745
2962
|
"type": "object",
|
|
@@ -2774,7 +2991,15 @@
|
|
|
2774
2991
|
"example": "3.66"
|
|
2775
2992
|
}
|
|
2776
2993
|
},
|
|
2777
|
-
"title": "OrderBookStats"
|
|
2994
|
+
"title": "OrderBookStats",
|
|
2995
|
+
"required": [
|
|
2996
|
+
"symbol",
|
|
2997
|
+
"last_trade_price",
|
|
2998
|
+
"daily_trades_count",
|
|
2999
|
+
"daily_base_token_volume",
|
|
3000
|
+
"daily_quote_token_volume",
|
|
3001
|
+
"daily_price_change"
|
|
3002
|
+
]
|
|
2778
3003
|
},
|
|
2779
3004
|
"OrderBooks": {
|
|
2780
3005
|
"type": "object",
|
|
@@ -2794,7 +3019,10 @@
|
|
|
2794
3019
|
}
|
|
2795
3020
|
}
|
|
2796
3021
|
},
|
|
2797
|
-
"title": "OrderBooks"
|
|
3022
|
+
"title": "OrderBooks",
|
|
3023
|
+
"required": [
|
|
3024
|
+
"order_books"
|
|
3025
|
+
]
|
|
2798
3026
|
},
|
|
2799
3027
|
"Orders": {
|
|
2800
3028
|
"type": "object",
|
|
@@ -2817,7 +3045,10 @@
|
|
|
2817
3045
|
}
|
|
2818
3046
|
}
|
|
2819
3047
|
},
|
|
2820
|
-
"title": "Orders"
|
|
3048
|
+
"title": "Orders",
|
|
3049
|
+
"required": [
|
|
3050
|
+
"orders"
|
|
3051
|
+
]
|
|
2821
3052
|
},
|
|
2822
3053
|
"Permission": {
|
|
2823
3054
|
"type": "object",
|
|
@@ -2836,7 +3067,10 @@
|
|
|
2836
3067
|
"example": "true"
|
|
2837
3068
|
}
|
|
2838
3069
|
},
|
|
2839
|
-
"title": "Permission"
|
|
3070
|
+
"title": "Permission",
|
|
3071
|
+
"required": [
|
|
3072
|
+
"permit"
|
|
3073
|
+
]
|
|
2840
3074
|
},
|
|
2841
3075
|
"PnLEntry": {
|
|
2842
3076
|
"type": "object",
|
|
@@ -2852,7 +3086,11 @@
|
|
|
2852
3086
|
"example": "12.0"
|
|
2853
3087
|
}
|
|
2854
3088
|
},
|
|
2855
|
-
"title": "PnLEntry"
|
|
3089
|
+
"title": "PnLEntry",
|
|
3090
|
+
"required": [
|
|
3091
|
+
"timestamp",
|
|
3092
|
+
"value"
|
|
3093
|
+
]
|
|
2856
3094
|
},
|
|
2857
3095
|
"PriceLevel": {
|
|
2858
3096
|
"type": "object",
|
|
@@ -2866,7 +3104,11 @@
|
|
|
2866
3104
|
"example": "0.1"
|
|
2867
3105
|
}
|
|
2868
3106
|
},
|
|
2869
|
-
"title": "PriceLevel"
|
|
3107
|
+
"title": "PriceLevel",
|
|
3108
|
+
"required": [
|
|
3109
|
+
"price",
|
|
3110
|
+
"size"
|
|
3111
|
+
]
|
|
2870
3112
|
},
|
|
2871
3113
|
"ReqDoFaucet": {
|
|
2872
3114
|
"type": "object",
|
|
@@ -2875,7 +3117,10 @@
|
|
|
2875
3117
|
"type": "string"
|
|
2876
3118
|
}
|
|
2877
3119
|
},
|
|
2878
|
-
"title": "ReqDoFaucet"
|
|
3120
|
+
"title": "ReqDoFaucet",
|
|
3121
|
+
"required": [
|
|
3122
|
+
"l1_address"
|
|
3123
|
+
]
|
|
2879
3124
|
},
|
|
2880
3125
|
"ReqGetAccount": {
|
|
2881
3126
|
"type": "object",
|
|
@@ -2891,7 +3136,11 @@
|
|
|
2891
3136
|
"type": "string"
|
|
2892
3137
|
}
|
|
2893
3138
|
},
|
|
2894
|
-
"title": "ReqGetAccount"
|
|
3139
|
+
"title": "ReqGetAccount",
|
|
3140
|
+
"required": [
|
|
3141
|
+
"by",
|
|
3142
|
+
"value"
|
|
3143
|
+
]
|
|
2895
3144
|
},
|
|
2896
3145
|
"ReqGetAccountActiveOrders": {
|
|
2897
3146
|
"type": "object",
|
|
@@ -2911,7 +3160,12 @@
|
|
|
2911
3160
|
"format": "uin16"
|
|
2912
3161
|
}
|
|
2913
3162
|
},
|
|
2914
|
-
"title": "ReqGetAccountActiveOrders"
|
|
3163
|
+
"title": "ReqGetAccountActiveOrders",
|
|
3164
|
+
"required": [
|
|
3165
|
+
"account_index",
|
|
3166
|
+
"sub_account_index",
|
|
3167
|
+
"market_id"
|
|
3168
|
+
]
|
|
2915
3169
|
},
|
|
2916
3170
|
"ReqGetAccountByL1Address": {
|
|
2917
3171
|
"type": "object",
|
|
@@ -2920,7 +3174,10 @@
|
|
|
2920
3174
|
"type": "string"
|
|
2921
3175
|
}
|
|
2922
3176
|
},
|
|
2923
|
-
"title": "ReqGetAccountByL1Address"
|
|
3177
|
+
"title": "ReqGetAccountByL1Address",
|
|
3178
|
+
"required": [
|
|
3179
|
+
"l1_address"
|
|
3180
|
+
]
|
|
2924
3181
|
},
|
|
2925
3182
|
"ReqGetAccountInactiveOrders": {
|
|
2926
3183
|
"type": "object",
|
|
@@ -2956,7 +3213,13 @@
|
|
|
2956
3213
|
"minimum": 1
|
|
2957
3214
|
}
|
|
2958
3215
|
},
|
|
2959
|
-
"title": "ReqGetAccountInactiveOrders"
|
|
3216
|
+
"title": "ReqGetAccountInactiveOrders",
|
|
3217
|
+
"required": [
|
|
3218
|
+
"account_index",
|
|
3219
|
+
"sub_account_index",
|
|
3220
|
+
"filter",
|
|
3221
|
+
"limit"
|
|
3222
|
+
]
|
|
2960
3223
|
},
|
|
2961
3224
|
"ReqGetAccountOrders": {
|
|
2962
3225
|
"type": "object",
|
|
@@ -2979,7 +3242,12 @@
|
|
|
2979
3242
|
"minimum": 1
|
|
2980
3243
|
}
|
|
2981
3244
|
},
|
|
2982
|
-
"title": "ReqGetAccountOrders"
|
|
3245
|
+
"title": "ReqGetAccountOrders",
|
|
3246
|
+
"required": [
|
|
3247
|
+
"account_index",
|
|
3248
|
+
"market_id",
|
|
3249
|
+
"limit"
|
|
3250
|
+
]
|
|
2983
3251
|
},
|
|
2984
3252
|
"ReqGetAccountPendingTxs": {
|
|
2985
3253
|
"type": "object",
|
|
@@ -3041,7 +3309,15 @@
|
|
|
3041
3309
|
"format": "int64"
|
|
3042
3310
|
}
|
|
3043
3311
|
},
|
|
3044
|
-
"title": "ReqGetAccountPnL"
|
|
3312
|
+
"title": "ReqGetAccountPnL",
|
|
3313
|
+
"required": [
|
|
3314
|
+
"by",
|
|
3315
|
+
"value",
|
|
3316
|
+
"resolution",
|
|
3317
|
+
"start_timestamp",
|
|
3318
|
+
"end_timestamp",
|
|
3319
|
+
"count_back"
|
|
3320
|
+
]
|
|
3045
3321
|
},
|
|
3046
3322
|
"ReqGetAccountTxs": {
|
|
3047
3323
|
"type": "object",
|
|
@@ -3090,7 +3366,11 @@
|
|
|
3090
3366
|
"type": "string"
|
|
3091
3367
|
}
|
|
3092
3368
|
},
|
|
3093
|
-
"title": "ReqGetBlock"
|
|
3369
|
+
"title": "ReqGetBlock",
|
|
3370
|
+
"required": [
|
|
3371
|
+
"by",
|
|
3372
|
+
"value"
|
|
3373
|
+
]
|
|
3094
3374
|
},
|
|
3095
3375
|
"ReqGetBlockTxs": {
|
|
3096
3376
|
"type": "object",
|
|
@@ -3106,7 +3386,11 @@
|
|
|
3106
3386
|
"type": "string"
|
|
3107
3387
|
}
|
|
3108
3388
|
},
|
|
3109
|
-
"title": "ReqGetBlockTxs"
|
|
3389
|
+
"title": "ReqGetBlockTxs",
|
|
3390
|
+
"required": [
|
|
3391
|
+
"by",
|
|
3392
|
+
"value"
|
|
3393
|
+
]
|
|
3110
3394
|
},
|
|
3111
3395
|
"ReqGetByAccount": {
|
|
3112
3396
|
"type": "object",
|
|
@@ -3122,7 +3406,11 @@
|
|
|
3122
3406
|
"type": "string"
|
|
3123
3407
|
}
|
|
3124
3408
|
},
|
|
3125
|
-
"title": "ReqGetByAccount"
|
|
3409
|
+
"title": "ReqGetByAccount",
|
|
3410
|
+
"required": [
|
|
3411
|
+
"by",
|
|
3412
|
+
"value"
|
|
3413
|
+
]
|
|
3126
3414
|
},
|
|
3127
3415
|
"ReqGetCandlesticks": {
|
|
3128
3416
|
"type": "object",
|
|
@@ -3155,7 +3443,14 @@
|
|
|
3155
3443
|
"format": "int64"
|
|
3156
3444
|
}
|
|
3157
3445
|
},
|
|
3158
|
-
"title": "ReqGetCandlesticks"
|
|
3446
|
+
"title": "ReqGetCandlesticks",
|
|
3447
|
+
"required": [
|
|
3448
|
+
"market_id",
|
|
3449
|
+
"resolution",
|
|
3450
|
+
"start_timestamp",
|
|
3451
|
+
"end_timestamp",
|
|
3452
|
+
"count_back"
|
|
3453
|
+
]
|
|
3159
3454
|
},
|
|
3160
3455
|
"ReqGetExchangeStats": {
|
|
3161
3456
|
"type": "object",
|
|
@@ -3187,7 +3482,14 @@
|
|
|
3187
3482
|
"format": "int64"
|
|
3188
3483
|
}
|
|
3189
3484
|
},
|
|
3190
|
-
"title": "ReqGetFundings"
|
|
3485
|
+
"title": "ReqGetFundings",
|
|
3486
|
+
"required": [
|
|
3487
|
+
"market_id",
|
|
3488
|
+
"resolution",
|
|
3489
|
+
"start_timestamp",
|
|
3490
|
+
"end_timestamp",
|
|
3491
|
+
"count_back"
|
|
3492
|
+
]
|
|
3191
3493
|
},
|
|
3192
3494
|
"ReqGetL1Tx": {
|
|
3193
3495
|
"type": "object",
|
|
@@ -3196,7 +3498,10 @@
|
|
|
3196
3498
|
"type": "string"
|
|
3197
3499
|
}
|
|
3198
3500
|
},
|
|
3199
|
-
"title": "ReqGetL1Tx"
|
|
3501
|
+
"title": "ReqGetL1Tx",
|
|
3502
|
+
"required": [
|
|
3503
|
+
"hash"
|
|
3504
|
+
]
|
|
3200
3505
|
},
|
|
3201
3506
|
"ReqGetMarketSig": {
|
|
3202
3507
|
"type": "object",
|
|
@@ -3214,7 +3519,12 @@
|
|
|
3214
3519
|
"format": "int64"
|
|
3215
3520
|
}
|
|
3216
3521
|
},
|
|
3217
|
-
"title": "ReqGetMarketSig"
|
|
3522
|
+
"title": "ReqGetMarketSig",
|
|
3523
|
+
"required": [
|
|
3524
|
+
"market_id",
|
|
3525
|
+
"is_ask",
|
|
3526
|
+
"base_amount"
|
|
3527
|
+
]
|
|
3218
3528
|
},
|
|
3219
3529
|
"ReqGetNextNonce": {
|
|
3220
3530
|
"type": "object",
|
|
@@ -3228,7 +3538,11 @@
|
|
|
3228
3538
|
"format": "uint8"
|
|
3229
3539
|
}
|
|
3230
3540
|
},
|
|
3231
|
-
"title": "ReqGetNextNonce"
|
|
3541
|
+
"title": "ReqGetNextNonce",
|
|
3542
|
+
"required": [
|
|
3543
|
+
"account_index",
|
|
3544
|
+
"sub_account_index"
|
|
3545
|
+
]
|
|
3232
3546
|
},
|
|
3233
3547
|
"ReqGetOrderBookDetails": {
|
|
3234
3548
|
"type": "object",
|
|
@@ -3245,7 +3559,10 @@
|
|
|
3245
3559
|
"format": "uin16"
|
|
3246
3560
|
}
|
|
3247
3561
|
},
|
|
3248
|
-
"title": "ReqGetOrderBookDetails"
|
|
3562
|
+
"title": "ReqGetOrderBookDetails",
|
|
3563
|
+
"required": [
|
|
3564
|
+
"filter"
|
|
3565
|
+
]
|
|
3249
3566
|
},
|
|
3250
3567
|
"ReqGetOrderBookOrders": {
|
|
3251
3568
|
"type": "object",
|
|
@@ -3261,7 +3578,11 @@
|
|
|
3261
3578
|
"minimum": 1
|
|
3262
3579
|
}
|
|
3263
3580
|
},
|
|
3264
|
-
"title": "ReqGetOrderBookOrders"
|
|
3581
|
+
"title": "ReqGetOrderBookOrders",
|
|
3582
|
+
"required": [
|
|
3583
|
+
"market_id",
|
|
3584
|
+
"limit"
|
|
3585
|
+
]
|
|
3265
3586
|
},
|
|
3266
3587
|
"ReqGetOrderBooks": {
|
|
3267
3588
|
"type": "object",
|
|
@@ -3278,7 +3599,10 @@
|
|
|
3278
3599
|
"format": "uin16"
|
|
3279
3600
|
}
|
|
3280
3601
|
},
|
|
3281
|
-
"title": "ReqGetOrderBooks"
|
|
3602
|
+
"title": "ReqGetOrderBooks",
|
|
3603
|
+
"required": [
|
|
3604
|
+
"filter"
|
|
3605
|
+
]
|
|
3282
3606
|
},
|
|
3283
3607
|
"ReqGetPermission": {
|
|
3284
3608
|
"type": "object",
|
|
@@ -3298,7 +3622,12 @@
|
|
|
3298
3622
|
"format": "uint8"
|
|
3299
3623
|
}
|
|
3300
3624
|
},
|
|
3301
|
-
"title": "ReqGetPermission"
|
|
3625
|
+
"title": "ReqGetPermission",
|
|
3626
|
+
"required": [
|
|
3627
|
+
"by",
|
|
3628
|
+
"value",
|
|
3629
|
+
"tx_type"
|
|
3630
|
+
]
|
|
3302
3631
|
},
|
|
3303
3632
|
"ReqGetRangeWithCursor": {
|
|
3304
3633
|
"type": "object",
|
|
@@ -3313,7 +3642,10 @@
|
|
|
3313
3642
|
"minimum": 1
|
|
3314
3643
|
}
|
|
3315
3644
|
},
|
|
3316
|
-
"title": "ReqGetRangeWithCursor"
|
|
3645
|
+
"title": "ReqGetRangeWithCursor",
|
|
3646
|
+
"required": [
|
|
3647
|
+
"limit"
|
|
3648
|
+
]
|
|
3317
3649
|
},
|
|
3318
3650
|
"ReqGetRangeWithIndex": {
|
|
3319
3651
|
"type": "object",
|
|
@@ -3329,7 +3661,10 @@
|
|
|
3329
3661
|
"minimum": 1
|
|
3330
3662
|
}
|
|
3331
3663
|
},
|
|
3332
|
-
"title": "ReqGetRangeWithIndex"
|
|
3664
|
+
"title": "ReqGetRangeWithIndex",
|
|
3665
|
+
"required": [
|
|
3666
|
+
"limit"
|
|
3667
|
+
]
|
|
3333
3668
|
},
|
|
3334
3669
|
"ReqGetRangeWithIndexSortable": {
|
|
3335
3670
|
"type": "object",
|
|
@@ -3369,7 +3704,11 @@
|
|
|
3369
3704
|
"minimum": 1
|
|
3370
3705
|
}
|
|
3371
3706
|
},
|
|
3372
|
-
"title": "ReqGetRecentTrades"
|
|
3707
|
+
"title": "ReqGetRecentTrades",
|
|
3708
|
+
"required": [
|
|
3709
|
+
"market_id",
|
|
3710
|
+
"limit"
|
|
3711
|
+
]
|
|
3373
3712
|
},
|
|
3374
3713
|
"ReqGetRollbacks": {
|
|
3375
3714
|
"type": "object",
|
|
@@ -3390,7 +3729,12 @@
|
|
|
3390
3729
|
"minimum": 1
|
|
3391
3730
|
}
|
|
3392
3731
|
},
|
|
3393
|
-
"title": "ReqGetRollbacks"
|
|
3732
|
+
"title": "ReqGetRollbacks",
|
|
3733
|
+
"required": [
|
|
3734
|
+
"from_block_height",
|
|
3735
|
+
"offset",
|
|
3736
|
+
"limit"
|
|
3737
|
+
]
|
|
3394
3738
|
},
|
|
3395
3739
|
"ReqGetSubAccount": {
|
|
3396
3740
|
"type": "object",
|
|
@@ -3412,7 +3756,12 @@
|
|
|
3412
3756
|
"description": " NilSubAccountIndex"
|
|
3413
3757
|
}
|
|
3414
3758
|
},
|
|
3415
|
-
"title": "ReqGetSubAccount"
|
|
3759
|
+
"title": "ReqGetSubAccount",
|
|
3760
|
+
"required": [
|
|
3761
|
+
"by",
|
|
3762
|
+
"value",
|
|
3763
|
+
"sub_account_index"
|
|
3764
|
+
]
|
|
3416
3765
|
},
|
|
3417
3766
|
"ReqGetTrades": {
|
|
3418
3767
|
"type": "object",
|
|
@@ -3444,7 +3793,13 @@
|
|
|
3444
3793
|
"minimum": 1
|
|
3445
3794
|
}
|
|
3446
3795
|
},
|
|
3447
|
-
"title": "ReqGetTrades"
|
|
3796
|
+
"title": "ReqGetTrades",
|
|
3797
|
+
"required": [
|
|
3798
|
+
"market_id",
|
|
3799
|
+
"by",
|
|
3800
|
+
"from",
|
|
3801
|
+
"limit"
|
|
3802
|
+
]
|
|
3448
3803
|
},
|
|
3449
3804
|
"ReqGetTx": {
|
|
3450
3805
|
"type": "object",
|
|
@@ -3460,7 +3815,11 @@
|
|
|
3460
3815
|
"type": "string"
|
|
3461
3816
|
}
|
|
3462
3817
|
},
|
|
3463
|
-
"title": "ReqGetTx"
|
|
3818
|
+
"title": "ReqGetTx",
|
|
3819
|
+
"required": [
|
|
3820
|
+
"by",
|
|
3821
|
+
"value"
|
|
3822
|
+
]
|
|
3464
3823
|
},
|
|
3465
3824
|
"ReqSearch": {
|
|
3466
3825
|
"type": "object",
|
|
@@ -3469,7 +3828,10 @@
|
|
|
3469
3828
|
"type": "string"
|
|
3470
3829
|
}
|
|
3471
3830
|
},
|
|
3472
|
-
"title": "ReqSearch"
|
|
3831
|
+
"title": "ReqSearch",
|
|
3832
|
+
"required": [
|
|
3833
|
+
"keyword"
|
|
3834
|
+
]
|
|
3473
3835
|
},
|
|
3474
3836
|
"ReqSendTx": {
|
|
3475
3837
|
"type": "object",
|
|
@@ -3482,7 +3844,11 @@
|
|
|
3482
3844
|
"type": "string"
|
|
3483
3845
|
}
|
|
3484
3846
|
},
|
|
3485
|
-
"title": "ReqSendTx"
|
|
3847
|
+
"title": "ReqSendTx",
|
|
3848
|
+
"required": [
|
|
3849
|
+
"tx_type",
|
|
3850
|
+
"tx_info"
|
|
3851
|
+
]
|
|
3486
3852
|
},
|
|
3487
3853
|
"ResultCode": {
|
|
3488
3854
|
"type": "object",
|
|
@@ -3496,7 +3862,10 @@
|
|
|
3496
3862
|
"type": "string"
|
|
3497
3863
|
}
|
|
3498
3864
|
},
|
|
3499
|
-
"title": "ResultCode"
|
|
3865
|
+
"title": "ResultCode",
|
|
3866
|
+
"required": [
|
|
3867
|
+
"code"
|
|
3868
|
+
]
|
|
3500
3869
|
},
|
|
3501
3870
|
"Rollback": {
|
|
3502
3871
|
"type": "object",
|
|
@@ -3521,7 +3890,13 @@
|
|
|
3521
3890
|
"example": "1640995200"
|
|
3522
3891
|
}
|
|
3523
3892
|
},
|
|
3524
|
-
"title": "Rollback"
|
|
3893
|
+
"title": "Rollback",
|
|
3894
|
+
"required": [
|
|
3895
|
+
"from_block_height",
|
|
3896
|
+
"from_tx_hash",
|
|
3897
|
+
"id",
|
|
3898
|
+
"created_at"
|
|
3899
|
+
]
|
|
3525
3900
|
},
|
|
3526
3901
|
"Rollbacks": {
|
|
3527
3902
|
"type": "object",
|
|
@@ -3546,7 +3921,11 @@
|
|
|
3546
3921
|
}
|
|
3547
3922
|
}
|
|
3548
3923
|
},
|
|
3549
|
-
"title": "Rollbacks"
|
|
3924
|
+
"title": "Rollbacks",
|
|
3925
|
+
"required": [
|
|
3926
|
+
"total",
|
|
3927
|
+
"rollbacks"
|
|
3928
|
+
]
|
|
3550
3929
|
},
|
|
3551
3930
|
"Search": {
|
|
3552
3931
|
"type": "object",
|
|
@@ -3565,7 +3944,10 @@
|
|
|
3565
3944
|
"example": "1"
|
|
3566
3945
|
}
|
|
3567
3946
|
},
|
|
3568
|
-
"title": "Search"
|
|
3947
|
+
"title": "Search",
|
|
3948
|
+
"required": [
|
|
3949
|
+
"data_type"
|
|
3950
|
+
]
|
|
3569
3951
|
},
|
|
3570
3952
|
"SignBody": {
|
|
3571
3953
|
"type": "object",
|
|
@@ -3583,7 +3965,10 @@
|
|
|
3583
3965
|
"example": "success"
|
|
3584
3966
|
}
|
|
3585
3967
|
},
|
|
3586
|
-
"title": "SignBody"
|
|
3968
|
+
"title": "SignBody",
|
|
3969
|
+
"required": [
|
|
3970
|
+
"sign_body"
|
|
3971
|
+
]
|
|
3587
3972
|
},
|
|
3588
3973
|
"SimpleOrder": {
|
|
3589
3974
|
"type": "object",
|
|
@@ -3616,7 +4001,15 @@
|
|
|
3616
4001
|
"example": "234"
|
|
3617
4002
|
}
|
|
3618
4003
|
},
|
|
3619
|
-
"title": "SimpleOrder"
|
|
4004
|
+
"title": "SimpleOrder",
|
|
4005
|
+
"required": [
|
|
4006
|
+
"owner_account_index",
|
|
4007
|
+
"owner_sub_account_index",
|
|
4008
|
+
"initial_base_amount",
|
|
4009
|
+
"remaining_base_amount",
|
|
4010
|
+
"price",
|
|
4011
|
+
"nonce"
|
|
4012
|
+
]
|
|
3620
4013
|
},
|
|
3621
4014
|
"Status": {
|
|
3622
4015
|
"type": "object",
|
|
@@ -3632,7 +4025,11 @@
|
|
|
3632
4025
|
"example": "1"
|
|
3633
4026
|
}
|
|
3634
4027
|
},
|
|
3635
|
-
"title": "Status"
|
|
4028
|
+
"title": "Status",
|
|
4029
|
+
"required": [
|
|
4030
|
+
"status",
|
|
4031
|
+
"network_id"
|
|
4032
|
+
]
|
|
3636
4033
|
},
|
|
3637
4034
|
"SubAccount": {
|
|
3638
4035
|
"type": "object",
|
|
@@ -3675,7 +4072,17 @@
|
|
|
3675
4072
|
"example": "1"
|
|
3676
4073
|
}
|
|
3677
4074
|
},
|
|
3678
|
-
"title": "SubAccount"
|
|
4075
|
+
"title": "SubAccount",
|
|
4076
|
+
"required": [
|
|
4077
|
+
"index",
|
|
4078
|
+
"sub_account_index",
|
|
4079
|
+
"l1_address",
|
|
4080
|
+
"pk",
|
|
4081
|
+
"nonce",
|
|
4082
|
+
"status",
|
|
4083
|
+
"collateral",
|
|
4084
|
+
"collateral_type"
|
|
4085
|
+
]
|
|
3679
4086
|
},
|
|
3680
4087
|
"SubAccounts": {
|
|
3681
4088
|
"type": "object",
|
|
@@ -3710,7 +4117,13 @@
|
|
|
3710
4117
|
}
|
|
3711
4118
|
}
|
|
3712
4119
|
},
|
|
3713
|
-
"title": "SubAccounts"
|
|
4120
|
+
"title": "SubAccounts",
|
|
4121
|
+
"required": [
|
|
4122
|
+
"index",
|
|
4123
|
+
"l1_address",
|
|
4124
|
+
"status",
|
|
4125
|
+
"sub_accounts"
|
|
4126
|
+
]
|
|
3714
4127
|
},
|
|
3715
4128
|
"Trade": {
|
|
3716
4129
|
"type": "object",
|
|
@@ -3765,7 +4178,7 @@
|
|
|
3765
4178
|
"block_height": {
|
|
3766
4179
|
"type": "integer",
|
|
3767
4180
|
"format": "int64",
|
|
3768
|
-
"example": "
|
|
4181
|
+
"example": "45434"
|
|
3769
4182
|
},
|
|
3770
4183
|
"timestamp": {
|
|
3771
4184
|
"type": "integer",
|
|
@@ -3773,7 +4186,21 @@
|
|
|
3773
4186
|
"example": "1640995200"
|
|
3774
4187
|
}
|
|
3775
4188
|
},
|
|
3776
|
-
"title": "Trade"
|
|
4189
|
+
"title": "Trade",
|
|
4190
|
+
"required": [
|
|
4191
|
+
"trade_id",
|
|
4192
|
+
"tx_hash",
|
|
4193
|
+
"market_id",
|
|
4194
|
+
"size",
|
|
4195
|
+
"price",
|
|
4196
|
+
"ask_id",
|
|
4197
|
+
"bid_id",
|
|
4198
|
+
"maker_account_id",
|
|
4199
|
+
"taker_account_id",
|
|
4200
|
+
"is_maker_ask",
|
|
4201
|
+
"block_height",
|
|
4202
|
+
"timestamp"
|
|
4203
|
+
]
|
|
3777
4204
|
},
|
|
3778
4205
|
"Trades": {
|
|
3779
4206
|
"type": "object",
|
|
@@ -3793,7 +4220,10 @@
|
|
|
3793
4220
|
}
|
|
3794
4221
|
}
|
|
3795
4222
|
},
|
|
3796
|
-
"title": "Trades"
|
|
4223
|
+
"title": "Trades",
|
|
4224
|
+
"required": [
|
|
4225
|
+
"trades"
|
|
4226
|
+
]
|
|
3797
4227
|
},
|
|
3798
4228
|
"Tx": {
|
|
3799
4229
|
"type": "object",
|
|
@@ -3867,7 +4297,23 @@
|
|
|
3867
4297
|
"example": "8761"
|
|
3868
4298
|
}
|
|
3869
4299
|
},
|
|
3870
|
-
"title": "Tx"
|
|
4300
|
+
"title": "Tx",
|
|
4301
|
+
"required": [
|
|
4302
|
+
"hash",
|
|
4303
|
+
"type",
|
|
4304
|
+
"info",
|
|
4305
|
+
"event_info",
|
|
4306
|
+
"status",
|
|
4307
|
+
"transaction_index",
|
|
4308
|
+
"l1_address",
|
|
4309
|
+
"account_index",
|
|
4310
|
+
"nonce",
|
|
4311
|
+
"expire_at",
|
|
4312
|
+
"block_height",
|
|
4313
|
+
"created_at",
|
|
4314
|
+
"verify_at",
|
|
4315
|
+
"sequence_index"
|
|
4316
|
+
]
|
|
3871
4317
|
},
|
|
3872
4318
|
"TxHash": {
|
|
3873
4319
|
"type": "object",
|
|
@@ -3885,7 +4331,10 @@
|
|
|
3885
4331
|
"example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
|
|
3886
4332
|
}
|
|
3887
4333
|
},
|
|
3888
|
-
"title": "TxHash"
|
|
4334
|
+
"title": "TxHash",
|
|
4335
|
+
"required": [
|
|
4336
|
+
"tx_hash"
|
|
4337
|
+
]
|
|
3889
4338
|
},
|
|
3890
4339
|
"Txs": {
|
|
3891
4340
|
"type": "object",
|
|
@@ -3905,7 +4354,10 @@
|
|
|
3905
4354
|
}
|
|
3906
4355
|
}
|
|
3907
4356
|
},
|
|
3908
|
-
"title": "Txs"
|
|
4357
|
+
"title": "Txs",
|
|
4358
|
+
"required": [
|
|
4359
|
+
"txs"
|
|
4360
|
+
]
|
|
3909
4361
|
},
|
|
3910
4362
|
"ValidatorInfo": {
|
|
3911
4363
|
"type": "object",
|
|
@@ -3920,7 +4372,11 @@
|
|
|
3920
4372
|
"example": "true"
|
|
3921
4373
|
}
|
|
3922
4374
|
},
|
|
3923
|
-
"title": "ValidatorInfo"
|
|
4375
|
+
"title": "ValidatorInfo",
|
|
4376
|
+
"required": [
|
|
4377
|
+
"address",
|
|
4378
|
+
"is_active"
|
|
4379
|
+
]
|
|
3924
4380
|
}
|
|
3925
4381
|
},
|
|
3926
4382
|
"securityDefinitions": {
|