import { RISK_STYLE_TEMPLATES } from './RiskStyleTemplates';

export interface StrategyPreset {
    id: string;
    name: string;
    description: string;
    riskStyleId: 'safe' | 'balanced' | 'aggressive';
    recommendedAssets: string[];
    typicalTradesPerDay: string;
    performanceTag?: string;
    isPopular?: boolean;
}

export const STRATEGY_PRESETS: StrategyPreset[] = [
    {
        id: 'aggressive-top-performer',
        name: 'Top Performing Aggressive Bot',
        description: 'A high-frequency setup that excelled in the last 30 days of market volatility. Optimized for quick entries.',
        riskStyleId: 'aggressive',
        recommendedAssets: ['BTC/USDT', 'SOL/USDT'],
        typicalTradesPerDay: '8-12',
        performanceTag: '+14.2% (Last 30d)',
        isPopular: true
    },
    {
        id: 'low-vol-btc',
        name: 'Low Volatility BTC Bot',
        description: 'Designed for stability. This bot only enters Bitcoin trades during high-conviction momentum shifts.',
        riskStyleId: 'safe',
        recommendedAssets: ['BTC/USDT'],
        typicalTradesPerDay: '1-2',
        performanceTag: 'Low Risk'
    },
    {
        id: 'balanced-multi-asset',
        name: 'Standard Balanced Core',
        description: 'Our benchmark strategy. Trades the top 3 assets with moderate risk levels and consistent execution.',
        riskStyleId: 'balanced',
        recommendedAssets: ['BTC/USDT', 'ETH/USDT', 'SOL/USDT'],
        typicalTradesPerDay: '3-5'
    }
];

export const getPresetConfig = (presetId: string) => {
    const preset = STRATEGY_PRESETS.find(p => p.id === presetId);
    if (!preset) return null;

    const style = RISK_STYLE_TEMPLATES.find(t => t.id === preset.riskStyleId);
    return {
        preset,
        style
    };
};
