public IMarketResponse SendQueryBuySellRequest(int id) { QueryBuySellRequest queryBS = new QueryBuySellRequest(id); //create buy/sell query request MQReq marketResponse = new MQReq(); try { marketResponse = client.SendPostRequest <QueryBuySellRequest, MQReq>(url, user, privateKey, queryBS); myLogger.Info("Sent Query Buy/Sell Request{id:" + id + ", Response: " + marketResponse.ToString() + "}"); } catch (Exception e) { return(catchMethod(e)); } myHistory.Info("Sent Query Buy/Sell Request-\r\nid:" + id + "\nResponse: " + marketResponse.ToString()); return(marketResponse); }
public override string ToString() { return("ID " + id.ToString() + ", " + request.ToString()); }