Skip to main content

To scrape live optionschain data from upstox for free (without api)

Project description

liveupstoxoc

Fetch live OptionsChain from Upstox for free

Installation

Make sure you've installed chromedriver as per your systen. If not use download chromedrivers from https://chromedriver.storage.googleapis.com/index.html?path=95.0.4638.17/

pip install liveupstoxoc

How to use the library

from liveupstoxoc import live_upstox_oc
n = live_upstox_oc.upstox_oc(path to chromedriver)
#Now enter login details of your upstox account
n.login(username, password, 2fa)
#Now you're ready for fetch live options chain. 
#For fetching optionschain of NIFTY and BANKNIFTY
oc = n.get_oc("NIFTY") # or "BANKNIFTY"
#For fetching optionschain of Stocks
oc = n.get_oc("3426") #For fetching option chain of TataPower. Similarly enter Token of the stocks you want to Fetch options chain for. 
#To close the chromedriver
n.close()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

liveupstoxoc-0.1.5.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file liveupstoxoc-0.1.5.tar.gz.

File metadata

  • Download URL: liveupstoxoc-0.1.5.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for liveupstoxoc-0.1.5.tar.gz
Algorithm Hash digest
SHA256 f0b020bec4956ca7cf93027a1bb06f05feda48c7ddaae8ab284d9966337ba8e0
MD5 92574eba1824c17b63af2161a8ed5789
BLAKE2b-256 c20672f3904dfae1de2b0a50aeecab71a109a50cf43c1efd471312f063ece83f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page