Mehdi
feat: backend
68025ee
|
Raw
History Blame Contribute Delete
755 Bytes
---
title: CryptoAgentBench API
emoji: πŸ“ˆ
colorFrom: indigo
colorTo: green
sdk: docker
app_port: 7860
pinned: false
---
# CryptoAgentBench API
Benchmarks open-source LLMs as crypto trading agents.
## Endpoints
- `GET /` β€” health check
- `GET /models` β€” list available free-tier LLMs
- `GET /benchmarks` β€” describe A/B/C benchmarks
- `POST /backtest` β€” launch a backtest run
- `GET /runs/{run_id}` β€” get run details + equity curve
- `GET /runs/{run_id}/decisions` β€” get decision log
- `GET /leaderboard` β€” all completed runs sorted by date
## Environment Variables
Set in HuggingFace Space Secrets:
- `OPENROUTER_API_KEY` β€” required
- `CRYPTOPANIC_API_KEY` β€” optional (news)
- `CRYPTOCOMPARE_API_KEY` β€” optional (news fallback)