Beispiel #1
0
        public static void Init()
        {
            //PopulatePairGraph();
            Bitfinex.PopulatePairGraph("./bitfinex-pairs.txt");
            Binance.PopulatePairGraph("./binance-pairs.txt");
            Bitfinex.Connect();
            Binance.Connect();

            Tickers = new HashSet <string>(Bitfinex.Currencies.Concat(Binance.Currencies));
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            BinanceInstance binance = new BinanceInstance();

            binance.PopulatePairGraph("./binance-pairs.txt");
            binance.Connect();

            while (!binance.TickerData.Any())
            {
                Thread.Sleep(500);
            }

            Console.WriteLine("Got ticker data");

            while (true)
            {
                Thread.Sleep(1000);
                Console.WriteLine(binance.TickerData[new Ticker("BTC", "USD")]);
            }
        }