dcc
2024-06-13 24e2c4a6983d3ed1c67080b460f7e28f5e2e55f9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
export const currentUnit = (data) => {
  const unitList = {
    'indices': 'USD',
    'cryptos': 'USDT',
    'forex': 'USD',
    'US-stocks': 'USD',
    'HK-stocks': 'HKD',
    'TW-stocks': 'TWD',
    'JP-stocks': 'JPY',
    'A-stocks': 'CNY',
    'UK-stocks': 'GBP',
    'DE-stocks': 'EUR',
    'BZ-stocks': 'BRL',
    'INDIA-stocks': 'INR',
  } 
  return unitList[data] || 'USD'
}