Skip to main content

Module trade

Module trade 

Source
Expand description

mcp/handlers/trade — 拆 trade.rs 986 → trade/{mod, 6 新子, 4 已有}.rs (v1.4.110 CC Batch O)

已有 sub-mod (历史拆): account_flag / bond / cash_log / margin_info

本次新加 6 sub-mod:

  • helpers : parse_* (4) + build_header_* (2) — 跨 trade sub-mod 共用
  • accounts : list_accounts_filtered + AccountOut + 3 visible helper
  • funds : get_funds_with_currency + 3 Out type
  • positions : get_positions + PositionOut + cost_basis_method 推导
  • orders : orders / deals / max_trd_qtys / order_fee / history_orders
  • misc : history_deals / margin_ratio / sub_acc_push / acc_cash_flow

Re-exports§

pub use account_flag::get_account_flag;
pub use bond::get_bond_answer_state;
pub use bond::get_bond_position_list;
pub use bond::get_bond_single_asset;
pub use bond::get_bond_total_asset;
pub use bond::get_bond_trade_reminder;
pub use cash_log::CashLogInput;
pub use cash_log::get_biz_group;
pub use cash_log::get_cash_detail;
pub use cash_log::get_cash_log;
pub use margin_info::get_margin_info;
pub use accounts::list_accounts_filtered;
pub use funds::get_funds_with_currency;
pub use misc::get_acc_cash_flow;
pub use misc::get_history_deals;
pub use misc::get_margin_ratio;
pub use misc::sub_acc_push;
pub use orders::HistoryQueryInput;
pub use orders::MaxTrdQtysInput;
pub use orders::get_deals;
pub use orders::get_history_orders;
pub use orders::get_max_trd_qtys;
pub use orders::get_order_fee;
pub use orders::get_orders;
pub use positions::get_positions;

Modules§

account_flag 🔒
accounts 🔒
mcp/handlers/trade/accounts — AccountOut + list_accounts_filtered + visible_card_num helpers (v1.4.110 CC Batch O: 拆自 trade.rs L113-237)
bond 🔒
cash_log 🔒
funds 🔒
mcp/handlers/trade/funds — FundsOut + CashInfoOut + MarketInfoOut + get_funds_with_currency (v1.4.110 CC Batch O: 拆自 trade.rs L239-449)
helpers 🔒
mcp/handlers/trade/helpers — parse_* + build_header_* (跨 trade sub-mod 共用) (v1.4.110 CC Batch O: 拆自 trade.rs L26-110)
margin_info 🔒
misc 🔒
mcp/handlers/trade/misc — HistoryDeal + MarginRatio + sub_acc_push + acc_cash_flow (v1.4.110 CC Batch O: 拆自 trade.rs L787-985)
orders 🔒
mcp/handlers/trade/orders — OrderOut + DealOut + MaxQtys + OrderFee + HistoryOrder (orders/deals/max_qtys/order_fee/history_orders) (v1.4.110 CC Batch O: 拆自 trade.rs L538-786)
positions 🔒
mcp/handlers/trade/positions — PositionOut + derive_cost_basis_method_hint + get_positions (v1.4.110 CC Batch O: 拆自 trade.rs L451-536)