{% extends "base.html" %} {% block title %}多市场行情 - {{ data.symbol_display }}{% endblock %} {% block content %}
{{ data.symbol_display }} 多市场行情
{% for market in data.markets %}

{{ market.name }}

{% set price_val = market.lastPrice|float %} {% set precision = 4 if (price_val < 10) else 2 %} ${{ "%.*f"|format(precision, price_val) }} {{ '+' if market.priceChangePercent|float >= 0 else '' }}{{ "%.2f"|format(market.priceChangePercent|float) }}%
24h 最高价
${{ "%.*f"|format(precision, market.highPrice|float) }}
24h 最低价
${{ "%.*f"|format(precision, market.lowPrice|float) }}
24h 涨跌额
{{ "%.*f"|format(precision, market.priceChange|float) }}
24h 成交量 ({{ data.symbol_display.split('-')[0] }})
{{ "{:,.2f}".format(market.volume|float) }}
24h 成交额 (USDT)
${{ "{:,.0f}".format(market.quoteVolume|float) }}
{% if market.openInterest %}
持仓量 (张)
{{ "{:,.0f}".format(market.openInterest|float) }}
{% else %}
24h 成交数
{{ "{:,}".format(market.count) }}
{% endif %}
{% endfor %} {% if not data.markets %}
未能查询到 {{ data.symbol_display }} 的任何市场行情。
{% endif %}
{% endblock %}