This commit is contained in:
KienVT9 2025-05-22 18:21:03 +07:00
parent be5fb603f3
commit 859fb7a19d
11 changed files with 436 additions and 0 deletions

View file

@ -1,3 +1,36 @@
# AI Trading System Backend
## Yêu cầu
- Python 3.8+
- Tài khoản Supabase
- API key Bybit
## Cài đặt
```bash
pip install -r requirements.txt
```
Tạo file `.env` ở thư mục gốc với nội dung:
```
SUPABASE_URL=your_supabase_url
SUPABASE_KEY=your_supabase_key
BYBIT_API_KEY=your_bybit_api_key
BYBIT_API_SECRET=your_bybit_api_secret
```
## Chạy server
```bash
uvicorn app.main:app --reload
```
## Các endpoint
- GET `/api/candles?symbol=BTCUSDT&interval=1` : Lấy dữ liệu nến
- GET `/api/orders?symbol=BTCUSDT` : Lấy thông tin order
- GET `/api/account` : Lấy thông tin tài khoản
# AI-trading-sys