Analytics API
Market Trends
Analyze market trends by different metrics aggregated over time periods
GET
Analyze Market Trends Over Time
This endpoint provides time-series data to analyze how market metrics change over time. It supports various aggregation intervals and metrics, making it ideal for visualizing trends and patterns.
Authentication Required
This endpoint requires API key authentication.
Query Parameters
- interval (optional): Time interval for aggregation (day, week, month) - default: day
- metric (optional): Metric to measure (count, volume, probability, liquidity) - default: count
- platform (optional): Filter by platform
- market_type (optional): Filter by market type
- category (optional): Filter by category
- start_date (optional): Start date for trend analysis (ISO format)
- end_date (optional): End date for trend analysis (ISO format)
Response Format
Available Metrics
- count: Number of markets created in each time period
- volume: Total trading volume in each time period
- probability: Average probability across markets in each time period
- liquidity: Average liquidity across markets in each time period
Time Intervals
- day: Data aggregated by day
- week: Data aggregated by week
- month: Data aggregated by month
Use Cases
- Trend Analysis: Visualize how market metrics change over time
- Seasonality Detection: Identify patterns in market creation or volume
- Platform Comparison: Compare trends across different platforms
- Category Analysis: Analyze how different market categories evolve
Example Queries
Data Visualization
This endpoint is perfect for creating:
- Line charts showing trends over time
- Bar charts comparing different time periods
- Heat maps visualizing market activity patterns
- Dashboard widgets with trend indicators
Authorizations
Enter your API key as the bearer token
Query Parameters
Filter by platform (e.g., kalshi, polymarket, etc.)
Filter by market type
Filter by category
Time interval for data aggregation
Available options:
day
, week
, month
Start date for trend analysis
End date for trend analysis
Metric to measure
Available options:
count
, volume
, probability
, liquidity
Response
200
application/json
Market trends