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

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.4.tar.gz (3.7 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: liveupstoxoc-0.1.4.tar.gz
  • Upload date:
  • Size: 3.7 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.4.tar.gz
Algorithm Hash digest
SHA256 ded8860240474ffea7ae8cd72a14b1041079546ffd6224e000be65fd3195aaa9
MD5 16689f1683da81b4c6b426ff2dcd5ab9
BLAKE2b-256 8b7b59bf784b273778e5978a0221991d329da75f202f9b571b09c3408b3b6861

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