Skip to main content
GET
/
2
/
pm
/
market
/
price
Get prediction market prices
curl --request GET \
  --url https://demo-api.mobula.io/api/2/pm/market/price
{
  "data": {
    "marketId": "<string>",
    "platform": "<string>",
    "timestamp": 123,
    "outcomes": [
      {
        "outcomeId": "<string>",
        "priceUSD": 123,
        "bestBidUSD": 123,
        "bestAskUSD": 123,
        "spreadUSD": 123,
        "timestamp": 123
      }
    ]
  },
  "hostname": "<string>",
  "took": 123
}

Query Parameters

platform
string
required
The prediction market platform (e.g., polymarket).
marketId
string
required
The platform-specific market identifier.
outcomeId
string
Filter to a specific outcome. If omitted, returns prices for all outcomes.

Response

data
object
Price data for the market.
hostname
string
Server hostname that handled the request.
took
number
Request processing time in milliseconds.

Usage Example

curl -X GET "https://api.mobula.io/api/2/pm/market/price?platform=polymarket&marketId=0x1234..."

Example Response

{
  "data": {
    "marketId": "0x1234...",
    "platform": "polymarket",
    "timestamp": 1709913600000,
    "outcomes": [
      { "outcomeId": "71321...", "priceUSD": 0.35, "bestBidUSD": 0.34, "bestAskUSD": 0.36, "spreadUSD": 0.02, "timestamp": 1709913600000 },
      { "outcomeId": "71322...", "priceUSD": 0.65, "bestBidUSD": 0.64, "bestAskUSD": 0.66, "spreadUSD": 0.02, "timestamp": 1709913600000 }
    ]
  },
  "hostname": "api-node-1",
  "took": 12
}

Query Parameters

platform
string
required
marketId
string
required
outcomeId
string

Filter to a specific outcome

Response

200 - application/json

Market prices

data
object
hostname
string
took
number