Skip to content
GET /v1/analyze

Full performance scorecard

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/tradestats-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/tradestats-api/v1/analyze" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/tradestats-api/v1/analyze", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/tradestats-api/v1/analyze");
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/analyze",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "note": "Profit factor = gross profit / gross loss. Expectancy = average P&L per trade. Payoff ratio = average win / average loss.",
        "wins": 5,
        "losses": 4,
        "source": "TRADE-STATS",
        "trades": 9,
        "breakeven": 0,
        "total_pnl": 365,
        "expectancy": 40.55555556,
        "gross_loss": -230,
        "average_win": 119,
        "largest_win": 200,
        "average_loss": -57.5,
        "gross_profit": 595,
        "largest_loss": -90,
        "payoff_ratio": 2.069565,
        "win_rate_pct": 55.5556,
        "average_trade": 40.55555556,
        "loss_rate_pct": 44.4444,
        "profit_factor": 2.586957
    },
    "meta": {
        "timestamp": "2026-06-11T07:49:17.252Z",
        "request_id": "2fc8aa87-a091-487b-95dc-2ecf1576215e"
    },
    "status": "ok",
    "message": "Trades analyzed",
    "success": true
}