vsjha18 / nsetools

Realtime Data From National Stock Exchange (India)
http://nsetools.readthedocs.io
MIT License
815 stars 422 forks source link

Not fetching any data - its gets stuck #72

Open simucentral opened 4 years ago

simucentral commented 4 years ago

Hi, I just used the library to fetch data nse.get_quote() . However, it just waits for a response and stays there infinitely long time. Any help?

I have deployed the code in a digitalocean server. When I tried without updating, it bounced with "Moved Permanently" error. It was in a "while True" loop. Is this because, I am facing an IP block from NSE? Please enlighten me on this. Thank you so much.

bainsjappi commented 4 years ago

Same error observed as follows:- HTTP Error 301: The HTTP server returned a redirect error that would lead to an infinite loop. The last 30x error message was: Moved Permanently Can you help... I have the latest updated version nsetools1-1.0.11 installed.

bkbinani commented 4 years ago

In Windows serve, IE has some tight security, it does not allow any web sight to open normally.

I had some how bring the IE security to lowest level in windows server. Now its working fine

You may try to open www1.nesindia.com from IE in server. If it open , it shuld work in python too.

Hope this helps

Thanks

On Thu, Apr 2, 2020, 1:34 AM bainsjappi notifications@github.com wrote:

Same error observed as follows:- HTTP Error 301: The HTTP server returned a redirect error that would lead to an infinite loop. The last 30x error message was: Moved Permanently Can you help... I have the latest updated version nsetools1-1.0.11 installed.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vsjha18/nsetools/issues/72#issuecomment-607462624, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIZLA2BY3B4HFSTLYINF4D3RKOM55ANCNFSM4LP6E7GQ .

simucentral commented 4 years ago

It didnt help. I am using an Ubuntu server in DigitalOcean.

yadipadlakha commented 4 years ago

Same issue. The API does not work in Ubuntu, gets stuck indefinitely.

regar007 commented 4 years ago

same issue

dhgupta commented 4 years ago

same issue

keerthankumar commented 4 years ago

Same issue. The API does not work in Ubuntu, gets stuck indefinitely.

any solution to this ?

subodhcjoshi82 commented 4 years ago

After NSE website update lots of thing changes and this project also dead state .

vanigupta20024 commented 3 years ago

Facing similar issues, will have to restructure the whole project again while using a different data source

subodhcjoshi82 commented 3 years ago

After NSE changed website lots of thing break and looks like owner of the api stop updating it.

On Sun, May 23, 2021, 21:03 Vani Gupta @.***> wrote:

Facing similar issues, will have to restructure the whole project again while using a different data source

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/vsjha18/nsetools/issues/72#issuecomment-846581545, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQUFK5LPL5GSWCYTBSIMLLTPEN4TANCNFSM4LP6E7GQ .

vanigupta20024 commented 3 years ago

After NSE changed website lots of thing break and looks like owner of the api stop updating it. On Sun, May 23, 2021, 21:03 Vani Gupta @.***> wrote: Facing similar issues, will have to restructure the whole project again while using a different data source — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#72 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQUFK5LPL5GSWCYTBSIMLLTPEN4TANCNFSM4LP6E7GQ .

It is working fine with a different net connection, but not the one I was using while developing the project. I feel the code is right but cannot support a lot of requests simultaneously. My error was connection error, my connection was forcibly shut. I am still not sure about this though. It is again working perfectly with the different network connection.

subodhcjoshi82 commented 3 years ago

Do you mean ,it's issue with ISP and not with code or NSE ?

On Sun, May 23, 2021, 22:47 Vani Gupta @.***> wrote:

After NSE changed website lots of thing break and looks like owner of the api stop updating it. … <#m-4287118099276839977> On Sun, May 23, 2021, 21:03 Vani Gupta @.***> wrote: Facing similar issues, will have to restructure the whole project again while using a different data source — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#72 (comment) https://github.com/vsjha18/nsetools/issues/72#issuecomment-846581545>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQUFK5LPL5GSWCYTBSIMLLTPEN4TANCNFSM4LP6E7GQ .

