Skip to content

[backend] Implement getBetsByAddress() service #885

Description

@Ehonrie

Implement getBetsByAddress() in backend/src/services/bet.service.ts.

What to implement:

  • Query Bet where bettor == address
  • Support optional filters: status and marketId
  • Order by placedAt descending

Acceptance Criteria:

  • Returns all bets for a known address
  • Returns empty array for unknown address
  • Status filter returns only matching bets
  • Integration test covers all filter combinations

Metadata

Metadata

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions