Skip to main content
Glama

pyeconomics

Binomial option tree

derivatives_binomial_tree
Read-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

NameRequiredDescriptionDefault
spotYesPrice of the underlying asset now
stepsNoNumber of time steps in the tree
yearsYesTime to expiry, in years
strikeYesStrike price
exerciseNoEuropean (at expiry only) or American (at any step) exerciseamerican
volatilityYesVolatility of the asset's return per year
option_typeNoA call (the right to buy) or a put (to sell)call
dividend_yieldNoDividend yield per year, continuously compounded
risk_free_rateYesRisk-free rate per year, continuously compounded

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.