Skip to content

Market-wide daily option volume or open interest ​

GET /api/v1.0/quote/option-market-statistic

Market-wide daily option volume or open interest. option_market: US_SECURITY / US_INDEX / HK_SECURITY / HK_INDEX; data_type: VOLUME / OPEN_INTEREST. Date range begin_time / end_time (YYYY-MM-DD) max 365 days. Returns daily call/put/total and put/call ratio, trading-day descending. For a single underlying use quote.option_underlying_his_statistic.

Parameters ​

NameTypeInRequiredDescription
option_marketstringqueryyesOption market. US_SECURITY / US_INDEX / HK_SECURITY / HK_INDEX
data_typestringqueryyesStatistic type. VOLUME / OPEN_INTEREST (delayed)
begin_timestringqueryyesStart date YYYY-MM-DD. Date YYYY-MM-DD in the security's market timezone
end_timestringqueryyesEnd date YYYY-MM-DD; span at most 365 days. Date YYYY-MM-DD in the security's market timezone

Example ​

bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/option-market-statistic?option_market=US_SECURITY&data_type=VOLUME' \
  -H 'Authorization: Bearer <AccessToken>' | jq

Response parameters ​

NameTypeDescription
data.statisticsobject[]
data.statistics[].timestringTrading day YYYY-MM-DD. Date YYYY-MM-DD in the security's market timezone
data.statistics[].timestampintTrading-day timestamp , Unix microseconds
data.statistics[].call_valuestringCall total (volume or OI, per data_type)
data.statistics[].put_valuestringPut total
data.statistics[].total_valuestringCall+Put total
data.statistics[].ratiostringPut/Call ratio; 0 when call is 0

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": {
    "statistics": [
      {
        "time": "example",
        "timestamp": 1710000000000000,
        "call_value": "example",
        "put_value": "example",
        "total_value": "example",
        "ratio": "example"
      }
    ]
  }
}