No description
Find a file
counterweight ce9159c5b0
Phase 2.1-2.3: Add exchange endpoints
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
2025-12-22 18:28:56 +01:00
.cursor/rules Phase 1: Add pgqueuer infrastructure 2025-12-21 22:37:04 +01:00
.githooks fix pre-commit hook and code quality fixes 2025-12-21 22:14:48 +01:00
backend Phase 2.1-2.3: Add exchange endpoints 2025-12-22 18:28:56 +01:00
frontend Phase 1.4: Update frontend types 2025-12-22 18:23:52 +01:00
scripts Phase 0.3: Update E2E tests for cleanup 2025-12-22 18:13:24 +01:00
shared Phase 1.1: Add exchange configuration 2025-12-22 18:16:35 +01:00
.env.example tests passing 2025-12-18 23:33:32 +01:00
.envrc seed user 2025-12-18 22:42:32 +01:00
.gitignore Add Vitest coverage for frontend tests 2025-12-21 22:00:47 +01:00
.pre-commit-config.yaml code quality in place 2025-12-21 22:12:43 +01:00
docker-compose.yml tests passing 2025-12-18 22:08:31 +01:00
Makefile Phase 1: Add pgqueuer infrastructure 2025-12-21 22:37:04 +01:00