Currency Exchange Rate

View as MarkdownOpen in Claude

Obtains the exchange rates of the currency pair.

GET /iserver/exchangerate

Request Object

Query Params

Source: String. Required
Specify the base currency to request data for.
Valid Structure: “AUD”

Target: String. Required
Specify the quote currency to request data for.
Valid Structure: “USD”

1request_url = f"{baseUrl}/iserver/exchangerate?target=AUD&source=USD"
2requests.get(url=request_url)

Response Object

rate: float.
Returns the exchange rate for the currency pair.

{
"rate": 0.67005002
}