Package org.knowm.xchange.dto.marketdata
Class Trades
- java.lang.Object
-
- org.knowm.xchange.dto.marketdata.Trades
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
UserTrades
public class Trades extends Object implements Serializable
DTO representing a collection of trades- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Trades.TradeIDComparator
static class
Trades.TradeSortType
static class
Trades.TradeTimestampComparator
-
Constructor Summary
Constructors Constructor Description Trades(List<Trade> trades)
Constructor Default sort is SortByIDTrades(List<Trade> trades, long lastID, Trades.TradeSortType tradeSortType)
ConstructorTrades(List<Trade> trades, long lastID, Trades.TradeSortType tradeSortType, String nextPageCursor)
ConstructorTrades(List<Trade> trades, Trades.TradeSortType tradeSortType)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getlastID()
String
getNextPageCursor()
List<Trade>
getTrades()
Trades.TradeSortType
getTradeSortType()
String
toString()
-
-
-
Constructor Detail
-
Trades
public Trades(List<Trade> trades)
Constructor Default sort is SortByID- Parameters:
trades
- List of trades
-
Trades
public Trades(List<Trade> trades, Trades.TradeSortType tradeSortType)
Constructor- Parameters:
trades
- List of tradestradeSortType
- Trade sort type
-
Trades
public Trades(List<Trade> trades, long lastID, Trades.TradeSortType tradeSortType)
Constructor- Parameters:
trades
- A list of tradeslastID
- Last Unique IDtradeSortType
- Trade sort type
-
Trades
public Trades(List<Trade> trades, long lastID, Trades.TradeSortType tradeSortType, String nextPageCursor)
Constructor- Parameters:
trades
- A list of tradeslastID
- Last Unique IDtradeSortType
- Trade sort typenextPageCursor
- a marker that lets you receive the next page of trades using TradeHistoryParamNextPageCursor
-
-
Method Detail
-
getlastID
public long getlastID()
- Returns:
- a Unique ID for the fetched trades
-
getTradeSortType
public Trades.TradeSortType getTradeSortType()
-
getNextPageCursor
public String getNextPageCursor()
-
-