openbankproject_client.fx module

FX endpoints for the OpenBankProject API Client.

class openbankproject_client.fx.FxEndpoints(client)[source]

Bases: object

FX-related API endpoints.

__init__(client)[source]

Initialize the endpoint group.

Parameters:

client – OpenBankProjectClient instance

create_fx(bank_id: str, data: Dict) Dict[source]

Create Fx.

Parameters:
  • bank_id – Bank identifier

  • data – FX data

Returns:

Dict containing created FX information

get_currencies_at_bank(bank_id: str) Dict[source]

Get Currencies at a Bank.

Parameters:

bank_id – Bank identifier

Returns:

Dict containing currencies information

get_current_fx_rate(bank_id: str, from_currency: str, to_currency: str) Dict[source]

Get Current FxRate.

Parameters:
  • bank_id – Bank identifier

  • from_currency – Source currency code

  • to_currency – Target currency code

Returns:

Dict containing FX rate information