Vai al contenuto
GET /v1/targets

Target prices at R-multiples of the stop

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/tradesetup-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "note": "Target at R = entry +/- R x risk (per side). Each R-multiple is one unit of the stop distance.",
        "side": "long",
        "stop": 98,
        "entry": 100,
        "source": "TRADE-SETUP",
        "targets": [
            {
                "r_multiple": 1,
                "target_price": 102,
                "reward_per_unit": 2,
                "gain_pct_from_entry": 2
            },
            {
                "r_multiple": 2,
                "target_price": 104,
                "reward_per_unit": 4,
                "gain_pct_from_entry": 4
            },
            {
                "r_multiple": 3,
                "target_price": 106,
                "reward_per_unit": 6,
                "gain_pct_from_entry": 6
            }
        ],
        "risk_per_unit": 2
    },
    "meta": {
        "timestamp": "2026-06-11T07:49:07.099Z",
        "request_id": "f3a9cd32-54c8-41f5-b851-c8957585cbba"
    },
    "status": "ok",
    "message": "Targets computed",
    "success": true
}