public void GetWithdrawQuotaTest(string currency) { GetRequest request = new GetRequest(); request.AddParam("currency", currency); GetWithdrawQuotaResponse result = client.GetWithdrawQuotaAsync(request).Result; string strret = JsonConvert.SerializeObject(result, Formatting.Indented); Console.WriteLine(strret); Assert.Equal(200, result.code); }
private static void GetWithdrawQuota() { var walletClient = new WalletClient(Config.AccessKey, Config.SecretKey); var request = new GetRequest() .AddParam("currency", "btc"); var result = walletClient.GetWithdrawQuotaAsync(request).Result; if (result != null && result.data != null && result.data.chains != null) { foreach (var c in result.data.chains) { Console.WriteLine($"chain: {c.chain}, max withdraw amount {c.maxWithdrawAmt}, total quota {c.withdrawQuotaTotal}"); } } }