Convenient scripts to scrap and analyse financial data.
Download and follow stock prices from the US and Argentina.
You can see it at work without installing on Google Colab
(OPTIONAL) It's recommended that you create a virtual environment first
python3 -m venv finances
cd finances
source bin/activate
(REQUIRED) Download and install the library
git clone https://github.com/GalileoCap/ds_finance_tools.git
cd ds_finance_tools
pip install -r requirements.txt
They can all be used as main
- binance_p2p: Downloads the current offers to buy crypto in BinanceP2P
- stock: Downloads the daily info of the configured tickers' US stocks from Stooq
- cedear: Downloads the daily info of the configured tickers' CEDEARs from Rava
- usd: Downloads the daily info for the conversion rate of USD to ARS
In the file .env.json you can specify the tickers and crypto you want to download and analyze
The file run_scrapers.py downloads and keeps up to date the data, you can schedule a cron service to run it every morning:
0 7 * * * python3 run_scrapers.py
They can both be used on their own
You can send emails through an SMTP server
To set up you need to configure the SMTP info, the sender address, and the receiving addresses in .env.json
You can get data from and update spreadsheets on Google Sheets
To set up:
- Create a an app on the Google Cloud Platform
- Under "APIs & Services" go to "Credentials" and create a service account with owner access
- Then go to the new service account and add a new json key to it
- Download the json and save it as
.service.jsonon the path from where you'll be running the scripts
In the file src/app/demo/analysis/run_analyze_positions.py you can see an example of how this scripts can be used to keep a tab on your positions and get trade recommendations as an email