All Projects → VarunS2002 → Python Nse Option Chain Analyzer

VarunS2002 / Python Nse Option Chain Analyzer

Licence: gpl-3.0
The NSE has a website which displays the option chain in near real-time. This program retrieves this data from the NSE site and then generates useful analysis of the Option Chain for the specified Index or Stock. It also continuously refreshes the Option Chain and visually displays the trend in various indicators useful for Technical Analysis

Programming Languages

python
139335 projects - #7 most used programming language
script
160 projects

Projects that are alternatives of or similar to Python Nse Option Chain Analyzer

Financedatabase
This is a database of 180.000+ symbols containing Equities, ETFs, Funds, Indices, Futures, Options, Currencies, Cryptocurrencies and Money Markets.
Stars: ✭ 554 (+855.17%)
Mutual labels:  analysis, options
market-monitor
Interactive app to monitor market using Python
Stars: ✭ 20 (-65.52%)
Mutual labels:  options, analysis
Enjoylife
😊开源App项目,每天一张精选倩图、一个精选小视频,一篇知乎美文
Stars: ✭ 43 (-25.86%)
Mutual labels:  app
Odoo Ecuador
Localización Ecuatoriana para Odoo (OpenERP)
Stars: ✭ 54 (-6.9%)
Mutual labels:  app
Go Robinhood
A golang library for interacting with the Robinhood private API
Stars: ✭ 48 (-17.24%)
Mutual labels:  options
Formant Analyzer
iOS application for finding formants in spoken sounds
Stars: ✭ 43 (-25.86%)
Mutual labels:  app
Apps Version Update
高扩展性的多APP版本更新API接口与后台管理系统
Stars: ✭ 50 (-13.79%)
Mutual labels:  app
Fairroot
C++ simulation, reconstruction and analysis framework for particle physics experiments
Stars: ✭ 41 (-29.31%)
Mutual labels:  analysis
Pizza Cli
🍕 Order a pizza in a CLI app (just for fun!)
Stars: ✭ 58 (+0%)
Mutual labels:  app
Github Releases Downloads Analysis
统计 Github Releases 的下载次数等信息 | Analysis your repo releases downloads
Stars: ✭ 46 (-20.69%)
Mutual labels:  analysis
Android Toy
不积跬步 无以至千里
Stars: ✭ 54 (-6.9%)
Mutual labels:  analysis
Sns
Analysis pipelines for sequencing data
Stars: ✭ 43 (-25.86%)
Mutual labels:  analysis
Talon For Twitter Android
The most powerful and beautiful Twitter client available.
Stars: ✭ 1,022 (+1662.07%)
Mutual labels:  app
Grocerystore With Server
Grocery Store with server integration
Stars: ✭ 51 (-12.07%)
Mutual labels:  app
Helix
Habit tracking app
Stars: ✭ 43 (-25.86%)
Mutual labels:  app
Nat Explorer
An example project using Nat & Weex.
Stars: ✭ 55 (-5.17%)
Mutual labels:  app
Mkvtoolnix Batch
Windows Batch script to automate batch processing using mkvtoolnix.
Stars: ✭ 42 (-27.59%)
Mutual labels:  options
Omdb Graphql Wrapper
🚀 GraphQL wrapper for the OMDb API
Stars: ✭ 45 (-22.41%)
Mutual labels:  app
Mopaint
🎨💪 Modern, modular paint and more! (pre-alpha, not much done yet)
Stars: ✭ 50 (-13.79%)
Mutual labels:  app
Optionsuite
Option and stock backtester / live trader
Stars: ✭ 58 (+0%)
Mutual labels:  options

Python NSE-Option-Chain-Analyzer

Downloads

Latest: v5.2 Download-Count License: GPL v3

