{% extends "base.html" %}{% from "_macros.html" import csrf, table, flash, page_head %} {% block title %}{{ mk.title }}{% endblock %} {% block content %}

{{ "Books" if user.role == 'admin' else "My book" }} › Quotes › {{ mk.kind }}

{{ page_head(mk.title, "maker " ~ mk.maker ~ " · " ~ mk.kind ~ " · fair from " ~ mk.fair_source ~ (" run #" ~ mk.model_run_id if mk.model_run_id else "")) }} {{ flash(msg) }}
Status
{{ mk.status }}{% if mk.status == 'settled' %} · {{ "YES" if mk.outcome else "NO" }}{% endif %}
{% if mk.status == 'settled' %}
{{ mk.settle_note }}
{% endif %}
Fair
{{ mk.fair_prob|fmt("model_prob") }}
spread {{ "%.0f"|format(mk.spread*100) }} pts
YES
{{ mk.yes_price if mk.yes_price is not none else "–" }}
{% if mk.yes_price %}pays {{ "%.2f"|format(1/mk.yes_price) }}× stake{% else %}not offered{% endif %}
NO
{{ mk.no_price if mk.no_price is not none else "–" }}
{% if mk.no_price %}pays {{ "%.2f"|format(1/mk.no_price) }}× stake{% else %}not offered{% endif %}
Exposure
if YES {{ mk.pnl_if_yes|money(true) }} · if NO {{ mk.pnl_if_no|money(true) }}
EV {{ mk.ev|money }}
{% if mk.kind.startswith('rank') %}

Settle from the official UCI standings. Pricing uses placeholder points tables.

{% endif %}

Quote

{{ csrf() }}
{{ csrf() }} {% if mk.status == 'open' %} {% elif mk.status == 'closed' %}{% endif %}

{{ "Record an offline bet" if user.role == 'admin' else "Exposure" }}

{% if user.role != 'admin' %} {% elif mk.status == 'open' %}
{{ csrf() }}
{% else %}

Market is {{ mk.status }}.

{% endif %}

Bets

{{ table(bets, ["id", "created_at", "taker", "side", "price", "stake", "payout", "status", "note"]) }}
{% if mk.status in ('open', 'closed') and user.role == 'admin' %}

Settle

{{ csrf() }}
{% endif %} {% endblock %}