Documentation Index Fetch the complete documentation index at: https://docs.mobula.io/llms.txt
Use this file to discover all available pages before exploring further.
Alpha — This endpoint is part of the Prediction Markets API, currently in early access. May change without notice.
Query Parameters
The prediction market platform (e.g., polymarket).
Sampling period. Possible values: 1m, 5m, 15m, 1h, 4h, 1d.
Maximum number of data points to return (1 to 500).
Number of records to skip for pagination.
Response
Array of orderbook depth snapshots. Timestamp in milliseconds.
Best bid price at this time.
Best ask price at this time.
Pagination metadata. Current page number (1-based).
Number of records skipped.
Maximum records per page.
Number of records returned in this page.
Server hostname that handled the request.
Time in milliseconds the request took to process.
Usage Example
curl -X GET "https://api.mobula.io/api/2/pm/market/spread-history?platform=polymarket&outcomeId=71321...&period=1h&limit=50"
Example Response
{
"data" : [
{ "timestamp" : 1709910000000 , "bestBidUSD" : 0.34 , "bestAskUSD" : 0.36 , "spreadUSD" : 0.02 },
{ "timestamp" : 1709913600000 , "bestBidUSD" : 0.35 , "bestAskUSD" : 0.37 , "spreadUSD" : 0.02 }
],
"pagination" : { "page" : 1 , "offset" : 0 , "limit" : 100 , "pageEntries" : 2 },
"hostname" : "pm-api-prod-eu-abc12" ,
"took" : 42
}