Descriptions:
Backend Issue #4:
Title: Implement Featured Markets Endpoint
Description:
Create an API endpoint to serve featured/trending markets for display on the landing page.
Requirements:
- GET /api/v1/markets/featured endpoint
- Query smart contract for active markets
- Implement ranking algorithm:
- Trading volume
- Number of participants
- Time remaining
- Category diversity
- Return top 6-8 markets
- Include market metadata:
- Title, description
- Category
- Current odds
- Volume
- Deadline
- Outcome options
- Implement caching
- Add pagination support
- Filter by category (optional query param)
Acceptance Criteria:
Technical Notes:
typescript
GET /api/v1/markets/featured?category=crypto&limit=6
Response: {
markets: Market[],
total: number,
lastUpdated: string
}
[ ] git checkout -b features/issue-4-Featured Markets API
Labels: backend, api, markets, medium-priority
Descriptions:
Backend Issue #4:
Title: Implement Featured Markets Endpoint
Description:
Create an API endpoint to serve featured/trending markets for display on the landing page.
Requirements:
Acceptance Criteria:
Technical Notes:
typescript
GET /api/v1/markets/featured?category=crypto&limit=6
Response: {
markets: Market[],
total: number,
lastUpdated: string
}
[ ]
git checkout -b features/issue-4-Featured Markets APIdevelopbranchLabels: backend, api, markets, medium-priority