Git Product home page Git Product logo

optiv50's Introduction

OptIV50

A python script to fetch FNO stocks from NSE and write all stock options with IV greater than 50 to Gsheet.

Requirements: Requests
pipenv install requests

Pandas
python3 -m pip install --upgrade pandas

Beautiful Soup
pip install beautifulsoup4

lxml
pip install lxml

Pygsheets -- thanks to @nithinmurali for this amazing tool
pip install pygsheets
*the documentation of the tool is kinda messed up. Read the documentation here : https://pygsheets.readthedocs.io/index.html

How to use :

  1. Enable Sheets API and Drive API and download Service account credentials in a JSON file.
  2. Replace the YOUR_CREDENTIAL_FILE_HERE.json with the path to the json file you downloaded.
  3. The files created by service account are not visible in your account. Replace YOUR_EMAIL_HERE with your Gmail id to be able to access the files.
    sh.share('YOUR_EMAIL_HERE', role='writer', expirationTime=None, is_group=False)
  4. By default the sheet is publicly accesible, you can change it by commenting out this line
    sh.share('anyone', role='reader', expirationTime=None, is_group=False) *note : By doing this, only email-ids that you share the file with will be able to access the file.

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.