import {
  ChartingLibraryFeatureset,
  LibrarySymbolInfo,
  ResolutionString,
  SeriesFormat,
  Timezone,
} from 'utils/charting_library/charting_library'

export const disabledFeatures: ChartingLibraryFeatureset[] = [
  'timeframes_toolbar',
  'go_to_date',
  'header_compare',
  'header_saveload',
  'popup_hints',
  'header_symbol_search',
  'symbol_info',
]

export const enabledFeatures: ChartingLibraryFeatureset[] = [
  'timezone_menu',
  'header_settings',
  'use_localstorage_for_settings',
]

export const overrides = {
  'linetooltrendline.linecolor': 'rgba(255, 255, 255, 0.8)',
  'linetooltrendline.linewidth': 2,
}

export const defaultSymbolInfo: Partial<LibrarySymbolInfo> = {
  listed_exchange: 'Pyth Oracle',
  type: 'AMM',
  session: '24x7',
  minmov: 1,
  pricescale: 100000,
  timezone: 'Etc/UTC' as Timezone,
  has_intraday: true,
  has_daily: true,
  has_weekly_and_monthly: false,
  format: 'price' as SeriesFormat,
  supported_resolutions: ['15'] as ResolutionString[],
}
