Ejemplo n.º 1
0
        public static async Task <Balance[]> GetBalancesAsync(this BittrexClient client)
        {
            var request = new BittrexRequest
            {
                Api         = BittrexApi.Account,
                RelativeUrl = "api/v1.1/account/getbalances"
            };

            var response = await client.SendRequestAsync <Balance[]>(request);

            return(response.Result);
        }
Ejemplo n.º 2
0
        public static async Task <Market[]> GetMarketsAsync(this BittrexClient client)
        {
            var request = new BittrexRequest
            {
                Api         = BittrexApi.Public,
                RelativeUrl = "api/v1.1/public/getmarkets"
            };

            var response = await client.SendRequestAsync <Market[]>(request);

            return(response.Result);
        }