Delay in updating today's account balances for subset of accounts.

Incident Report for Alpaca

Postmortem

We understand the importance of timely and accurate balance information. This update provides details regarding a delay in the synchronization of beginning-of-day balances for some partner accounts that occurred on the morning of November 25, 2025.

What Happened

Our beginning-of-day (BOD) job, a critical internal process responsible for calculating and updating client cash and position balances, experienced a series of failures starting early this morning.

This failure was caused by an issue in our transaction processing system. The job, which handles a large volume of data, encountered database query timeouts during the reconciliation of account balance data from the previous day. This high-load query was performing inefficiently, leading to connection closures and the subsequent failure of the balance synchronization job. Repeated manual attempts to rerun the job were also unsuccessful due to these performance issues.

Impact

The core impact was a delay in the timely synchronization of balances for a subset of our B2B partner accounts.

  • Affected Data: The primary impact was on the display and availability of the Beginning-of-Day (BOD) balances for November 25, 2025.
  • Scope: Approximately 680,000 accounts across specific correspondents were initially impacted by the delay in updated balances.
  • Crucially, we can confirm that NO client funds or transaction records were lost, compromised, or incorrectly executed due to this issue. All underlying trade data and financial records remained secure and intact.

Resolution

The issue is now fully resolved, and normal service has been restored.

Our engineering teams successfully mitigated the problem by increasing the database query transaction timeout and reducing the batch size for the balance processing job. This change allowed the job to complete the heavy data reconciliation process without timing out. Additionally, we performed targeted manual updates for a critical set of partner accounts to minimize disruption while the main job completed.

The balance synchronization job completed successfully, and all affected accounts now reflect the correct Beginning-of-Day balances for November 25, 2025.

Preventative Measures and Future Commitment

We are committed to enhancing the stability of our data processing pipeline to prevent recurrence. Our immediate follow-up actions are focused on three core themes:

  1. System Resiliency & Optimization:
* Permanent Database Query Refactoring: Implement the identified, optimized query logic to reduce the execution time of the critical balance calculation query from minutes to under 30 seconds. This is the long-term fix for the root cause.
* Persistent Configuration: Permanently adjust the transaction timeout and batch size configurations for the balance processing job to ensure reliable execution, regardless of data volume fluctuations.
  1. Enhanced Monitoring & Observability:
* Load and Performance Profiling: Integrate advanced profiling tools into the balance job to better identify and troubleshoot slow queries under real-time production load in the future.
* Connection Management Review: Investigate and address an observed increase in idle database connections to safeguard resource availability for critical jobs.
  1. Partner Communication Enhancements:
* Streamlined Eventing: We are finalizing the design to publish more granular system events to partners upon the completion of key processes, such as the End-of-Day \(EOD\) and Beginning-of-Day \(BOD\) balance updates, improving transparency and integration capabilities.

We apologize for the inconvenience this delay caused and thank you for your patience and understanding. Maintaining the highest level of system reliability and transparency is our top priority.

  • The Alpaca Team
Posted Nov 25, 2025 - 14:21 EST

Resolved

As we are no longer seeing any issue reported with balances so marking this as resolved.
Posted Nov 25, 2025 - 08:16 EST

Monitoring

We’ve completed remediation and all affected accounts now reflect correct beginning-of-day balances. No action is required on your side. We are continuing to monitor to ensure there are no further issues. Thank you for your patience while we worked through this.
Posted Nov 25, 2025 - 06:56 EST

Update

Our database is experiencing some increased load, but the balance-update job is still running without any issues. We're actively monitoring it and will keep you updated as it progresses.
Posted Nov 25, 2025 - 06:35 EST

Identified

The job responsible for updating balances was failing due to database timeout issues. We’ve increased the timeout settings and are rerunning the job. We’ll keep you posted on the progress.
Posted Nov 25, 2025 - 06:06 EST

Update

Our teams have narrowed down the issue, and we are currently evaluating potential solutions. We will provide an update shortly.
Posted Nov 25, 2025 - 05:52 EST

Investigating

The Nov 24, 2025 beginning-of-day job completed, but some accounts failed to update correctly. Our engineering team is actively working to correct the affected balances.
Posted Nov 25, 2025 - 05:15 EST
This incident affected: Funding (Withdrawable Cash).