Defining get_trade_history in RPC constants class

master
Nelson R. Perez 2016-12-19 22:05:04 -05:00
parent 143612af88
commit 783f48d42b
3 changed files with 14 additions and 13 deletions

View File

@ -1,12 +1,12 @@
package de.bitsharesmunich.graphenej;
/**
*
* @author henry
*/
public class MarketTrade {
public String date;
public double price;
public double amount;
public double value;
}
package de.bitsharesmunich.graphenej;
/**
*
* @author henry
*/
public class MarketTrade {
public String date;
public double price;
public double amount;
public double value;
}

View File

@ -20,4 +20,5 @@ public class RPC {
public static final String CALL_LOOKUP_ASSET_SYMBOLS = "lookup_asset_symbols";
public static final String CALL_GET_BLOCK_HEADER = "get_block_header";
public static final String CALL_GET_LIMIT_ORDERS = "get_limit_orders";
public static final String GET_TRADE_HISTORY = "get_trade_history";
}

View File

@ -49,7 +49,7 @@ public class GetTradeHistory extends WebSocketAdapter {
accountParams.add(this.fromTime);
accountParams.add(this.limit);
ApiCall getAccountByName = new ApiCall(0, "get_trade_history", accountParams, RPC.VERSION, 1);
ApiCall getAccountByName = new ApiCall(0, RPC.GET_TRADE_HISTORY, accountParams, RPC.VERSION, 1);
websocket.sendText(getAccountByName.toJsonString());
}