public static TradeTransactionResponse executeTradeTransactionCommand(SyncAPIConnector connector, TradeTransInfoRecord tradeTransInfo, bool prettyPrint) { return new TradeTransactionResponse(connector.executeCommand(createTradeTransactionCommand(tradeTransInfo, prettyPrint)).ToString()); }
public static TradeTransactionCommand createTradeTransactionCommand(TradeTransInfoRecord tradeTransInfo, bool prettyPrint) { JSONObject args = new JSONObject(); args.Add("tradeTransInfo", tradeTransInfo.toJSONObject()); return new TradeTransactionCommand(args, prettyPrint); }
public static ConfirmPricedResponse executeConfirmPricedCommand(SyncAPIConnector connector, long? requestId, TradeTransInfoRecord tradeTransInfo, bool prettyPrint) { return new ConfirmPricedResponse(connector.executeCommand(createConfirmPricedCommand(requestId, tradeTransInfo, prettyPrint)).ToString()); }
public static ConfirmPricedCommand createConfirmPricedCommand(long? requestId, TradeTransInfoRecord tradeTransInfo, bool prettyPrint) { JSONObject args = new JSONObject(); args.Add("requestId", requestId); args.Add("tradeTransInfo", tradeTransInfo.toJSONObject()); return new ConfirmPricedCommand(args, prettyPrint); }