Giter Club home page Giter Club logo

multistrike-oi's Introduction

NSE Options Multi Strike Open Interest Analysis using Python

Monitor and analyse support and resistances for positions to take in range bound markets while waiting for breakouts

Why do this ?

  1. Showcase python and Database skills learnt in real world usage
  2. Didnot want to pay :) for this service
  3. Work with slowest internet connection
  4. Provides ability to use and make data as per my usage
  5. Last but not least no login required

Getting Started

Step 1: Clone

Clone the project/repository into desired folder

git clone [email protected]:ashok-kollipara/multistrike-oi.git

Step 2. Get Python

Python 3.10.x (Tested)

https://www.python.org/downloads/

https://docs.python.org/3/library/tkinter.html

Setup help for windows ( environment variables and MAX PATH limitations, with tkinter installation)

https://docs.python.org/3/using/windows.html

Most Linux distributions have python installed by default

Step 3. Install required Python packages

pip install -r requirements.txt

Usage

Step A : Launch program

In case python is added to environment variables it can be directly used in command line at any folder level.

Navigate into the folder in which the repo is cloned

python main.py

Step A

Step B : Plot Window

If everything is done perfectly so far there will be a window that appears as below

Step B

Wait and see the data populate.

Note :

  • Default auto refresh rate is 5 mins.
  • Data will be stored from start of plot
  • Database will be reset on start and close of window

Whats Next ?

  1. WIP single window operation

multistrike-oi's People

Contributors

ashok-kollipara avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

multistrike-oi's Issues

some error is coming data stoped

('09:02', 350042, 814172)
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\z8pc\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\models.py", line 910, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Users\z8pc\AppData\Local\Programs\Python\Python310\lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Users\z8pc\AppData\Local\Programs\Python\Python310\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\z8pc\AppData\Local\Programs\Python\Python310\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\z8pc\AppData\Local\Programs\Python\Python310\lib\tkinter_init_.py", line 1921, in call
return self.func(*args)
File "C:\Users\z8pc\AppData\Local\Programs\Python\Python310\lib\tkinter_init_.py", line 839, in callit
func(*args)
File "C:\Users\z8pc\AppData\Local\Programs\Python\Python310\lib\site-packages\matplotlib\backends_backend_tk.py", line 141, in _on_timer
super()._on_timer()
File "C:\Users\z8pc\AppData\Local\Programs\Python\Python310\lib\site-packages\matplotlib\backend_bases.py", line 1198, in _on_timer
ret = func(*args, **kwargs)
File "C:\Users\z8pc\AppData\Local\Programs\Python\Python310\lib\site-packages\matplotlib\animation.py", line 1408, in _step
still_going = super()._step(*args)
File "C:\Users\z8pc\AppData\Local\Programs\Python\Python310\lib\site-packages\matplotlib\animation.py", line 1107, in _step
self._draw_next_frame(framedata, self._blit)
File "C:\Users\z8pc\AppData\Local\Programs\Python\Python310\lib\site-packages\matplotlib\animation.py", line 1126, in _draw_next_frame
self._draw_frame(framedata)
File "C:\Users\z8pc\AppData\Local\Programs\Python\Python310\lib\site-packages\matplotlib\animation.py", line 1720, in _draw_frame
self._drawn_artists = self._func(framedata, *self._args)
File "C:\Users\z8pc\Downloads\multistrike-oi-main - Copy\multistrike-oi-main\tkplot.py", line 106, in
lambda _ : draw_plot(
File "C:\Users\z8pc\Downloads\multistrike-oi-main - Copy\multistrike-oi-main\tkplot.py", line 38, in draw_plot
db.populate_db(index, expiry_date, contract1, contract2)
File "C:\Users\z8pc\Downloads\multistrike-oi-main - Copy\multistrike-oi-main\db_actions.py", line 86, in populate_db
get_OC_json(index_name)
File "C:\Users\z8pc\Downloads\multistrike-oi-main - Copy\multistrike-oi-main\json_handler.py", line 19, in get_OC_json content = r.json()
File "C:\Users\z8pc\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\models.py", line 917, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: [Errno Expecting value]

<title>Resource not found</title>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.