swapniljariwala / nsepy

Python Library to get publicly available data on NSE website ie. stock quotes, historical data, live indices
https://nsepy-xyz.web.app
Other
753 stars 376 forks source link

Call limit, will my IP get blocked? #133

Open hearsid opened 4 years ago

hearsid commented 4 years ago

What is the call limit before NSE blocks me from scrapping further, I want to get data every 5 or 15 mins and run algorithms on it to detect patterns, instead of calling nsepy get_history every time, do others store the data retrieved in the DB instead so that there are lesser calls to get_history method?

anandbhaskaran commented 4 years ago

@swapniljariwala I think this is a very valuable question. Knowing the limits of the API would set precise expectations around the APIs and avoid any confusion.Thanks in advance.

hearsid commented 4 years ago

@swapniljariwala Hi, you may want to try alpha vantage to get stocks data, it has clear docs and limit errors. nsepy is able to get futures and options data, that is not present in alpha vantage though.

anandbhaskaran commented 4 years ago

The only issue with the Alpha vantage is the API usage limit (5 API requests per minute). And another issue is that there is no bulk API query, for example, we can't get the price value of a list of stocks on a specific day.

I would be very happy to link into (and even build a public repo) if you have some workaround for this (or) some other reliable API.