AlphaVantage-MCP

by berlinbra
Verified
MIT License
13
  • Apple

get-historical-options

Get historical options chain data for a stock with sorting capabilities

Input Schema

NameRequiredDescriptionDefault
dateNoOptional: Trading date in YYYY-MM-DD format (defaults to previous trading day, must be after 2008-01-01)
limitNoOptional: Number of contracts to return (default: 10, use -1 for all contracts)
sort_byNoOptional: Field to sort bystrike
sort_orderNoOptional: Sort orderasc
symbolYesStock symbol (e.g., AAPL, MSFT)

Input Schema (JSON Schema)

{ "properties": { "date": { "description": "Optional: Trading date in YYYY-MM-DD format (defaults to previous trading day, must be after 2008-01-01)", "pattern": "^20[0-9]{2}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])$", "type": "string" }, "limit": { "default": 10, "description": "Optional: Number of contracts to return (default: 10, use -1 for all contracts)", "minimum": -1, "type": "integer" }, "sort_by": { "default": "strike", "description": "Optional: Field to sort by", "enum": [ "strike", "expiration", "volume", "open_interest", "implied_volatility", "delta", "gamma", "theta", "vega", "rho", "last", "bid", "ask" ], "type": "string" }, "sort_order": { "default": "asc", "description": "Optional: Sort order", "enum": [ "asc", "desc" ], "type": "string" }, "symbol": { "description": "Stock symbol (e.g., AAPL, MSFT)", "type": "string" } }, "required": [ "symbol" ], "type": "object" }