Exemplo n.º 1
0
        private void OnPriceUpdateEvent(object source, ElapsedEventArgs e)
        {
            // Stop the timer so we are not called until this function finishes
            updatePricesTimer.Stop();

            // Fetch updated order book from the OKCoin
            okcDepth = okcoin.getDepthFutures(OKCoinFuturesType.Quarter);

            Console.WriteLine(okcDepth);

            // Resume the timer
            updatePricesTimer.Start();
        }
Exemplo n.º 2
0
        private void OnPriceUpdateEvent(object source, ElapsedEventArgs e)
        {
            // Stop the timer so we are not called until this function finishes
            updatePricesTimer.Stop();

            // Fetch updated order book from the OKCoin
            okcDepth = okcoin.getDepthFutures(OKCoinFuturesType.Quarter);

            Console.WriteLine(okcDepth);

            // Resume the timer
            updatePricesTimer.Start();
        }