Skip to main content

Module tool_args

Module tool_args 

Source
Expand description

MCP tool request/parameter schemas.

Keep serde aliases, schema descriptions, and default helpers here so tools.rs can stay focused on auth + tool dispatch.

v1.4.110 P1-1: 拆自 1785 LoC 单文件 tool_args.rs → tool_args/{qot,trd,push}.rs. 拆分轴: handler 域 (handlers/qot, handlers/trd, push subscription). 外部 consumer 用 use crate::tool_args::* glob 仍能拿到所有 struct.

Re-exports§

pub use push::*;
pub use qot::*;
pub use trd::*;

Modules§

push 🔒
v1.4.110 P1-1: 拆自 tool_args.rs 按 handler 域分组.
qot 🔒
v1.4.110 P1-1: 拆自 tool_args.rs 按 handler 域分组.
trd 🔒
v1.4.110 P1-1: 拆自 tool_args.rs 按 handler 域分组.

Structs§

NoArgs
Empty argument object for zero-arg MCP tools.

Functions§

default_depth 🔒
default_env 🔒
default_env_simulate 🔒
default_history_kline_max_count 🔒
v1.4.106 codex 0635 ζ36 F5: history-kline 省略 max_count 时 default 1000. 与 schema description “default 1000” 一致, 防 LLM context balloon.
default_is_first_push 🔒
default_is_reg_push 🔒
default_kl_type 🔒
default_modify_op 🔒
default_order_type 🔒
default_plate_set 🔒
default_reference_type 🔒
default_rehab_none 🔒
default_stock_filter_num 🔒
default_ticker_count 🔒
default_true 🔒
default_user_security_group_type 🔒
default_warrant_num 🔒
deser_int_or_order_type_str 🔒
v1.4.42 (eli v1.4.40 报告 P3.3 修): 让 order_type 类字段接受 integer OR string enum。LLM agent 习惯用 string 枚举(和 PlaceOrderReq / ModifyOrderReq 一致),旧 caller 用 int 不破坏。
deser_order_id_raw_from_int_or_str 🔒
v1.4.110: trade write order_id accepts either numeric FTAPI orderID (integer or integer string), or backend/server orderIDEx strings such as FU1C8AE09C51555000.
deser_trd_market_string_allow_empty 🔒
v1.4.90 P0-E: CancelAllOrderReq.market 用,接 int OR string 但允许 missing / null / 空字符串 (#[serde(default)] 兜底). 空字符串 → 直接返空, runtime validate() 报“market is required“错; 非空 string/int 走标准 deser_trd_market_as_string 路径.