Skip to main content

monitor_transaction

Function monitor_transaction 

Source
pub fn monitor_transaction(
    tx: &Transaction,
    profile: &CustomerRiskProfile,
    config: &MonitoringConfig,
    alert_id_start: u64,
) -> Vec<MonitoringAlert>
Expand description

Monitor a single transaction and generate any applicable alerts.

This is a direct port of the C# TransactionMonitoringKernel.MonitorTransaction logic:

  1. Check velocity breach (too many transactions in time window)
  2. Check amount threshold (single large transaction)
  3. Check structured transactions (smurfing - amounts just under threshold)
  4. Check geographic anomaly (unusual destination country)