Example #1
0
 public static TradeTransactionResponse executeTradeTransactionCommand(SyncAPIConnector connector, TradeTransInfoRecord tradeTransInfo, bool prettyPrint)
 {
     return new TradeTransactionResponse(connector.executeCommand(createTradeTransactionCommand(tradeTransInfo, prettyPrint)).ToString());
 }
Example #2
0
 public static TradeTransactionCommand createTradeTransactionCommand(TradeTransInfoRecord tradeTransInfo, bool prettyPrint)
 {
     JSONObject args = new JSONObject();
     args.Add("tradeTransInfo", tradeTransInfo.toJSONObject());
     return new TradeTransactionCommand(args, prettyPrint);
 }
Example #3
0
 public static ConfirmPricedResponse executeConfirmPricedCommand(SyncAPIConnector connector, long? requestId, TradeTransInfoRecord tradeTransInfo, bool prettyPrint)
 {
     return new ConfirmPricedResponse(connector.executeCommand(createConfirmPricedCommand(requestId, tradeTransInfo, prettyPrint)).ToString());
 }
Example #4
0
 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);
 }