{% extends "base.html" %} {% block content %} {% if alert_ok %}
{{ alert_ok }}
{% endif %} {% if alert_err %}
{{ alert_err }}
{% endif %} {# ---------------------------------------------------------------- price #}
Price
{{ fmt_price(display_price) }} XLM
{% if ticker %}per LAPSE, last traded{% else %}per LAPSE, reference{% endif %} {% if xlm_usd %}· ${{ "%.4f"|format(display_price / 10000000 * xlm_usd) }}{% endif %}
Available to buy
{{ fmt_lapse_dp(best.sell_depth, 2) }}
across {{ depth.sells|length }} order{{ '' if depth.sells|length == 1 else 's' }}
Wanted
{{ fmt_lapse_dp(best.buy_depth, 2) }}
across {{ depth.buys|length }} order{{ '' if depth.buys|length == 1 else 's' }}
{# The book itself lives on its own page (/market/book), linked from the nav above; the counts and depth it would repeat here are already in the Available to buy / Wanted stats above, so there is nothing left for a box here to say. #} {# ------------------------------------------------------------ your wallet #}
Your trading wallet
{% if not xlm_addr %}

Trading needs a Stellar address. Generated locally, encrypted with your passphrase.

{% else %}
LAPSE{{ lapse_addr }}
Balance{{ fmt_lapse_dp(lapse_balance) }}
Stellar{{ xlm_addr }}
XLM available {% if xlm_account_exists %} {{ fmt_xlm(xlm_spendable) }} XLM {% if xlm_locked %} ({{ fmt_xlm(xlm_locked) }} held as the account reserve, not spendable) {% endif %} {% else %} Not funded yet. You can still sell LAPSE: the buyer's first payment creates the account for you and you pay nothing. {% endif %}
{% endif %}
{% if xlm_addr %} {# ---------------------------------------------------------------- trade #}

Post an order

Name your own price. A matching order already in the book is taken immediately; otherwise this waits until someone takes it. To take a specific order yourself, use the book above.

{# --------------------------------------------------------- resting order #}
LAPSE
XLM each
{% if best.best_sell or best.best_buy %} Prefilled with the best book price. {% elif ticker %} Prefilled from this node's last trade, not a live quote. {% else %} Prefilled with a starting reference, not a real quote. {% endif %}
Up to {{ (max_expiry_hours / 24)|round(0, 'floor')|int }} days.
LAPSE
Locked to the full amount: a taker must take it all at once. Check "allow partial fills" to set your own minimum, or none at all.
More options
XLM per LAPSE
How much worse than the price above this node will privately accept to close a match. Never shared; blank to only match at your own price.
{# --------------------------------------------------- pending fill requests #} {% if pending_maker_requests %}

Requests waiting on your decision

Reason shown below. Auto-accept settings are in Settings.

{% for r in pending_maker_requests %} {% endfor %}
OrderFromAmountTheir standingWhy it's waiting
{{ 'Buying' if r.direction == 'buy' else 'Selling' }} {{ short_addr(r.taker_lapse_addr) }}{{ trust_badge(r.taker_lapse_addr) | safe }} {{ fmt_lapse_dp(r.lapse_total, 2) }} {% if r.trust.abandoned_count %} Took a payment, did not reciprocate {% else %} {{ fmt_score(r.trust.score) }} {%- if r.trust.completed_count %} ({{ r.trust.completed_count }} completed trade{{ '' if r.trust.completed_count == 1 else 's' }}) {%- endif %} {% endif %} {% if not r.fits_cap %} Over your exposure cap {% elif r.below_trust_floor %} Below your auto-accept trust floor {% else %} Could not fund this leg right now {% endif %}
{% endif %} {# --------------------------------------------------------- your own orders #} {% if my_orders %}

Your open orders

{% if lapse_overcommitted or xlm_overcommitted %}
Your open orders ask for more than you hold

{% if lapse_overcommitted %} Sell orders ask for {{ fmt_lapse_dp(lapse_committed, 2) }} LAPSE, you hold {{ fmt_lapse_dp(lapse_balance, 2) }}. {% endif %} {% if xlm_overcommitted %} Buy orders need {{ fmt_xlm(xlm_committed) }} XLM, {{ fmt_xlm(xlm_spendable) }} spendable. {% endif %} No funds at risk, but a fill may come back declined. Cancel or top up.

{% endif %}
{% for o in my_orders %} {% endfor %}
SideAmountReceivedPriceMarginExpires
{{ 'Buying' if o.direction == 'buy' else 'Selling' }} {{ fmt_lapse_dp(o.lapse_total, 2) }} {# A ring, not a bar: how much the counterparty has actually paid this maker (market.received_ticks), not how much of the trade overall is done - the leg this maker's own risk actually depends on, not what it sent out itself. #} {{ o.pct_received }}% {{ fmt_price(o.price_stroops_per_lapse) }} XLM {% if o.auto_match_margin_stroops %} {{ fmt_price(o.auto_match_margin_stroops) }} XLM {% else %} none {% endif %} {% if o.blocks_left > 0 %}~{{ fmt_duration(o.blocks_left * 120) }}{% else %}expired{% endif %}
{% endif %} {% endif %} {% endblock %}