Skip to main content
GET
/
market-data
/
chart-price-range
cURL
curl --request GET \
  --url https://api.uniblock.dev/uni/v1/market-data/chart-price-range \
  --header 'X-API-KEY: <api-key>'
{}

Authorizations

X-API-KEY
string
header
required

API key to access the API (Optional)

Query Parameters

id
string

The ID of the coin to get market cap of

Example:

"cg:ethereum"

symbol
string
default:ETH

Symbol of coin to get price of

Example:

"ETH"

currency
string
default:USD

Target currency (usd, eur, jpy, etc)

Example:

"USD"

tokenAddress
string

The address of the token to query.

start
number
required

Unix timestamp for start

Example:

"1700000000"

end
number
default:1706000000
required

Unix timestamp for end

Example:

"1706000000"

period
string

Duration between data points. Strings accepted by period: Can use regular chart candle notion like ‘4h’ etc where: W = week, D = day, H = hour, M = minute (not case sensitive)

chainId
string

Unique identifier for a blockchain network.

Example:

"1"

includeRaw
boolean

Returns the raw data given by the provider. WARNING: removes backup feature, and raw data returned is not normalized which might make switching providers difficult

Example:

null

provider
enum<string>

Specify which provider to use. The project's provider priority list is used by default if no providers are selected. (Priority list can be managed on Uniblock's dashboard)

Available options:
CoinGecko,
CODEX,

Response

200 - application/json

The response is of type object.