Class Trades

    • 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 trades
        tradeSortType - Trade sort type
      • Trades

        public Trades​(List<Trade> trades,
                      long lastID,
                      Trades.TradeSortType tradeSortType)
        Constructor
        Parameters:
        trades - A list of trades
        lastID - Last Unique ID
        tradeSortType - Trade sort type
      • Trades

        public Trades​(List<Trade> trades,
                      long lastID,
                      Trades.TradeSortType tradeSortType,
                      String nextPageCursor)
        Constructor
        Parameters:
        trades - A list of trades
        lastID - Last Unique ID
        tradeSortType - Trade sort type
        nextPageCursor - a marker that lets you receive the next page of trades using TradeHistoryParamNextPageCursor
    • Method Detail

      • getTrades

        public List<Trade> getTrades()
        Returns:
        A list of trades ordered by id
      • getlastID

        public long getlastID()
        Returns:
        a Unique ID for the fetched trades
      • getNextPageCursor

        public String getNextPageCursor()