It is working fine with a different net connection, but not the one I was using while developing the project. I feel the code is right but cannot support a lot of requests simultaneously. My error was connection error, my connection was forcibly shut. I am still not sure about this though. It is again working perfectly with the different network connection.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/vsjha18/nsetools/issues/72#issuecomment-846595986, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQUFKZA7BM5C2ORZNX7HHLTPE2BHANCNFSM4LP6E7GQ .

vanigupta20024 commented 3 years ago

Do you mean ,it's issue with ISP and not with code or NSE ? On Sun, May 23, 2021, 22:47 Vani Gupta @.> wrote: After NSE changed website lots of thing break and looks like owner of the api stop updating it. … <#m-4287118099276839977> On Sun, May 23, 2021, 21:03 Vani Gupta @.> wrote: Facing similar issues, will have to restructure the whole project again while using a different data source — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#72 (comment) <#72 (comment)>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQUFK5LPL5GSWCYTBSIMLLTPEN4TANCNFSM4LP6E7GQ . It is working fine with a different net connection, but not the one I was using while developing the project. I feel the code is right but cannot support a lot of requests simultaneously. My error was connection error, my connection was forcibly shut. I am still not sure about this though. It is again working perfectly with the different network connection. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#72 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQUFKZA7BM5C2ORZNX7HHLTPE2BHANCNFSM4LP6E7GQ .

I know that is a vague deduction of mine. It is now again up working fine with both the connections. I am not sure why this is happening, maybe there could be a load on backend (NSE website) at that time. I will probably be using caching in my project jo that only a single call is made per minute or so.

subodhcjoshi82 commented 3 years ago

Did you tried any third party API as well for different connection as well?

On Mon, May 24, 2021 at 11:23 AM Vani Gupta @.***> wrote:

Do you mean ,it's issue with ISP and not with code or NSE ? … <#m1511912935474592379> On Sun, May 23, 2021, 22:47 Vani Gupta @.> wrote: After NSE changed website lots of thing break and looks like owner of the api stop updating it. … <#m-4287118099276839977> On Sun, May 23, 2021, 21:03 Vani Gupta @.> wrote: Facing similar issues, will have to restructure the whole project again while using a different data source — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#72 https://github.com/vsjha18/nsetools/issues/72 (comment) <#72 (comment) https://github.com/vsjha18/nsetools/issues/72#issuecomment-846581545>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQUFK5LPL5GSWCYTBSIMLLTPEN4TANCNFSM4LP6E7GQ . It is working fine with a different net connection, but not the one I was using while developing the project. I feel the code is right but cannot support a lot of requests simultaneously. My error was connection error, my connection was forcibly shut. I am still not sure about this though. It is again working perfectly with the different network connection. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#72 (comment) https://github.com/vsjha18/nsetools/issues/72#issuecomment-846595986>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQUFKZA7BM5C2ORZNX7HHLTPE2BHANCNFSM4LP6E7GQ .

I know that is a vague deduction of mine. It is now again up working fine with both the connections. I am not sure why this is happening, maybe there could be a load on backend (NSE website) at that time. I will probably be using caching in my project jo that only a single call is made per minute or so.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/vsjha18/nsetools/issues/72#issuecomment-846764325, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQUFK6ZZGNIEEKUUFGBHA3TPHSW3ANCNFSM4LP6E7GQ .

-- Subodh Chandra Joshi @.*** http://www.trendsinnews.com

vanigupta20024 commented 3 years ago

