Resolve Contract
resolve_contractConvert a basic symbol and security type into a fully specified IBKR contract for accurate order routing.
Instructions
Resolve a SymbolSpec into a fully qualified IBKR contract.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instrument | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| conId | Yes | IBKR contract identifier. | |
| right | No | Option right: C or P. | |
| expiry | No | Expiry date in YYYY-MM-DD format. | |
| strike | No | Strike price for options. | |
| symbol | Yes | Resolved symbol. | |
| currency | No | Resolved currency. | |
| exchange | No | Resolved exchange. | |
| multiplier | No | Contract multiplier. | |
| localSymbol | No | IBKR local symbol. | |
| securityType | Yes | IBKR security type code. | |
| tradingClass | No | IBKR trading class. | |
| primaryExchange | No | Primary exchange when available. |