{% extends "base.html" %}{% from "_macros.html" import table, csrf, page_head, source_note %} {% block title %}{{ link.question }}{% endblock %} {% block content %}

Admin › Linked markets › Market

{{ page_head(link.question) }}

Outcome {{ link.outcome }}{% if link.invert %} (pays if the prediction fails){% endif %} · {{ link.athlete }} · {{ link.prediction }} · {{ link.venue or "next round / season" }} · token {{ link.token_id }}

{{ source_note(link.competition, [link.exchange], run_id if prob is not none else none) }}

Model

{% if prob is not none %}

Fair price: {{ prob|fmt("model_prob") }} · from run #{{ run_id }}

{% else %}

No model probability for this athlete / prediction in the latest forecast run.

{% endif %} {% if suggestion %}

Maker quotes around fair value (2 ticks of margin): buy ≤ {{ suggestion.buy }} · sell ≥ {{ suggestion.sell }}

{% endif %}

Order book

{% if book %}

Best bid {{ book.best_bid }} · best ask {{ book.best_ask }} · last {{ book.last_trade }} · tick {{ book.tick_size }} · min {{ book.min_size }}

{% for i in range([book.bids|length, book.asks|length]|max) %}{% endfor %}
Bid sizeBidAskAsk size
{{ book.bids[i][1] if i < book.bids|length else "" }}{{ book.bids[i][0] if i < book.bids|length else "" }} {{ book.asks[i][0] if i < book.asks|length else "" }}{{ book.asks[i][1] if i < book.asks|length else "" }}
{% else %}

Could not load the book: {{ book_error }}

{% endif %}

Place a maker (post-only) limit order

{{ csrf() }}

Orders on this market

{{ table(orders, ["id", "created_at", "side", "price", "size", "status", "model_prob", "best_bid", "best_ask", "exchange_order_id", "error"], {"id": ["/orders?highlight=", "id"]}) }}
{% endblock %}