Coming soon - Get a detailed view of why an account is flagged as spam!
view details

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.

53
Stockstir is a tool written in Python that lets you get stock information from any script at no cost - Version 2 is officially out!
Post Flair (click to view more posts with a particular flair)
Post Body

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

Duplicate Posts
3 posts with the exact same title by 1 other authors
View Details
Author
Account Strength
50%
Account Age
1 year
Verified Email
Yes
Verified Flair
No
Total Karma
206
Link Karma
140
Comment Karma
66
Profile updated: 2 days ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
10 months ago