Obtain Order Book

It is recommended to use websocket order book api to obtain the order book and keep up to date with the latest order book, since it will require less bandwidth and provide the current book snapshot, followed by a stream of book updates. However, a rest API can also provide the complete order book for a market.

Aphelion REST API call

https://mainnet.aphelion-neo.com/api/book/NEO-APH

Example API Response

{
  "bids": [
    {
      "quantity": 10698.2,
      "price": 0.00111
    },
    {
      "quantity": 2961.2,
      "price": 0.001105
    },
    {
      "quantity": 7898.9,
      "price": 0.0011002
    },
    {
      "quantity": 1741.8,
      "price": 0.00101
    },
    {
      "quantity": 150000,
      "price": 0.001
    }
    // ...
  ],
  "asks": [
    {
      "quantity": 4698.2,
      "price": 0.00121
    },
    {
      "quantity": 5000,
      "price": 0.001211
    },
    {
      "quantity": 496.4,
      "price": 0.001295
    },
    {
      "quantity": 1800,
      "price": 0.0012987
    },
    {
      "quantity": 19675.9,
      "price": 0.00132
    }
    // ...
  ],
  "bidSequenceNumber": 1783,
  "askSequenceNumber": 2319,
  "timestamp": 1552077703,
  "result": false
}