No description
Add exchange trading endpoints:
- POST /api/exchange: Create exchange trade
- Validates slot, price staleness, EUR amount limits
- Calculates sats from EUR and agreed price
- Direction-specific premium (buy=+5%, sell=-5%)
- GET /api/trades: List user's exchanges
- POST /api/trades/{id}/cancel: Cancel user's exchange
Add schemas:
- ExchangeRequest, ExchangeResponse
- ExchangeUserContact, AdminExchangeResponse (for Phase 2.4)
- PaginatedExchanges, PaginatedAdminExchanges
|
||
|---|---|---|
| .cursor/rules | ||
| .githooks | ||
| backend | ||
| frontend | ||
| scripts | ||
| shared | ||
| .env.example | ||
| .envrc | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| docker-compose.yml | ||
| Makefile | ||