The order book endpoint is to provide a complete level 2 order book (arranged by best asks/bids) with max 200 depth returned for a given market pair.
https://open.loex.io/open/V1/orderbook/market_pair
GET
curl -X GET https://open.loex.io/open/v1/orderbook/market_pair?market_pair=BTC_USDT
5 times/1s
| Parameter | Type | Description |
|---|---|---|
| market_pair | string | A pair such as “BTC_USDT” |
| depth | int | Orders depth quantity:[0,5,10,20,50,100,200]. Default 60. |
{
"asks": [
["9606.60", "0.64896"],
["9606.70", "0.64616"],
["9607.00", "0.64616"],
["9607.10", "0.64616"],
["9607.60", "0.65207"],
["9607.70", "0.78775"],
["9607.90", "0.08195"],
["9608.00", "0.40068"],
["9608.20", "0.01721"],
["9608.30", "0.68620"],
["9608.40", "0.03555"],
["9608.50", "0.01998"],
["9608.60", "0.42039"],
["9608.70", "0.01998"],
["9608.80", "0.78021"],
["9608.90", "0.05931"],
["9609.10", "0.03275"],
["9609.30", "0.08775"],
["9609.40", "0.17235"],
["9609.60", "0.15799"],
["9609.80", "0.51070"],
["9610.00", "0.58076"],
["9610.10", "0.51070"],
["9610.40", "1.27363"],
["9610.50", "0.03245"],
["9610.60", "0.81109"],
["9611.00", "0.16218"],
["9611.20", "0.21549"],
["9611.50", "0.62441"],
["9611.60", "0.43260"],
["9612.00", "0.06483"],
["9612.40", "0.15990"],
["9612.50", "0.28138"],
["9612.70", "0.32425"],
["9613.40", "0.46710"],
["9613.50", "0.03816"],
["9613.70", "0.51070"],
["9613.90", "0.47177"],
["9614.00", "0.31420"],
["10888.00", "0.01818"],
["11556.89", "0.02000"],
["67000.00", "0.00480"]
],
"bids": [
["9601.10", "0.31296"],
["9601.00", "0.03242"],
["9600.90", "0.09010"],
["9600.60", "0.06028"],
["9600.50", "0.01688"],
["9600.40", "1.02762"],
["9600.30", "0.23977"],
["9600.00", "1.05253"],
["9599.80", "0.06484"],
["9599.70", "0.31312"],
["9599.60", "0.65498"],
["9599.50", "0.31140"],
["9599.40", "0.01715"],
["9599.30", "0.01999"],
["9599.20", "1.37385"],
["9598.90", "0.01557"],
["9598.70", "0.01791"],
["9598.60", "0.08404"],
["9598.50", "0.03243"],
["9598.30", "0.18973"],
["9598.10", "0.31369"],
["9597.80", "0.74736"],
["9597.70", "0.71622"],
["9597.60", "0.66429"],
["9597.40", "0.03275"],
["9597.10", "0.96795"],
["9596.80", "1.40130"],
["9596.70", "1.02762"],
["9596.60", "0.30199"],
["9596.40", "0.25277"],
["9595.90", "0.31063"],
["9595.80", "0.91032"],
["6629.00", "0.16295"]
],
"timestamp": "1582185555"
}
| Parameter | Type | Description |
|---|---|---|
| timestamp | timestamp | Unix timestamp in milliseconds for when the last updated time occurred. |
| bids | decimal | An array containing 2 elements. The offer price and quantity for each bid order. |
| asks | decimal | An array containing 2 elements. The ask price and quantity for each ask order. |