GET
/
spot
/
prices
/
pairs
/
{pair}
/
latest
/
Pairs Latest
curl --request GET \
  --url https://api.amberdata.com/market/spot/prices/pairs/{pair}/latest/ \
  --header 'x-api-key: <api-key>'
{
  "status": 200,
  "title": "OK",
  "description": "Successful request",
  "payload": {
    "timestamp": "2020-09-11T20:41:00.000Z",
    "pair": "btc_usd",
    "price": "10311.5",
    "volume": "0.1212"
  }
}

Authorizations

x-api-key
string
header
default:API_KEY
required

Path Parameters

pair
string
default:btc_usd
required

The pair for which to retrieve the mot recent data.

Query Parameters

exchange
string

[Optional] The exchange for which to retrieve the requested data.

includeCrossRates
boolean

[Optional] If true, cross rate pairs are included in the price calculations - this option only supports pairs quoted in usd (ie *_usd pairs).<br/>[Defaults] false* | true

timeFormat
string

[Optional] Time format of the timestamps in the return payload.<br/>[Defaults] milliseconds | ms* | iso | iso8601 | hr | human_readable

Response

200
application/json

200

The response is of type object.