Open kirany2github opened 2 years ago
Its ScripCode not ScripName
But this has stopped working from 07 Feb onwards but may be u can still try
i get this response
'NoneType' object is not subscriptable
I checked the response
from order_request method in py5paisa.py and this is the response
{'Message': 'Error while processing'}
Honestly so many issues with 5paisa API its so unreliable
@5paisa @ba11b0y @tarunw07 Can someone have a look into this Please.
Can you try again now?
Yeah it’s working now..
Description
I am trying to fetch a scrip price
What I Did
a=[{"Exchange":"N","ExchangeType":"C","ScripName":"999920005"}] banknifty = client.fetch_market_depth(a) lastprice = round(banknifty['Data'][0]['LastTradedPrice']/100)*100 print(banknifty['Data'][0]['LastTradedPrice'])