class BitfinexWebSocketSnapshotTrades extends BitfinexWebSocketTradesTransaction {
  public BitfinexWebSocketTrade[] trades;

  public BitfinexWebSocketSnapshotTrades() {}

  public BitfinexWebSocketSnapshotTrades(String channelId, BitfinexWebSocketTrade[] trades) {
    super(channelId);
    this.trades = trades;
  }

  public BitfinexWebSocketTrade[] getTrades() {
    return trades;
  }

  public BitfinexTrade[] toBitfinexTrades() {<FILL_FUNCTION_BODY>}
}

    List<BitfinexTrade> bitfinexTrades = new ArrayList<>(getTrades().length);
    for (BitfinexWebSocketTrade websocketTrade : trades) {
      bitfinexTrades.add(websocketTrade.toBitfinexTrade());
    }

    return bitfinexTrades.toArray(new BitfinexTrade[bitfinexTrades.size()]);
  
<methods>public void <init>() ,public void <init>(java.lang.String) ,public java.lang.String getChannelId() ,public abstract org.knowm.xchange.bitfinex.v1.dto.marketdata.BitfinexTrade[] toBitfinexTrades() <variables>public java.lang.String channelId