For doing technical analysis for option traders, the Option Chain is the most important tool for deciding entry and exit strategies. The National Stock Exchange (NSE) has a website which displays the option chain for traders in near real-time. This program retrieves this data from the NSE site and then generates useful analysis of the Option Chain for the specified Index or Stock from the NSE website. It also continuously refreshes the Option Chain and visually displays the trend in various indicators and useful for Technical Analysis. Calculations are based on Mr. Sameer Dharaskar's Course.

Installation:

Method 1 (Windows):

  • Download the .exe (Windows Executable) file

  • Run it directly

Method 2 (Windows and Linux):

  • Requirements:

  • Download the .py (Python Source Code) file

  • Required modules: requirements.txt

  • Install missing modules using pip install -r requirements.txt

Usage:

  1. Set Index Mode or Stock Mode

  2. Select your Index or Stock

  3. Select it's Expiry Date

  4. Enter your preferred Strike Price

  5. Set the interval you want the program to refresh (Optional : Defaults to 1 minute)

  6. Click Start

Note:

  • If there is an error in fetching dates on login screen then try refreshing

  • If there is an error in fetching dates on main screen then try stopping and again starting from option menu

  • If you face any issue or have a suggestion then feel free to open an issue.

  • It is recommended to enable logging and then send the NSE-OCA.log file or the console output for reporting issues

  • In case of network or connection errors the program doesn't crash and will keep retrying until manually stopped

  • If a ZeroDivisionError occurs or some data doesn't exist the value of the variable will be defaulted to 0

Dependencies:

  • auto-py-to-exe is used for compiling the program to a .exe file

  • beautifulsoup4 is used for scraping the list of stocks and indices

  • numpy is used for data types

  • pandas is used for storing and manipulating the data

  • requests is used for accessing and retrieving data from the NSE website

  • stream-to-logger is used for debug logging

  • tksheet is used for the table containing the data

  • win10toast is used for Windows 10 Toast notifications

Features:

  • The program continuously retrieves and refreshes the option chain giving near real-time analysis to the traders

  • New data rows are added only if the NSE server updates its time or data (To prevent displaying duplicate data)

  • Supported Indices and Stocks: https://www.nseindia.com/products-services/equity-derivatives-list-underlyings-information

  • Supports multiple instances with different indices/stocks and/or strike prices selected

  • Red and Green colour indication for data based on trends

  • Toast Notifications for notifying when trend changes (Windows 10 only). Notified changes:

    • Open Interest: Bullish/Bearish
    • Open Interest Upper Boundary Strike Prices: Change in Value
    • Open Interest Lower Boundary Strike Prices: Change in Value
    • Call Exits: Yes/No
    • Put Exits: Yes/No
    • Call ITM: Yes/No
    • Put ITM: Yes/No
  • Program title format: NSE-Option-Chain-Analyzer - {index/stock} - {expiry_date} - {strike_price}

  • Stop and Start manually

  • You can select all table data using Ctrl+A or select individual cells, rows and columns

  • Then you can copy it using Ctrl+C or right click menu

  • You can then paste it in any spreadsheet application (Tested with MS Excel and Google Sheets)

  • Export table data to .csv file

  • Real time exporting data rows to .csv file

  • Dumping entire Option Chain data to a .csv file

  • Auto stop the program at 3:30pm when the market closes

  • Auto Checking for updates

  • Debug Logging

  • Saves certain settings in a configuration file for subsequent runs. Saved Settings:

    • Index/Stock Mode
    • Selected Index
    • Selected Stock
    • Refresh Interval
    • Live Export
    • Notifications
    • Dump entire Option Chain
    • Auto stop at 3:30pm
    • Auto Check for Updates
    • Debug Logging
  • Keyboard shortcuts for all options

Data Displayed

Table Data:

