GET /exchange/books/{symbol}

Parameters:

  • symbol (string, required): The currency pair symbol (e.g., USD-NGN).

Sample Request

curl -X GET "https://exchange.spendjuice.com/v1/exchange/books/USD-NGN" \
-H "Authorization: Bearer <your_token>"

Sample Response

{
  "data": {
    "asks": [
      {
        "business_id": "ce8331b2-a396-46c1-9638-5db5e9cf5b2e",
        "created_at": "2023-12-23T19:11:23.215",
        "id": "0fe2d322-a1c7-11ee-9c0e-560f156a658b",
        "percent_filled": 0,
        "price": 80000,
        "price_type": "limit",
        "status": "open",
        "time_in_force": "gtc",
        "total_qty": "1",
        "unfilled_qty": "1.0",
        "user_id": null
      }
    ],
    "bids": [
      {
        "business_id": "ce8331b2-a396-46c1-9638-5db5e9cf5b2e",
        "created_at": "2023-12-23T19:11:23.097",
        "id": "0fd0baf2-a1c7-11ee-ae88-560f156a658b",
        "percent_filled": 0,
        "price": 75000,
        "price_type": "limit",
        "status": "open",
        "time_in_force": "gtc",
        "total_qty": "1",
        "unfilled_qty": "1.0",
        "user_id": "82dde615-d181-4f3e-8d3f-53ac7962feb7"
      }
    ],
    "max_bid": 75000,
    "min_ask": 80000,
    "symbol": "USD-NGN"
  }
}