API EndpointsHyperliquid
/positions/coins
Market-wide open interest per coin at the latest snapshot, with the venue's own OI alongside our aggregate so the two can be reconciled.
GET https://data.vike.io/v1/hyperliquid/positions/coinsMarket-wide open interest per coin at the latest snapshot, with the venue's own OI alongside our aggregate so the two can be reconciled. No parameters.
# market-wide open interest per coin at the latest snapshot
curl -s "https://data.vike.io/v1/hyperliquid/positions/coins" \
-H "X-API-KEY: $VIKE_API_KEY"
# the ten biggest books by our aggregate notional
curl -s "https://data.vike.io/v1/hyperliquid/positions/coins" \
-H "X-API-KEY: $VIKE_API_KEY" \
| jq 'sort_by(-.total_value) | .[:10] | map({coin, total_value, count})'
# reconcile with the venue: our aggregate against the venue's own open interest, per coin
curl -s "https://data.vike.io/v1/hyperliquid/positions/coins" \
-H "X-API-KEY: $VIKE_API_KEY" \
| jq '.[] | select(.venue_open_interest_usd > 0) | {coin, ours: .total_value, venue: .venue_open_interest_usd, ratio: (.total_value / .venue_open_interest_usd)}'
# net long or net short: bias per coin from the long and short notional
curl -s "https://data.vike.io/v1/hyperliquid/positions/coins" \
-H "X-API-KEY: $VIKE_API_KEY" \
| jq '.[] | select(.total_value > 0) | {coin, bias: ((.total_value_long - .total_value_short) / .total_value)}'Truncated: the array holds 313 coins; the first 3 are shown.
[
{
"coin": "BTC",
"total_value": 3026943358.0,
"total_value_long": 1518666445.0,
"total_value_short": 1508276913.0,
"count": 36436,
"count_long": 22334,
"count_short": 14102,
"venue_open_interest_usd": 3010625139.0
},
{
"coin": "ETH",
"total_value": 2213433684.0,
"total_value_long": 1107299108.0,
"total_value_short": 1106134576.0,
"count": 17829,
"count_long": 11830,
"count_short": 5999,
"venue_open_interest_usd": 2217262604.0
},
{
"coin": "HYPE",
"total_value": 1856962139.0,
"total_value_long": 928654781.4,
"total_value_short": 928307357.8,
"count": 18134,
"count_long": 13648,
"count_short": 4486,
"venue_open_interest_usd": 1861716866.0
}
]