Skip to content

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 nameTypesIs requiredDefaultsDescription
symbolStringYes-Trading pairs such as coin-usd-btc, coin-usd-eth, etc.
sizeintNo (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 NameTypeDescription
amountdoubleAmount
pricedoubleprice

Clone this wiki locally