Common

Subscribe to chain-level common events, including block number changes and market list changes.

Subscribe Request

{
  "id": 5,
  "method": "SUBSCRIBE",
  "params": {
    "chainId": 143,
    "type": "common"
  }
}

Unsubscribe Request

{
  "id": 5,
  "method": "UNSUBSCRIBE",
  "params": {
    "chainId": 143,
    "type": "common"
  }
}

Parameter Description

  • chainId (required): Chain ID

  • type (required): Must be "common"

Data Stream Message Types

Block Number Changed (blockNumChanged)

Market List Changed (marketListChanged)

Market Pair Info Changed (marketPairInfoChanged)

This message is also received when subscribing to the instrument type:

Stream Types

When subscribing to common, you will receive the following stream types:

  1. blockNumChanged: Sent when a new block is mined on the chain

  2. marketListChanged: Sent when the market list is updated (new markets added, markets removed, etc.)

  3. marketPairInfoChanged: Sent when market pair information changes (can also be received via instrument subscription)

Last updated