Skip to content
GET /v1/ticker

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

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/stellardex-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest health check.

{
    "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
}