GET
/
markets
/
{market}
/
historical-prices
List Historical Prices
curl --request GET \
  --url https://api.paxos.com/v2/markets/{market}/historical-prices \
  --header 'Authorization: Bearer <token>'
{
  "market": "BTCUSD",
  "prices": [
    {
      "average_price": "9245.50",
      "timestamp": "2020-01-17T18:36:00.000Z"
    },
    {
      "average_price": "9265.50",
      "timestamp": "2020-01-17T18:37:00.000Z"
    }
  ],
  "total_count": 50
}

Authorizations

Authorization
string
header
required

Paxos APIs use OAuth 2 with the client credentials grant flow.

Token URLs:

Learn more in the API credentials guide →

Path Parameters

market
enum<string>
required

Market of Order Book.

Available options:
ETHEUR,
ETHUSD,
BTCEUR,
BTCUSD,
PAXGUSD,
BCHUSD,
LTCUSD,
ETHGBP,
BTCGBP,
LTCGBP,
BCHGBP,
USDPUSD,
ETHBRL,
BTCBRL,
LTCBRL,
BCHBRL,
USDPGBP,
USDPBRL,
LINKUSD,
MATICUSD,
AAVEUSD,
UNIUSD,
AAVEMXN,
BCHMXN,
BTCMXN,
ETHMXN,
LTCMXN,
USDPMXN,
AAVEEUR,
BCHEUR,
LTCEUR,
LINKEUR,
MATICEUR,
PAXGEUR,
SOLEUR,
USDPEUR,
UNIEUR,
PYUSDEUR

Query Parameters

max_data_points
integer

Maximum number of data points to return.

The time frame of the increments will be inferred by finding the most granular increment without breaching the max_data_points value based on a set of recording data points.

range.begin
string<date-time>

Only return records after this timestamp, inclusive. RFC3339 format, like 2006-01-02T15:04:05Z.

range.end
string<date-time>

Only return records before this timestamp, inclusive. RFC3339 format, like 2006-01-02T15:04:05Z.

pagination.limit
integer

Number of results to return

pagination.offset
integer

Number of results to skip

increment
enum<string>

Time increment between prices. Returns data exclusive from range.begin and range.end. Do not use with max_data_points, as this results in an error.

Available options:
ONE_MINUTE,
FIVE_MINUTES,
FIFTEEN_MINUTES,
THIRTY_MINUTES,
ONE_HOUR,
TWO_HOURS,
TWELVE_HOURS,
ONE_DAY,
ONE_WEEK,
TWO_WEEKS,
FOUR_WEEKS

Response

200 - application/json

A successful response.

The response is of type object.