api.getMixedDepth.value
流量控制: 每 秒
摘要
HTTP 方法
GET
访问路径
/api/v3/mix/depth
功能
Returns the order book of a given trading pair.
API 描述
HTTP头
字段 | 类型 | 必须 | 说明 | 举例 |
---|---|---|---|---|
X-API-KEY | string | 是 | ApiKey | "HlkcGxbqBeaF76j4rvPaOasyfPwnkQ 6B6DQ6THZWbvrAGxzEdulXQvOKLrRW ZLnN" |
请求参数
字段 | 类型 | 必须 | 说明 | 举例 |
---|---|---|---|---|
market | string | 是 | The ID of a trading pair. | "LRC-ETH" |
level | integer | 是 | Order book aggregation level, larger value means further price aggregation. | 2 |
limit | integer | 否 | Maximum numbers of bids/asks. 默认值 : 50 |
50 |
showOverlap | boolean | 否 | request.getDepth.showOverlap | "false" |
请求示例
HTTP
CURL
GET https://api3.loopring.io/api/v3/mix/depth?market=LRC-ETH&level=2&limit=50&showOverlap=false HTTP/1.1
Host: api3.loopring.io
Connection: keep-alive
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: zh,en;q=0.9
X-API-KEY: sra1aavfa
curl -H "X-API-KEY:sra1aavfa" https://api3.loopring.io/api/v3/mix/depth\?market\=LRC-ETH\&level\=2\&limit\=50\&showOverlap\=false
响应字段
字段 | 类型 | 必须 | 说明 | 举例 |
---|---|---|---|---|
version | integer | 是 | An ever-increasing numeric version number that reflects its change history. | 147 |
timestamp | integer | 是 | Update timestamp | 432312312 |
market | string | 是 | Trading pair | "LRC-ETH" |
bids | List[List[string]] | 是 | Array of bids, each item is an array that contains the price, size, volume and the number of orders aggregated at this price. | "[["0.002","2 1000","33220 000","4"]]" |
asks | List[List[string]] | 是 | Array of asks, each item is an array that contains the price, size, volume and the number of orders aggregated at this price. | "[]" |
响应示例
{
"version" : 147,
"timestamp" : 432312312,
"market" : "LRC-ETH",
"bids" : [["0.002","21000","33220000","4"]],
"asks" : []
}
状态码
状态码 | 描述 |
---|---|
100000 | Unknown error |
108000 | Unsupported market |
108001 | Unsupported depth level |