using System; using System.Collections.Generic; using System.Net.Http; using System.Threading.Tasks; using Newtonsoft.Json; public class Coin { public string Symbol { get; set; } public decimal PriceChangePercent { get; set; } } class Program { static async Task Main() { // Binance API endpoint string apiUrl = "https://api.binance.com/api/v3/klines?symbol={0}&interval=5m&limit=1"; // HTTP client using (HttpClient client = new HttpClient()) { // Coin listesi List coins = new List { new Coin { Symbol = "ALPINEUSDT", PriceChangePercent = 0 }, // Örnek coinler, istediğiniz gibi güncelleyebilirsiniz new Coin { Symbol = "ACMUSDT", PriceChangePercent = 0 }, new Coin { Symbol = "LAZIOUSDT", PriceChangePercent = 0 }, new Coin { Symbol = "JUVUSDT", PriceChangePercent = 0 }, new Coin { Symbol = "ASRUSDT", PriceChangePercent = 0 }, new Coin { Symbol = "CITYUSDT", PriceChangePercent = 0 }, new Coin { Symbol = "ATOMUSDT", PriceChangePercent = 0 }, new Coin { Symbol = "XLMUSDT", PriceChangePercent = 0 }, new Coin { Symbol = "AXSUSDT", PriceChangePercent = 0 }, new Coin { Symbol = "CVPUSDT", PriceChangePercent = 0 }, new Coin { Symbol = "FARMUSDT", PriceChangePercent = 0 }, new Coin { Symbol = "COCOSUSDT", PriceChangePercent = 0 }, new Coin { Symbol = "WINUSDT", PriceChangePercent = 0 }, new Coin { Symbol = "ANKRUSDT", PriceChangePercent = 0 }, new Coin { Symbol = "LOKAUSDT", PriceChangePercent = 0 }, new Coin { Symbol = "TROYUSDT", PriceChangePercent = 0 }, new Coin { Symbol = "WINGUSDT", PriceChangePercent = 0 }, new Coin { Symbol = "NEOBUSD", PriceChangePercent = 0 }, new Coin { Symbol = "KEYBUSD", PriceChangePercent = 0 }, new Coin { Symbol = "TKOUSDT", PriceChangePercent = 0 }, new Coin { Symbol = "LTOUSDT", PriceChangePercent = 0 }, new Coin { Symbol = "AMBBUSD", PriceChangePercent = 0 }, new Coin { Symbol = "CREAMBUSD", PriceChangePercent = 0 }, new Coin { Symbol = "SUNUSDT", PriceChangePercent = 0 }, new Coin { Symbol = "TLMUSDT", PriceChangePercent = 0 }, }; while (true) { try { foreach (var coin in coins) { // Coin'in API endpointini oluştur string coinApiUrl = string.Format(apiUrl, coin.Symbol); // Coin verilerini al var response = await client.GetAsync(coinApiUrl); response.EnsureSuccessStatusCode(); var responseBody = await response.Content.ReadAsStringAsync(); var coinData = JsonConvert.DeserializeObject>>(responseBody); if (coinData.Count > 0) { // Mum verilerini al var candleData = coinData[0]; // Kapanış fiyatını ve önceki kapanış fiyatını al decimal currentClose = decimal.Parse(candleData[4].ToString()); decimal previousClose = decimal.Parse(candleData[1].ToString()); // Yüzde değişim kontrolü decimal priceChangePercent = (currentClose - previousClose) / previousClose * 100; if (priceChangePercent >= 0.1M) { Console.WriteLine($"Sembol : {coin.Symbol} | Değişim : %{priceChangePercent.ToString("F5")} | Önceki Fiyat : {previousClose} | Güncel Fiyat : {currentClose}"); } } } } catch (Exception ex) { Console.WriteLine("Hata: " + ex.Message); } // Her 5 dakikada bir kontrol etmek için bekleyin await Task.Delay(60000); } } } }