Skip to main content
Glama
nadavgb-atom

ib-async-mcp

by nadavgb-atom

calculate_implied_volatility

Calculate implied volatility from option price data using the Black-Scholes model. Input symbol, expiry, strike, option price, and underlying price to derive market-implied volatility for options trading analysis.

Instructions

Calculate implied volatility from option price.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes
expiryYes
strikeYes
rightYes
option_priceYes
underlying_priceYes

Implementation Reference

  • The handler logic for 'calculate_implied_volatility', which qualifies the contract and calls 'ib.calculateImpliedVolatilityAsync'.
    if name == "calculate_implied_volatility":
        contract = Option(
            args["symbol"],
            args["expiry"],
            args["strike"],
            args["right"],
            "SMART",
        )
        await ib.qualifyContractsAsync(contract)
        result = await ib.calculateImpliedVolatilityAsync(
            contract,
            args["option_price"],
            args["underlying_price"],
        )
        return serialize_object(result)
  • The MCP tool registration and input schema definition for 'calculate_implied_volatility'.
    Tool(
        name="calculate_implied_volatility",
        description="Calculate implied volatility from option price.",
        inputSchema={
            "type": "object",
            "properties": {
                "symbol": {"type": "string"},
                "expiry": {"type": "string"},
                "strike": {"type": "number"},
                "right": {"type": "string"},
                "option_price": {"type": "number"},
                "underlying_price": {"type": "number"},
            },
            "required": ["symbol", "expiry", "strike", "right", "option_price", "underlying_price"],
        },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nadavgb-atom/ib-async-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server