Exemple #1
0
 public async Task<Orders.Orders> GetOrders()
 {
     PreCall();
     string s = await BitxClient.GetStringAsync(string.Format("listorders"));
     Orders.Orders tmpTicker = null;
     Task<Orders.Orders> tmp = new Task<Orders.Orders>(() => { tmpTicker = JSON.JsonDeserialize<Orders.jsonOrders>(s).ToOrders(); return tmpTicker; });
     Calls.Add(new Call("Balanaces", true));
     return tmpTicker;
 }
Exemple #2
0
 public async Task<Orders.Orders> GetOrders(string Type, string Pair)
 {
     PreCall();
     List<KeyValuePair<string, string>> pairs = new List<KeyValuePair<string, string>>();
     pairs.Add(new KeyValuePair<string, string>("pair", Pair));
     pairs.Add(new KeyValuePair<string, string>("type", Type));
     FormUrlEncodedContent Content = new FormUrlEncodedContent(pairs);
     string s = await BitxClient.PostAsync(string.Format("listorders"), Content).Result.Content.ReadAsStringAsync();
     Orders.Orders tmpTicker = null;
     Task<Orders.Orders> tmp = new Task<Orders.Orders>(() => { tmpTicker = JSON.JsonDeserialize<Orders.jsonOrders>(s).ToOrders(); return tmpTicker; });
     Calls.Add(new Call("Balanaces", true));
     return tmpTicker;
 }