List all exchange rates
Returns a list of objects that contain the rates at which foreign currencies are converted to one another. Only shows the currencies for which Stripe supports.
API Endpoint: GET /v1/exchange_rates
from os import getenv
from sideko_stripe import Stripe
client = Stripe(token=getenv("API_TOKEN"))
res = client.exchange_rate.list()from os import getenv
from sideko_stripe import AsyncStripe
client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.exchange_rate.list()Retrieve an exchange rate
Retrieves the exchange rates from the given currency to every supported currency.
API Endpoint: GET /v1/exchange_rates/{rate_id}
from os import getenv
from sideko_stripe import Stripe
client = Stripe(token=getenv("API_TOKEN"))
res = client.exchange_rate.get(rate_id="string")from os import getenv
from sideko_stripe import AsyncStripe
client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.exchange_rate.get(rate_id="string")