Pipeline Engine 10min / 5min / 60min jobs UTC
Pipeline de 11 estágios + AgentRuns
Ordem estrita. Não paraleliza estágios. Cada run = pipeline_run_id único. AgentRuns append-only (nunca atualiza rows depois de SUCCESS/FAILED). Scheduler APScheduler BackgroundScheduler UTC com job_defaults coalesce=True max_instances=1 misfire_grace_time=300.
Estágios do Pipeline
- 1RIGO · ScanPuxa mercados ativos da Gamma API (public, no key), normaliza, salva snapshots append-only immutable
- 2RIGO · FilterLiquidez ≥$500, horas>48, não fechados, spread<20%, cache Redis TTL 5min
- 3HOLTPesquisa YES-biased, 5 fontes, Anthropic JSON mode, fallback heurístico ±5% cap (RESEARCH_CAP_PROBABILITY)
- 4BRAMPesquisa independent NO/contrarian, blindado (NÃO importa HOLT), anti-consensus pull 5%
- 5ILSAPool logit: 0.70·mercado (k=1.0 até calibrar) + 0.15·HOLT + 0.15·BRAM, momentum 0.25×move ±2pp, |q−p|≤5pp
- 6KETTKelly fracionado 0.25 × bancária (running_max_equity), PDF max 6% per position = $3.00 cap on $50 start
- 7Risk Gate13 regras determinísticas EMERGENCY_STOP → EDGE → CONF → LIQ → TIME → STALE → POSITION → DUPLICATE → CORRELATION → EXPOSURE → DAILY LOSS → DRAWDOWN → ALL_CLEAR FIRE
- 8RIGO ExecOrdem PAPER apenas (RuntimeError se trading_mode!=paper). Idempotência UNIQUE(pipeline_run_id, market_id) + SHA256 idempotency_key
- 9TESSMark-to-market Positions, 13 Survival metrics (ROI, WinRate, PF, DD, Runway), PortfolioSnapshot UNIQUE pipeline_run_id
- 10Portfolio Mark (5min)Cada 300s, puxa preços atualizados → fallback DB MarketModel.source_id → mark_position(TESS) + PortfolioSnapshot
- 11Settlements (60min)Cada 3600s, itera posições abertas → MarketModel resolved → settle_position(TESS) → Settlement UNIQUE position FK → MARKET_RESOLVED event
Agent Runs (últimas 50)
Voltar overview| Run ID | Job | Trigger | Status | Scanned | FIRE | Open Pos | Dur (s) | Triggered (UTC) |
|---|---|---|---|---|---|---|---|---|
| run-20261110-195111-68a805 | bitvavo_refresh_5min | SUCCESS | 12 | 0 | 0 | 0.3 | 11/10/2026, 7:51:11 PM | |
| run-20261110-195111-2c47d6 | donchian55_5min | SUCCESS | 2 | 0 | 0 | 0 | 11/10/2026, 7:51:11 PM | |
| run-20261110-195111-ac84ad | live_exit_evaluate_5min | SUCCESS | 0 | 0 | 0 | 0.4 | 11/10/2026, 7:51:11 PM | |
| run-20261110-195111-705a4d | live_reconcile_5min | SUCCESS | 0 | 0 | 0 | 0.6 | 11/10/2026, 7:51:11 PM | |
| run-20261110-195111-2d6778 | portfolio_mark_5min | SUCCESS | 80 | 0 | 0 | 0.2 | 11/10/2026, 7:51:11 PM | |
| run-20261110-194611-a9c3fc | bitvavo_refresh_5min | SUCCESS | 12 | 0 | 0 | 0.3 | 11/10/2026, 7:46:11 PM | |
| run-20261110-194611-d73e82 | donchian55_5min | SUCCESS | 2 | 0 | 0 | 0 | 11/10/2026, 7:46:11 PM | |
| run-20261110-194611-cd8d22 | crypto_scanner_15min | SUCCESS | 2 | 0 | 0 | 1 | 11/10/2026, 7:46:11 PM | |
| run-20261110-194611-3ad01d | live_exit_evaluate_5min | SUCCESS | 0 | 0 | 0 | 0.4 | 11/10/2026, 7:46:11 PM | |
| run-20261110-194611-8aa15c | live_reconcile_5min | SUCCESS | 0 | 0 | 0 | 0.6 | 11/10/2026, 7:46:11 PM | |
| run-20261110-194611-02d621 | live_pending_expire_15min | SUCCESS | 0 | 0 | 0 | 0.1 | 11/10/2026, 7:46:11 PM | |
| run-20261110-194611-95f8ee | portfolio_mark_5min | SUCCESS | 80 | 0 | 0 | 0.1 | 11/10/2026, 7:46:11 PM | |
| run-20261110-194611-7af804 | scan_pipeline_10min | SUCCESS | 80 | 0 | 0 | 0.7 | 11/10/2026, 7:46:11 PM | |
| run-20261110-194111-84278b | bitvavo_refresh_5min | SUCCESS | 12 | 0 | 0 | 0.2 | 11/10/2026, 7:41:11 PM | |
| run-20261110-194111-419e7e | donchian55_5min | SUCCESS | 2 | 0 | 0 | 0 | 11/10/2026, 7:41:11 PM | |
| run-20261110-194111-ecef45 | live_exit_evaluate_5min | SUCCESS | 0 | 0 | 0 | 0.3 | 11/10/2026, 7:41:11 PM | |
| run-20261110-194111-c215b9 | live_reconcile_5min | SUCCESS | 0 | 0 | 0 | 0.6 | 11/10/2026, 7:41:11 PM | |
| run-20261110-194111-6f700c | portfolio_mark_5min | SUCCESS | 80 | 0 | 0 | 0.2 | 11/10/2026, 7:41:11 PM | |
| run-20261110-193611-73e34f | bitvavo_refresh_5min | SUCCESS | 12 | 0 | 0 | 0.3 | 11/10/2026, 7:36:11 PM | |
| run-20261110-193611-3ece74 | donchian55_5min | SUCCESS | 2 | 0 | 0 | 0 | 11/10/2026, 7:36:11 PM | |
| run-20261110-193611-18affd | live_exit_evaluate_5min | SUCCESS | 0 | 0 | 0 | 0.4 | 11/10/2026, 7:36:11 PM | |
| run-20261110-193611-92a2dd | live_reconcile_5min | SUCCESS | 0 | 0 | 0 | 0.6 | 11/10/2026, 7:36:11 PM | |
| run-20261110-193611-0c6843 | portfolio_mark_5min | SUCCESS | 80 | 0 | 0 | 0.1 | 11/10/2026, 7:36:11 PM | |
| run-20261110-193611-2dfca7 | scan_pipeline_10min | SUCCESS | 80 | 0 | 0 | 0.8 | 11/10/2026, 7:36:11 PM | |
| run-20261110-193111-5e5366 | bitvavo_refresh_5min | SUCCESS | 12 | 0 | 0 | 0.5 | 11/10/2026, 7:31:11 PM | |
| run-20261110-193111-1c879b | crypto_scanner_15min | SUCCESS | 2 | 0 | 0 | 0.7 | 11/10/2026, 7:31:11 PM | |
| run-20261110-193111-bfa2ef | donchian55_5min | SUCCESS | 2 | 0 | 0 | 0 | 11/10/2026, 7:31:11 PM | |
| run-20261110-193111-b2f9a8 | live_exit_evaluate_5min | SUCCESS | 0 | 0 | 0 | 0.3 | 11/10/2026, 7:31:11 PM | |
| run-20261110-193111-99b9ef | live_reconcile_5min | SUCCESS | 0 | 0 | 0 | 0.6 | 11/10/2026, 7:31:11 PM | |
| run-20261110-193111-6891c7 | live_pending_expire_15min | SUCCESS | 0 | 0 | 0 | 0.1 | 11/10/2026, 7:31:11 PM | |
| run-20261110-193111-953a4d | portfolio_mark_5min | SUCCESS | 80 | 0 | 0 | 0.1 | 11/10/2026, 7:31:11 PM | |
| run-20261110-192611-3fce67 | bitvavo_refresh_5min | SUCCESS | 12 | 0 | 0 | 0.3 | 11/10/2026, 7:26:11 PM | |
| run-20261110-192611-c0be2e | donchian55_5min | SUCCESS | 2 | 0 | 0 | 0 | 11/10/2026, 7:26:11 PM | |
| run-20261110-192611-fabc00 | live_exit_evaluate_5min | SUCCESS | 0 | 0 | 0 | 0.4 | 11/10/2026, 7:26:11 PM | |
| run-20261110-192611-acf977 | live_reconcile_5min | SUCCESS | 0 | 0 | 0 | 0.6 | 11/10/2026, 7:26:11 PM | |
| run-20261110-192611-3ec26d | portfolio_mark_5min | SUCCESS | 80 | 0 | 0 | 0.1 | 11/10/2026, 7:26:11 PM | |
| run-20261110-192611-23a5e7 | scan_pipeline_10min | SUCCESS | 80 | 0 | 0 | 0.8 | 11/10/2026, 7:26:11 PM | |
| run-20261110-192111-acde3b | bitvavo_refresh_5min | SUCCESS | 12 | 0 | 0 | 0.6 | 11/10/2026, 7:21:11 PM | |
| run-20261110-192111-e9f965 | donchian55_5min | SUCCESS | 2 | 0 | 0 | 0 | 11/10/2026, 7:21:11 PM | |
| run-20261110-192111-8f6e19 | live_exit_evaluate_5min | SUCCESS | 0 | 0 | 0 | 0.3 | 11/10/2026, 7:21:11 PM | |
| run-20261110-192111-80e01b | live_reconcile_5min | SUCCESS | 0 | 0 | 0 | 0.6 | 11/10/2026, 7:21:11 PM | |
| run-20261110-192111-6b2439 | portfolio_mark_5min | SUCCESS | 80 | 0 | 0 | 0.2 | 11/10/2026, 7:21:11 PM | |
| run-20261110-191611-be37ce | bitvavo_refresh_5min | SUCCESS | 12 | 0 | 0 | 0.4 | 11/10/2026, 7:16:11 PM | |
| run-20261110-191611-142724 | crypto_scanner_15min | SUCCESS | 2 | 0 | 0 | 1.4 | 11/10/2026, 7:16:11 PM | |
| run-20261110-191611-fa288b | donchian55_5min | SUCCESS | 2 | 0 | 0 | 0.1 | 11/10/2026, 7:16:11 PM | |
| run-20261110-191611-fd99ab | live_exit_evaluate_5min | SUCCESS | 0 | 0 | 0 | 0.4 | 11/10/2026, 7:16:11 PM | |
| run-20261110-191611-54c6c0 | live_reconcile_5min | SUCCESS | 0 | 0 | 0 | 0.6 | 11/10/2026, 7:16:11 PM | |
| run-20261110-191611-f9c7aa | live_pending_expire_15min | SUCCESS | 0 | 0 | 0 | 0.1 | 11/10/2026, 7:16:11 PM | |
| run-20261110-191611-1b0895 | portfolio_mark_5min | SUCCESS | 80 | 0 | 0 | 0.1 | 11/10/2026, 7:16:11 PM | |
| run-20261110-191611-f1ff35 | settle_markets_60min | SUCCESS | 0 | 0 | 0 | 0.1 | 11/10/2026, 7:16:11 PM |