Aller au contenu
GET /v1/ticker

Compact pair ticker: best bid/ask, mid, spread, last trade

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/stellardex-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/stellardex-api/v1/ticker" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/stellardex-api/v1/ticker", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/stellardex-api/v1/ticker");
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/stellardex-api/v1/ticker",
    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": "A compact Stellar DEX ticker for the pair: best bid/ask, mid price, spread and the last executed trade. Defaults to XLM/USDC; pass selling & buying to quote any pair.",
        "buying": "USDC:GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN",
        "source": "Stellar Horizon",
        "spread": 0.0002128,
        "selling": "XLM",
        "best_ask": 0.186428,
        "best_bid": 0.18621516193642912,
        "mid_price": 0.18632158096821455,
        "last_trade": {
            "time": "2026-06-14T08:03:43Z",
            "price": 0.186428
        },
        "spread_pct": 0.1142
    },
    "meta": {
        "timestamp": "2026-06-14T08:03:48.139Z",
        "request_id": "c1149f8b-09ca-4a37-b138-789cba972348"
    },
    "status": "ok",
    "message": "Ticker retrieved successfully",
    "success": true
}