{#- Connectivity's Trading page (meridian.roles.connectivity.TradingRead), at admin: the key, set or not; the environment, said plainly; each account read-only or with trading enabled, with "Enable trading" for the connectivity role's admin alone (`may_enable`, posting to `enable`); and the placements working, held back or of unknown outcome. Counts and codes only: no account's data. `venue` names the venue; `updates_label` and `updates_none` say how its orders are heard ("Orders read", "Not yet" by default). The vendor's nuance goes at the blocks `vendor_notices` and `vendor_sections`. -#} {% extends "meridian/base.html" %} {% import "meridian/kit.html" as kit %} {% import "meridian/roles/_rows.html" as om %} {% block content %} {% if notice is defined and notice %}
{{ notice }}
{% endif %} {% if data.credentials and not data.credentials|selectattr("set")|list and "Sample data" not in data.environment %} {{ om.next_step("No key yet", "Enter it in", "settings", "Settings") }} {% endif %} {% block vendor_notices %}{% endblock %}

Environment

{{ om.row("Environment", data.environment) }} {% set key %}{% for each in data.credentials %}{{ each.label }}: {{ "set" if each.set else "not set" }}{% if not loop.last %}; {% endif %}{% endfor %}{% endset %} {{ om.row("Key", key|trim or "No key needed") }} {% if data.error %}{{ om.row("Last error", data.error) }}{% endif %}

Accounts

{% if data.accounts %} {% for row in data.accounts %} {% endfor %}
Venue account codeTradingOrder typesMapped by its ems
{{ row.venue_account_code }}{{ "Enabled" if row.trading else "Read-only" }}{{ row.order_types|join(", ") or "None" }}{{ "Yes" if row.mapped else "No" }} {% if not row.trading and may_enable %}{{ kit.action(enable, "Enable trading", kind="primary", fields={"venue_account_code": row.venue_account_code}, label="Enable trading on " ~ row.venue_account_code) }}{% endif %}
{% else %}
No account reached yet

An account appears once {{ venue|default("the venue") }} has been asked with the key.

{% endif %}

Placements

{{ om.row("Working", data.working) }} {{ om.row("Held back", data.held, "by a pause or a stop in force") }} {{ om.row("Outcome unknown", data.unknown, "asked about on each read, never sent again") }} {{ om.row("Orders last read", data.last_poll or "Not yet") }} {{ om.row(updates_label|default("Orders read"), data.updates or updates_none|default("Not yet")) }}
{% block vendor_sections %}{% endblock %} {% endblock %}