curl --request GET \
--url https://api-testnet.mayybee.com/api/markets/{marketId}/price{
"marketId": "jd7ay8vzqtcsyj48zyapp6aa9h7yfq2d",
"tokenId": "259306054748570436...",
"bestBid": 55,
"bestAsk": 58,
"spread": 3,
"midpoint": 56.5,
"lastUpdate": 1704067200000
}Get the current best bid, best ask, spread, and midpoint price for a token.
curl --request GET \
--url https://api-testnet.mayybee.com/api/markets/{marketId}/price{
"marketId": "jd7ay8vzqtcsyj48zyapp6aa9h7yfq2d",
"tokenId": "259306054748570436...",
"bestBid": 55,
"bestAsk": 58,
"spread": 3,
"midpoint": 56.5,
"lastUpdate": 1704067200000
}Market identifier
Token ID (YES or NO)
Current price information
Current market price summary including best bid, best ask, spread, and midpoint.
Market identifier for this price data.
ERC1155 token ID for this price data (YES or NO).
Highest buy order price in cents. Null if no bids exist.
Lowest sell order price in cents. Null if no asks exist.
Difference between best ask and best bid (ask - bid). Lower = more liquid market.
Average of best bid and best ask ((bid + ask) / 2). Best estimate of 'true' price.
Unix timestamp (milliseconds) of last price update.