Get Combo Trading Info
POST/api/v1.0/accounts/{acc_id}/combo_trading_infoQuery available buying power and margin preview information for combo options orders. Not supported for JP brokers.
When to use
- Before placing a combo options order (
order_class=MLEG), preview buying power and margin here, then Place Order. - When modifying an existing combo order, pass
order_idfor a replace-scenario preview. - Single-leg stock / options orders usually do not need this API; for single-leg size limits use Get Max Qty.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
acc_id | string | Yes | Trading business account ID. |
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
multi_leg_info | multi_leg_info | Yes | Multi-leg combo information. |
price | string | Yes | Order price. |
qty | string | Yes | Order quantity. |
side | trd_side | Yes | Order direction. |
order_id | string | No | Order ID. Pass when modifying an order. |
Request Example
bash
curl -X POST 'https://webapi.moomoo.com/api/v1.0/accounts/{acc_id}/combo_trading_info' \
-H 'Authorization: Bearer <AccessToken>' \
-H 'Content-Type: application/json' \
-d '{
"multi_leg_info": {
"leg_infos": [
{
"leg_code": "US.AAPL230120C00150000",
"leg_side": "BUY",
"leg_ratio_qty": "1"
},
{
"leg_code": "US.AAPL230120C00160000",
"leg_side": "SELL",
"leg_ratio_qty": "1"
}
]
},
"price": "2.50",
"qty": "1",
"side": "BUY"
}' | jqResponse Parameters
| Field | Type | Description |
|---|---|---|
option_buying_power | string | Available options buying power. |
buying_power_decrease | string | Buying power decrease from this operation. |
margin_previews | list[margin_preview] | Margin preview list. |
Response Example
json
{
"s": "ok",
"d": {
"option_buying_power": "50000.00",
"buying_power_decrease": "250.00",
"margin_previews": [
{
"name": "Initial Margin",
"inc_value": "250.00"
}
]
}
}