American Option
workflow.run_american_optionPrice of an AMERICAN put or call (exercisable on any day up to expiry) on a Cox-Ross-Rubinstein binomial tree with early exercise checked at every node, with a continuous dividend yield. Use it for stock and ETF style options; crypto options on Deribit and Binance are European (workflow.run_black_scholes). Output: americanPrice, delta, gamma, thetaPerDay (calendar day, read from the tree, typically 0 when exercising now is optimal), intrinsicValue, earlyExerciseNow (a tree reading: exercising now beats holding), europeanPrice (Black-Scholes, same inputs), earlyExercisePremium, europeanTreePrice and treeError (what the chosen step count costs: the same tree without early exercise minus the exact European price). More steps are closer to the exact value, not smoothly. Rates 0 to 100 percent, dividend yield is a continuous yield, not dated dividends; steps are a whole number from 50 to 2000 (default 500). Prices are USD per unit of underlying. Edge cases: spot, strike, daysToExpiry (at most 3650) and volatilityPct (at most 300) above zero; steps a whole number from 50 to 2000; when the rate and the dividend yield are too far apart for the volatility and expiry the tree is invalid and the call is an error that says so; numbers that overflow are an error. The price is a tree value, close to the exact one but not equal to it (see treeError). Not covered: discrete dividends, a volatility smile, negative rates, taxes, margin, transaction costs, and exercise limited to certain dates (Bermudan).
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": {
"optionType": "<optionType>",
"spot": "<spot>",
"strike": "<strike>",
"daysToExpiry": "<daysToExpiry>",
"volatilityPct": "<volatilityPct>"
},
"name": "workflow.run_american_option"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spot | Yes | Current price of the underlying | |
| steps | No | Binomial tree steps, whole number from 50 to 2000. Default 500. | |
| strike | Yes | Strike price, same units as spot | |
| optionType | Yes | American call or put | |
| daysToExpiry | Yes | Calendar days to expiry (up to 3650) | |
| volatilityPct | Yes | Annualized volatility in percentage points (e.g. 30 for 30%), at most 300 | |
| riskFreeRatePct | No | Annual risk-free rate in percent, 0 to 100. Default 0. | |
| dividendYieldPct | No | Continuous dividend yield in percent per year, 0 to 100. Default 0. |