Common Subscription

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)

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.)

Note: To receive individual market pair information updates (marketPairInfoChanged), you need to subscribe to the instrument type instead.

Last updated