# Nse Options

NSE options chain: OI buildup, PCR, max pain, IV (Nifty/BankNifty)

- Repository: https://github.com/taracodlabs/aiden (868 stars)
- Category: Engineering
- License: Apache-2.0
- Last updated: 2026-10-19
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add taracodlabs/aiden --skill nse-options -g -a claude-code -y`
Codex: `npx skills add taracodlabs/aiden --skill nse-options -g -a codex -y`
Cursor: `npx skills add taracodlabs/aiden --skill nse-options -g -a cursor -y`
Gemini CLI: `npx skills add taracodlabs/aiden --skill nse-options -g -a gemini-cli -y`

## Description

NSE options chain: OI buildup, PCR, max pain, IV (Nifty/BankNifty)

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# NSE Options

Analyze NSE options chain for Nifty and BankNifty, open interest buildup, put-call ratio, max pain level, and implied volatility, using NSE's public JSON API.

## When to Use

- User asks for Nifty or BankNifty options chain
- User wants to know the PCR (put-call ratio) for an index
- User asks for max pain or peak OI strikes
- User wants to see OI change at specific strike prices
- User asks about ITM/OTM options or IV skew

## How to Use

### Fetch options chain for Nifty
```powershell
$headers = @{ "User-Agent" = "Mozilla/5.0"; "Referer" = "https://www.nseindia.com" }
Invoke-WebRequest -Uri "https://www.nseindia.com" -SessionVariable nse -Headers $headers | Out-Null
$chain = Invoke-RestMethod -Uri "https://www.nseindia.com/api/option-chain-indices?symbol=NIFTY" `
  -Headers $headers -WebSession $nse
$chain.records.data | Select-Object strikePrice,
  @{N='CE_OI';E={$_.CE.openInterest}}, @{N='CE_IV';E={$_.CE.impliedVolatility}},
  @{N='PE_OI';E={$_.PE.openInterest}}, @{N='PE_IV';E={$_.PE.impliedVolatility}} |
  Where-Object { $_.CE_OI -or $_.PE_OI } |
  Sort-Object strikePrice
```

### Calculate PCR (Put-Call Ratio)
```powershell
$headers = @{ "User-Agent" = "Mozilla/5.0"; "Referer" = "https://www.nseindia.com" }
Invoke-WebRequest -Uri "https://www.nseindia.com" -SessionVariable nse -Headers $headers | Out-Null
$chain = Invoke-RestMethod -Uri "https://www.nseindia.com/api/option-chain-indices?symbol=NIFTY" `
  -Headers $headers -WebSession $nse
$totalCE_OI = ($chain.records.data | ForEach-Object { $_.CE.openInterest } | Measure-Object -Sum).Sum
$totalPE_OI = ($chain.records.data | ForEach-Object { $_.PE.openInterest } | Measure-Object -Sum).Sum
$pcr = [math]::Round($totalPE_OI / $totalCE_OI, 2)
Write-Host "Nifty PCR: $pcr  (CE OI: $totalCE_OI | PE OI: $totalPE_OI)"
```

The rest: https://github.com/taracodlabs/aiden/blob/HEAD/skills/nse-options/SKILL.md
