0DTE contracts for an underlying+expiry
POST/api/v1.0/quote/option-zero-dte-contract0DTE contracts for an underlying+expiry. symbol and strike_date_timestamp required; pass chain_info from the screener when available. Returns CALL/PUT price/volume, IV, greeks, break-even and win probability.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
code | string | body | yes | Underlying symbol, e.g. US.SPY |
strike_date_timestamp | int | body | yes | Strike-date timestamp (seconds) from quote.option_zero_dte_screener |
chain_info | string | body | no | Chain identity; pass through screener chain_info |
sort_type | string | body | no | Sort field, default VOLUME |
is_asc | bool | body | no | Ascending; default false |
Example
bash
curl -X POST 'https://webapi.moomoo.com/api/v1.0/quote/option-zero-dte-contract' -H 'Content-Type: application/json' -d '{}' \
-H 'Authorization: Bearer <AccessToken>' | jqResponse parameters
| Name | Type | Description |
|---|---|---|
data.items | object[] | |
data.items[].code | string | Option contract symbol |
data.items[].name | string | Option name |
data.items[].option_price | string | Option price |
data.items[].change_rate | number | Change rate (percent) |
data.items[].volume | string | Volume |
data.items[].open_interest | string | Open interest |
data.items[].iv | number | IV (percent) |
data.items[].delta | number | Delta |
data.items[].gamma | number | Gamma |
data.items[].vega | number | Vega |
data.items[].theta | number | Theta |
data.items[].rho | number | Rho |
data.items[].buy_break_even_point | number | Buy break-even |
data.items[].buy_to_bep | number | Distance to break-even (percent) |
data.items[].buy_profit_probability | number | Buy win probability (percent) |
data.items[].sell_profit_probability | number | Sell win probability (percent) |
Errors
| ret_code | error.code | Description |
|---|---|---|
| 0 | — | Success |
| -3 | invalid_parameter | Missing or invalid parameter |
| -8 | unsupported | Not supported |
| -10 | no_data | No data |
Response example
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"items": [
{
"code": "US.AAPL",
"name": "example",
"option_price": "example",
"change_rate": 1.2,
"volume": "example",
"open_interest": "example",
"iv": 1.2,
"delta": 1.2,
"gamma": 1.2,
"vega": 1.2,
"theta": 1.2,
"rho": 1.2,
"buy_break_even_point": 1.2,
"buy_to_bep": 1.2,
"buy_profit_probability": 1.2,
"sell_profit_probability": 1.2
}
]
}
}