/v1/targets
Target prices at R-multiples of the stop
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}