Market Channels

Orderbook Change

Subscribe

Message will be sent once the orderbook has any change (new/cancel/match order).

Field
Value
Description

channel

market.depth.diff

Channel of orderbook change

marketId

{MARKET_ID}

MarketId of subscribed market

circle-info

Orderbook Change applied to a single binary market only.

For categorical market, you should subscribe each market_id individually.

Example
{"action":"SUBSCRIBE","channel":"market.depth.diff","marketId":1274}

Structure

Name
Type
Description

marketId

number

market id

rootMarketId

number

root market id if belongs to a categorical market

tokenId

string

token id of updated conditional token

outcomeSide

number

1 - yes, 2 - no

side

string

bids | asks

price

string

price

size

string

shares of conditional tokens

Market Price Change

Message will be sent once the latest match price has changed.

Subscribe

Field
Value
Description

channel

market.last.price

Channel of market price change

marketId

{MARKET_ID}

MarketId of subscribed binary market

rootMarketId

{ROOT_MARKET_ID}

MarketId of subscribed categorical market

circle-info

If rootMarketId is defined, marketId will be omitted.

Subscribing root market will receive messages of all of its sub-markets.

Structure

Name
Type
Description

marketId

number

market id

rootMarketId

number

root market id if belongs to a categorical market

tokenId

string

token id of updated conditional token

price

string

price

outcomeSide

number

1 - yes, 2 - no

Market Last Trade

Subscribe

Message will be sent once a trade matched in this market.

circle-exclamation
Field
Value
Description

channel

market.last.trade

Channel of market last trade

marketId

{MARKET_ID}

MarketId of subscribed binary market

rootMarketId

{ROOT_MARKET_ID}

MarketId of subscribed categorical market

Structure

Name
Type
Description

marketId

number

market id

rootMarketId

number

root market id if belongs to a categorical market

tokenId

string

token id of updated conditional token

side

string

Buy | Sell | Split | Merge

outcomeSide

number

1 - yes, 2 - no

price

string

price

shares

string

amount of conditional token

amount

string

amount of quote token

Last updated