1. Rank
Read each exchange's ranking with traders, over the period you care about.
Find the traders worth following, across exchanges, before anyone copies them. Every source answers the same fields, so one script can rank OKX, Bybit and Hyperliquid traders side by side.
import os, requests
HEADERS = {"X-API-KEY": os.environ["KOPYON_KEY"]}
API = "https://api.kopyon.com/v5"
rows = []
for source in ["okx-copy-trading", "bybit-copy-trading", "bitget-copy-trading"]:
traders = requests.get(f"{API}/{source}/traders", params={"period": "30D"},
headers=HEADERS).json()["data"]["traders"]
for trader in traders[:10]:
perf = requests.get(f"{API}/{source}/performance",
params={"traderId": trader["traderId"], "period": "30D"},
headers=HEADERS).json()["data"]
rows.append((source, trader["name"], perf.get("roi"), perf.get("maxDrawdown")))
for row in sorted(rows, key=lambda r: r[2] or 0, reverse=True):
print(*row)Read each exchange's ranking with traders, over the period you care about.
performance gives PnL, ROI, win rate and drawdown for any period.
positionHistory shows every closed trade, with its size, leverage and result.
The same code works on each of them; only the source id changes.
The free tier is 10,000 requests a month. That is enough to build a whole integration and test it against live data before you pay anything.
Usually answered within a day · [email protected] ·