Vai al contenuto
GET /v1/meta

Service metadata and endpoint list

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

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

{
    "data": {
        "note": "Legs format: type:strike:premium:qty, comma-separated (e.g. legs=call:100:5:1,put:100:5:1). type = call|put|stock; qty signed (negative = short); stock uses entry price as the 'strike' field.",
        "source": "Computed in-process from caller-supplied legs (no upstream)",
        "service": "optionstrategy-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/payoff": "Profit-at-expiry curve + metrics for a multi-leg position (legs=call:100:5:1,put:100:5:1).",
            "GET /v1/strategy": "Build & analyse a named strategy (name=straddle, strike=100, premium_call=5, premium_put=5).",
            "GET /v1/breakeven": "Net premium, max profit/loss and breakevens only (legs=...).",
            "GET /v1/strategies": "List supported named strategies and their parameters."
        },
        "description": "Live options-strategy payoff and analysis computed on demand. The payoff endpoint returns the profit-at-expiry curve of any multi-leg position (calls, puts and stock) plus net premium, maximum profit, maximum loss and breakeven points; the breakeven endpoint returns just those headline numbers; the strategy endpoint builds a named strategy (straddle, strangle, bull/bear spread, covered call, protective put, iron condor) from friendly parameters and analyses it; the strategies endpoint lists the supported strategies. Computed live from your input, nothing stored — works for equity, FX or crypto options. A multi-leg payoff engine, distinct from single-option pricing tools.",
        "upstream_status": "ok"
    },
    "meta": {
        "timestamp": "2026-06-10T22:56:17.881Z",
        "request_id": "315ec879-308c-4831-8b13-e41a04d791cc"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}