Documentation Index
Fetch the complete documentation index at: https://docs.forevex.trade/llms.txt
Use this file to discover all available pages before exploring further.
产品层
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。
数据源(只读)
| 来源 | 用途 |
|---|---|
| Data API | GET /trades、/positions、/closed-positions — 主成交流 |
| Gamma | 市场元信息(如 resolution 相关时间,用于入场—结算分析) |
| Goldsky 子图 | 赎回、order fills、PnL userPositions 等(可选,需开启) |
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 独有)
| 命令 | 说明 |
|---|---|
export-ambiguous | 导出对账模糊队列(需 PG) |
set-ambiguous-review | 更新复核状态 |
report-from-canonical-run | 从 PG 重放报告(无外网) |