Build OCC Option Symbol
build_option_symbolBuilds the 21-character OCC option symbol Charles Schwab requires from an underlying ticker, expiration date, contract type, and strike price.
Instructions
Build a 21-character OCC option symbol required by Charles Schwab.
Args: underlying: Underlying ticker (e.g. 'AAPL', 'SPY'). expiration: Expiration date in 'YYYY-MM-DD' or 'YYMMDD' format. contract_type: 'CALL' (or 'C') or 'PUT' (or 'P'). strike: Option strike price (e.g. 200.0 or 182.5).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"underlying": "<underlying>",
"expiration": "<expiration>",
"contract_type": "<contract_type>",
"strike": "<strike>"
},
"name": "build_option_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| strike | Yes | ||
| expiration | Yes | ||
| underlying | Yes | ||
| contract_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||