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
  }
}