Did you tried any third party API as well for different connection as well? On Mon, May 24, 2021 at 11:23 AM Vani Gupta @.> wrote: Do you mean ,it's issue with ISP and not with code or NSE ? … <#m1511912935474592379> On Sun, May 23, 2021, 22:47 Vani Gupta @.> wrote: After NSE changed website lots of thing break and looks like owner of the api stop updating it. … <#m-4287118099276839977> On Sun, May 23, 2021, 21:03 Vani Gupta @.> wrote: Facing similar issues, will have to restructure the whole project again while using a different data source — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#72 <#72> (comment) <#72 (comment) <#72 (comment)>>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQUFK5LPL5GSWCYTBSIMLLTPEN4TANCNFSM4LP6E7GQ . It is working fine with a different net connection, but not the one I was using while developing the project. I feel the code is right but cannot support a lot of requests simultaneously. My error was connection error, my connection was forcibly shut. I am still not sure about this though. It is again working perfectly with the different network connection. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#72 (comment) <#72 (comment)>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQUFKZA7BM5C2ORZNX7HHLTPE2BHANCNFSM4LP6E7GQ . I know that is a vague deduction of mine. It is now again up working fine with both the connections. I am not sure why this is happening, maybe there could be a load on backend (NSE website) at that time. I will probably be using caching in my project jo that only a single call is made per minute or so. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#72 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQUFK6ZZGNIEEKUUFGBHA3TPHSW3ANCNFSM4LP6E7GQ . -- Subodh Chandra Joshi @. http://www.trendsinnews.com

Most of the live stock data is paid, but I did get a few sources.

subodhcjoshi82 commented 3 years ago

https://marketsetup.in/posts/tick-data/

On Mon, May 24, 2021 at 12:26 PM Vani Gupta @.***> wrote:

Did you tried any third party API as well for different connection as well? On Mon, May 24, 2021 at 11:23 AM Vani Gupta @.

*> wrote: … <#m8378638723002953828> Do you mean ,it's issue with ISP and not with code or NSE ? … <#m1511912935474592379> On Sun, May 23, 2021, 22:47 Vani Gupta @.> wrote: After NSE changed website lots of thing break and looks like owner of the api stop updating it. … <#m-4287118099276839977> On Sun, May 23, 2021, 21:03 Vani Gupta @.> wrote: Facing similar issues, will have to restructure the whole project again while using a different data source — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#72 https://github.com/vsjha18/nsetools/issues/72 <#72 https://github.com/vsjha18/nsetools/issues/72> (comment) <#72 https://github.com/vsjha18/nsetools/issues/72 (comment) <#72 (comment) https://github.com/vsjha18/nsetools/issues/72#issuecomment-846581545>>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQUFK5LPL5GSWCYTBSIMLLTPEN4TANCNFSM4LP6E7GQ https://github.com/notifications/unsubscribe-auth/AAQUFK5LPL5GSWCYTBSIMLLTPEN4TANCNFSM4LP6E7GQ . It is working fine with a different net connection, but not the one I was using while developing the project. I feel the code is right but cannot support a lot of requests simultaneously. My error was connection error, my connection was forcibly shut. I am still not sure about this though. It is again working perfectly with the different network connection. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#72 https://github.com/vsjha18/nsetools/issues/72 (comment) <#72 (comment) https://github.com/vsjha18/nsetools/issues/72#issuecomment-846595986>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQUFKZA7BM5C2ORZNX7HHLTPE2BHANCNFSM4LP6E7GQ https://github.com/notifications/unsubscribe-auth/AAQUFKZA7BM5C2ORZNX7HHLTPE2BHANCNFSM4LP6E7GQ . I know that is a vague deduction of mine. It is now again up working fine with both the connections. I am not sure why this is happening, maybe there could be a load on backend (NSE website) at that time. I will probably be using caching in my project jo that only a single call is made per minute or so. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#72 (comment) https://github.com/vsjha18/nsetools/issues/72#issuecomment-846764325>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQUFK6ZZGNIEEKUUFGBHA3TPHSW3ANCNFSM4LP6E7GQ https://github.com/notifications/unsubscribe-auth/AAQUFK6ZZGNIEEKUUFGBHA3TPHSW3ANCNFSM4LP6E7GQ . -- Subodh Chandra Joshi @.*** http://www.trendsinnews.com

Most of the live stock data is paid, but I did get a few sources.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/vsjha18/nsetools/issues/72#issuecomment-846807331, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQUFK6GC36J6275OFJLYNDTPH2BTANCNFSM4LP6E7GQ .

-- Subodh Chandra Joshi @.*** http://www.trendsinnews.com