cURL
curl -H "Authorization: Bearer $HYPERDASH_API_KEY" 'https://data.hyperdash.com/v1/markets/BTC/activity?window=72h&action=entry&side=long&group_by=cohort_pnl'import requests
url = "https://data.hyperdash.com/v1/markets/{coin}/activity"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://data.hyperdash.com/v1/markets/{coin}/activity', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://data.hyperdash.com/v1/markets/{coin}/activity",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://data.hyperdash.com/v1/markets/{coin}/activity"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://data.hyperdash.com/v1/markets/{coin}/activity")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.hyperdash.com/v1/markets/{coin}/activity")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"t": 123,
"group": "<string>",
"wallets": 123,
"fills": 123,
"notional": "<string>",
"size": "<string>",
"realized_pnl": "<string>"
}
],
"has_more": true,
"next_cursor": "<string>",
"meta": {}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"hint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"hint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"hint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"hint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"hint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"hint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"hint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"hint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"hint": "<string>"
}Markets: open interest and positioning
Market activity
How many wallets opened, added to, reduced, closed or flipped a position in one perp market over the last 1 hour to 7 days, with their fills, notional, size and realized PnL. The answer is aggregate, with no wallet addresses.
How it works
- Filter with
action,sideandliquidity. Split the rows withgroup_by: by action, by side, or by the wallets’ PnL or account-size cohort. Addintervalfor a time series;1hbuckets work up to a 72-hour window. - Each fill counts as one action.
openstarts from a flat position,addgrows an existing one,reduceis a partial close,closegoes to flat andflipgoes through zero to the other side.entryisopenorflip. sideis the position’s side. A close carries the side it closes, and a flip counts in full on its new side.- Both sides of every trade count, so unfiltered notional is twice the traded volume.
meta.total_wallets,meta.total_fills,meta.total_notional,meta.total_sizeandmeta.total_realized_pnlcover the whole window after the filters.
Cohorts
- Cohorts are each wallet’s classification today, not at the time of the fill.
meta.cohort_as_ofsays when it was last refreshed. cohort_pnlgroups by all-time perp PnL:extremely_profitablefrom 1M USD,very_profitablefrom 100k,profitablefrom 0,unprofitablefrom -100k,very_unprofitablefrom -1M andrektbelow that.cohort_sizegroups by account value:apexfrom 5M USD,whalefrom 1M,largefrom 100k,mediumfrom 10k andsmallbelow that.unknownis a wallet with no classification on record.
Freshness
- Without
end, the window ends at the latest completed UTC hour. meta.settledis false while the newest fills of the window may still be landing. Answers are cached for up to 5 minutes.
Limits
- The window is at most 7 days and ends on a UTC hour. Cover a longer period with several requests: fills, notional, size and realized PnL add up across them.
- Wallet counts do not add up across groups, buckets or requests, because one wallet can appear in several.
- Liquidation transfers, auto-deleveraging and settlement fills are not counted.
Example questions
- How many wallets opened a BTC long in the last 72 hours, and were they profitable traders?
/v1/markets/BTC/activity?window=72h&action=entry&side=long&group_by=cohort_pnl, 600 credits. - Are whales or small accounts shorting ETH today?
/v1/markets/ETH/activity?window=24h&action=entry&side=short&group_by=cohort_size, 400 credits. - What is happening in SOL this week: opening, adding, reducing or closing?
/v1/markets/SOL/activity?window=7d&group_by=action, 1,000 credits. - When did longs close BTC over the last 3 days, hour by hour?
/v1/markets/BTC/activity?window=72h&action=close&side=long&interval=1h, 600 credits. - Are new HYPE positions long or short, counting takers only?
/v1/markets/HYPE/activity?window=24h&action=entry&liquidity=taker&group_by=side, 400 credits. - The same hourly BTC question over 2 months: 21 requests of
window=72h, each withendset to the previous window’s start, 12,600 credits in total.
Credits: 200 per request. Range multiplier: ×2 to 1 day, ×3 to 3 days, ×5 to 7 days.
Scope: analytics:read
GET
/
v1
/
markets
/
{coin}
/
activity
cURL
curl -H "Authorization: Bearer $HYPERDASH_API_KEY" 'https://data.hyperdash.com/v1/markets/BTC/activity?window=72h&action=entry&side=long&group_by=cohort_pnl'import requests
url = "https://data.hyperdash.com/v1/markets/{coin}/activity"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://data.hyperdash.com/v1/markets/{coin}/activity', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://data.hyperdash.com/v1/markets/{coin}/activity",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://data.hyperdash.com/v1/markets/{coin}/activity"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://data.hyperdash.com/v1/markets/{coin}/activity")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.hyperdash.com/v1/markets/{coin}/activity")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"t": 123,
"group": "<string>",
"wallets": 123,
"fills": 123,
"notional": "<string>",
"size": "<string>",
"realized_pnl": "<string>"
}
],
"has_more": true,
"next_cursor": "<string>",
"meta": {}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"hint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"hint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"hint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"hint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"hint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"hint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"hint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"hint": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"hint": "<string>"
}Path Parameters
Query Parameters
Response
OK

