Given a stream of transaction data at Visa, write a Python function to identify potential anomalies using a sliding window approach.