tradeAggregations

fun tradeAggregations(baseAssetType: String, baseAssetCode: String?, baseAssetIssuer: String?, counterAssetType: String, counterAssetCode: String?, counterAssetIssuer: String?, startTime: Long, endTime: Long, resolution: Long, offset: Long = 0): TradeAggregationsRequestBuilder

Returns a TradeAggregationsRequestBuilder instance for querying trade aggregations.

Trade aggregations divide a given time range into segments and aggregate statistics about trading activity for each segment. This is useful for displaying price charts and analyzing trading patterns.

All parameters are required:

Return

TradeAggregationsRequestBuilder instance

Parameters

baseAssetType

The base asset type (native, credit_alphanum4, credit_alphanum12)

baseAssetCode

The base asset code (null for native)

baseAssetIssuer

The base asset issuer (null for native)

counterAssetType

The counter asset type (native, credit_alphanum4, credit_alphanum12)

counterAssetCode

The counter asset code (null for native)

counterAssetIssuer

The counter asset issuer (null for native)

startTime

Start of time range in milliseconds since epoch

endTime

End of time range in milliseconds since epoch

resolution

Size of each time bucket in milliseconds

offset

Offset from start time for bucketing in milliseconds (default 0)