export interface TradingViewExchange {
  exchange: string;
  name: string;
  description: string;
  dataType: string[];
  countryCode: string; // All caps
  countryName: string;
  popularityRank?: number;
}

// Raw data from TradingView
export interface TradingViewRawExchange {
  text_id?: string;
  exchange: string;
  provider_id?: string | null;
  name: string;
  description: string;
  data_type: string[];
  country: string;
  country_name: string;
  popularity_rank?: number;
  [key: string]: any; // Other fields we don't need
}

export interface ExchangeGroup {
  name: string;
  exchanges: TradingViewRawExchange[];
}

export interface TradingViewData {
  locale: string;
  user: any;
  is_authenticated: boolean;
  exchanges: ExchangeGroup[];
  currency: string;
}