class CoinMarketCapHistoricalSpotPrice
    implements Comparable<CoinMarketCapHistoricalSpotPrice> {

  private final Date timestamp;
  private final BigDecimal spotRate;

  CoinMarketCapHistoricalSpotPrice(Date timestamp, final BigDecimal spotRate) {
    this.timestamp = timestamp;
    this.spotRate = spotRate;
  }

  public Date getTimestamp() {
    return timestamp;
  }

  public BigDecimal getSpotRate() {
    return spotRate;
  }

  @Override
  public String toString() {<FILL_FUNCTION_BODY>}

  @Override
  public int compareTo(CoinMarketCapHistoricalSpotPrice o) {

    return this.timestamp.compareTo(o.timestamp);
  }
}

    return "CoinbaseHistoricalPrice [timestamp=" + timestamp + ", spotRate=" + spotRate + "]";
  
<no_super_class>