get https://open-api-v4.coinglass.com/api/spot/price/history
This endpoint provides historical open, high, low, and close (OHLC) price data for cryptocurrencies over specified timeframes.
Cache / Update Frequency: Real time for all the API plans.
This endpoint is available on the following API plans:
Plans | Hobbyist | Startup | Standard | Professional | Enterprise |
---|---|---|---|---|---|
Available | ✅ | ✅ | ✅ | ✅ | ✅ |
interval Limit | >=4h | >=30m | No Limit | No Limit | No Limit |
Response Data
{
"code": "0",
"msg": "success",
"data": [
{
"time": 1741690800000,
"open": 81808.25,//open price
"high": 82092.34, //high price
"low": 81400,//low price
"close": 81720.34,//close price
"volume_usd": 96823535.5724
},
{
"time": 1741694400000,
"open": 81720.33,
"high": 81909.69,
"low": 81017,
"close": 81225.5,
"volume_usd": 150660424.1863
},