Zum Inhalt springen
GET /v1/meta

Spec

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/tradestats-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "trades = the P&L of each closed trade, comma-separated; profit positive, loss negative (trades=120,-50,80,-30,...). starting_balance optional for the equity endpoint.",
        "source": "Computed in-process from caller-supplied trade P&L results (no upstream)",
        "service": "tradestats-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/equity": "Equity curve + drawdown (trades=...&starting_balance=10000).",
            "GET /v1/analyze": "Full performance scorecard (trades=120,-50,80,-30,200,-90,45,-60,150).",
            "GET /v1/streaks": "Longest winning/losing runs and current streak (trades=...)."
        },
        "description": "Live trading-performance analytics computed on demand from a list of realised trade results. The analyze endpoint returns the full scorecard (win rate, profit factor, expectancy, average win/loss, payoff ratio, largest win/loss); the equity endpoint builds the equity curve from a starting balance with running balance, drawdown series, max drawdown and total return; the streaks endpoint returns the longest winning and losing runs and the current streak. A backward-looking trade-journal analyzer that scores actual results, distinct from forward Monte-Carlo simulators and position sizers. Computed locally, nothing stored.",
        "upstream_status": "ok"
    },
    "meta": {
        "timestamp": "2026-06-11T07:49:17.549Z",
        "request_id": "a455431c-2c8d-495d-ad8d-55bef4a8aad2"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}