Пример #1
0
 public async Task<Accounts.Balances> GetBalances(string Pair)
 {
     PreCall();
     string s = await BitxClient.GetStringAsync("balance");
     Accounts.Balances tmpTicker = null;
     Task< Accounts.Balances> tmp = new Task<Accounts.Balances> (() => { tmpTicker = JSON.JsonDeserialize<Accounts.jsonBalances>(s).ToBalances(); return tmpTicker; });
     Calls.Add(new Call("Balanaces", true));
     return tmpTicker;
 }
Пример #2
0
 public async Task<Accounts.Balances> GetPendingTransactions(string ID)
 {
     PreCall();
     string s = await BitxClient.GetStringAsync(string.Format("accounts/{0}/pending", ID));
     Accounts.Balances tmpTicker = null;
     Task<Accounts.Balances> tmp = new Task<Accounts.Balances>(() => { tmpTicker = JSON.JsonDeserialize<Accounts.jsonBalances>(s).ToBalances(); return tmpTicker; });
     Calls.Add(new Call("Balanaces", true));
     return tmpTicker;
 }
Пример #3
0
 public static jsonBalances ToJsonBalances(Balances _Balances)
 {
     return(jsonBalances.FromBalances(_Balances));
 }