Combo Option Quote
POST/api/v1.0/quote/combo-option-quoteGet combo option quotes using caller-supplied legs (contract + BUY/SELL + quantity). side is required from the caller; it is not inferred from strategy type. Returns per-combo price / bid_price / ask_price / bid_volume / ask_volume / volume / turnover / last_close_price (prices and turnover are returned as actual amounts), plus echoed legs. Greeks, IV, break-even points, and OHLC data are not returned. Supports US and HK option contracts. US Covered combinations may include one underlying stock leg (e.g. US.AAPL BUY 100). HK does not support stock legs (Covered) and returns -8. Errors for individual combinations are returned in item.rsp_code. Realtime quote; login and realtime permission required.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
combo_list | string | body | yes | Combo list. Each element is one combo; legs in legs[]. US/HK option contracts; US Covered may add one underlying stock. HK stock legs are not supported. At most one stock leg per combo; all legs in a combo must share the same market. |
Example
bash
curl -X POST 'https://webapi.moomoo.com/api/v1.0/quote/combo-option-quote' -H 'Content-Type: application/json' -d '{}' | jqResponse
| Name | Type | Description |
|---|---|---|
data.quote_list | object[] | |
data.quote_list[].rsp_code | string | Per-combo quote result code, 0=success |
data.quote_list[].legs | string | Echoed request legs (code / side / quantity) |
data.quote_list[].price | string | Combo nominal price (already /1e9) |
data.quote_list[].bid_price | string | Bid price (already /1e9) |
data.quote_list[].ask_price | string | Ask price (already /1e9) |
data.quote_list[].bid_volume | string | Bid volume |
data.quote_list[].ask_volume | string | Ask volume |
data.quote_list[].volume | string | Combo volume |
data.quote_list[].turnover | string | Combo turnover (already /1e3) |
data.quote_list[].last_close_price | string | Previous close (already /1e9) |
Errors
| ret_code | error.code | When |
|---|---|---|
| 0 | — | Success |
| -3 | invalid_parameter | A parameter is missing or not in the allowed set |
| -7 | invalid_symbol | Symbol is not in the security master |
| -8 | unsupported | Market or instrument is outside this API |
| -9 | permission_denied | Authenticated, but without quote permission |
| -10 | no_data | Nothing is returned |
| -11 | rate_limited | Per-user rate limit |
Response example
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"quote_list": [
{
"rsp_code": "example",
"legs": "example",
"price": "example",
"bid_price": "example",
"ask_price": "example",
"bid_volume": "example",
"ask_volume": "example",
"volume": "example",
"turnover": "example",
"last_close_price": "example"
}
]
}
}