|
Share and Money Management 0.18devel
|
Create detailed reports about of positions or according to the calendar. More...
Functions | |
| def | createPositionReport (pos, dest) |
| Create a report of a single position. More... | |
| def | createPortfolioReport (start, end, dest) |
| Create a report of portfolio changes between start and end date. More... | |
Variables | |
| string | position_report_tmpl |
| HTML template for a position report. More... | |
| string | portfolio_report_tmpl |
| HTML template for a report of the whole portfolio. More... | |
Create detailed reports about of positions or according to the calendar.
The function used the Mako (http://www.makotemplates.org) to render those reports. Mako is a lightweight template library, and it's written in pure Python.
| def gui.reports.createPortfolioReport | ( | start, | |
| end, | |||
| dest | |||
| ) |
Create a report of portfolio changes between start and end date.
The report is created using the HTML template in portfolio_report_tmpl and stored in dest.
| start | Start date |
| end | End date |
| dest | A file-like object |
| def gui.reports.createPositionReport | ( | pos, | |
| dest | |||
| ) |
Create a report of a single position.
The report is created using the HTML template in position_report_tmpl and stored in dest.
| pos | The position to report |
| dest | A file-like object |
| string gui.reports.portfolio_report_tmpl |
HTML template for a report of the whole portfolio.
| string gui.reports.position_report_tmpl |
HTML template for a position report.