Skip to main content
GET
/
market-data
/
history
cURL
curl --request GET \
  --url https://api.uniblock.dev/uni/v1/market-data/history \
  --header 'X-API-KEY: <api-key>'
{
  "currentPrice": [
    {}
  ],
  "marketCap": [
    {}
  ],
  "volume": [
    {}
  ]
}

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 info of

Example:

"ETH"

date
string
default:3-1-2026
required

Date in dd-mm-yyyy. Information will be from 12am UTC of that date

Example:

"3-1-2026"

timestamp
number

UNIX timestamp of data in seconds

includeAllCurrencies
boolean

Whether to get marketcap in all currencies

currency
string
default:USD

Target currency (USD, EUR, JPY, etc)

Example:

"USD,EUR,JPY"

chainId
string

Unique identifier for a blockchain network.

Example:

"1"

tokenAddress
string

The address of the token to query.

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,
CoinMarketCap,

Response

200 - application/json
currentPrice
object[]
required
marketCap
object[]
required
volume
object[]
required