> For the complete documentation index, see [llms.txt](https://docs.openalgo.in/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.openalgo.in/trading-platform/python/option-chain.md).

# Option Chain

This page covers the standalone option chain application linked below. OpenAlgo itself also ships an option chain: the `/optionchain` page in the web UI, the `/api/v1/optionchain` REST endpoint, and `client.optionchain(underlying=..., exchange=..., expiry_date=..., strike_count=...)` in the Python SDK. See the [OptionChain example](/trading-platform/python.md#optionchain-example) for the SDK call and its response shape.

### Features

* **Real-time Data**: Live option chain updates via Server-Sent Events (SSE).
* **Market Depth**: View Bid/Ask quantities and spreads.
* **Dynamic Expiries**: Automatically fetches and caches expiry dates for NIFTY, BANKNIFTY, and SENSEX.
* **Calculated Metrics**: Real-time PCR (Put-Call Ratio) and Volume analysis.
* **Responsive UI**: Modern interface built with DaisyUI and Tailwind CSS.

<figure><img src="https://17901342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBwEhITzgv0O0fEGIIRN%2Fuploads%2FkFg1LZQ14NIqKntyaSFm%2FOpenAlgo%20Option%20Chain.png?alt=media&amp;token=c0ead507-508d-47c3-b29b-b00bccd96f2d" alt=""><figcaption></figcaption></figure>

#### Github Link

<https://github.com/marketcalls/option-chain>
