> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: sitePay.getConversionRate(sourceCurrency: string, targetCurrency: string) # Method Link: https://dev.wix.com/docs/sdk/frontend-modules/pay/currencies/currency-converter/get-conversion-rate.md # Method Description: Gets a currency conversion rate. The `getConversionRate()` function returns a Promise that resolves to a `ConversionRate` object, which contains the currency conversion rate between two currencies. The exchange rates are provided by [XE](https://www.xe.com/company/) on a daily basis and include the timestamp when they were set. > **Note:** By using this function you agree to XE's [Terms of Use.](https://www.xe.com/en/legal/dfs.php) # Method Permissions: # Method Permissions Scopes IDs: undefined # Method Code Examples: ## Return the conversion rate and timestamp. ```javascript import { currencyConverter } from '@wix/site-pay'; currencyConverter.getConversionRate("USD", "GBP") .then((conversionRate) => { const rate = conversionRate.rate; const timestamp = conversionRate.timestamp; }); /* Promise resolves to: * { * "rate": 0.8152242392, * "timestamp": "2020-03-15T20:00:00.181Z" * } */ ```