Each API endpoint has the following format:
https://web-services.oanda.com/rates/api/v1/:endpoint.:output_format
OR for the Rates endpoint and Currencies endpoint:
https://web-services.oanda.com/rates/api/v1/rates/:base_currency.:output_format[?parameter=value…]
output_format
The :output_format
parameter determines how information is returned. It can
take on one of the following values:
json
– Javascript Object Notation
xml
– Well-formed XML documentcsv
– Comma Separated Values
LF
character (hex: 0x0A
;
dec: 10
)data_set
For Rates endpoint and Currencies endpoint, the data_set
parameter determines which
data set to query. It can take one of the following values depending on your plan:
OANDA
– Rates obtained and aggregated by OANDA CorporationEUCB
– European Central Bank ratesAECB
– The Central Bank of the United Arab EmiratesALCB
– Bank of Albania ratesAUCB
– Reserve Bank of Australia ratesBGCB
– Bulgarian National Bank ratesBRCB
– Banco Central do Brasil ratesCACB
– Bank of Canada ratesCNCB
– People’s Bank of ChinaCOCB
– Central Bank of ColombiaCZCB
– Czech National Bank ratesDKCB
– Danmarks Nationalbank ratesGBCB
– United KingdomGHCB
– Bank of Ghana ratesGYCB
– Bank Of Guyana ratesHKCB
– Treasury Market Association, Hong Kong ratesHRCB
– Croatian National Bank ratesHUCB
– Hungarian National Bank ratesIDCB
– Bank of Indonesia ratesINCB
– Reserve Bank of India ratesISCB
– Central Bank of Iceland ratesMNCB
– Central Bank of MongoliaMXCB
– Banco de Mexico ratesMYCB
– Bank Negara Malaysia ratesNOCB
– Norges Bank ratesPKCB
– State Bank of Pakistan ratesPLCB
– Narodowy Bank Polski ratesRSCB
– National Bank of Serbia ratesVECB-DICOM
– The Banco Central de Venezuela ratesVNCB
– The State Bank of Vietnam ratesZWCB
– Reserve Bank of Zimbabwe ratesNOTE: Central Bank rates are available for our Advanced and Custom Plan. For more information, or to upgrade your subscription plan, please contact us at fxdata@oanda.com.
NOTE: All examples in the endpoint documentation omit authentication, though they do require it.