/v1/equity
Equity curve + drawdown
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/tradestats-api/v1/equity" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/tradestats-api/v1/equity", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/tradestats-api/v1/equity");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/tradestats-api/v1/equity",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"note": "Equity curve includes the starting balance as the first point. Max drawdown is the largest peak-to-trough decline.",
"source": "TRADE-STATS",
"trades": 9,
"total_pnl": 365,
"return_pct": 3.65,
"equity_curve": [
10000,
10120,
10070,
10150,
10120,
10320,
10230,
10275,
10215,
10365
],
"max_drawdown": 105,
"peak_balance": 10365,
"final_balance": 10365,
"max_drawdown_pct": 1.017442,
"starting_balance": 10000
},
"meta": {
"timestamp": "2026-06-11T07:49:17.362Z",
"request_id": "8e9a8ca2-6b49-4bf5-a733-6dd7381cac52"
},
"status": "ok",
"message": "Equity curve computed",
"success": true
}