VIEW API

Getorderbook

Description

Used to get retrieve the orderbook for a given market.

Request Parameters:

market:  a string literal for the market (ex: BTC-USD)

Type:    buysell or both to identify the type of orderbook to return

MethodGET

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}]  }]}