interval is required.| Interval | Max Retention |
|---|---|
| 5min, 15min, 30min, 1hour, 4hour | 7 days |
| 1day | 70 days |
symbol is required and must be a single symbol (multiple symbols are not supported).pageSize, startAt, endAt.endAt can be treated as the lastId.symbol supports up to 10 unique symbols. If symbol is not specified, all symbols are returned.startAt, endAt, pageSize.curl --location --request GET 'https://api.kucoin.com/api/ua/v1/market/open-interest?symbol=XBTUSDTM&interval=5min&startAt&endAt&pageSize'{
"code": "200000",
"data": [
{
"openInterest": "4615535",
"ts": 1767004200000
},
{
"openInterest": "4568791",
"ts": 1767002400000
},
{
"openInterest": "4745095",
"ts": 1767000600000
},
{
"openInterest": "4654811",
"ts": 1766998800000
},
{
"openInterest": "4653639",
"ts": 1766997000000
},
{
"openInterest": "4694491",
"ts": 1766995200000
},
{
"openInterest": "4668666",
"ts": 1766993400000
},
{
"openInterest": "4666032",
"ts": 1766991600000
},
{
"openInterest": "4648819",
"ts": 1766989800000
},
{
"openInterest": "4643730",
"ts": 1766988000000
},
{
"openInterest": "4626146",
"ts": 1766986200000
},
{
"openInterest": "4607471",
"ts": 1766984400000
},
{
"openInterest": "4602915",
"ts": 1766982600000
},
{
"openInterest": "4556849",
"ts": 1766980800000
}
]
}