diff --git a/src/main/java/de/bitsharesmunich/graphenej/MarketTrade.java b/src/main/java/de/bitsharesmunich/graphenej/MarketTrade.java index a4b45a5..c5aa841 100644 --- a/src/main/java/de/bitsharesmunich/graphenej/MarketTrade.java +++ b/src/main/java/de/bitsharesmunich/graphenej/MarketTrade.java @@ -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; +} diff --git a/src/main/java/de/bitsharesmunich/graphenej/RPC.java b/src/main/java/de/bitsharesmunich/graphenej/RPC.java index f45cd21..489fabb 100644 --- a/src/main/java/de/bitsharesmunich/graphenej/RPC.java +++ b/src/main/java/de/bitsharesmunich/graphenej/RPC.java @@ -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"; } diff --git a/src/main/java/de/bitsharesmunich/graphenej/api/GetTradeHistory.java b/src/main/java/de/bitsharesmunich/graphenej/api/GetTradeHistory.java index 9f01c03..04d807f 100644 --- a/src/main/java/de/bitsharesmunich/graphenej/api/GetTradeHistory.java +++ b/src/main/java/de/bitsharesmunich/graphenej/api/GetTradeHistory.java @@ -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()); }