guanquann / Stocksera

Finance application that provides more than 60 different alternative data to retail investors
MIT License
639 stars 102 forks source link
cryptocurrency daytrading due-diligence finance financial-data ibkr investing market-data options-trading reddit stock stock-market stocks trading yahoo-finance

Stocksera

Stocksera

NOTE: I'm still in the midst of fixing bugs. (Govt trades)

Downloads

Stocksera API available at https://pypi.org/project/stocksera or via pip install stocksera. View documentation at https://github.com/guanquann/Stocksera-API.

Support:

If you wish to support this project, please star it on Github or PayPal to paypal.me/stocksera. Patreon is also available here.

Data Source:

User Guide:

/ticker/

/ticker/options/

/ticker/short_volume/

/ticker/failure_to_deliver/

/ticker/borrowed_shares/

/ticker/regsho/

/wsb_live_ticker/

/reddit_analysis/

/wsb_live/

/crypto_live/

/reddit_ticker_analysis/

/subreddit_count/

/subreddit_count/?quote=AMC

/market_summary/

/futures/

/earnings_calendar/

/ipo_calendar/

/stocktwits/

/twitter_trending/

/senate/

/house/

/short_interest/

/low_float/

/ark_trades/

/reverse_repo/

/daily_treasury/

/inflation/

/retail_sales/

/initial_jobless_claims/

/interest_rate/

/insider/

/beta/

/news/

/trading_halts/

/correlation/

/dividend_history/

/stock_split/

/accounts/login/

For developers:

Cloning project

git clone https://github.com/guanquann/Stocksera.git

Setting up WITHOUT docker

# Setting up environment
py -m venv venv
cd venv/Scripts
activate
cd ../..

# Install dependencies
pip install -r requirements.txt

# Set your MYSQL credentials in config.yaml first before proceeding
py setup/local.py

# Run application
# DO ENSURE THAT YOU HAVE ALL THE API KEYS NECESSARY IN http://localhost:8000/setup/ TO PREVENT UNWANTED ERRORS.
py manage.py runserver

Setup

Setting up WITH Docker

# Dockerise
# Set your MYSQL credentials in config.yaml first before proceeding
# Do note that MYSQL_HOST for docker container may not be localhost (mine is `db`)
py setup/docker.py
# Run the following in another command prompt if you are setting up for the first time using Docker
# Continue running `py setup/docker.py` even though there might be an error
# You might need to rerun setup/docker.py after `py setup/docker_db.py` successfully completed
py setup/docker_db.py

# DO ENSURE THAT YOU HAVE ALL THE API KEYS NECESSARY IN http://localhost:8000/setup/ TO PREVENT UNWANTED ERRORS.

To rerun in the future: Rerun Docker

Run scheduled tasks

Star History

Star History Chart

License

This project is under the MIT license.