This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hello again! A few days ago I showcased my Stockstir project which I had made a while ago. You can refer to that thread here.
V2 is out! You can take a look at the documentation for up-to-date information on the new functions, enhancements, and fixes in the project.
Also, the project link is here: Stockstir Link
As far as additions and suggestions which were made on the previous thread, Stockstir V2 now has a complete fail-safe system that uses more than one provider. It also has initial integration of an Alpha Vantage API (to be further developed still, now it is just an initial integration), and new options to gather prices and other stock info through CNBC and their JSON format API (Thank you to Gr1pp717 for that information!).
As far as the quick usage, nothing has changed:
``` import Stockstir
price = Stockstir.getSinglePrice("ticker/stockSymbol")
print(price) ```
With the new provider system, the default provider is still CNBC. However, you can set a provider manually (There are three as of now) like so:
``` from Stockstir import Providers
Providers.provider_number = 1 # Here, you can put any number that is between 0 and 2, as there are three providers now. The default remains 0. ```
The new fail-safe system automatically picks other providers in case one fails, bringing more reliability to the library as a whole.
If you want to manually check if providers are working, you can do this:
``` from Stockstir import Providers
Providers.runProviderChecks() ```
Hope you enjoy!
Edit: Some suggestions/improvements have already been suggested in one of the comments below, thank you so much for that information, super useful! Here is the link of the improvements that will come soon to Stockstir V2
Post Details
- Posted
- 10 months ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/Python/comm...