{% capture priceref %}{{ o.price-reference[0] | join: '-' }}{% endcapture %}
{% capture price_ex %}
{% if site.data.price-sources[priceref] != null %}
{{ site.data.price-sources[priceref].price | plus: 0.00001 | round: 4 }}
{% else %}
0
{% endif %}
{% endcapture %}{% assign price_ex = price_ex | times: 1 %}
{% capture price %}{% if price_ex != "" %}{{price_ex}}{% else %}{{ o.price-source }}{% endif %}{% endcapture %}
{% capture pricel %}{{ o.price-per-unit }}{% endcapture %}
{% capture pricelimit %}
{% if o.bid-ask == 'bid' and pricel < price %}
{{ price }}
{% elsif o.bid-ask == 'ask' and pricel > price %}
{{ price }}
{% else %}
{{ o.price-per-unit }}
{% endif %}
{% endcapture %}
( {{ pricelimit | times: o.max-size | decimals }} {{ o.price-reference[0][1] }} )
{{ pricelimit | decimals }} {{ o.price-reference[0][1] }}{% if o.min-size > 0 %}{{ o.min-size }}..{% endif %}{{ o.max-size }} {{ o.price-reference[0][0] }}
{% if price_ex > 0 %}(
{{ priceref }} {{ price }} {{ site.data.price-sources[priceref].currency }} / {{ o.price-reference[0][0] }} )
{% else %}fixed price{% endif %}