Binomial option tree
derivatives_binomial_treeRead-onlyIdempotent
Cox-Ross-Rubinstein binomial prices of European and American calls and puts with a dividend yield, with delta and gamma from the tree. Runs Binomial option tree (derivatives.binomial_tree, version 1) on the given inputs and returns its canonical result: the validated inputs, the outputs, the warnings and the manifest. Every number carries its unit in the input schema; rates are decimals.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"spot": 50,
"steps": 5,
"years": 0.4167,
"strike": 50,
"exercise": "american",
"volatility": 0.4,
"option_type": "put",
"dividend_yield": 0,
"risk_free_rate": 0.1
},
"name": "derivatives_binomial_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spot | Yes | Price of the underlying asset now | |
| steps | No | Number of time steps in the tree | |
| years | Yes | Time to expiry, in years | |
| strike | Yes | Strike price | |
| exercise | No | European (at expiry only) or American (at any step) exercise | american |
| volatility | Yes | Volatility of the asset's return per year | |
| option_type | No | A call (the right to buy) or a put (to sell) | call |
| dividend_yield | No | Dividend yield per year, continuously compounded | |
| risk_free_rate | Yes | Risk-free rate per year, continuously compounded |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||