> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hedera.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ExchangeRate

## ExchangeRate

An exchange rate between hbar and cents (USD) and the time at which the exchange rate will expire, and be superseded by a new exchange rate.\
The price is computed as follow: `1 hbar = (centEquiv / hbarEquiv) USD cents`

| Field            | Type                                                                             | Description                                                        |
| ---------------- | -------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| `centEquiv`      | uint64                                                                           | Numerator in calculation of exchange rate between hbar and cents   |
| `hbarEquiv`      | uint64                                                                           | Denominator in calculation of exchange rate between hbar and cents |
| `expirationTime` | [TimestampSeconds](/reference/protobuf/miscellaneous/timestamp#timestampseconds) | Expiration time in seconds for this exchange rate                  |

## ExchangeRateSet

Two sets of exchange rate

| Field         | Type                          | Description                                                         |
| ------------- | ----------------------------- | ------------------------------------------------------------------- |
| `currentRate` | [ExchangeRate](#exchangerate) | Current exchange rate                                               |
| `nextRate`    | [ExchangeRate](#exchangerate) | Next exchange rate which will take effect when current rate expires |
