fix: Health monitor TypeScript error - getAllPositions() method name

- Fixed method call from getPositions() to getAllPositions()
- Health monitor now starts successfully and runs every 30 seconds
- Detects Position Manager monitoring failures within 30 seconds
- Addresses Common Pitfall #77 detection

Tested: Container restart confirmed health monitor operational
This commit is contained in:
mindesbunister
2025-12-09 17:22:56 +01:00
parent 523f34cd9a
commit 1ecef77807
2 changed files with 1 additions and 1 deletions

View File

@@ -56,7 +56,7 @@ export async function checkPositionManagerHealth(): Promise<HealthCheckResult> {
// Get Drift positions
const driftService = getDriftService()
const positions = await driftService.getPositions()
const positions = await driftService.getAllPositions()
const driftPositions = positions.filter(p => Math.abs(p.size) > 0).length
// CRITICAL CHECK #1: DB has open trades but PM not monitoring