Skip to main content
GET
/
exchange
/
chart
Get exchange chart data for specific time ranges displayed on the CoinStats website.
curl --request GET \
  --url https://openapiv1.coinstats.app/exchange/chart \
  --header 'X-API-KEY: <api-key>'
{
  "result": [
    [
      1735120800000,
      8.4033,
      0.00008561,
      0.00240652
    ],
    [
      1735120800000,
      8.4033,
      0.00008561,
      0.00240652
    ]
  ]
}
50 credits per request
Make sure the exchange is synced first by calling PATCH /sync for up to date infromation.

Authorizations

X-API-KEY
string
header
required

API key needed to access the endpoints. Example: 'demo-api-key'

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"

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:
[
[
1735120800000,
8.4033,
0.00008561,
0.00240652
],
[
1735120800000,
8.4033,
0.00008561,
0.00240652
]
]
I