产品层
CLIanalyze 与 GET /analyze/:wallet 输出同结构的 AnalyzeReport JSON。
三条指标计算路径
- 默认:使用 Data API 分页
/trades在内存中驱动build_report。 [analytics].source = "canonical":优先使用当次 run 内存合并的合成Trade(无则回退 Data API)。report-from-canonical-run:只读 PGcanonical_events,无需外网;data_lineage.analytics_primary_source = canonical_pg_replay。
数据源(只读)
历史深度受服务端 offset 上限等限制;报告内
data_fetch.truncated / ingestion.truncation 会标明截断。
报告内容(摘要)
- lifetime:笔数、volume、净 PnL、极值、未平仓等
- market_distribution:按可配置 slug 规则归类 Top 市场类型
- price_buckets / price_buckets_chart:买入价格分桶
- time_analysis:UTC 活跃小时、入场相对 resolution 等(依赖元数据时可能部分缺失)
- trading_patterns:网格倾向、方向偏好、胜率等
- strategy_inference:
primary_style、rule_json、pseudocode - frontend:大单、最近成交、持仓等供前端展示
相关命令(CLI 独有)
当前 无 与上述命令等价的 HTTP 接口。