{% extends "base.html" %} {% load static %} {% block title %}决策配额管理 - AgomTradePro{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

决策配额管理

决策频率约束与配额监控 - 防止过度交易,确保决策质量

配额配置
{% if error %}
{{ error }}
{% endif %}
{{ quota_remaining }}
剩余配额
{{ quota_used }}
已使用
{{ quota_total }}
总配额
{{ quota_usage_percent }}%
使用率
当前周期配额使用情况
{% if current_quota %}
周期: {{ current_quota.period_start|date:"m/d" }} - {{ current_quota.period_end|date:"m/d" }}
{% endif %}
📋 近期决策请求
{{ recent_requests|length }}
{% if recent_requests %} {% for request in recent_requests|slice:":15" %} {% endfor %}
请求ID 资产代码 名称 方向 执行状态 优先级 请求时间 操作
{{ request.request_id|slice:":8" }} {{ request.asset_code }} {{ request.asset_name|default:"-" }} {{ request.direction|default:"-" }} {{ request.get_execution_status_display|default:request.execution_status }} {{ request.priority|default:"-" }} {{ request.requested_at|date:"m/d H:i"|default:"-" }}
{% else %}
📋
暂无决策请求
{% endif %}
⏳ 活跃冷却期
{{ active_cooldowns|length }}
{% if active_cooldowns %} {% for cooldown in active_cooldowns|slice:":10" %}
{{ cooldown.asset_code }} {{ cooldown.asset_name|default:"" }}
冷却 {{ cooldown.min_decision_interval_hours }}h / {{ cooldown.min_execution_interval_hours }}h
{% if cooldown.last_decision_at %} 上次决策: {{ cooldown.last_decision_at|timesince }} {% else %} 待决策 {% endif %}
{% endfor %} {% else %}
无活跃冷却期
{% endif %}
{% endblock %}