/// <summary> /// currency = upper case ExchangeSymbolEnum /// method = lower case ExchangeSymbolNameEnum /// wallet = BitfinexWalletEnum /// </summary> /// <param name="currency"></param> /// <param name="method"></param> /// <param name="wallet"></param> /// <returns></returns> public BitfinexDepositResponse Deposit(string currency, string method, string wallet) { var depositPost = new BitfinexDepositPost(); depositPost.Request = DepositRequestUrl; depositPost.Nonce = Common.UnixTimeStampUtc().ToString(); depositPost.Currency = currency; depositPost.Method = method; depositPost.WalletName = wallet; var client = GetRestClient(depositPost.Request); var response = GetRestResponse(client, depositPost); var depositResponseObj = JsonConvert.DeserializeObject <BitfinexDepositResponse>(response.Content); Logger.Log.InfoFormat("Attempting to deposit: {0} with method: {1} to wallet: {2}", currency, method, wallet); Logger.Log.InfoFormat("Response from exchange: {0}", depositResponseObj); return(depositResponseObj); }
/// <summary> /// currency = upper case ExchangeSymbolEnum /// method = lower case ExchangeSymbolNameEnum /// wallet = BitfinexWalletEnum /// </summary> /// <param name="currency"></param> /// <param name="method"></param> /// <param name="wallet"></param> /// <returns></returns> public BitfinexDepositResponse Deposit(string currency, string method, string wallet) { var depositPost = new BitfinexDepositPost { Request = DepositRequestUrl, Nonce = Common.UnixTimeStampUtc().ToString(CultureInfo.InvariantCulture), Currency = currency, Method = method, WalletName = wallet }; // var client = GetRestClient(depositPost.Request); var response = GetRestResponse(depositPost); var depositResponseObj = JsonConvert.DeserializeObject <BitfinexDepositResponse>(response); Log.Info("Attempting to deposit: {0} with method: {1} to wallet: {2}", currency, method, wallet); Log.Info("Response from exchange: {0}", depositResponseObj); return(depositResponseObj); }