Description
Used to get retrieve the orderbook for a given market.
Request Parameters:
market: a string literal for the market (ex: BTC-USD)
Type: buy
, sell
or both
to identify the type of orderbook to return
Method: GET
Response:
200 OK Success
type object
Request Url Example
URL : https://naijacrypto.com/api/getorderbook?market=BTC-USD&type=both
Response Example (200 OK)
{ "success": true,"message": "''","result": [{ "buy":[{"quantity":2,"rate":1},{"quantity":2,"rate":2}],"sell":[{"quantity":3,"rate":2}] }]}