docs: update CHANGELOG.md with NotionWriter and oid aggregation features

This commit is contained in:
0xcathiefish
2026-05-30 09:35:44 +00:00
parent d86b03f3bb
commit 43c0f489a4
+6 -3
View File
@@ -5,15 +5,18 @@
## [Unreleased]
### Added
- 实现 `NotionWriter` 模块,支持将格式化交易记录批量写入 Notion 数据库。
- 实现 `HyperliquidMonitor` 针对同一订单(`oid`)在 500 毫秒内的多成交 tick 聚合功能,防止拆单造成多笔重复写入。
- 定义 `NotionRowData``TradeAction` 结构,提供结构化的 Notion 写入数据模型。
- 新增 `examples/fetch_notion_db.rs` 用于实时抓取 Notion Database 列配置的开发脚本。
- 实现 `HyperliquidMonitor` 用于实时订阅以太坊/Hyperliquid钱包账户的交易与开仓事件。
- 新增 `PositionOpenEvent` 数据结构,当检测到持仓从0变动为非0时触发
- 添加 `alloy` 库依赖,用于强类型地址解析。
- 添加 `alloy``chrono``serde_json` 库依赖
- 新增 integration test `tests/monitor_test.rs` 与使用示例 `examples/demo.rs`
- 添加外部参考库作为 Git 子模块:`noc` (notion-client) 与 `hype` (hyperliquid-rust-sdk)。
### Changed
- 重构 `src/main.rs`,实现从 Hyperliquid WebSocket 捕获开仓事件并自动格式化写入 Notion Database 的闭环服务。
-`hyperliquid_rust_sdk``notion-client` 依赖方式更改为指向官方 Git 仓库的远程依赖,移除本地 Path 依赖。
- 重构 `src/main.rs` 以使用 `HyperliquidMonitor` 并通过 `.env` 环境变量加载钱包与测试网选项。
### Removed
- 移除初始化模版中未使用的占位模块 (`ModuleA`, `ModuleB`) 及其对应测试文件。