get_market_context
Get live market context for stocks, indices, and futures. Retrieve quote details, last traded price, volume, and expiry-specific data.
Instructions
Fetch live quote details, last traded price (LTP), volume, and context for Stocks, Indices, and Futures. Args: symbol (str): Ticker symbol (e.g. 'NIFTY', 'BANKNIFTY', 'RELIANCE'). expiry (str): Expiry cycle ('SPOT', 'NEAR', 'FAR', 'NEXT'). Default is 'SPOT'. asset_type (str): Asset category ('stock', 'index', 'future', 'auto'). Default is 'auto'. api_key (str, optional): API Key. If omitted, uses OPTIONCONTEXT_API_KEY from environment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expiry | No | SPOT | |
| symbol | Yes | ||
| api_key | No | ||
| asset_type | No | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |