- Remove Jupiter DEX completely from automation system - Implement exclusive Drift Protocol integration with up to 100x leverage - Update executeLiveTrade method to use only Drift API endpoints - Change default DEX provider from Jupiter to Drift - Create minimal professional UI without promotional banners - Add comprehensive leverage options (1x-100x) with risk indicators - Update automation service to route all trades through /api/automation/trade - Fix type definitions to support Drift-only configuration - Add multiple trading pairs support (SOL, BTC, ETH, APT, AVAX, DOGE) - Implement clean configuration interface with essential controls - Remove excessive marketing text and promotional elements - Maintain full automation functionality while simplifying UX
26 lines
674 B
JavaScript
26 lines
674 B
JavaScript
import { NextResponse } from 'next/server'
|
|
|
|
export async function GET() {
|
|
try {
|
|
// Return basic automation insights
|
|
const insights = {
|
|
status: 'available',
|
|
features: [
|
|
'Drift Protocol leverage trading',
|
|
'Jupiter DEX spot trading',
|
|
'Automated trading strategies',
|
|
'AI-powered market analysis'
|
|
],
|
|
providers: ['DRIFT', 'JUPITER'],
|
|
timestamp: new Date().toISOString()
|
|
}
|
|
|
|
return NextResponse.json(insights)
|
|
} catch (error) {
|
|
console.error('Automation insights error:', error)
|
|
return NextResponse.json(
|
|
{ error: 'Failed to get automation insights' },
|
|
{ status: 500 }
|
|
)
|
|
}
|
|
} |