Skip to content

Live Option Chain for all Equity Derivatives using Finvasia Shoonya APIs and Next.js

License

Notifications You must be signed in to change notification settings

anurag-roy/all-option-chain

Repository files navigation

Option Chain

Live Option Chain for Equity Derivatives using Finvasia (Shoonya) APIs and Next.js

Screenshot

Features

  • Gainers and Losers table based on previous day's closing price
  • Auto fetch and ignore banned NSE stocks for that day
  • Customisable list of additional stocks to ignore from monitoring
  • Tabular display of options with search, pagination and filters
    • Option
    • LTP
    • PE Limit
    • CE Limit
    • Buyer Value
    • Return Value
    • Strike Position
    • Sell Value
  • Place Sell orders manually or automated
  • (Bonus) Place bulk After Market Orders (AMO)

Screenshots

Dark Mode

Place Sell order Modal

Place Sell Order Modal (Dark Mode)

Setup

Install dependencies.

npm install

Setup environment secrets in an env.json file by copying the example.env.json file. For further customisation, see configuration.

cd src
cp example.env.json env.json
# Populate env.json secrets

Generate Prisma client.

npx prisma generate

Populate the SQLite DB with instrument data.

npm run data:prepare

Usage

Start in development mode

npm run dev

Build and start production server.

npm run build
npm start

Configuration

Port

The default port is 3000. To change it, update the dev and start scripts in package.json.

config.ts

Edit src/config.ts to:

  • STOCKS_TO_INCLUDE - List of F&O stocks to be used.
  • CUSTOM_PERCENT - Custom stock-wise entry percentages. This will override the Entry Percent provided as input for that particular stock.

Wireframe

The app was developed based on this wireframe:

option-chain

Related

Contact

License

MIT © 2023 Anurag Roy