Market Channels
Orderbook Change
Subscribe
Message will be sent once the orderbook has any change (new/cancel/match order).
channel
market.depth.diff
Channel of orderbook change
marketId
{MARKET_ID}
MarketId of subscribed market
{"action":"SUBSCRIBE","channel":"market.depth.diff","marketId":1274}Structure
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
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
Structure
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.
Please note that the matched trade does not guarantee successful execution on-chain.
And the final on-chain amount/share may vary if fee applied.
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
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