Make a stock report given portfolio and price data files.
(portfoliofile,pricefile)
| 61 | print('%10s %10d %10.2f %10.2f' % row) |
| 62 | |
| 63 | def portfolio_report(portfoliofile,pricefile): |
| 64 | ''' |
| 65 | Make a stock report given portfolio and price data files. |
| 66 | ''' |
| 67 | # Read data files |
| 68 | portfolio = read_portfolio(portfoliofile) |
| 69 | prices = read_prices(pricefile) |
| 70 | |
| 71 | # Create the report data |
| 72 | report = make_report_data(portfolio,prices) |
| 73 | |
| 74 | # Print it out |
| 75 | print_report(report) |
| 76 | |
| 77 | portfolio_report('../../Work/Data/portfolio.csv', |
| 78 | '../../Work/Data/prices.csv') |
no test coverage detected