Skip to content

Utilities

This section describes the available utilities.

get_rate

The get_rate function returns the exchange rate for a given currency pair.

Here is an example of how to use it:

from django_xchange.utils import get_rate

rate = get_rate("USD", "EUR")