Skip to main content
GET
cURL
50 credits per request

Make sure the exchange is synced first by calling PATCH /sync for up to date infromation.
  • portfolioId: Identifier of an exchange portfolio you have connected.
  • type: Time range for the chart.
  • Exchange must be synced first via PATCH /exchange/sync.

Authorizations

X-API-KEY
string
header
required

API key required to access the endpoints. Generate one from your dashboard at https://openapi.coinstats.app and pass it in the X-API-KEY request header. Never expose your key in client-side code.

Query Parameters

portfolioId
string
required

The identifier of portfolio, which you received from /exchange/balance call response.

Example:

"66c19c585400000000000000"

type
enum<string>
required

One of time periods.

Available options:
24h,
1w,
1m,
3m,
6m,
1y,
all
Example:

"24h"

currency
string
default:USD

Currency for chart values. Default is USD.

Example:

"USD"

Response

Get exchange chart

result
number[][]
required

Array of historical price data points. Each data point is an array containing:

  1. TIMESTAMP - Unix timestamp in seconds
  2. USD - Price in USD
  3. BTC - Price in Bitcoin
  4. ETH - Price in Ethereum
Example: