get https://open-api-v4.coinglass.com/api/futures/open-interest/aggregated-history
This endpoint provides aggregated open interest data across exchanges in OHLC (open, high, low, close) candlestick format.
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": 2644845344000, // Timestamp (ms)
      "open": "2644845344",   // Open interest at interval start
      "high": "2692643311",   // Highest open interest during interval
      "low": "2576975597",    // Lowest open interest during interval
      "close": "2608846475"   // Open interest at interval end
    },
    {
      "time": 2608846475000, // Timestamp (ms)
      "open": "2608846475",  // Open interest at interval start
      "high": "2620807645",  // Highest open interest during interval
      "low": "2327236202",   // Lowest open interest during interval
      "close": "2340177420"  // Open interest at interval end
    },
    ....
  ]
}
