{# The demo taker's hype picks: for a taker its own bets and their P&L; for the maker, its exposure to them. Shared by the sports' bodies: F1 picks carry subject + kind, downhill picks rider + market (+ rider_status). #} {% from "_macros.html" import empty, pnl, pc, px, kind_word %}

{{ "The taker's picks: your exposure" if maker else "Your picks" }}

{% if picks %}{{ picks|length }} bets, {{ tot.stake|money(false, false) }} staked · {% if maker %}the maker's P&L on them, {{ "settled" if snap.done else "marked to fair" }}: {{ pnl(tot.maker_pnl, True) }} {% else %}worth {{ tot.value|money }} now · P&L {{ pnl(tot.pnl, True) }}{% endif %} {% if tot.won or tot.lost %} · {{ tot.won }} won, {{ tot.lost }} lost{% endif %}{% endif %}
{% if picks %}
{% for p in picks %}{% set v = p.maker_pnl if maker else p.pnl %}{% endfor %}
BetPaidShares{{ "Fair now" if maker else "Price now" }}{{ "Maker P&L" if maker else "P&L" }}Hype
YES · {% if p.get('subject') %}{{ p.subject }} {{ kind_word.get(p.kind, "") }}{% else %}{{ p.rider }} {{ "wins" if p.market == 'win' else "on the podium" }}{% endif %} {{ px(p.price) }}{{ "%.0f"|format(p.shares) }} {% if maker %}{{ pc(p.fair) }}{% else %}{{ px(p.now) }}{% endif %} {{ pnl(v) }} {{ "🔥" * (p.get("hype") or 0) }} {{ p.get("why", "") }} {% if p.state == 'won' %}won{% elif p.state == 'lost' %}lost{% elif p.get('rider_status') == 'InRace' %}on course{% elif p.get('rider_status') == 'Finished' %}finished{% endif %}
{% else %}{{ empty("No picks yet.") }}{% endif %}