Skip to main content
POST
/
api
/
coinglass
/
open-interest
/
history
/coinglass/open-interest/history
curl --request POST \
  --url https://api.anysite.io/api/coinglass/open-interest/history \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "symbol": "<string>",
  "timeout": 300,
  "interval": "0",
  "currency": "USD"
}
'
[
  {
    "timestamp": 123,
    "@type": "@coinglass_open_interest_point",
    "price": 123,
    "open_interest_by_exchange": {},
    "total_open_interest": 123
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
symbol
string
required

Coin ticker symbol

Minimum string length: 1
Example:

"BTC"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
interval
enum<string>
default:0

Candle interval of the series

Available options:
5,
15,
30,
1,
4,
12,
0
currency
enum<string>
default:USD

Denominate open interest in USD or the coin

Available options:
USD,
coin

Response

Successful Response

timestamp
integer
required
@type
string
default:@coinglass_open_interest_point
price
number | null
open_interest_by_exchange
Open Interest By Exchange · object
total_open_interest
number | null