0DTE contracts for an underlying+expiry
POST/api/v1.0/quote/option-zero-dte-contract0DTE contracts for an underlying+expiry. code 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 Max length 64; Pattern ^[A-Z0-9_]+\.[A-Za-z0-9_.\-]+$ |
strike_date_timestamp | int | body | yes | Strike date in Unix seconds. The identically named screener field uses microseconds: divide by 1000000 before passing it. ≥ 1 |
chain_info | object | body | no | Chain identity; use the screener's chain_info unchanged |
sort_type | string | body | no | Sort field, default VOLUME Default "VOLUME"; Values VOLUME, OPEN_INTEREST, IV, DELTA |
is_asc | bool | body | no | Ascending; default false 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 '{"code":"US.AAPL","strike_date_timestamp":1710000000}' \
-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
}
]
}
}Timestamp units and chain identity
The screener returns strike_date_timestamp in Unix microseconds; the contract query accepts Unix seconds. Convert with strike_date_timestamp // 1000000. chain_info is an object: pass it unchanged when available; do not stringify it or alter its fields.