public void atualizarCarteira() { clsApiMercadoBitcon vObjAPI = new clsApiMercadoBitcon(); clsApiAccountInfo vObjInfo; try { if (Program.Parametros.pSimulando == false) { vObjInfo = vObjAPI.buscarInfoAccount(); this._SaldoMoeda = clsTooUtil.converterStringDecimal_US(vObjInfo.response_data.balance.brl.available); this._SaldoBitcoins = clsTooUtil.converterStringDecimal_US(vObjInfo.response_data.balance.btc.available); this._SaldoMoeda = Math.Truncate(this._SaldoMoeda * 100) / 100; this._SaldoBitcoins = Math.Truncate(this._SaldoBitcoins * 100000) / 100000; } } catch { throw; } }
public clsCtrOperacao() { this._ObjAPI = new clsApiMercadoBitcon(); this._ObjOrdemAPI = new clsApiOrders(); this.pConsulta = null; }