{% extends "global/Page.html" %} {% load otree %} {% block title %} Currency Exchange Result {% endblock %} {% block styles %} {% endblock %} {% block content %}
{% include 'double_auction/includes/general_info_block_nonauction.html' %}
{% if group.dollar_btc_rate == 0 %}
No exchange took place
{% else %}
Currency A exchanged: {{ player.exchange_dollar }}
Currency exchange rate (Currency A per B): * {{ group.btc_dollar_rate }}
Currency B you just purchased: = {{ player.purchased_btc }}
Currency B endowment before exchange: + {{ player.previous_btc }}
Currency B you just sold: - {{ player.exchange_btc }}
Current Currency B endowment: = {{ player.allocation_btc }}
Currency B exchanged: {{ player.exchange_btc }}
Currency exchange rate (Currency B per A): * {{ group.dollar_btc_rate }}
Currency A you just purchased: = {{ player.purchased_dollar }}
Currency A endowment before exchange: + {{ player.previous_dollar }}
Currency A you just sold: - {{ player.exchange_dollar }}
Current Currency A endowment: = {{ player.allocation_dollar }}
{% endif %} {% next_button %} {% if player.is_display == False %} {% if player.role == 'buyer' %} You will not enter the reopened auction house, as there is no fund left for trading. {% else %} You will not enter the reopened auction house, as there is no item available for trading left {% endif %} {% endif %} {% endblock %} {% block scripts %} {# Here we include javascript block where we connect via websockets to oTree server #} {% include './includes/channel-js.html' %} {% endblock %}