Naar de inhoud
GET /v1/markets

Tradable pairs with base/quote and precision

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/p2b-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "count": 119,
        "quote": "USDT",
        "source": "P2B",
        "markets": [
            {
                "base": "1INCH",
                "quote": "USDT",
                "market": "1INCH_USDT",
                "base_precision": 1,
                "quote_precision": 4
            },
            {
                "base": "AAVE",
                "quote": "USDT",
                "market": "AAVE_USDT",
                "base_precision": 3,
                "quote_precision": 2
            },
            {
                "base": "AI4",
                "quote": "USDT",
                "market": "AI4_USDT",
                "base_precision": 1,
                "quote_precision": 8
            },
            {
                "base": "AIGENSYN",
                "quote": "USDT",
                "market": "AIGENSYN_USDT",
                "base_precision": 0,
                "quote_precision": 5
            },
            {
                "base": "ALPINE",
                "quote": "USDT",
                "market": "ALPINE_USDT",
                "base_precision": 2,
                "quote_precision": 4
            },
            {
                "base": "ALT",
                "quote": "USDT",
                "market": "ALT_USDT",
                "base_precision": 1,
                "quote_precision": 5
            },
            {
                "base": "APE",
                "quote": "USDT",
                "market": "APE_USDT",
                "base_precision": 2,
                "quote_precision": 4
            },
            {
                "base": "APT",
                "quote": "USDT",
                "market": "APT_USDT",
                "base_precision": 2,
                "quote_precision": 3
            },
            {
                "base": "APTM",
                "quote": "USDT",
                "market": "APTM_USDT",
                "base_precision": 1,
                "quote_precision": 5
            },
            {
                "base": "AR",
                "quote": "USDT",
                "market": "AR_USDT",
                "base_precision": 2,
                "quote_precision": 2
            },
            {
                "base": "ARB",
                "quote": "USDT",
                "market": "ARB_USDT",
                "base_precision": 1,
                "quote_precision": 4
            },
            {
                "base": "ARKM",
                "quote": "USDT",
                "market": "ARKM_USDT",
                "base_precision": 1,
                "quote_precision": 4
            },
            {
                "base": "ARPA",
                "quote": "USDT",
                "market": "ARPA_USDT",
                "base_precision": 1,
                "quote_precision": 5
            },
            {
                "base": "ASIA",
                "quote": "USDT",
                "market": "ASIA_USDT",
                "base_precision": 1,
                "quote_precision": 5
        
…