Coins

Coin Historical Chart Data by ID

This endpoint allows you to get the historical chart data of a coin including time in UNIX, price, market cap and 24hr volume based on particular coin ID

get/coins/{id}/market_chart

Path parameters

idstring required
Example:bitcoin

coin ID <br> *refers to /coins/list.

Query parameters

vs_currencystring required
Example:usd

target currency of market data <br> *refers to /simple/supported_vs_currencies.

daysstring required

data up to number of days ago <br> You may use any integer or max for number of days

interval'5m' | 'hourly' | 'daily'

data interval, leave empty for auto granularity

precision'full' | '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '13' | '14' | '15' | '16' | '17' | '18'

decimal place for currency price value

Response

Get historical market data include price, market cap, and 24hr volume (granularity auto)

Example response

{
  "prices": [
    [
      1711843200000,
      69702.3087473573
    ],
    [
      1711929600000,
      71246.9514406015
    ],
    [
      1711983682000,
      68887.7495158568
    ]
  ],
  "market_caps": [
    [
      1711843200000,
      1370247487960.09
    ],
    [
      1711929600000,
      1401370211582.37
    ],
    [
      1711983682000,
      1355701979725.16
    ]
  ],
  "total_volumes": [
    [
      1711843200000,
      16408802301.8374
    ],
    [
      1711929600000,
      19723005998.215
    ],
    [
      1711983682000,
      30137418199.6431
    ]
  ]
}

Changes