resolve_option_code
Generate a Futu option code from underlying, expiry, strike, and option type. Prevents errors from manual code creation, especially for HK options.
Instructions
Resolve an option's Futu code from a description - 解析期权简写代码. underlying e.g. US.JPM; expiry YYYY-MM-DD; strike e.g. 267.50; option_type CALL/PUT. Returns a code like US.JPM260320C267500. Do NOT hand-build HK option codes (abbreviation differs) - use this.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expiry | Yes | ||
| strike | Yes | ||
| underlying | Yes | ||
| option_type | Yes |