Open Interest
Description
Get the total open interest for a specific trading pair.
HTTP Request
GET /fapi/v1/openInterest
Weight
1
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | STRING | YES | Trading pair |
Response Example
{
"symbol": "BTCUSDT",
"openInterest": "444.75910000", // Total open interest
"time": 1508312967000 // Matching engine time
}
Code Examples
cURL
curl -s "https://api-sepolia.ztdx.io/fapi/v1/openInterest?symbol=BTCUSDT"
Python
import requests
base_url = "https://api.ztdx.io"
response = requests.get(f"{base_url}/fapi/v1/openInterest", params={"symbol": "BTCUSDT"})
data = response.json()
print(f"{data['symbol']}: OI={data['openInterest']}")