Module handlers

Module handlers 

Source
Expand description

工具实现(按域拆分)

每个 handler 函数形如 async fn(&Arc<FutuClient>, ...) -> anyhow::Result<String>, 返回 pretty-printed JSON。tools.rs 里的 #[tool] 方法薄封装了错误处理。

Modules§

core
核心 handler:ping / quote / snapshot
market
行情 handler:kline / orderbook / ticker / rt / static / broker
plate
板块 handler
trade
交易域 handler(只读):accounts / funds / positions / orders / deals
trade_write
交易写 handler:place / modify / cancel