# How to configure currency exchange rates

You can configure exchange rates for currencies and set up rate providers to ensure accurate currency conversions when needed for transaction processing.

To set up a rate provider:

{% stepper %}
{% step %}
Navigate to **Currencies** > **Rates**.
{% endstep %}

{% step %}
Click **+Create** in the upper-right page corner.
{% endstep %}

{% step %}
On the displayed page, fill in the following fields:

* In the **From currencies** and **To currencies** dropdowns, select the currencies for which you want to configure exchange rates.

  You can select one or multiple currencies in the dropdowns, or choose **All** to apply the configured rates to all currencies.
* In the **Provider** dropdown, select the desired provider for currency rates.
* In the **Name** field, enter a name for your exchange rate configuration.
  {% endstep %}

{% step %}
Click **Save** to create the provider.
{% endstep %}

{% step %}
In the rates list, find the provider that you've created and click **Edit** to enter the provider details.
{% endstep %}

{% step %}
If additional settings are required for the provider, the **Options** section is displayed, enabling you to configure connection details for the provider.

If using the **custom** provider, fill in the following fields in **Options**:

* In the **Rate** field, enter the fixed rate that will be used for conversions.
* In the **Base currency** dropdown, select the currency that will serve as the base for all conversions using the specified fixed rate.
  {% endstep %}

{% step %}
In the **Enabled** dropdown, select **Yes**.
{% endstep %}

{% step %}
Click **Save** to apply the changes.
{% endstep %}
{% endstepper %}

After setting up the rate provider, you can designate it as the preferred provider to supply exchange rates for [deposit](https://docs.b2core.b2broker.com/back-office-guide/system/deposit-system#deposit-methods) and [withdrawal methods](https://docs.b2core.b2broker.com/back-office-guide/system/payout-system#payout-methods). If a provider is assigned to a specific method, the system will prioritize requesting rates from this provider when the method is used.

## Example

This example illustrates the settings for a custom exchange rate for `USD/EUR`:

* `USD` is selected in the **From currencies** field and `EUR` in the **To currencies** field.
* In the **Provider** dropdown, **custom** is selected.
* The **Enabled** option is set to **Yes**.

In the **Options** section:

* The **Rate** field displays `0.86`, which is the specified custom exchange rate.
* The **Base currency** is set to USD.

<figure><img src="https://514898401-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGoRxAprhHu1goANW7FXt%2Fuploads%2Fgit-blob-76c463f0f529cfc8934701dd990d91b16ec4c5ff%2Fcustom-exchange-rate.png?alt=media" alt="Custom exchange rate settings"><figcaption><p>Custom exchange rate settings</p></figcaption></figure>
