Skip to main content
GET
/
v1
/
{coin}
/
spot
/
trade
/
latest
Latest Spot Trade
curl --request GET \
  --url https://api.polyhistorical.com/v1/{coin}/spot/trade/latest \
  --header 'X-API-Key: <x-api-key>'
{
  "data.id": 123,
  "data.price": 123,
  "data.qty": 123,
  "data.quoteQty": 123,
  "data.time": 123,
  "data.isBuyerMaker": true,
  "data.isBestMatch": true
}

Latest Spot Trade

Returns the most recent Binance Spot trade for a supported coin.
Requires a Pro or Enterprise plan.

Request

https://api.polyhistorical.com/v1/{coin}/spot/trade/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.id
integer
Binance trade ID.
data.price
number
Trade price rounded to 2 decimal places.
data.qty
number
Base quantity rounded to 5 decimal places.
data.quoteQty
number
Quote quantity rounded to 5 decimal places.
data.time
integer
Trade timestamp in UTC epoch milliseconds.
data.isBuyerMaker
boolean
Whether the buyer was the maker.
data.isBestMatch
boolean
Whether the trade was the best price match.

Example

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

Response

{
  "data": {
    "id": 123456789,
    "price": 77593.69,
    "qty": 0.00123,
    "quoteQty": 95.44123,
    "time": 1779730000000,
    "isBuyerMaker": false,
    "isBestMatch": true
  }
}