HYDRA v6Documentazione progetto

Sistema completo

Documentazione tecnica auto-generata Β· cache 60s Β· snapshot 2026-08-28 05:11:00

Server

Hosthydra-unifiedOSUbuntu 24.04.4 LTS
Kernel6.8.0-90-genericUptime144g 9h 38m
CPU core4Load (1/5/15m)3.33 / 2.37 / 1.74
RAM3.4 GB / 7.6 GB (45.4%) Disco /75G totali, 62G usati (87%), 10G liberi

PostgreSQL

PostgreSQL 16.15 (Ubuntu 16.15-0ubuntu0.24.04.1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0, 64-bit
Dimensione database: 25 GB Β· 22 tabelle hydra_v6 + 10 dashboard. Conteggi righe stimati (pg_class.reltuples, prefisso β€œ~”); β€œN/A” se la query supera il timeout di 2s.

Tabelle hydra_v6 (17)

candles_1m β€” ~73,274,296 righe Β· 19.9 GB Β· OHLCV 1 minuto. PK(symbol, open_time). open_time = Unix ms apertura candela. ~44.3M righe, 439 asset.
WRITTEN BY DATA SOURCE (via SERVER LOG)
READ BY LIVE SCANNER, SERVER STAT, SERVER ANALYZ, SERVER QUALITY
DATA FLOW in: Binance WS (kline_1m) -> normalizzazione -> SERVER LOG  β†’  out: Aggregata in 15m/1h/4h/1d; alimenta detector e indicatori
OHLCV base 1 minuto, append-only.

Sample row (SELECT * LIMIT 1):

symbolARBUSDT
open_time1775672460000
open0.1007
high0.1007
low0.1007
close0.1007
volume404018.2
quote_volume40684.63274
trades30

Schema:

ColonnaTipoNullCommento
symboltext NO
open_timebigint NOUnix ms di apertura candela (BIGINT).
opendouble precision NO
highdouble precision NO
lowdouble precision NO
closedouble precision NO
volumedouble precision NO
quote_volumedouble precision YESVolume in valuta quote (USDT).
tradesinteger YESNumero di trade nella candela.

Constraints:

Indici:

candles_15m β€” ~8,512,020 righe Β· 1.8 GB Β· OHLCV 15 minuti. PK(symbol, open_time). ~6.5M righe.
WRITTEN BY DATA SOURCE / aggregazione (via SERVER LOG)
READ BY LIVE SCANNER, SERVER STAT
DATA FLOW in: Aggregazione da candles_1m  β†’  out: Detector LIVE SCANNER, feature SERVER STAT
Timeframe derivato.

Sample row (SELECT * LIMIT 1):

symbolADAUSDT
open_time1767878100000
open0.3893
high0.3903
low0.3886
close0.3901
volume438568.0
quote_volume170836.73834
trades1159

Schema:

ColonnaTipoNullCommento
symboltext NO
open_timebigint NO
opendouble precision NO
highdouble precision NO
lowdouble precision NO
closedouble precision NO
volumedouble precision NO
quote_volumedouble precision YES
tradesinteger YES

Constraints:

Indici:

candles_1h β€” ~2,974,019 righe Β· 560.4 MB Β· OHLCV 1 ora. PK(symbol, open_time). ~1.6M righe.
WRITTEN BY DATA SOURCE / aggregazione (via SERVER LOG)
READ BY SERVER STAT, SERVER ANALYZ
DATA FLOW in: Aggregazione da candles_1m + backfill storico Binance spot klines (major, 2021+)  β†’  out: Indicatori Tier 1-3 (SERVER STAT)
Timeframe principale indicatori. Backfill storico lungo da Binance spot (2021-oggi) per 20 major (Passo1 ricerca, scripts/14): ~48k candele/asset.

Sample row (SELECT * LIMIT 1):

symbolADAUSDT
open_time1767880800000
open0.3891
high0.3902
low0.3849
close0.3887
volume10309012.5
quote_volume3999154.25694
trades18807

Schema:

ColonnaTipoNullCommento
symboltext NO
open_timebigint NO
opendouble precision NO
highdouble precision NO
lowdouble precision NO
closedouble precision NO
volumedouble precision NO
quote_volumedouble precision YES
tradesinteger YES

Constraints:

Indici:

candles_4h β€” ~568,527 righe Β· 92.5 MB Β· OHLCV 4 ore. PK(symbol, open_time). ~568K righe. Aggiunta in fase-1-migration-v2.
WRITTEN BY DATA SOURCE / aggregazione (via SERVER LOG)
READ BY SERVER STAT, SERVER ANALYZ
DATA FLOW in: Aggregazione da candles_1m  β†’  out: Indicatori multi-timeframe
Timeframe derivato.

Sample row (SELECT * LIMIT 1):

symbolSOLUSDT
open_time1761148800000
open183.99
high184.96
low177.07
close180.2
volume862504.568
quote_volume156715416.5352
trades631942

Schema:

ColonnaTipoNullCommento
symboltext NO
open_timebigint NO
opendouble precision NO
highdouble precision NO
lowdouble precision NO
closedouble precision NO
volumedouble precision NO
quote_volumedouble precision YES
tradesinteger YES

Constraints:

Indici:

candles_1d β€” ~127,778 righe Β· 19.9 MB Β· OHLCV 1 giorno. PK(symbol, open_time). ~94K righe.
WRITTEN BY DATA SOURCE / aggregazione (via SERVER LOG)
READ BY SERVER STAT, SERVER ANALYZ
DATA FLOW in: Aggregazione da candles_1m + backfill storico Binance spot klines (major, 2021+)  β†’  out: Indicatori daily, beta, regime
Timeframe daily. Backfill storico lungo da Binance spot (2021-oggi) per 20 major (Passo1 ricerca, scripts/14): 2008 candele/asset. Copre bull+bear per ricerca edge.

Sample row (SELECT * LIMIT 1):

symbolADAUSDT
open_time1761177600000
open0.6238
high0.654
low0.6227
close0.6428
volume93548863.2
quote_volume59800155.24974
trades241871

Schema:

ColonnaTipoNullCommento
symboltext NO
open_timebigint NO
opendouble precision NO
highdouble precision NO
lowdouble precision NO
closedouble precision NO
volumedouble precision NO
quote_volumedouble precision YES
tradesinteger YES

Constraints:

Indici:

driver_per_asset β€” ~1,503,667 righe Β· 363.2 MB Β· Driver per-asset (funding_rate, open_interest, long_short_ratio...). PK(driver_name, symbol, timestamp_ms). ~21K righe, 10 major.
WRITTEN BY DATA SOURCE (via SERVER LOG)
READ BY LIVE SCANNER, SERVER STAT, SERVER ANALYZ
DATA FLOW in: Binance REST (funding, OI, long/short)  β†’  out: Edge Funding Q90, detector funding_extreme
Driver per simbolo (10 major piu' densi).

Sample row (SELECT * LIMIT 1):

driver_namefunding_rate
symbolAGLDUSDT
timestamp_ms1690617600000
value0.0001
metadataNULL

Schema:

ColonnaTipoNullCommento
driver_nametext NONome driver: funding_rate, open_interest, long_short_ratio, ...
symboltext NO
timestamp_msbigint NO
valuedouble precision YESValore numerico del driver al timestamp.
metadatajsonb YESPayload JSONB con dettagli aggiuntivi.

Constraints:

Indici:

driver_global β€” ~1,074 righe Β· 448.0 KB Β· Driver globali (fear_greed, btc_dominance, stablecoin_supply, macro_*). PK(driver_name, timestamp_ms). ~1074 righe.
WRITTEN BY DATA SOURCE (via SERVER LOG)
READ BY SERVER ANALYZ
DATA FLOW in: Alternative.me (F&G), FRED (DXY/macro), DefiLlama (stablecoin)  β†’  out: Moduli di contesto/regime (Cat D)
Driver di mercato globali.

Sample row (SELECT * LIMIT 1):

driver_namefear_greed
timestamp_ms1763856000000
value13.0
metadata{"classification": "Extreme Fear", "time_until_update": ""}

Schema:

ColonnaTipoNullCommento
driver_nametext NONome driver globale: fear_greed, btc_dominance, ...
timestamp_msbigint NO
valuedouble precision YES
metadatajsonb YES

Constraints:

Indici:

token_metadata β€” ~420 righe Β· 360.0 KB Β· Un record per simbolo: asset base/quote, tier, listing, attivo. ~420 token.
WRITTEN BY DATA SOURCE
READ BY AGENT AI (filtri universe), LIVE SCANNER
DATA FLOW in: Coingecko / listing Binance  β†’  out: Filtri AGENT AI (vol/eta'/spread/blacklist)
Un record per simbolo.

Sample row (SELECT * LIMIT 1):

symbol0GUSDT
base_asset0G
quote_assetUSDT
tierNULL
listed_at2026-04-19 21:53:00+00:00
is_activeTrue
metadata{"name": "0G", "ath_usd": 7.05, "atl_usd": 0.455121, "category": "Artificial Intelligence (AI)", "first_seen": "2026-04-19 21:53:00", "market_cap": 123106703.0,…

Schema:

ColonnaTipoNullCommento
symboltext NO
base_assettext YES
quote_assettext YES
tiertext YESTier di liquidita' / importanza del token.
listed_attimestamp with time zone YES
is_activeboolean NOTRUE se il token e' nello universe attivo.
metadatajsonb YES

Constraints:

Indici:

token_fingerprint_history β€” ~0 righe Β· 24.0 KB Β· Snapshot periodici per simbolo (volume_24h, market_cap, prezzo, liquidita'). PK(symbol, timestamp_ms).
WRITTEN BY DATA SOURCE / fingerprint (legacy v4/v5)
READ BY SERVER QUALITY, AGENT AI
DATA FLOW in: Snapshot periodici volume/mcap/liquidita'  β†’  out: Filtri liquidita' e analisi qualita'
Storico fingerprint per simbolo.

Sample row (SELECT * LIMIT 1):

(tabella vuota)

Schema:

ColonnaTipoNullCommento
symboltext NO
timestamp_msbigint NO
volume_24hdouble precision YES
market_capdouble precision YES
pricedouble precision YES
liquiditydouble precision YES
metadatajsonb YES

Constraints:

Indici:

live_events β€” ~0 righe Β· 40.0 KB Β· Eventi grezzi dal LIVE SCANNER / sistema (5 detector: pump, dump, volume_spike, funding_extreme, liquidity_drop).
WRITTEN BY LIVE SCANNER
READ BY SERVER ANALYZ, SERVER QUALITY, AGENT AI
DATA FLOW in: 5 detector @1min su candele/driver  β†’  out: Contesto per ANALYZ, audit eventi
Eventi grezzi del mercato.

Sample row (SELECT * LIMIT 1):

(tabella vuota)

Schema:

ColonnaTipoNullCommento
idbigint NO
event_typetext NOTipo evento/detector che ha generato l'evento.
symboltext YES
timestamp_msbigint NO
severitytext YESSeverita' evento (info/warning/critical).
payloadjsonb YES
created_attimestamp with time zone NO

Constraints:

Indici:

analyz_signals β€” ~247 righe Β· 224.0 KB Β· Segnali prodotti da SERVER ANALYZ (15 moduli). score 0-1 continuo.
WRITTEN BY SERVER ANALYZ
READ BY AGENT AI, SERVER QUALITY
DATA FLOW in: 15 moduli (Cat A-E) su feature SERVER STAT  β†’  out: Decisioni di trading (AGENT AI)
Score 0-1 continuo per simbolo.

Sample row (SELECT * LIMIT 1):

id211
symbolBTCUSDT
signal_typefunding_q90_defensive
timestamp_ms1761177600000
directionshort
score1.0
payload{"z21": 2.575805803581311, "funding_rate": 8.911e-05, "q90_threshold": 1.2974035460139137}
created_at2026-06-30 21:29:38.519040+00:00

Schema:

ColonnaTipoNullCommento
idbigint NO
symboltext NO
signal_typetext NOModulo/tipo segnale (es. funding_q90_defensive).
timestamp_msbigint NO
directiontext YESDirezione segnale: long/short/neutral.
scoredouble precision YESScore continuo 0-1.
payloadjsonb YES
created_attimestamp with time zone NO

Constraints:

Indici:

decisions β€” ~0 righe Β· 32.0 KB Β· Decisioni di trading (output AGENT AI rule-based). action: buy/sell/hold/close.
WRITTEN BY AGENT AI
READ BY SERVER QUALITY, EMERGENCY
DATA FLOW in: Regole su analyz_signals + filtri  β†’  out: Esecuzione paper, audit qualita'
Output del decisore rule-based.

Sample row (SELECT * LIMIT 1):

(tabella vuota)

Schema:

ColonnaTipoNullCommento
idbigint NO
symboltext NO
timestamp_msbigint NO
actiontext NO
confidencedouble precision YESConfidenza della decisione 0-1.
reasontext YES
signal_idbigint YESFK ad analyz_signals che ha originato la decisione.
payloadjsonb YES
created_attimestamp with time zone NO

Constraints:

Indici:

paper_positions β€” ~0 righe Β· 40.0 KB Β· Posizioni del paper-trading engine. exit_reason ESPLICITO per evitare il mislabel "manual_sell" visto in v4/v5.
WRITTEN BY AGENT AI
READ BY SERVER QUALITY, EMERGENCY
DATA FLOW in: Apertura/chiusura da decisions  β†’  out: Analisi perdite (QUALITY), liquidazione (EMERGENCY)
exit_reason esplicito (no mislabel manual_sell).

Sample row (SELECT * LIMIT 1):

(tabella vuota)

Schema:

ColonnaTipoNullCommento
idbigint NO
symboltext NO
sidetext NO
statustext NOopen / closed.
entry_time_msbigint NO
entry_pricedouble precision NO
sizedouble precision NO
exit_time_msbigint YES
exit_pricedouble precision YES
exit_reasontext YESMotivo di uscita esplicito (NO mislabel manual_sell).
pnldouble precision YES
pnl_pctdouble precision YESPnL percentuale della posizione.
metadatajsonb YES
created_attimestamp with time zone NO

Constraints:

Indici:

heartbeats β€” ~0 righe Β· 24.0 KB Β· Health-check componenti (heartbeat 5min usato anche da EMERGENCY trigger).
WRITTEN BY TUTTI i servizi v6
READ BY SERVER QUALITY, EMERGENCY
DATA FLOW in: Ping periodico di ogni componente  β†’  out: Health check 5min, trigger heartbeat EMERGENCY
Liveness dei componenti.

Sample row (SELECT * LIMIT 1):

(tabella vuota)

Schema:

ColonnaTipoNullCommento
idbigint NO
componenttext NO
timestamp_msbigint NO
statustext NO
latency_msdouble precision YES
metadatajsonb YES

Constraints:

Indici:

quality_reports β€” ~0 righe Β· 32.0 KB Β· Report di SERVER QUALITY (auditor investigativo, health 5min, analisi perdite per-trade).
WRITTEN BY SERVER QUALITY
READ BY EMERGENCY (critical), operatore
DATA FLOW in: Audit su trade/decisioni/heartbeat  β†’  out: Trigger quality_critical di EMERGENCY
Report investigativi, nessuna notifica.

Sample row (SELECT * LIMIT 1):

(tabella vuota)

Schema:

ColonnaTipoNullCommento
idbigint NO
report_typetext NO
scopetext YES
timestamp_msbigint NO
statustext YES
detailsjsonb YES
created_attimestamp with time zone NO

Constraints:

Indici:

emergency_actions β€” ~0 righe Β· 24.0 KB Β· Azioni EMERGENCY / kill-switch (8 trigger, market sell, restart manuale).
WRITTEN BY EMERGENCY
READ BY SERVER QUALITY, operatore
DATA FLOW in: Scatto di uno degli 8 trigger  β†’  out: Market sell + halt; audit post-mortem
Kill-switch, restart manuale.

Sample row (SELECT * LIMIT 1):

(tabella vuota)

Schema:

ColonnaTipoNullCommento
idbigint NO
action_typetext NO
timestamp_msbigint NO
reasontext YES
triggered_bytext YESTrigger che ha causato l'azione (es. drawdown_20, flash_crash_btc).
detailsjsonb YES
created_attimestamp with time zone NO

Constraints:

Indici:

schema_info β€” ~1 righe Β· 32.0 KB Β· Versioning/tracking delle migrazioni schema.
WRITTEN BY Migrazioni / DDL
READ BY Operatore / dashboard
DATA FLOW in: Script di migrazione (scripts/)  β†’  out: Versioning schema
Tracking versioni schema.

Sample row (SELECT * LIMIT 1):

versionfase-1-schema
descriptionSchema iniziale HYDRA v6: candele, driver, metadata, tabelle operative
applied_at2026-06-25 20:23:05.895565+00:00

Schema:

ColonnaTipoNullCommento
versiontext NO
descriptiontext YES
applied_attimestamp with time zone NO

Constraints:

Indici:

features_1h β€” ~2,964,775 righe Β· 1.5 GB Β· HYDRA v6 SERVER STAT: ~30 indicatori tecnici per (symbol, open_time) sul timeframe 1h. NULL dove storia/driver insufficienti.

Sample row (SELECT * LIMIT 1):

symbolOPUSDT
open_time1654167600000
rsi_1450.67380520174665
ema_91.2128059482601254
ema_211.2414795625237112
ema_50NULL
ema_200NULL
ret_10.03542673107890493
ret_40.1260945709281962
ret_24-0.023538344722854876
ret_168NULL
ret_720NULL
atr_140.13132024926243094
realized_vol_240.05154636578077439
realized_vol_168NULL
volume_ratio0.732906453671831
volume_zscore-0.5632378003569534
momentum_30dNULL
dist_from_ema200NULL
bb_upper1.3167493649511033
bb_lower1.0921506350488968
bb_position0.8630919909275891
vol_percentile_200NULL
vwap_241.219085772821969
beta_btcNULL
corr_btc_30NULL
rel_strength_btcNULL
funding_rate9.202e-05
funding_z21NULL
funding_slopeNULL
oi_changeNULL

Schema:

ColonnaTipoNullCommento
symbolcharacter varying NO
open_timebigint NO
rsi_14double precision YES
ema_9double precision YES
ema_21double precision YES
ema_50double precision YES
ema_200double precision YES
ret_1double precision YES
ret_4double precision YES
ret_24double precision YES
ret_168double precision YES
ret_720double precision YES
atr_14double precision YES
realized_vol_24double precision YES
realized_vol_168double precision YES
volume_ratiodouble precision YES
volume_zscoredouble precision YES
momentum_30ddouble precision YES
dist_from_ema200double precision YES
bb_upperdouble precision YES
bb_lowerdouble precision YES
bb_positiondouble precision YES
vol_percentile_200double precision YES
vwap_24double precision YES
beta_btcdouble precision YES
corr_btc_30double precision YES
rel_strength_btcdouble precision YES
funding_ratedouble precision YES
funding_z21double precision YES
funding_slopedouble precision YES
oi_changedouble precision YES

Constraints:

Indici:

features_4h β€” ~568,527 righe Β· 302.6 MB Β· HYDRA v6 SERVER STAT: ~30 indicatori tecnici per (symbol, open_time) sul timeframe 4h. NULL dove storia/driver insufficienti.

Sample row (SELECT * LIMIT 1):

symbolJASMYUSDT
open_time1761148800000
rsi_14NULL
ema_9NULL
ema_21NULL
ema_50NULL
ema_200NULL
ret_1NULL
ret_4NULL
ret_24NULL
ret_168NULL
ret_720NULL
atr_14NULL
realized_vol_24NULL
realized_vol_168NULL
volume_ratioNULL
volume_zscoreNULL
momentum_30dNULL
dist_from_ema200NULL
bb_upperNULL
bb_lowerNULL
bb_positionNULL
vol_percentile_200NULL
vwap_24NULL
beta_btcNULL
corr_btc_30NULL
rel_strength_btcNULL
funding_rate-0.00023426
funding_z21-1.4121673485960067
funding_slope1.8587012987012995e-07
oi_changeNULL

Schema:

ColonnaTipoNullCommento
symbolcharacter varying NO
open_timebigint NO
rsi_14double precision YES
ema_9double precision YES
ema_21double precision YES
ema_50double precision YES
ema_200double precision YES
ret_1double precision YES
ret_4double precision YES
ret_24double precision YES
ret_168double precision YES
ret_720double precision YES
atr_14double precision YES
realized_vol_24double precision YES
realized_vol_168double precision YES
volume_ratiodouble precision YES
volume_zscoredouble precision YES
momentum_30ddouble precision YES
dist_from_ema200double precision YES
bb_upperdouble precision YES
bb_lowerdouble precision YES
bb_positiondouble precision YES
vol_percentile_200double precision YES
vwap_24double precision YES
beta_btcdouble precision YES
corr_btc_30double precision YES
rel_strength_btcdouble precision YES
funding_ratedouble precision YES
funding_z21double precision YES
funding_slopedouble precision YES
oi_changedouble precision YES

Constraints:

Indici:

features_1d β€” ~127,778 righe Β· 46.9 MB Β· HYDRA v6 SERVER STAT: ~30 indicatori tecnici per (symbol, open_time) sul timeframe 1d. NULL dove storia/driver insufficienti.

Sample row (SELECT * LIMIT 1):

symbolLUMIAUSDT
open_time1761177600000
rsi_14NULL
ema_9NULL
ema_21NULL
ema_50NULL
ema_200NULL
ret_1NULL
ret_4NULL
ret_24NULL
ret_168NULL
ret_720NULL
atr_14NULL
realized_vol_24NULL
realized_vol_168NULL
volume_ratioNULL
volume_zscoreNULL
momentum_30dNULL
dist_from_ema200NULL
bb_upperNULL
bb_lowerNULL
bb_positionNULL
vol_percentile_200NULL
vwap_24NULL
beta_btcNULL
corr_btc_30NULL
rel_strength_btcNULL
funding_rate0.00054555
funding_z213.453592114913977
funding_slope8.795155844155844e-06
oi_changeNULL

Schema:

ColonnaTipoNullCommento
symbolcharacter varying NO
open_timebigint NO
rsi_14double precision YES
ema_9double precision YES
ema_21double precision YES
ema_50double precision YES
ema_200double precision YES
ret_1double precision YES
ret_4double precision YES
ret_24double precision YES
ret_168double precision YES
ret_720double precision YES
atr_14double precision YES
realized_vol_24double precision YES
realized_vol_168double precision YES
volume_ratiodouble precision YES
volume_zscoredouble precision YES
momentum_30ddouble precision YES
dist_from_ema200double precision YES
bb_upperdouble precision YES
bb_lowerdouble precision YES
bb_positiondouble precision YES
vol_percentile_200double precision YES
vwap_24double precision YES
beta_btcdouble precision YES
corr_btc_30double precision YES
rel_strength_btcdouble precision YES
funding_ratedouble precision YES
funding_z21double precision YES
funding_slopedouble precision YES
oi_changedouble precision YES

Constraints:

Indici:

legacy_trades β€” ~5,403 righe Β· 3.8 MB Β· Simulazioni storiche v2-v5: trades chiusi importati dai vecchi DB SQLite.

Sample row (SELECT * LIMIT 1):

id1
source_versionv2
source_engineai
symbol5HHANI_SOLANA
sidelong
entry_time2026-03-31 06:41:06+00:00
entry_price0.01538
exit_time2026-03-31 07:45:40+00:00
exit_price0.01547
quantityNULL
pnl_eur0.0213
pnl_pct0.5851755526657954
exit_reasonai_signal
source_dbhistorical_trades.db
metadata{"chain": "solana", "layer": "l4", "cost_eur": 25.0, "holding_hours": 1.0761100822222223, "signal_source": "momentum", "orig_source_db": "v2_hydra_ai", "symbol_…
imported_at2026-06-29 20:32:00.500002+00:00
dedup_keyhistorical_trades.db|v2|ai|5HHANI_SOLANA|2026-03-31 06:41:06|2026-03-31 07:45:40|0.0213

Schema:

ColonnaTipoNullCommento
idbigint NO
source_versioncharacter varying YES
source_enginecharacter varying YES
symbolcharacter varying YES
sidecharacter varying YES
entry_timetimestamp with time zone YES
entry_pricedouble precision YES
exit_timetimestamp with time zone YES
exit_pricedouble precision YES
quantitydouble precision YES
pnl_eurdouble precision YES
pnl_pctdouble precision YES
exit_reasoncharacter varying YES
source_dbcharacter varying YES
metadatajsonb YES
imported_attimestamp with time zone YES
dedup_keytext YES

Constraints:

Indici:

legacy_equity_log β€” ~343,742 righe Β· 137.0 MB Β· Simulazioni storiche v2-v5: curve di equity importate dai vecchi DB SQLite.

Sample row (SELECT * LIMIT 1):

id1
source_versionv2
source_engineai
timestamp2026-04-06 09:28:32+00:00
equity_eur200.0
source_dbhistorical_trades.db
metadata{"orig_source_db": "v2_hydra_ai"}
dedup_keyhistorical_trades.db|v2|ai|2026-04-06 09:28:32|200.0

Schema:

ColonnaTipoNullCommento
idbigint NO
source_versioncharacter varying YES
source_enginecharacter varying YES
timestamptimestamp with time zone NO
equity_eurdouble precision YES
source_dbcharacter varying YES
metadatajsonb YES
dedup_keytext YES

Constraints:

Indici:

Tabelle dashboard (10)

dashboard_notes β€” ~9 righe Β· 32.0 KB Β· Dashboard: note libere per pagina (contenuto editoriale unico, da backuppare).
WRITTEN BY Dashboard web (utente)
READ BY Dashboard (/v5 e altre pagine)
DATA FLOW in: Form web  β†’  out: Rendering note
Contenuto editoriale, backuppato.

Sample row (SELECT * LIMIT 1):

id1
pagev5
categoryengine
titleENGINE V5 β€” STANDARD
contentMean-reversion, RSI<35, hard-stop -9%. FERMATO.
created_at2026-06-28 18:10:51.552788+00:00
updated_at2026-06-28 18:10:51.552788+00:00

Schema:

ColonnaTipoNullCommento
idbigint NO
pagecharacter varying NO
categorycharacter varying YES
titlecharacter varying YES
contenttext NO
created_attimestamp with time zone YES
updated_attimestamp with time zone YES

Constraints:

Indici:

dashboard_decisions β€” ~14 righe Β· 64.0 KB Β· Dashboard: decisioni di design per servizio v6. status: active/pending/applied/abandoned/in_progress/done.
WRITTEN BY Dashboard web (utente)
READ BY Dashboard (/servizi, /roadmap)
DATA FLOW in: Form web  β†’  out: Pagine servizi e decisioni pendenti
Decisioni di design, backuppate.

Sample row (SELECT * LIMIT 1):

id1
servicedata_source
decision_titleSorgenti esterne, nessuna persistenza propria
decision_textBinance WS+REST, FRED, DefiLlama, Alternative.me, Coingecko. Il servizio normalizza e inoltra; la persistenza e' delegata a SERVER LOG (PostgreSQL).
rationaleSeparazione netta ingest/storage; evita duplicazione dati.
statusactive
created_at2026-06-28 18:10:51.552788+00:00
updated_at2026-06-28 18:10:51.552788+00:00

Schema:

ColonnaTipoNullCommento
idbigint NO
servicecharacter varying NO
decision_titlecharacter varying NO
decision_texttext NO
rationaletext YES
statuscharacter varying YES
created_attimestamp with time zone YES
updated_attimestamp with time zone YES

Constraints:

Indici:

dashboard_ideas β€” ~10 righe Β· 48.0 KB Β· Dashboard: backlog idee/task. status: pending/in_progress/done/abandoned. priority 1(alta)-5(bassa).
WRITTEN BY Dashboard web (utente)
READ BY Dashboard (/servizi, /roadmap)
DATA FLOW in: Form web  β†’  out: Backlog e task per servizio
Idee/task, backuppate.

Sample row (SELECT * LIMIT 1):

id2
titleJob retention 180gg
descriptionDefinire e schedulare il job di retention append-only a 180 giorni.
categoryserver_log
priority3
statuspending
created_at2026-06-28 18:10:51.552788+00:00
updated_at2026-06-28 18:10:51.552788+00:00

Schema:

ColonnaTipoNullCommento
idbigint NO
titlecharacter varying NO
descriptiontext YES
categorycharacter varying YES
priorityinteger YES
statuscharacter varying YES
created_attimestamp with time zone YES
updated_attimestamp with time zone YES

Constraints:

Indici:

dashboard_roadmap β€” ~12 righe Β· 32.0 KB Β· Dashboard: stato fasi 0-10 del progetto v6 (status: completed/in_progress/pending).
WRITTEN BY Dashboard web (utente)
READ BY Dashboard (/home, /roadmap)
DATA FLOW in: Form web + seed iniziale  β†’  out: Timeline fasi, % completamento
Stato fasi 0-10, backuppato.

Sample row (SELECT * LIMIT 1):

phase_num0.0
phase_namePulizia ambiente + PostgreSQL
statuscompleted
estimated_days1g
started_at2026-06-25 00:00:00+00:00
completed_at2026-06-25 00:00:00+00:00
git_tagNULL
descriptionSetup ambiente v6 e installazione PostgreSQL.

Schema:

ColonnaTipoNullCommento
phase_numnumeric NO
phase_namecharacter varying NO
statuscharacter varying NO
estimated_dayscharacter varying YES
started_attimestamp with time zone YES
completed_attimestamp with time zone YES
git_tagcharacter varying YES
descriptiontext YES

Constraints:

Indici:

dashboard_backups_log β€” ~51 righe Β· 24.0 KB Β· Dashboard: registro dei backup eseguiti (auto/manuale).
WRITTEN BY Backup (auto/manuale)
READ BY Dashboard (/backup)
DATA FLOW in: dashboard_backup.sh / API backup  β†’  out: Elenco backup disponibili
Registro dei backup.

Sample row (SELECT * LIMIT 1):

id1
backup_filedashboard_backup_20260628_185542.sql
backup_typeauto
size_bytes20136
created_at2026-06-28 18:55:42.383464+00:00

Schema:

ColonnaTipoNullCommento
idbigint NO
backup_filecharacter varying NO
backup_typecharacter varying YES
size_bytesbigint YES
created_attimestamp with time zone YES

Constraints:

Indici:

dashboard_service_logic β€” ~57 righe Β· 80.0 KB Β· Dashboard: documentazione LOGICA per servizio v6 (section: INPUT/LOGIC/OUTPUT/PSEUDOCODE/KEY PARAMETERS/DEPENDENCIES/RESOURCES/MODULES).
WRITTEN BY Seed (Task 1)
READ BY Dashboard (/servizi)
DATA FLOW in: scripts/05_service_logic_seed.py  β†’  out: Sezione LOGICA per servizio
Doc tecnica per servizio.

Sample row (SELECT * LIMIT 1):

id1
servicedata_source
sectionINPUT
contentBinance WebSocket (kline/trade streams) + REST (klines, funding rate, open interest, long/short ratio). FRED (DXY, tassi). DefiLlama (stablecoin supply, TVL). A…
ordering1
created_at2026-06-28 19:16:12.692604+00:00
updated_at2026-06-28 19:16:12.692604+00:00

Schema:

ColonnaTipoNullCommento
idbigint NO
servicecharacter varying NO
sectioncharacter varying NO
contenttext NO
orderinginteger YES
created_attimestamp with time zone YES
updated_attimestamp with time zone YES

Constraints:

Indici:

dashboard_table_metadata β€” ~24 righe Β· 32.0 KB Β· Dashboard: per ogni tabella hydra_v6/dashboard chi la scrive, chi la legge e il data flow (in/out).
WRITTEN BY Seed (Task 2)
READ BY Dashboard (/sistema)
DATA FLOW in: scripts/06_table_metadata_seed.py  β†’  out: Data flow per tabella su /sistema
Questa tabella.

Sample row (SELECT * LIMIT 1):

table_namecandles_1m
written_byDATA SOURCE (via SERVER LOG)
read_byLIVE SCANNER, SERVER STAT, SERVER ANALYZ, SERVER QUALITY
data_flow_inBinance WS (kline_1m) -> normalizzazione -> SERVER LOG
data_flow_outAggregata in 15m/1h/4h/1d; alimenta detector e indicatori
notesOHLCV base 1 minuto, append-only.
updated_at2026-06-28 19:18:41.125950+00:00

Schema:

ColonnaTipoNullCommento
table_namecharacter varying NO
written_bycharacter varying YES
read_bycharacter varying YES
data_flow_intext YES
data_flow_outtext YES
notestext YES
updated_attimestamp with time zone YES

Constraints:

Indici:

dashboard_events β€” ~8 righe Β· 64.0 KB Β· Dashboard: timeline eventi del progetto (commit/fase/decisione/manuale).

Sample row (SELECT * LIMIT 1):

id1
event_date2026-06-25
event_typefase
titleFase 0 completata β€” Pulizia ambiente + PostgreSQL
descriptionSetup ambiente v6 e installazione PostgreSQL.
related_serviceNULL
related_phase0
metadataNULL
created_at2026-06-28 19:21:34.249287+00:00

Schema:

ColonnaTipoNullCommento
idbigint NO
event_datedate NO
event_typecharacter varying NO
titlecharacter varying NO
descriptiontext YES
related_servicecharacter varying YES
related_phasecharacter varying YES
metadatajsonb YES
created_attimestamp with time zone YES

Constraints:

Indici:

dashboard_audit_log β€” ~51 righe Β· 168.0 KB Β· Dashboard: log automatico (trigger) delle modifiche alle tabelle dashboard_* editabili.

Sample row (SELECT * LIMIT 1):

id1
table_namedashboard_ideas
actionINSERT
record_id15
old_dataNULL
new_data{"id": 15, "title": "auto analisi ", "status": "pending", "category": "backlog", "priority": 3, "created_at": "2026-06-28T19:33:37.900765+00:00", "updated_at": …
changed_at2026-06-28 19:33:37.900765+00:00

Schema:

ColonnaTipoNullCommento
idbigint NO
table_namecharacter varying NO
actioncharacter varying NO
record_idtext YES
old_datajsonb YES
new_datajsonb YES
changed_attimestamp with time zone YES

Constraints:

Indici:

dashboard_findings β€” ~43 righe Β· 104.0 KB Β· Dashboard: knowledge base ricerca, strategie testate, lezioni v2-v5.

Sample row (SELECT * LIMIT 1):

id1
finding_number1
finding_typefinding
titleWalk-forward #1 β€” RSI mean reversion (soglie 30/70, 25/75, 20/80)
methodologyWalk-forward 12-fold su 180gg, 10 asset top-cap. Trigger tecnico puro, return +7d misurato OOS.
resultNessun edge OOS robusto: performance crolla fuori dal training window.
conclusionNessun edge tecnico puro sopravvive walk-forward 12-fold su 180gg.
statusrefuted
date_found2026-05-15
related_phaseresearch-2026
metadata{"strategie": ["RSI mean reversion (soglie 30/70, 25/75, 20/80)", "MACD crossover (12-26-9)", "EMA crossover (9/21, 21/50, 50/200)", "Triple EMA cross", "Bollin…
created_at2026-06-29 20:21:56.578872+00:00

Schema:

ColonnaTipoNullCommento
idbigint NO
finding_numberinteger YES
finding_typecharacter varying NO
titlecharacter varying NO
methodologytext YES
resulttext YES
conclusiontext YES
statuscharacter varying YES
date_founddate YES
related_phasecharacter varying YES
metadatajsonb YES
created_attimestamp with time zone YES

Constraints:

Indici:

Servizi systemd

UnitStatoAvvioDal
caddy.service failed enabledWed 2026-08-12 07:02:47 UTC
hydra-backup.service inactive static
hydra-candle-aggregator.service active enabledThu 2026-08-27 14:59:29 UTC
hydra-dashboard.service active enabledThu 2026-08-27 14:59:29 UTC
hydra-fingerprint-eod.service inactive static
hydra-fingerprint.service active enabledThu 2026-08-27 14:59:29 UTC
hydra-free.service inactive enabledSat 2026-04-18 12:21:40 UTC
hydra-lab-report.service inactive static
hydra-lab.service active enabledThu 2026-08-27 14:59:30 UTC
hydra-macro-daily.service inactive static
hydra-slot-game.service active enabledThu 2026-08-27 14:59:29 UTC
hydra-v6-bridge.service activating static
hydra-v6-dashboard.service active enabledThu 2026-08-27 14:59:29 UTC
hydra-v6-features.service activating static
hydra-ws-collector.service active enabledThu 2026-08-27 14:59:38 UTC
nginx.service active enabledThu 2026-08-27 06:07:39 UTC
postgresql.service active enabledThu 2026-06-25 19:57:16 UTC
postgresql@16-main.service active enabled-runtimeThu 2026-08-27 06:07:43 UTC

Albero /home/hydra/hydra_v6

πŸ“ .claude 12K
πŸ“ .git 2.7M
πŸ“„ .gitignore 4.0K
πŸ“„ README.md 4.0K
πŸ“ backups 23M
πŸ“ config 4.0K
πŸ“ docs 4.0K
πŸ“ logs 96M
πŸ“ scripts 244K
πŸ“ src 800K
πŸ“ tests 4.0K
πŸ“ venv 569M

Git

Branch: lab-tappa1

Tag: fase-3-funding-q90 fase-2-stat fase-1.5-dashboard-storia-sim fase-1.5-dashboard-finding fase-1.5-dashboard-arricchimento fase-1.5-dashboard-fix1 fase-1.5-dashboard-complete fase-1-migration-v2 fase-1-migration fase-1-schema

Ultimi 20 commit

9a8268a LAB: family fuori dal fingerprint + migrazione dei dati esistenti
3ac6456 LAB: watchlist per i survivor young (fiducia bassa)
b28cfa7 LAB fix: due guasti che tenevano fermo il motore da 14 giorni
0a3a37d LAB: ridotto peso famiglia volume (sterile per dati scarsi)
4b4760c LAB fix: notifiche Telegram in HTML (evita 400 su regole con _ e >=)
f84049e LAB Tappa 5: pagina web /lab su docu.spocci.ch
43790fc LAB Tappa 4: servizio 24/7 systemd + caching dati tra ondate
2b8a56b LAB Tappa 3: notifiche Telegram (report giornaliero + avviso scoperta)
92105bc LAB Tappa 2: forward tracking (Fase 3) delle survivors
4a9ad92 LAB Tappa 1: schema DB + motore ricerca + rigore IS/OOS (fase 1-2)
52a3cea Slot: scala leve x100-x5000 + pool 13 token reali
5c663fa Slot: prezzi reali live Binance + frazioni + leva con liquidazione realistica
20249f0 Timer orario ricalcolo features_1h (volatilita') da candele fresche
5410f50 Bridge candele SQLite (v4) -> PostgreSQL hydra_v6 + timer 5min
fc33b15 Slot: durata strategica (rischio/tempo) + leggenda simboli
2182d68 Slot: rulli modalita' A + logging giocate + pagina log pubblica
62e5c0d App crypto slot game su gioco.spocci.ch
44b97f2 Post-mortem perdite simulazione grande OOS (283 trade)
ebf92ed Simulazione grande OOS 2 anni bot 300 EUR
5eda5f8 Simulazione 1 mese bot 300 EUR con dettaglio transazioni

Log files

FileDim.Modificato
ai_decision_test.log4.5 KB2026-07-01 23:10
best_opportunities_bot.log7.2 KB2026-07-02 20:48
candidates_validation.log5.0 KB2026-07-01 19:38
candles_history.log4.3 KB2026-07-01 20:19
combo_search.log5.1 KB2026-07-01 22:01
dashboard_backup.log5.1 KB2026-08-28 03:00
funding_features.log4.3 KB2026-06-30 21:33
funding_harvest.log7.7 KB2026-07-01 22:57
funding_ingest.log2.9 KB2026-06-30 21:27
funding_q90.log1.8 KB2026-06-30 21:29
funding_q90_longhistory.log4.2 KB2026-07-01 21:17
funding_q90_net_validation.log4.8 KB2026-07-01 19:59
funding_q90_validation.log2.8 KB2026-06-30 21:29
indicator_screening.log8.3 KB2026-07-01 21:32
lab.log88.3 MB2026-08-28 05:10
legacy_import.log4.1 KB2026-06-29 20:32
loss_postmortem_large.log7.1 KB2026-07-02 20:57
migration_20260625_203104.log2.3 KB2026-06-25 20:36
migration_20260625_203839.log6.1 KB2026-06-25 21:07
migration_20260625_211535.log1.0 KB2026-06-25 21:16
run_1m_console.log6.1 KB2026-06-25 21:07
simulate_large_oos.log0.0 B2026-07-02 20:48
simulate_large_oos_equity.csv20.4 KB2026-07-02 20:48
simulate_large_oos_trades.csv25.0 KB2026-07-02 20:48
simulation_1month.log0.0 B2026-07-02 20:37
simulation_1month_trades.csv1.6 KB2026-07-02 20:37
sqlite_bridge.log5.0 MB2026-08-28 05:08
stat_compute.log1.7 MB2026-08-28 05:10

Dati di mercato

Candele

TimeframeAssetRange temporale
candles_1m5032025-12-10 -> 2026-08-28
candles_15m5152025-10-22 -> 2026-08-28
candles_1h5162021-01-01 -> 2026-08-28
candles_4h4522025-10-22 -> 2026-06-25
candles_1d4532021-01-01 -> 2026-07-01

Driver per-asset

DriverRigheAsset
funding_rate1,491,432354
long_short_global5,00010
long_short_ratio5,00010
open_interest5,00010

Driver globali

DriverRighe
btc_dominance200
fear_greed200
macro_dxy134
macro_fed_funds199
macro_m26
macro_yield_10y135
stablecoin_supply200