Vai al contenuto
GET /v1/contracts

List perpetual contracts

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

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

{
    "data": {
        "count": 747,
        "exchange": "WEEX",
        "contracts": [
            {
                "symbol": "cmt_btcusdt",
                "tick_size": "1",
                "underlying": "BTC",
                "settle_coin": "USDT",
                "contract_value": "0.0001",
                "quote_currency": "USDT",
                "size_increment": "4"
            },
            {
                "symbol": "cmt_ethusdt",
                "tick_size": "2",
                "underlying": "ETH",
                "settle_coin": "USDT",
                "contract_value": "0.001",
                "quote_currency": "USDT",
                "size_increment": "3"
            },
            {
                "symbol": "cmt_bchusdt",
                "tick_size": "2",
                "underlying": "BCH",
                "settle_coin": "USDT",
                "contract_value": "0.01",
                "quote_currency": "USDT",
                "size_increment": "2"
            },
            {
                "symbol": "cmt_ltcusdt",
                "tick_size": "2",
                "underlying": "LTC",
                "settle_coin": "USDT",
                "contract_value": "0.1",
                "quote_currency": "USDT",
                "size_increment": "1"
            },
            {
                "symbol": "cmt_dogeusdt",
                "tick_size": "5",
                "underlying": "DOGE",
                "settle_coin": "USDT",
                "contract_value": "100",
                "quote_currency": "USDT",
                "size_increment": "0"
            },
            {
                "symbol": "cmt_etcusdt",
                "tick_size": "3",
                "underlying": "ETC",
                "settle_coin": "USDT",
                "contract_value": "1",
                "quote_currency": "USDT",
                "size_increment": "0"
            },
            {
                "symbol": "cmt_filusdt",
                "tick_size": "3",
                "underlying": "FIL",
                "settle_coin": "USDT",
                "contract_value": "1",
                "quote_currency": "USDT",
                "size_increment": "0"
            },
            {
                "symbol": "cmt_uniusdt",
                "tick_size": "3",
                "underlying": "UNI",
                "settle_coin": "USDT",
                "contract_value": "1",
                "quote_currency": "USDT",
                "size_increment": "0"
            },
            {
                "symbol": "cmt_solusdt",
                "tick_size": "2",
                "underlying": "SOL",
                "settle_coin": "USDT",
                "contract_value": "0.1",
                "quote_currency": "USDT",
                "size_increment": "1"
            },
            {
                "symbol": "cmt_linkusdt",
                "tick_size": "3",
                "underlying": "LINK",
                "settle_coin": "USDT",
                "contract_value":
…