{% extends "base.html" %} {% block title %}我的预警{% endblock %} {% block content %}

我的价格预警

{% if data.alerts %} {% for alert in data.alerts %} {# 将市场类型转换为中文显示 #} {% set market_map = {"spot": "现货", "um": "U本位合约", "cm": "币本位合约"} %} {% endfor %}
市场 交易对 触发条件 当前价格 ID
{{ market_map.get(alert.market, alert.market) }} {{ alert.symbol.upper() }} 价格 {{ alert.condition }} {{ alert.value }} {{ "%.4f"|format(alert.current_price|float) if alert.current_price is number else alert.current_price }} {{ alert.id }}
使用 `bn alert remove [ID]` 来删除预警
{% else %}
您当前没有设置任何价格预警
{% endif %}
{% endblock %}