Make a stock report given portfolio and price data files.
(portfoliofile,pricefile)
| 39 | print('%10s %10d %10.2f %10.2f' % row) |
| 40 | |
| 41 | def portfolio_report(portfoliofile,pricefile): |
| 42 | ''' |
| 43 | Make a stock report given portfolio and price data files. |
| 44 | ''' |
| 45 | # Read data files |
| 46 | portfolio = read_portfolio(portfoliofile) |
| 47 | prices = read_prices(pricefile) |
| 48 | |
| 49 | # Create the report data |
| 50 | report = make_report_data(portfolio, prices) |
| 51 | |
| 52 | # Print it out |
| 53 | print_report(report) |
| 54 | |
| 55 | portfolio_report('../../Work/Data/portfolio.csv', |
| 56 | '../../Work/Data/prices.csv') |
no test coverage detected