Zum Inhalt springen
GET /v1/markets

Tradable pairs with base/quote and precision

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/p2b-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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
        
…