Aller au contenu
GET /v1/strategy

Build & analyse a named strategy

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/optionstrategy-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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,
                
…