RapidLiveClient / README.md
Edoruin's picture
Fix RapidLiveClient to use Python
360954c
|
Raw
History Blame Contribute Delete
1.92 kB
---
title: RapidLiveClient
emoji: 馃搱
colorFrom: red
colorTo: green
sdk: docker
app_port: 3000
pinned: false
---
# 馃搱 RapidLiveClient - Trading API
API de trading en vivo con Flask. Conectado a Binance (testnet).
## 鈿狅笍 Aviso
Este es un proyecto de trading algor铆tmico.
- Usar solo en **testnet** inicialmente
- No invertir m谩s de lo que puedas perder
- Los resultados pasados no garantizan resultados futuros
## 馃摗 Endpoints
| M茅todo | Endpoint | Descripci贸n |
|--------|----------|-------------|
| GET | `/` | Estado del servicio |
| GET | `/health` | Health check |
| GET | `/api/balance` | Balance de cuenta |
| GET | `/api/positions` | Posiciones abiertas |
| GET | `/api/orders` | Historial de 贸rdenes |
| POST | `/api/orders` | Crear orden |
| POST | `/api/positions/close` | Cerrar posici贸n |
| POST | `/api/analyze` | An谩lisis de mercado |
## 馃摜 Uso
### Obtener Balance
```bash
curl https://tu-usuario-RapidLiveClient.huggingface.space/api/balance
```
### Crear Orden
```bash
curl -X POST https://tu-usuario-RapidLiveClient.huggingface.space/api/orders \
-H "Content-Type: application/json" \
-d '{"symbol": "BTCUSDT", "side": "BUY", "quantity": 0.01}'
```
### Analizar Mercado
```bash
curl -X POST https://tu-usuario-RapidLiveClient.huggingface.space/api/analyze \
-H "Content-Type: application/json" \
-d '{"symbol": "BTCUSDT"}'
```
## 馃攳 Verificar Conexi贸n (Terminal)
```bash
# Estado del servicio
curl https://tu-usuario-RapidLiveClient.huggingface.space/
# Health check
curl https://tu-usuario-RapidLiveClient.huggingface.space/health
# Ver balance
curl https://tu-usuario-RapidLiveClient.huggingface.space/api/balance
```
## 馃搳 Estrategia
El agente usa:
- **RSI** para sobrecompra/sobreventa
- **Medias m贸viles** para tendencia
- **Stop loss** configurable (5%)
- **Take profit** autom谩tico (10%)
## 馃敆 Consumido por
- **RapidQuant** - Frontend principal