Query Parameters
- start_timeinteger
The lower time boundary represented as milliseconds since epoch
- end_timeinteger
The upper time boundary represented as milliseconds since epoch
- resolutioninteger
The segment duration represented as milliseconds. Supported values are 1 minute (60000), 5 minutes (300000), 15 minutes (900000), 1 hour (3600000), 1 day (86400000) and 1 week (604800000)
- offsetinteger
Segments can be offset using this parameter. Expressed in milliseconds. Can only be used if the resolution is greater than 1 hour. Value must be in whole hours, less than the provided resolution, and less than 24 hours
- base_asset_typestringREQUIRED
The type for the base asset. Either 'native', 'credit_alphanum4', or 'credit_alphanum12'
- base_asset_issuerstring
The Stellar address of the issuer of the base asset. Required if the base_asset_type is not 'native'
- base_asset_codestring
The code for the base asset. Required if the base_asset_type is not 'native'
- counter_asset_typestringREQUIRED
The type for the counter asset. Either 'native', 'credit_alphanum4', or 'credit_alphanum12'
- counter_asset_issuerstring
The Stellar address of the issuer of the counter asset. Required if the counter_asset_type is not 'native'
- counter_asset_codestring
The code for the counter asset. Required if the counter_asset_type is not 'native'
- orderstring
The order of the returned data. The possible value includes ascending and descending order
- limitinteger
The maximum number of records to return
Returns
- _linksobject
The links related to the trade aggregation data
- selfobject
The self-reference link
- hrefstring
The URL for self-reference
- nextobject
Link to the next set of data
- hrefstring
The URL for next set of data
- prevobject
Link to the previous set of data
- hrefstring
The URL for previous set of data
- _embeddedobject
The embedded trade aggregation records
- recordsarray
An array of trade aggregation records
- timestampstring
The start time for this trade aggregation
- trade_countstring
The total number of trades aggregated
- base_volumestring
The total volume of the base asset traded
- counter_volumestring
The total volume of the counter asset traded
- avgstring
The average price for this time period
- highstring
The highest price for this time period
- high_robject
The highest price as a rational number
- ninteger
The numerator
- dinteger
The denominator
- lowstring
The lowest price for this time period
- low_robject
The lowest price as a rational number
- ninteger
The numerator
- dinteger
The denominator
- openstring
The opening price for this time period
- open_robject
The opening price as a rational number
- ninteger
The numerator
- dinteger
The denominator
- closestring
The closing price for this time period
- close_robject
The closing price as a rational number
- ninteger
The numerator
- dinteger
The denominator