Data Description
Server Time Web Scraped. Indicates last data update time by NSE server
Value Web Scraped. Underlying Instrument Value indicates the value of the underlying Security or Index
Call Sum Calculated. Sum of the Changes in Call Open Interest contracts of the given Strike Price and the next immediate two Strike Prices (In Thousands for Index Mode and Tens for Stock Mode)
Put Sum Calculated. Sum of the Change in Put Open Interest contracts of the given Strike Price and the next two Strike Prices (In Thousands for Index Mode and Tens for Stock Mode)
Difference Calculated. Difference between the Call Sum and Put Sum. If its very -ve its bullish, if its very +ve then its bearish else its a sideways session.
Call Boundary Change in Call Open Interest contracts for 2 Strike Prices above the given Strike Price. This is used to determine if Call writers are taking new positions (Bearish) or exiting their positions (Bullish). (In Thousands for Index Mode and Tens for Stock Mode)
Put Boundary Change in Put Open Interest for the given Strike Price. This is used to determine if Put writers are taking new positions (Bullish) or exiting their positions(Bearish). (In Thousands for Index Mode and Tens for Stock Mode)
Call In The Money(ITM) This indicates that bullish trend could continue and Value could cross 4 Strike Prices above given Strike Price. It's calculated as the ratio of Put writing and Call writing at the 4th Strike Price above the given Strike price. If the absolute ratio > 1.5 then its bullish sign.
Put In The Money(ITM) This indicates that bearish trend could continue and Value could cross 2 Strike Prices below given Strike Price. It's calculated as the ratio of Call writing and Put writing at the 2nd Strike Price below the given Strike price. If the absolute ratio > 1.5 then its bearish sign.

Label Data:

Data Description
Open Interest Upper Boundary Highest and 2nd Highest(highest in OI boundary range) Call Open Interest contracts (In Thousands for Index Mode and Tens for Stock Mode) and their corresponding Strike Prices
Open Interest Lower Boundary Highest and 2nd Highest(highest in OI boundary range) Put Open Interest contracts (In Thousands for Index Mode and Tens for Stock Mode) and their corresponding Strike Prices
Open Interest This indicates if the latest OI data record indicates Bearish or Bullish signs near Indicated Strike Price. If the Call Sum is more than the Put Sum then the OI is considered Bearish as there is more Call writing than Puts. If the Put Sum is more than the Call sum then the OI Is considered Bullish as the Put writing exceeds the Call writing.
Put Call Ratio(PCR) Sum Total of Put Open Interest contracts divided by Sum Total of Call Open Interest contracts
Call Exits This indicates if the Call writers are exiting near given Strike Price in the latest OI data record. If the Call sum is < 0 or if the change in Call OI at the Call boundary (2 Strike Prices above the given Strike Price) is < 0, then Call writers are exiting their positions and the Bulls have a clear path.
Put Exits This indicates if the Put writers are exiting near given Strike Price in the latest OI data record. If the Put sum is < 0 or if the change in Put OI at the Put boundary (the given Strike Price) is < 0, then Put writers are exiting their positions and the Bears have a clear path.
Call In The Money(ITM) This indicates if the Call writers are also exiting far OTM strike prices (4 Strike Prices above the given Strike Price) showing extreme bullishness. Conditions are if the Call writers are exiting their far OTM positions and the Put writers are writing at the same Strike Price & if the absolute ratio > 1.5 then its bullish sign. This signal also changes to Yes if the change in Call OI at the far OTM is < 0.
Put In The Money(ITM) This indicates if the Put writers are also exiting far OTM strike prices (2 Strike Prices below the given Strike Price) showing extreme bearishness. Conditions are if the Put writers are exiting their far OTM positions and the Call writers are writing at the same Strike Price & if the absolute ratio > 1.5 then its a bearish sign. . This signal also changes to Yes if the change in Put OI at the far OTM is < 0.

Screenshots:

  • Login Page:


    Login_Window

  • Main Window Index Mode:


    Main_Window_Index

  • Main Window Stock Mode:


    Main_Window_Stock

  • Selecting Data:


    Selecting_Data

  • Option Menu:


    Option_Menu

  • Notification:


    Notification

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].