Class TradeAggregationResponse

java.lang.Object
org.stellar.sdk.responses.Response
org.stellar.sdk.responses.TradeAggregationResponse

public final class TradeAggregationResponse extends Response
Represents the response from the Horizon /trade_aggregations endpoint.

Contains aggregated trade statistics for an asset pair over a given time period, including trade count, base and counter volumes, average price, and high/low/open/close prices. Prices are available both as decimal strings and as rational Price values.

See Also:
  • Constructor Details

  • Method Details

    • getTimestamp

      public Long getTimestamp()
    • getTradeCount

      public Integer getTradeCount()
    • getBaseVolume

      public String getBaseVolume()
    • getCounterVolume

      public String getCounterVolume()
    • getAvg

      public String getAvg()
    • getHigh

      public String getHigh()
    • getHighR

      public Price getHighR()
    • getLow

      public String getLow()
    • getLowR

      public Price getLowR()
    • getOpen

      public String getOpen()
    • getOpenR

      public Price getOpenR()
    • getClose

      public String getClose()
    • getCloseR

      public Price getCloseR()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object