import { NextResponse } from 'next/server'

export async function GET() {
  try {
    // For now, return that we have no positions (real data)
    // This matches our actual system state
    return NextResponse.json({
      hasPosition: false,
      symbol: null,
      unrealizedPnl: 0,
      riskLevel: 'LOW',
      message: 'No active positions currently. System is scanning for opportunities.'
    })
  } catch (error) {
    console.error('Error checking position:', error)
    return NextResponse.json(
      { 
        error: 'Failed to check position',
        hasPosition: false,
        symbol: null,
        unrealizedPnl: 0,
        riskLevel: 'UNKNOWN'
      },
      { status: 500 }
    )
  }
}
