Defining get_trade_history in RPC constants class
This commit is contained in:
parent
143612af88
commit
783f48d42b
3 changed files with 14 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue