Skip to content
GET /v1/supertrend

SuperTrend line + trend

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/supertrend-api

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

Get an API key

Code snippets

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

Example response

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

{
    "data": {
        "atr": 3.0370604,
        "note": "SuperTrend = ATR-banded trailing line; price above it = uptrend (line is support), below = downtrend (line is resistance). A close crossing the line flips the trend.",
        "trend": "up",
        "period": 10,
        "source": "SUPERTREND",
        "candles": 26,
        "distance": 9.61118121,
        "last_close": 127,
        "multiplier": 3,
        "supertrend": 117.38881879
    },
    "meta": {
        "timestamp": "2026-06-11T07:48:56.783Z",
        "request_id": "be58f7b2-b5a3-410a-bcc5-e2484ebdc346"
    },
    "status": "ok",
    "message": "SuperTrend computed",
    "success": true
}