Skip to content

最大可买可卖

GET /api/v1.0/sim-trade/{acc_id}/max-buy-sell

查询标的最大可买/可卖数量。

请求参数

参数类型位置必填说明
acc_idstringpath业务账户 ID
symbolstringquery证券代码
order_typeintquery1=限价 3=市价
pricestringquery价格(限价必填)
order_idstringquery改单时传原单 ID

请求示例

bash
curl -s "https://webapi.moomoo.com/api/v1.0/sim-trade/80303779/max-buy-sell?symbol=00700&order_type=1&price=400" | jq

响应字段

字段类型说明
max_cash_buy_qty_round_lotstring现金可买(整手)
max_margin_buy_qty_round_lotstring/null融资可买(整手)
max_sell_qty_round_lotstring可卖(整手)
max_sell_short_qtystring可卖空
max_buy_back_qtystring需补回
required_im_longstring/null期货多开保证金
required_im_shortstring/null期货空开保证金

响应示例

json
{
  "ret_code": 0,
  "data": {
    "max_cash_buy_qty_round_lot": "2300",
    "max_margin_buy_qty_round_lot": null,
    "max_sell_qty_round_lot": "0",
    "max_sell_short_qty": "0",
    "max_buy_back_qty": "0",
    "required_im_long": null,
    "required_im_short": null
  }
}