{% if trace.trades %}
Contributing trades
| Date | Account | Action | Qty |
Amount | Symbol |
{% for t in trace.trades %}
| {{ t.trade_date.isoformat() }} |
{{ t.account }} |
{{ t.action }} |
{{ "%.4f"|format(t.quantity) }} |
${{ "%.2f"|format(t.amount|abs) }}
|
{{ t.symbol }} |
{% endfor %}
{% endif %}
{% if trace.adjustments %}
Applied adjustments
| Loss trade | Replacement | Rolled $ |
Confidence | Rule |
{% for a in trace.adjustments %}
| {{ a.loss_trade_id[:8] }}… |
{{ a.replacement_trade_id[:8] }}… |
${{ "%.2f"|format(a.rolled_amount) }} |
{{ a.confidence }} |
{{ a.rule_citation }} |
{% endfor %}
{% endif %}
{% if trace.cash_events %}
Contributing cash events
| Date | Account | Kind |
Amount | Description |
{% for e in trace.cash_events %}
| {{ e.event_date.isoformat() }} |
{{ e.account }} |
{{ e.kind }} |
${{ "%.2f"|format(e.amount|abs) }}
|
{{ e.description }} |
{% endfor %}
{% endif %}