Skip to content

Instantly share code, notes, and snippets.

@ganigithub
Created June 27, 2022 10:36
Show Gist options
  • Save ganigithub/1b5196e80e43ff6f9d82051ff7f30e79 to your computer and use it in GitHub Desktop.
Save ganigithub/1b5196e80e43ff6f9d82051ff7f30e79 to your computer and use it in GitHub Desktop.
from pynse import *
nse = Nse() #create an nse object
nse.get_quote("INFY")["lastPrice"]
#output : 1602.05
##OR
quote = nse.get_quote("BANKNIFTY",Segment.FUT)
quote["lastPrice"]
#output : 36345.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment