Skip to content

Option Max Pain ​

GET /api/v1.0/quote/{code}/option-max-pain

Get Option Max Pain strike price and per-strike Call/Put Pain (Option Market Value) bar chart data across expiry dates. Returns max pain and pain values by strike price for each expiry date. Supported markets: HK / US / JP; expire_time accepts comma-separated yyyy-MM-dd dates, or omit for all available expiries.

Request ​

NameTypeInRequiredDescription
codestringpathyesOption underlying code (path param), e.g. US.AAPL / US.TSLA / HK.00700 Max length 64; Pattern ^[A-Z0-9_]+\.[A-Za-z0-9_.\-]+$
expire_timestringquerynoExpiry date filter in yyyy-MM-dd (comma-separated); omit for all available expiries Max length 256; Pattern ^$|^\d{4}-\d{2}-\d{2}(,\d{4}-\d{2}-\d{2})*$
index_option_typeintquerynoIndex option type (only for index underlyings; omit for equities)
filter_standardstringquerynoFilter by standard / non-standard options; default ALL Default "ALL"; Values ALL, STANDARD, NON_STANDARD
only_max_painboolquerynoWhether to return only the max_pain_strike per chain without per-strike bar items; default false Default false

Example ​

bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/US.AAPL/option-max-pain?expire_time=1&index_option_type=1&filter_standard=1' \
  -H 'Authorization: Bearer <AccessToken>' | jq

Response ​

NameTypeDescription
dataobject
data.update_timeintServer calculation update timestamp (Unix milliseconds)
data.chainsobject[]Per-expiry Max Pain data list
data.chains[].strike_datestringExpiry date YYYY-MM-DD
data.chains[].left_dayintDays to expiry
data.chains[].max_pain_strikestringMax Pain strike price for this expiry chain
data.chains[].itemsobject[]Per-strike Call/Put Pain bar items sorted by strike_price ascending
data.chains[].items[].strike_pricestringStrike price
data.chains[].items[].call_painstringCall Pain value at this strike
data.chains[].items[].put_painstringPut Pain value at this strike
data.chains[].items[].total_painstringTotal Pain value at this strike

Errors ​

ret_codeerror.codeDescription
0—Success
-3invalid_parameterMissing or invalid parameter
-7invalid_symbolUnknown symbol
-8unsupportedMarket or product is not supported
-9permission_deniedMissing permission
-10no_dataNo data
-11rate_limitedToo many requests

Sample ​

json
{
  "ret_code": 0,
  "ret_msg": "success",
  "data": {
    "update_time": 0,
    "chains": "example"
  }
}