Subscribing to this topic provides real-time data on active contracts. Updates will be sent whenever there are changes to the active contracts, including updated prices, trading volume, and other relevant metrics.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "market.active_contracts.subscribe",
  "params": {}
}

Parameters:

  • with_snapshot: Whether to include the snapshot in the response. It may incur additional API credit spending.

Snapshots

Upon subscription, the snapshot of the currently active contracts is provided:

{
    "jsonrpc": "2.0",
    "method": "market.active_contracts.snapshot",
    "params": {
        "data": [
            {
                "mark_price_change_24h": "-2.8",
                "last_price_change_24h": "-1.09",
                "mark_price": "67247.177",
                "index_price": "61858.204",
                "last_price": "68389.5",
                "prev_last_price": "69799",
                "short_name": "BTC-25OCT24",
                "open_interest": "189",
                "low_24h": "67617.5",
                "high_24h": "70027",
                "index_price_change_24h": "-2.68996",
                "volume_24h": "843523343.557",
                "volume_7d": "6232934336.78",
                "id": 1
            },
            {
                "mark_price_change_24h": "-5.452",
                "last_price_change_24h": "1.296",
                "mark_price": "2788.0162",
                "index_price": "2586.5987",
                "last_price": "2970",
                "prev_last_price": "3046.5",
                "short_name": "ETH-27SEP24",
                "open_interest": "182",
                "low_24h": "2875.5",
                "high_24h": "3046.5",
                "index_price_change_24h": "-5.227",
                "volume_24h": "3161099524.95",
                "volume_7d": "4492708927.32",
                "id": 2
            },
            ...
        ]
    }
}

Events

{
    "jsonrpc": "2.0",
    "method": "market.active_contracts.event",
    "params": {
        "data": [
            {
                "mark_price_change_24h": "-2.720737",
                "last_price_change_24h": "1.4550",
                "mark_price": "66675.082",
                "index_price": "61858.204",
                "last_price": "79763",
                "prev_last_price": "77500",
                "short_name": "BTC-27SEP24",
                "open_interest": "895",
                "low_24h": "75000.5",
                "high_24h": "79999.5",
                "index_price_change_24h": "-2.488519",
                "volume_24h": "8689706116.719",
                "volume_7d": "28569936155.111",
                "id": 3
            }
        ]
    }
}