import '../config/environment.dart';

class AppConstants {
  static const String appName = '股行';

  // API - 根据环境自动选择
  static String get baseUrl => EnvironmentConfig.baseUrl;
  static const Duration connectionTimeout = Duration(seconds: 30);
  static const Duration receiveTimeout = Duration(seconds: 30);

  // Cache
  static const Duration cacheExpiry = Duration(minutes: 5);

  // Refresh intervals
  static const Duration realtimeRefreshInterval = Duration(seconds: 5);
  static const Duration priceRefreshInterval = Duration(seconds: 10);

  // Decimal precision
  static const int pricePrecision = 8;
  static const int amountPrecision = 4;
  static const int contributionPrecision = 4;
}
