feat: implement complete automation system with real trading connection
This commit is contained in:
20
app/api/automation/status/route.js
Normal file
20
app/api/automation/status/route.js
Normal file
@@ -0,0 +1,20 @@
|
||||
import { NextResponse } from 'next/server'
|
||||
import { automationService } from '@/lib/automation-service-simple'
|
||||
|
||||
export async function GET() {
|
||||
try {
|
||||
const status = await automationService.getStatus()
|
||||
|
||||
return NextResponse.json({
|
||||
success: true,
|
||||
status: status || null
|
||||
})
|
||||
} catch (error) {
|
||||
console.error('Get status error:', error)
|
||||
return NextResponse.json({
|
||||
success: false,
|
||||
error: 'Internal server error',
|
||||
message: error.message
|
||||
}, { status: 500 })
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user