-
Notifications
You must be signed in to change notification settings - Fork 0
Depth information
huyaohua edited this page Jan 19, 2020
·
1 revision
Interface address:https://api.bitforex.com/api/v1/market/depth
Request method:GET
Parameters
parameter name | Types | Is required | Defaults | Description |
---|---|---|---|---|
symbol | String | Yes | - | Trading pairs such as coin-usd-btc, coin-usd-eth, etc. |
size | int | No (defaults to 5) | - | Orders Depth Quantity 1-200 |
Example
# request
GET https://api.bitforex.com/api/v1/market/depth
# Response
{
"success": true,
"data": {
"asks": [{
"amount": 1,
"price": 1010
}, {
"amount": 3,
"price": 1000
}],
"bids": [{
"amount": 1,
"price": 970
}, {
"amount": 1,
"price": 960
}]
}
}
Return value description
- asks is selling, bids is buying, the above data is in descending order of price
Parameter Name | Type | Description |
---|---|---|
amount | double | Amount |
price | double | price |