Optional
api_The API version to use. If omitted, use version 1.
The currency code of the asset to be priced.
The name of the API method.
Optional
idA unique value to identify this request. The response to this request uses the same id field. This way, even if responses arrive out of order, you know which request prompted which response.
The oracle identifier.
The XRPL account that controls the Oracle object.
A unique identifier of the price oracle for the Account
The currency code of the asset to quote the price of the base asset.
Optional
trimThe percentage of outliers to trim. Valid trim range is 1-25. If included, the API returns statistics for the trimmed mean.
Optional
trim_Defines a time range in seconds for filtering out older price data. Default value is 0, which doesn't filter any data.
The
get_aggregate_price
method retrieves the aggregate price of specified Oracle objects, returning three price statistics: mean, median, and trimmed mean. Returns an GetAggregatePriceResponse.