Generate and show a stock report for the last 5 business days of brazilian stock market (Bovespa).
Open file config.json and change the following fields:
key
Sign up on Alpha Vantage and get the API key: https://www.alphavantage.co/support/#api-key.
stocks
The stock symbol or a list of stock symbols.
ex:
{
"key": "YOUR_KEY",
"stocks": ["PETR4","VALE3"]
}
This configuration should set parameters for generating a report for Petróleo Brasileiro S.A (Petrobras) and Vale S.A.
ruby stock_report.rb
cd test
ruby stock_report_test.rb