import { NextResponse } from 'next/server' import { driftTradingService } from '../../../../lib/drift-trading' export async function GET() { try { const positions = await driftTradingService.getPositions() return NextResponse.json({ positions }) } catch (error: any) { return NextResponse.json({ error: error.message }, { status: 500 }) } }