Skip to main content
GET
/
v1
/
{coin}
/
spot
/
latest
Latest Spot Depth
curl --request GET \
  --url https://api.polyhistorical.com/v1/{coin}/spot/latest \
  --header 'X-API-Key: <x-api-key>'
{
  "data.coin_price": 123,
  "data.bids": [
    {}
  ],
  "data.asks": [
    {}
  ]
}

Latest Spot Depth

Returns the latest Binance Spot coin price with order book bids and asks.
Requires a Pro or Enterprise plan.

Request

https://api.polyhistorical.com/v1/{coin}/spot/latest

Headers

X-API-Key
string
required
Your API key. See Authentication.

Path parameters

coin
string
required
Coin symbol. Supported values: btc, eth, sol.

Response

data.coin_price
number
Current spot coin price rounded to 2 decimal places.
data.bids
array
Bid levels. Each item contains price rounded to 2 decimal places and quantity rounded to 5 decimal places.
data.asks
array
Ask levels. Each item contains price rounded to 2 decimal places and quantity rounded to 5 decimal places.

Example

cURL
curl -H "X-API-Key: YOUR_API_KEY" \
  "https://api.polyhistorical.com/v1/btc/spot/latest"

Response

{
  "data": {
    "coin_price": 77593.69,
    "bids": [
      { "price": 77593.68, "quantity": 0.64379 }
    ],
    "asks": [
      { "price": 77593.70, "quantity": 0.20000 }
    ]
  }
}