Skip to main content
GET
https://api.aisa.one/apis/v1
/
coingecko
/
coins
/
{id}
/
market_chart
Coin Historical Chart
curl --request GET \
  --url https://api.aisa.one/apis/v1/coingecko/coins/{id}/market_chart \
  --header 'Authorization: Bearer <token>'
{
  "prices": [
    [
      1713398400000,
      67234.12
    ],
    [
      1713402000000,
      67301.55
    ]
  ],
  "market_caps": [
    [
      1713398400000,
      1321498765432
    ]
  ],
  "total_volumes": [
    [
      1713398400000,
      25679876543
    ]
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

CoinGecko coin ID (e.g., bitcoin, ethereum). Get the list via /coins/list.

Query Parameters

vs_currency
string
default:usd
required

Target currency for price (e.g., usd, eur, btc). See /simple/supported_vs_currencies.

days
string
required

Data up to N days ago. Accepts 1, 7, 14, 30, 90, 180, 365, or max.

interval
enum<string>

Data interval. CoinGecko supports daily; hourly is also available for supported ranges.

Available options:
daily,
hourly
precision
string

full or a value from 0 to 18 to specify decimal places for currency price values.

Response

200 - application/json

Three time-series arrays.

prices
number[][]
market_caps
number[][]
total_volumes
number[][]