Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1.19 KB

File metadata and controls

54 lines (36 loc) · 1.19 KB

list

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

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.exchange_rate.list()

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.exchange_rate.list()

get

Retrieve an exchange rate

Retrieves the exchange rates from the given currency to every supported currency.

API Endpoint: GET /v1/exchange_rates/{rate_id}

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.exchange_rate.get(rate_id="string")

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.exchange_rate.get(rate_id="string")