Skip to content

最大可买可卖 ​

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

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

请求参数 ​

参数类型位置必填说明
acc_idstringpath是业务账户 ID
marketintquery是账户市场ID(账户列表中该账户的 market_id,如 1=港股 100=美股融资融券),必须与 acc_id 对应账户一致
symbolstringquery是证券代码,支持 MARKET.CODE(如 US.AAPL、US.AAPL261120C275000)或不带前缀的代码
order_typeintquery是订单类型:1=限价 3=市价
pricestringquery否委托价格(限价单必填;市价单可不传)
order_idstringquery否改单时传原单 ID

请求示例 ​

bash
curl -s "https://webapi.futunn.com/api/v1.0/sim-trade/80306537/max-buy-sell?market=100&symbol=US.AAPL&order_type=1&price=1" -H "Authorization: Bearer <AccessToken>" | jq

响应字段 ​

字段类型说明
max_cash_buy_qty_round_lotstring现金可买(整手)
max_margin_buy_qty_round_lotstring/null按整手计算的现金+融资最大可买股数(非融资账户为 null)
max_sell_qty_round_lotstring可卖(整手)
max_sell_short_qtystring可卖空
max_buy_back_qtystring需补回
required_im_longstring/null期货 LONG 开仓初始保证金要求(非期货账户为 null)
required_im_shortstring/null期货 SHORT 开仓初始保证金要求(非期货账户为 null)

响应示例 ​

json
{
  "ret_code": 0,
  "ret_msg": "success",
  "data": {
    "max_cash_buy_qty_round_lot": "999999",
    "max_margin_buy_qty_round_lot": "1999999",
    "max_sell_qty_round_lot": "0",
    "max_sell_short_qty": "4868",
    "max_buy_back_qty": "0",
    "required_im_long": null,
    "required_im_short": null
  }
}

错误响应 ​

HTTP 状态始终为 200。请求失败时返回非 0 的 ret_code 和 error 对象。

json
{
  "ret_code": -3,
  "ret_msg": "invalid request",
  "error": {"code": "invalid_parameter", "message": "invalid request"}
}