Update on the JSON error: I tried to pull the json response code and it pulled 403:
It seems to be some issue on AB's server? Can somebody please check?
Thank you.
Update on the JSON error: I tried to pull the json response code and it pulled 403:
It seems to be some issue on AB's server? Can somebody please check?
Thank you.
Hello team,
I hope you all are well! I have been trying to pull historical data - the 15 minute OHLC to be specific, starting from 2010. However, it seems to be pulling starting from October 2016. I am using Python, if that helps:
I am handling the format of the date correctly - so I am fine there.
Here is a screenshot of the data pulled:
Another issue I have noticed is I have been getting this error from a couple of days:
Can somebody help me solve this issue?
Thank you!
Hello team,
I hope you are well.
The link to the list of instruments is too heavy for my browser to handle. It crashes every time I try to open it. I have also tried to extract the content of the page to a .txt file using the terminal on my linux machine but even the text editor I use to open this txt file is unable to handle the overwhelming content. I does show the data but with some limitation.
Suggestion - It would be better if someone could create a CSV file and separate the equity symbols by NSE/BSE or the equity/options symbols.
Thank you.
Regards,
Ahmed
Hello team,
The code I had been using was working perfectly and has suddenly started misbehaving. I am trying to pull price data and here is what it has suddenly started to give:
Can someone check why this issue suddenly? It was working well yesterday
Thank you and best regards.
@kaleps
There were three errors:
Hi @admin
I have tried doing that. I have copy-pasted your code exactly and still no luck:
Kindly assist me with this. It's been days now I am trying to pull LTP.
You had said earlier that I have to try during market hours, but you did not clarify if the code won't work off-hours. I have tried now and will try the same code tomorrow morning and update a screenshot (which I am sure will still pull 404).
Thank you.
@admin ,
I have been following the same link you have shared. Here is what i tried today during the trading hours:
Kindly tell me where I am going wrong?
Please tell me how a working code would look like with the correct parameters. As I follow the documentation, I see we only pass the exchange, trading symbol and the symbol token.
Hello @admin :
After failing to implement the API documentation, I thought of giving the smartapi a shot: in an attempt to test the code, I am trying to cancel the order I had placed on late Thursday (24 Dec) and here is what the code has returned:
As you can see the cancellation was successful from the API end, but the app fails to reflect the same:
Should I consider this order cancelled or still pending (as the app shows)?
Appreciate your help
FYI: I have also tried the upper case "NORMAL" and still same issue
Hello team,
Hope you are well.
I am trying to cancel an order I had placed post trading hours on Thursday (24 Dec) and it gives me 404:
Order ID:
I don't know what's going wrong since orders can be cancelled during non-trading hours too.
Thank you.
@Shailesh
Bro, can you please tell me what package you are referring to? I am using the documentation (this part), which does take the params (header and the security/exchange symbol data):
Also, I have tried removing the space and still no luck, mate!
Thank you.
@rajanprabu
Okay, so is this how it's designed? I mean to pull only during the trading hours?
I am also trying the same and getting 404 error. Here is a screenshot:
I am trying to get the LTP for days now. Please help me. I have already tried the 'SmartConnect' approach and it gives me 500 (Internal Sever error). I am happy to continue with the API documentation.
Kindly help me get through this.
Thank you
Hello @admin , @rajanprabu @sandipkhairnar :
I am trying to fetch the LTP and getting 500 (Internal Server Error). Please look into this:
Also, since you are suggesting us to use this method of implementing the API, how can the API documentation help us in this scenario? I had to go back to the SmartConnect class we are importing to check how the LTP is fetched. I think there should be a separate documentation when we use this (the smartconnect module) approach.
Thank you for your help!
@admin can you please tell us if AG plans to integrate historical data in the API. If not, we can simply use Zerodha's.
Thank you.
Hello, @prateekjjw001 @sandipkhairnar @admin
As suggested, I tried using another IDE (Spyder3) and was still getting the same error. So, clearly it wasn't to do with the IDE. I just dug deeper into this and was able to SUCCESSFULLY fix this issue by installing two additional pip requirements. Hence, anyone getting 'No Module found: twisted' error should first install twisted using the below command:
pip3 install twisted
Then, if you get the 'No module found: OpenSSL' or 'No module found: autobahn'. Try the below codes. I don't know if the first one is necessary but I used it to fix my issue so probably it may help others too:
pip install pyOpenSSL
The other two which helped me get out of this headache I had since days were:
pip3 install service_identity
pip3 installed autobahn twisted
Thank you all for your help so far
@sandipkhairnar I have tried that. I have also tried switching the linux distro altogether. I am currently only Feren OS from Lubuntu.
I have tried installing pyOpenSSL:
However, there is one thing that baffles me and I would like @admin to take note of this issue:
When I run the below code on PyCharm, it throws the old error - same as above (OpenSSL not found):
from smartapi.smartConnect import SmartConnect
But, when I run the same command in the terminal, the first time it shows me error and the second time, it runs just fine:
What perplexes me is that why:
Guys, am I the only one facing this issue? If someone was get around this, can you please help me with it? I have been trying to play with this for days now but no luck.
@admin please suggest an appropriate way out. I have literally changed the distro and typing this from the new linux distro as it did not work here as well.
Thank you so much.
Regards,
Ahmed
@rajanprabu Mate, I did think of it and tried uninstalling and re-installing the package:
Still the same issue:
Here is the debug:
Also, I am also a Linux user
@admin Thank you.
I have tried using the suggested approach, and you told me in the other post to follow this page to solve the 'twisted' module not found error. I did use the below to install it:
pip install twisted
but later it threw this error:
I will be posting all my issues on this thread so that it may serve as a 'refer-to' guide for many beginners. For tall the beginners I will try my best to assist as I progress with the development, so any reply here from the tech experts will be highly appreciated
Thank you so much