Exemplo n.º 1
0
        static async Task TestBinance()
        {
            try
            {
                var binance = new BinanceApiClient();
                // public api

                // signed api
                var orders = await binance.GetOpenOrdersAsync();

                Debug.Assert(orders.Success);

                Console.ReadLine();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
        }
Exemplo n.º 2
0
        public async Task <IEnumerable <OrderResponse> > GetOpenOrdersAsync(string pair)
        {
            var response = await binance.GetOpenOrdersAsync(pair);

            return(this.BinanceOrderResponseCollectionConverter(response));
        }