Interface GetAggregatePriceRequestParams
- All Superinterfaces:
XrplRequestParams
- All Known Implementing Classes:
ImmutableGetAggregatePriceRequestParams
Request parameters for the
get_aggregate_price RPC method.-
Method Summary
Modifier and TypeMethodDescriptionThe currency code of the asset to be priced.builder()Construct aGetAggregatePriceRequestParamsbuilder.Specifies the ledger version to request.oracles()A list of oracle identifiers.The currency code of the asset to quote the price of the base asset.Optional<com.google.common.primitives.UnsignedInteger> trim()The percentage of outliers to trim.Optional<com.google.common.primitives.UnsignedInteger> Defines a time range in seconds for filtering out older price data.
-
Method Details
-
builder
Construct aGetAggregatePriceRequestParamsbuilder.- Returns:
- An
ImmutableGetAggregatePriceRequestParams.Builder.
-
ledgerSpecifier
LedgerSpecifier ledgerSpecifier()Specifies the ledger version to request. A ledger version can be specified by ledger hash, numerical ledger index, or a shortcut value.- Returns:
- A
LedgerSpecifierspecifying the ledger version to request.
-
baseAsset
String baseAsset()The currency code of the asset to be priced.- Returns:
- A
String.
-
quoteAsset
String quoteAsset()The currency code of the asset to quote the price of the base asset.- Returns:
- A
String.
-
trim
Optional<com.google.common.primitives.UnsignedInteger> trim()The percentage of outliers to trim. Valid trim range is 1-25. If included, the API returns statistics for the trimmed mean.- Returns:
- An
OptionalUnsignedInteger.
-
trimThreshold
Optional<com.google.common.primitives.UnsignedInteger> trimThreshold()Defines a time range in seconds for filtering out older price data. Default value is 0, which doesn't filter any data.- Returns:
- An
OptionalUnsignedInteger.
-
oracles
List<OracleLedgerEntryParams> oracles()A list of oracle identifiers.- Returns:
- A
ListofOracleLedgerEntryParams.
-