static Currency getCoinDataEveryHour(Currency24h coin24h)
        {
            Currency coin = new Currency();

            //lấy data của coin theo nến 1h
            coin           = (Currency)getCoinDataByTime(coin24h.symbol, "1h", 1).First();
            coin.change24H = coin24h.priceChange;
            return(coin);
        }
        static void getDataAllCoinEveryHour()
        {
            List <Currency> lstBTCMarket = new List <Currency>();
            List <Currency> lstETHMarket = new List <Currency>();
            List <Currency> lstBNBMarket = new List <Currency>();
            List <Currency> lstUSDMarket = new List <Currency>();

            String json24h     = api.getExchangeData24h();
            JArray json24hData = JArray.Parse(json24h);

            foreach (JObject jo in json24hData.Children <JObject>())
            {
                Currency24h coin24h = new Currency24h();
                coin24h.symbol      = jo.Property("symbol").Value.ToString();
                coin24h.priceChange = Convert.ToSingle(jo.Property("priceChangePercent").Value);

                if (coin24h.symbol.Substring((coin24h.symbol.Length - 4)) == "USDT")
                {
                    lstUSDMarket.Add(getCoinDataEveryHour(coin24h));
                }
                else
                {
                    switch (coin24h.symbol.Substring((coin24h.symbol.Length - 3)))
                    {
                    case "BTC":
                        lstBTCMarket.Add(getCoinDataEveryHour(coin24h));
                        break;

                    case "ETH":
                        lstETHMarket.Add(getCoinDataEveryHour(coin24h));
                        break;

                    case "BNB":
                        lstBNBMarket.Add(getCoinDataEveryHour(coin24h));
                        break;
                    }
                }
            }

            db.insertData(DatabaseAccess.BTCTABLE, lstBTCMarket);
            db.insertData(DatabaseAccess.ETHTABLE, lstETHMarket);
            db.insertData(DatabaseAccess.BNBTABLE, lstBNBMarket);
            db.insertData(DatabaseAccess.USDTABLE, lstUSDMarket);
        }