arbret/backend
counterweight 2702b66fd2
Phase 1.3: Create price endpoint for users
Add GET /api/exchange/price endpoint:
- Available to regular users (BOOK_APPOINTMENT permission)
- Returns current BTC/EUR price with admin premium applied
- Uses cached price from PriceHistory if not stale
- Fetches fresh price from Bitfinex if needed
- Returns is_stale flag when price is older than 5 minutes
- Includes exchange configuration (min/max EUR, increment)
- Handles fetch failures gracefully (returns stale price with error)
2025-12-22 18:22:46 +01:00
..
routes Phase 1.3: Create price endpoint for users 2025-12-22 18:22:46 +01:00
tests Phase 0.1: Remove backend deprecated code 2025-12-22 18:07:14 +01:00
auth.py Phase 0.1: Remove backend deprecated code 2025-12-22 18:07:14 +01:00
database.py Extract duplicated DATABASE_URL parsing to database.py 2025-12-21 23:16:29 +01:00
date_validation.py refactor(backend): extract date range validation utilities 2025-12-22 00:02:41 +01:00
env.example reviewed 2025-12-20 22:38:39 +01:00
invite_utils.py Add ruff linter/formatter for Python 2025-12-21 21:54:26 +01:00
main.py Phase 1.3: Create price endpoint for users 2025-12-22 18:22:46 +01:00
models.py Phase 1.2: Create Exchange model 2025-12-22 18:19:26 +01:00
pagination.py refactor(backend): extract pagination utilities 2025-12-22 00:00:24 +01:00
price_fetcher.py feat: add explicit 30 second timeout for Bitfinex API requests 2025-12-22 16:07:33 +01:00
pyproject.toml chore: promote httpx from dev to regular dependency 2025-12-22 15:41:40 +01:00
pytest.ini tests passing 2025-12-18 22:08:31 +01:00
schemas.py Phase 0.1: Remove backend deprecated code 2025-12-22 18:07:14 +01:00
seed.py Add ruff linter/formatter for Python 2025-12-21 21:54:26 +01:00
shared_constants.py Phase 1.1: Add exchange configuration 2025-12-22 18:16:35 +01:00
validate_constants.py Phase 1.1: Add exchange configuration 2025-12-22 18:16:35 +01:00
validation.py Add ruff linter/formatter for Python 2025-12-21 21:54:26 +01:00
words.txt first implementation 2025-12-20 11:12:11 +01:00