[ QUICK START ]
1) Polling JSON (simple):
- GET /api/signals
- Respuesta: { "count": N, "signals": [ ... ] }
2) Streaming realtime (recomendado):
- Conectar a /stream/signals como EventSource (SSE)
- Cada mensaje trae un evento:
{
"seq": 123,
"ts": 1714212345.12,
"action": "BUY|SELL",
"market": "BTC 5m",
"side": "UP|DOWN",
"price": 0.6123,
"size": 8.25,
"reason": "ENTRY|TP|SL|TRAIL_SELL|BLOCK_END|REBUY",
"strategy": "VARIANT_FLIP|STABLE_TREND",
"mode": "PAPER|LIVE",
"block_slug": "btc-updown-5m-..."
}
3) Recomendación para bots externos:
- Guardar el último seq procesado.
- Ignorar eventos con seq <= último seq (idempotencia).
- Ejecutar lógica de risk management del lado del consumidor.