Skip to content

Event-contract combo RFQ: submit at least two legs plus MVC and ​

POST /api/v1.0/quote/combo-quotes

Event-contract combo RFQ: submit at least two legs plus MVC and receive YES bid/ask, quote_id, and rfq_id. Each combo_legs item: code (KS contract or .YES/.NO subcontract; the suffix is echoed), side (BUY/SELL/SELL_SHORT/BUY_BACK), qty_ratio (positive integer, every leg must use the same value), pred_side (YES/NO, may differ per leg); optional position_id. side is not sent to RFQ and is only echoed for a later order; RFQ uses pred_side. Returned prices are still the YES bid/ask. Legs must come from different events (at most one contract per event). Do not pair two combo_contracts from the same list row. mvc must come from quote.valid_combo_list and must not be invented. The quote may be cached, not a live exact RFQ. quote_id and rfq_id expire; request a new quote after expiry. Either id is omitted when the server does not send it. No subscribe required.

Parameters ​

NameTypeInRequiredDescription
mvcstringbodyyesMVC ticker; must be passed through from quote.valid_combo_list data.mvc Min length 1; Max length 128
mvc_exchangestringbodynoOptional MVC exchange; use data.mvc_exchange unchanged when present Max length 16
combo_legsobject[]bodyyesCombo legs, at least 2 and at most 20. Must span different events; at most one leg per event. pred_side may differ per leg; side and qty_ratio must be the same across all legs Min items 2; Max items 20
combo_legs[].codestringbodyyesLeg symbol. Contract e.g. KS.KXNFLGAME-26SEP12PITNE-PIT; YES/NO subcontract suffix also accepted Max length 128; Pattern ^[A-Z0-9_]+\.[A-Za-z0-9_.\-]+$
combo_legs[].sidestringbodyyesTrade side, echoed only; not used by RFQ Values BUY, SELL, SELL_SHORT, BUY_BACK
combo_legs[].qty_ratiostringbodyyesQuantity ratio as a positive integer. Every leg must use the same value
combo_legs[].pred_sidestringbodyyesPrediction side YES/NO, required. May differ per leg; this is the side sent to RFQ Values YES, NO
combo_legs[].position_idintbodynoOptional position id

Example ​

bash
curl -X POST 'https://webapi.moomoo.com/api/v1.0/quote/combo-quotes' -H 'Content-Type: application/json' -d '{"mvc":"<mvc from valid-combos>","combo_legs":[{"code":"KS.KXNFLGAME-26SEP12PITNE-PIT","side":"BUY","qty_ratio":"1","pred_side":"YES"},{"code":"KS.KXNFLGAME-26SEP13DALNYG-DAL","side":"BUY","qty_ratio":"1","pred_side":"NO"}]}' \
  -H 'Authorization: Bearer <AccessToken>' | jq

Response parameters ​

NameTypeDescription
dataobject
data.combo_legsobject[]Echoed combo legs.
data.combo_legs[].codestringLeg symbol. Contract e.g. KS.KXNFLGAME-26SEP12PITNE-PIT; YES/NO subcontract suffix also accepted
data.combo_legs[].sidestringTrade side, echoed only; not used by RFQ
data.combo_legs[].qty_ratiostringQuantity ratio as a positive integer. Every leg must use the same value
data.combo_legs[].pred_sidestringPrediction side YES/NO, required. May differ per leg; this is the side sent to RFQ
data.combo_legs[].position_idintOptional position id
data.bid_pricestringYES bid price in (0,1)
data.ask_pricestringYES ask price in (0,1)
data.quote_idstringTime-limited quote id for a subsequent combo order
data.rfq_idstringRFQ id paired with quote_id; omitted when the server does not send it
data.should_retryboolWhether the caller should retry the RFQ
data.bid_sizestringBid size
data.ask_sizestringAsk size
data.codestringCombo symbol: KS. prefix and .YES suffix on the exchange origin ticker. Omitted when unavailable

Errors ​

ret_codeerror.codeDescription
0—Success
-3invalid_parameterMissing or invalid parameter
-8unsupportedNot supported
-10no_dataNo data

Response example ​

json
{
  "ret_code": 0,
  "ret_msg": "success",
  "data": {
    "combo_legs": [
      {
        "code": "KS.KXNFLGAME-26SEP12PITNE-PIT",
        "side": "BUY",
        "qty_ratio": "1",
        "pred_side": "YES"
      },
      {
        "code": "KS.KXNFLGAME-26SEP13DALNYG-DAL",
        "side": "BUY",
        "qty_ratio": "1",
        "pred_side": "NO"
      }
    ],
    "bid_price": "0.42",
    "ask_price": "0.46",
    "quote_id": "example",
    "rfq_id": "example",
    "should_retry": true,
    "bid_size": "10",
    "ask_size": "10",
    "code": "KS.KXMVECROSSCATEGORY-SAMPLE.YES"
  }
}

Code validation and returned combo ​

The example legs illustrate syntax only. Choose current contracts from different events in valid-combos and pass its mvc unchanged. Every leg code needs a nonempty market prefix and symbol. A missing prefix (such as AAPL) or incomplete format returns -3 invalid_parameter and identifies combo_legs[i].code; unsupported markets return -8 unsupported, unresolved symbols -7 invalid_symbol, and missing quote permission -9 permission_denied.

A successful response may include data.code with a KS. prefix and .YES suffix; omitted if unavailable. data.combo_legs is an array of objects.