diff --git a/lib/topstepx-class.ts b/lib/topstepx-class.ts index 5e9ac0a..db7ed84 100644 --- a/lib/topstepx-class.ts +++ b/lib/topstepx-class.ts @@ -1214,7 +1214,10 @@ export class TopstepXClient implements PlatformClient { this.fetchDaysComplete = false; let failedAccounts = 0; - const start = new Date(Date.now() - 27 * 24 * 60 * 60 * 1000).toISOString(); + // 90 days: a first funds check can only explain the balance with what + // this window returns, and older P&L it misses is booked as a deposit + // — a trade 64 days back once cost an account its consistency credit. + const start = new Date(Date.now() - 90 * 24 * 60 * 60 * 1000).toISOString(); const end = new Date(Date.now() + 60 * 60 * 1000).toISOString(); const mergePnL = (