SuiteQL Query Library

Currency Rates

Returns historical currency exchange rates.

-- Contributor: Tim Dietrich (timdietrich@me.com)
-- Additional Info: https://timdietrich.me/blog/netsuite-suiteql-currency-exchange-rates/
SELECT	
	BaseCurrency.Symbol AS BaseSymbol,
	TransactionCurrency.Symbol AS TransactionSymbol,
	CurrencyRate.ExchangeRate,
	TO_CHAR( CurrencyRate.EffectiveDate, 'YYYY-MM-DD HH:MI:SS' ) AS EffectiveDate,
	TO_CHAR( CurrencyRate.LastModifiedDate, 'YYYY-MM-DD HH:MI:SS' ) AS LastModifiedDate
FROM
	CurrencyRate
	INNER JOIN Currency AS BaseCurrency ON
		( BaseCurrency.ID = CurrencyRate.BaseCurrency )
	INNER JOIN Currency AS TransactionCurrency ON
		( TransactionCurrency.ID = CurrencyRate.TransactionCurrency )		
WHERE
	( CurrencyRate.EffectiveDate = TO_DATE( '2021-05-03', 'YYYY-MM-DD' ) )
ORDER BY
	BaseCurrency.Symbol,
	TransactionCurrency.Symbol,
	CurrencyRate.LastModifiedDate DESC

Click here to return to the list of available queries.

About Me

Hello, I’m Tim Dietrich. I design and build custom software for businesses running on NetSuite — from mobile apps and Web portals to Web APIs and integrations.

I’ve created several widely used open-source solutions for the NetSuite community, including the SuiteQL Query Tool and SuiteAPI, which help developers and businesses get more out of their systems.

I’m also the founder of SuiteStep, a NetSuite development studio focused on pushing the boundaries of what’s possible on the platform. Through SuiteStep, I deliver custom software and AI-driven solutions that make NetSuite more powerful, accessible, and future-ready.

Copyright © 2025 Tim Dietrich.