{% extends "admin/base_site.html" %} {% load i18n static %} {% block content %}

Financial Control Center

Real-time ledger reconciliation, trading engine metrics, and operational review queues.

{% if operational_alerts %}
{% for alert in operational_alerts %}
{{ alert.title }} {{ alert.desc }}
Resolve Now →
{% endfor %}
{% endif %}
Total Registered Users
{{ metrics.total_users|default:"0" }}
+{{ metrics.users_30d }} Past 30 days (All-Time Accts)
Calculation: GoalignAccount.count()
Active Traders (30D)
{{ metrics.active_traders|default:"0" }}
30-Day Window Active order book participants
Calculation: Unique users with orders/trades in 30d
Total Trading Volume
${{ metrics.total_volume|default:"0.00" }}
24h: ${{ metrics.vol_24h }} Aggregated USD Notional
Calculation: Σ(amount × price) on filled trades
Deposits vs Withdrawals
${{ metrics.total_deposits }} / ${{ metrics.total_withdrawals }}
Inflow / Outflow Double-entry verified flows
Calculation: System ledger deposit debits vs completed payouts
Pending Withdrawals
{{ metrics.pending_wds_count }} (${{ metrics.pending_wds_amount }})
{% if metrics.pending_wds_count > 0 %} Review Queue → {% else %} All Clear {% endif %} USDT Value
Calculation: WithdrawalRequest.filter(status='pending')
Pending KYC Submissions
{{ metrics.pending_kyc_count }}
{% if metrics.pending_kyc_count > 0 %} Review Applicants → {% else %} Zero Backlog {% endif %} of {{ metrics.total_kyc_submissions }} total
Calculation: GoalignAccount.filter(kyc_status='pending')
Platform Revenue (Fees)
${{ metrics.platform_revenue|default:"0.00" }}
Protocol Retained USDT Accumulated
Calculation: Σ(fee) collected across all trades
Open Orders & Positions
{{ metrics.open_orders }} / {{ metrics.active_positions }}
{{ metrics.total_risk_exposure }} Exposure Units Live engine state
Calculation: Order(status='open') + Position(status='open')

Trading Volume & Platform Revenue

Notional volume executed vs protocol fee generation across selected horizon.

Volume ($) Revenue ($)

Treasury Flow (Inflow vs Outflow)

Daily deposits vs processed withdrawals.

User Base Growth

Cumulative registered accounts.

KYC Verification Status

Distribution across all registered accounts.

Pending KYC Verifications

Review user credentials and approve trading tier access.

View All ({{ metrics.pending_kyc_count }})
{% if pending_kyc_list %}
{% for kyc in pending_kyc_list %} {% endfor %}
Applicant ID Type Submitted Actions
{{ kyc.full_name }} {{ kyc.user.email }}
{{ kyc.id_type|upper }} {{ kyc.created_at|date:"M d, H:i" }}
{% csrf_token %}
{% else %}

All KYC applications have been reviewed and resolved.

{% endif %}

Pending Withdrawal Approvals

Dual authorization required for treasury disbursements.

View All ({{ metrics.pending_wds_count }})
{% if pending_withdrawals_list %}
{% for wd in pending_withdrawals_list %} {% endfor %}
User / Destination Asset / Network Amount Actions
{{ wd.user.email }} {{ wd.address|slice:":10" }}...{{ wd.address|slice:"-6:" }}
{{ wd.asset }} {{ wd.network }} {{ wd.amount }}
{% csrf_token %}
{% else %}

No pending withdrawal disbursements awaiting operator action.

{% endif %}

Immutable Financial Ledger Stream

Double-entry verified balance movements.

Ledger Explorer
{% for tx in recent_ledger_txs %} {% empty %} {% endfor %}
Reference ID Type Status Timestamp Action
{{ tx.reference_id|slice:":18" }}... {{ tx.transaction_type }} {% if tx.status == 'posted' %} POSTED {% else %} {{ tx.status|upper }} {% endif %} {{ tx.created_at|date:"M d, H:i:s" }} Investigate
No ledger transactions recorded yet.

Privileged Security Audit Stream

All administrative mutations and staff actions.

All Audit Logs
{% for log in recent_audit_logs %} {% empty %} {% endfor %}
Actor Action Target Timestamp
{{ log.actor.username|default:"System" }} {{ log.action }} {{ log.target_type }}: {{ log.target_identifier|slice:":10" }} {{ log.timestamp|date:"M d, H:i:s" }}
No administrative actions logged yet.

Administration Modules

Direct access to core model repositories with role-based access control.

{% for app in app_list %}

{{ app.name }}

{% for model in app.models %}
{{ model.name }} {% if model.add_url %} + Add {% endif %}
{% endfor %}
{% endfor %}
{% endblock %}