/v1/strategy
Build & analyse a named strategy
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/optionstrategy-api/v1/strategy" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/optionstrategy-api/v1/strategy", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/optionstrategy-api/v1/strategy");
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/optionstrategy-api/v1/strategy",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"legs": [
{
"qty": 1,
"type": "call",
"entry": null,
"strike": 100,
"premium": 5
},
{
"qty": 1,
"type": "put",
"entry": null,
"strike": 100,
"premium": 5
}
],
"curve": [
{
"price": 0,
"profit": 90
},
{
"price": 4,
"profit": 86
},
{
"price": 8,
"profit": 82
},
{
"price": 12,
"profit": 78
},
{
"price": 16,
"profit": 74
},
{
"price": 20,
"profit": 70
},
{
"price": 24,
"profit": 66
},
{
"price": 28,
"profit": 62
},
{
"price": 32,
"profit": 58
},
{
"price": 36,
"profit": 54
},
{
"price": 40,
"profit": 50
},
{
"price": 44,
"profit": 46
},
{
"price": 48,
"profit": 42
},
{
"price": 52,
"profit": 38
},
{
"price": 56,
"profit": 34
},
{
"price": 60,
"profit": 30
},
{
"price": 64,
"profit": 26
},
{
"price": 68,
"profit": 22
},
{
"price": 72,
"profit": 18
},
{
"price": 76,
"profit": 14
},
{
"price": 80,
"profit": 10
},
{
"price": 84,
"profit": 6
},
{
"price": 88,
"profit": 2
},
{
"price": 92,
"profit": -2
},
{
"price": 96,
"profit": -6
},
{
"price": 100,
"profit": -10
},
{
"price": 104,
"profit": -6
},
{
"price": 108,
"profit": -2
},
{
"price": 112,
"profit": 2
},
{
"price": 116,
…