{% for record in market_data.Record %} {% set is_stock_direction = 'is-stock-up' %} {% set stock_prefx = '+' %} {% if record.ChangePrice < 0 %} {% set is_stock_direction = 'is-stock-down' %} {% endif %} {% if record.ChangePrice <= 0 %} {% set stock_prefx = '' %} {% endif %} {% endfor %}
{{ record.ShortCompanyName }} {{ record.Last|number_format(2, '.', '') }} {{ stock_prefx }}{{ record.ChangePrice|number_format(2, '.', '') }} {{ stock_prefx }}{{ record.ChangePercent|number_format(2, '.', '') }}%