Get best bids per outcome
curl --request GET \
--url https://api.unitedmarket.ai/markets/{id}/best-bidsconst options = {method: 'GET'};
fetch('https://api.unitedmarket.ai/markets/{id}/best-bids', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.unitedmarket.ai/markets/{id}/best-bids"
response = requests.get(url)
print(response.text){
"marketId": "<string>",
"conditionId": "<string>",
"bestBids": [
{
"outcomeId": "<string>",
"tokenId": "<string>",
"bestBid": {
"price": "<string>",
"size": "<string>"
}
}
]
}{
"message": "<string>",
"error": "Unauthorized",
"statusCode": 401
}Markets
Get best bids per outcome
Returns the top bid for each outcome token. Used by market makers checking whether a complement bid would mint. Optional excludeMaker ignores that wallet’s own quotes so the result is the best other bid.
GET
https://api.unitedmarket.ai
/
markets
/
{id}
/
best-bids
Get best bids per outcome
curl --request GET \
--url https://api.unitedmarket.ai/markets/{id}/best-bidsconst options = {method: 'GET'};
fetch('https://api.unitedmarket.ai/markets/{id}/best-bids', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.unitedmarket.ai/markets/{id}/best-bids"
response = requests.get(url)
print(response.text){
"marketId": "<string>",
"conditionId": "<string>",
"bestBids": [
{
"outcomeId": "<string>",
"tokenId": "<string>",
"bestBid": {
"price": "<string>",
"size": "<string>"
}
}
]
}{
"message": "<string>",
"error": "Unauthorized",
"statusCode": 401
}