Skip to main content

Module trd

Module trd 

Source
Expand description

交易 REST API 路由

Functions§

cancel_all_order
POST /api/cancel-all-order — 全部撤单(v1.4.30 新加)
get_acc_list
GET /api/accounts — 获取交易账户列表.
get_account_flag
POST /api/account-flag — 查询账户合规标志 (mobile-driven)
get_biz_group
POST /api/biz-group — 业务分类元数据 (供前端构造业务分组下拉)
get_bond_answer_state
POST /api/bond-answer-state — 是否需要答题 (合规性, mobile cmd 10043)
get_bond_position_list
POST /api/bond-position-list — 账户债券持仓列表 (mobile cmd 9375)
get_bond_single_asset
POST /api/bond-single-asset — 单只债券持仓 (mobile cmd 9374)
get_bond_total_asset
POST /api/bond-total-asset — 账户债券总持仓 (P&L 汇总, mobile cmd 9373)
get_bond_trade_reminder
POST /api/bond-trade-reminder — 交易提醒 (mobile cmd 10057)
get_cash_detail
POST /api/cash-detail — 单条资金流水详情
get_cash_log
POST /api/cash-log — 资金明细查询 (mobile-driven, 比 /api/flow-summary 更全字段)
get_flow_summary
POST /api/flow-summary — 账户资金流水(v1.4.30 P2)
get_funds
POST /api/funds — 获取资金
get_history_order_fills
POST /api/history-order-fills — 获取历史成交
get_history_orders
POST /api/history-orders — 获取历史订单
get_margin_info
POST /api/margin-info — per-account margin info (mobile-driven, by market)
get_margin_ratio
POST /api/margin-ratio — 获取融资融券比率
get_max_trd_qtys
POST /api/max-trd-qtys — 获取最大交易数量
get_order_fee
POST /api/order-fee — 获取订单费用
get_order_fills
POST /api/order-fills — 获取成交列表
get_orders
POST /api/orders — 获取订单列表
get_positions
POST /api/positions — 获取持仓
modify_order
POST /api/modify-order — 改单/撤单
place_order
POST /api/order — 下单
reconfirm_order
v1.4.40 #4 fix (eli exhaustive report): 暴露 /api/reconfirm-order endpoint。
sub_acc_push
v1.4.90 P1-C 修:POST /api/sub-acc-push — 订阅交易账户 push(订单 / 成交变动)
unlock_trade
POST /api/unlock-trade — 解锁交易