Skip to content

Featured Markets API #47

@hman38705

Description

@hman38705

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:

  • Endpoint returns featured markets
  • Ranking algorithm works correctly
  • Market data is complete and accurate
  • Caching improves performance
  • Category filtering works

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

  • Pr Request create your pr against develop branch

Labels: backend, api, markets, medium-priority

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions