import { registerAs } from '@nestjs/config';

export default registerAs('marketData', () => ({
  provider: process.env.MARKET_DATA_PROVIDER || 'mock',
  apiKey: process.env.MARKET_DATA_API_KEY,
  apiSecret: process.env.MARKET_DATA_API_SECRET,
  wsUrl: process.env.MARKET_DATA_WS_URL,
  // 重连配置
  reconnectInterval: 5000,
  maxReconnectAttempts: 10,
  // 数据更新频率 (毫秒)
  tickUpdateInterval: 1000,
  klineUpdateInterval: 5000,
}));
