How do I get current price of any symbol token/company stocks..
-
How do I get the current price of any symbol token? I am using historical API and that gives open, high, close, low, and volume. Any specific API to get the current price?
-
HI @darshan you can get the current market price by using ltp function or websocket.
-
@admin I am using python SDK and tried to use obj.getltpdata() but it seems this function is not there in python SDK.
-
HI @darshan Kindly go through below thread.
https://github.com/angelbroking-github/smartapi-python -
@admin Hi Admin, I think the thread link is missing, I cant see. Can you please post again?
-
HI @darshan You can go through above link now.
-
@admin Thanks
-
@darshan #
Get LTP
#create object of call
obj=SmartConnect(api_key="......")exchange = "NSE"
tradingsymbol = "SBIN-EQ"
symboltoken = 3045
print("LTP SBIN-EQ")
print(obj.ltpData("NSE", "SBIN-EQ", "3045")) -
@webseos Thank you so much