The Trade Aggregation Object
When Horizon returns information about a trade aggregation, it uses the following format:
ATTRIBUTEDATA TYPE
DESCRIPTION
timestampstring
Start time for this trade aggregation. Represented as milliseconds since epoch.
trade_countinteger
Total number of trades aggregated.
base_volumestring
Total volume of base asset.
counter_volumestring
Total volume of counter asset.
avgstring
Weighted average price of counter asset in terms of base asset.
highstring
The highest price for this time period.
high_robject
The highest price for this time period as a rational number.
Show child attributes
nnumber
The numerator.
dnumber
The denominator.
lowstring
The lowest price for this time period.
low_robject
The lowest price for this time period as a rational number.
Show child attributes
nnumber
The numerator.
pnumber
The denominator.
openstring
The price as seen on first trade aggregated.
open_robject
The price as seen on first trade aggregated as a rational number.
Show child attributes
nnumber
The numerator.
pnumber
The denominator.
closestring
The price as seen on last trade aggregated.
close_robject
The price as seen on last trade aggregated as a rational number.
Show child attributes
nnumber
The numerator.
pnumber
The denominator.