Fetch FX Exchange Rate (GQL)

Note: All the Multi-Currency API's have the endpoint: /graphql

Fetches the current exchange rate for a proposed buy or sell transaction.

This operation provides a preview of the conversion, including the exchange rate, the equivalent amount in the base currency, and any applicable fees.

Key Rules:

  • Charges: Applied only to BUY operations. Sell operations generally do not incur exchange fees.
  • Currency: All fees and base currency amounts are calculated and presented in the account's base currency.
Body Params

Following are the details on the GraphQL fields :

ParameterDescriptionMandatoryData TypeExample
accountIdMulti Currency Wrapper Account IdYesInteger1
actionCan be BUY or SELLYesStringBUY
amountAmount to be convertedYesString10
currencyTarget foreign currency codeYesStringEUR
Headers
string
required
Defaults to z01j3e71zd6zkq908vyf5861a8

The ID of your banking instance visible in the MBANQ Console.

Response

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json