Ejemplo n.º 1
0
        private BinanceOrders[] GDAXOrdersToBinanceOrders(Entities.GDAX.OrderBook[] gdaxOrders)
        {
            var orderList = new List <BinanceOrders>();

            for (int i = 0; i < gdaxOrders.Length; i++)
            {
                var order = new BinanceOrders
                {
                    //ignore = kuOrders[i].pairTotal,
                    price    = gdaxOrders[i].price,
                    quantity = gdaxOrders[i].size
                };

                orderList.Add(order);
            }

            return(orderList.ToArray());
        }
Ejemplo n.º 2
0
        private BinanceOrders[] KuCoinOrdersToBinanceOrders(Entities.KuCoinEntities.OrderBook[] kuOrders)
        {
            var orderList = new List <BinanceOrders>();

            for (int i = 0; i < kuOrders.Length; i++)
            {
                var order = new BinanceOrders
                {
                    //ignore = kuOrders[i].pairTotal,
                    price    = kuOrders[i].price,
                    quantity = kuOrders[i].quantity
                };

                orderList.Add(order);
            }

            return(orderList.ToArray());
        }