curl --request GET \
--url https://api.hypedexer.com/users/{user}/top-trades \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.hypedexer.com/users/{user}/top-trades"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.hypedexer.com/users/{user}/top-trades', 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://api.hypedexer.com/users/{user}/top-trades",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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://api.hypedexer.com/users/{user}/top-trades"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.hypedexer.com/users/{user}/top-trades")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hypedexer.com/users/{user}/top-trades")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "User top trades",
"data": {
"user": "0x010461c14e146ac35fe42271bdc1134ee31c703a",
"window": "all",
"sort": "pnl",
"include_open": true,
"trades_coverage_start": "2025-09-10",
"leverage_coverage_start": "2026-09-06",
"trades": [
{
"status": "closed",
"trade_id": "trade_BTC_02791f26",
"coin": "BTC",
"direction": "long",
"opened_at": "2025-10-12T14:46:34.492000Z",
"closed_at": "2025-11-21T07:40:45.603000Z",
"duration_s": 3430451,
"entry_px": 103770.63792050733,
"exit_px": 103862.81506672615,
"size": 1283.0431199996517,
"pnl": 861394.9388500022,
"pnl_pct": 0.6241430039239507,
"notional": 138012431.99626726,
"volume": 275366831.90262157,
"fees": 0,
"funding": 0,
"fills": 154269,
"leverage": null,
"leverage_type": null
}
]
},
"total_count": null,
"execution_time_ms": 449.86,
"next_cursor": null,
"has_more": null
}Top trades
Best round-trip trades with ticker, direction, leverage, PnL, notional, entry/exit price and close date. Open positions can be ranked alongside closed ones (by unrealized PnL): they come back with status: "open", no closed_at, and an as_of snapshot time.
Leverage on a closed trade comes from the first hourly snapshot taken while the position was open, so trades closed before 2026-09-06 return leverage: null. Round-trip trades are available from 2025-09-10.
curl --request GET \
--url https://api.hypedexer.com/users/{user}/top-trades \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.hypedexer.com/users/{user}/top-trades"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.hypedexer.com/users/{user}/top-trades', 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://api.hypedexer.com/users/{user}/top-trades",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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://api.hypedexer.com/users/{user}/top-trades"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.hypedexer.com/users/{user}/top-trades")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hypedexer.com/users/{user}/top-trades")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "User top trades",
"data": {
"user": "0x010461c14e146ac35fe42271bdc1134ee31c703a",
"window": "all",
"sort": "pnl",
"include_open": true,
"trades_coverage_start": "2025-09-10",
"leverage_coverage_start": "2026-09-06",
"trades": [
{
"status": "closed",
"trade_id": "trade_BTC_02791f26",
"coin": "BTC",
"direction": "long",
"opened_at": "2025-10-12T14:46:34.492000Z",
"closed_at": "2025-11-21T07:40:45.603000Z",
"duration_s": 3430451,
"entry_px": 103770.63792050733,
"exit_px": 103862.81506672615,
"size": 1283.0431199996517,
"pnl": 861394.9388500022,
"pnl_pct": 0.6241430039239507,
"notional": 138012431.99626726,
"volume": 275366831.90262157,
"fees": 0,
"funding": 0,
"fills": 154269,
"leverage": null,
"leverage_type": null
}
]
},
"total_count": null,
"execution_time_ms": 449.86,
"next_cursor": null,
"has_more": null
}Authorizations
Your Hypedexer API key. Create one in the console at https://app.hypedexer.com. Authorization: Bearer <key> and the api_key query parameter are accepted as well.
Headers
Path Parameters
Trader address (0x + 40 hex, any case).
"0x0000000000bdc2fd416def2d8688069052eb0f87"
Query Parameters
1 <= x <= 50Rolling window on trade close time.
7d, 30d, 90d, all pnl = biggest gains, pnl_abs = biggest moves either way, notional = largest positions, loss = worst losses.
pnl, pnl_abs, notional, loss Rank currently open positions alongside closed trades.