A lightweight stock data fetching tool that stores market data in SQLite using a common format.
β
Fetch stock data from multiple sources π
β
Store data in an SQLite database ποΈ
β
Support for multiple markets and countries π
β
Simple command-line interface π₯οΈ
Install Bearish using pip
:
pip install bearishpy
To get and store stock tickers from different markets and countries, run:
bearish tickers /path/to/sqlite/db France Germany --api-keys=config.json
To retrieve stock prices from different markets, use:
bearish prices /path/to/sqlite/db France Germany --api-keys=config.json
Make sure to provide a config.json
file with your API keys to fetch data from various sources.
Example config.json
:
{
"FMPAssets": "your Financial Modeling Prep API key",
"FMP": "your Financial Modeling Prep API key",
"AlphaVantage": "your Alphavantage API key",
"Tiingo": "yout Tiingo API key"
}
Contributions are welcome! Feel free to submit a pull request or open an issue.
This project is licensed under the MIT License.
π Happy Investing! π