The Resource ID for this resource is
2f0d9ccd-4190-41fd-a53d-2a319934ca6c.
For more details on how to use the API, see the API documentation.
Users may wish to utilise the IMF's exchange rate database for a wider range of currencies.
Disclaimer:
(1) These rates are the average of buying and selling interbank rates quoted around midday in Singapore. All rates are obtained, with permission, from Thomson Reuters and disseminated to the public for information and could differ from those quoted by foreign exchange dealers. The rates are not attributable to MAS and MAS does not warrant and hereby disclaims any warranty as to the accuracy, correctness, reliability, currentness, timeliness or fitness for any particular purpose of the rates.
(2) This website contains a link to the IMF exchange rate website with related information and services which are not maintained by MAS. The link to the IMF exchange rate website is provided as a convenience to the user of this website. MAS shall not be responsible for the contents of the IMF exchange rate website and is not in a position to verify the information or endorse the accuracy or reliability of any of the information or contents contained on, distributed through, or linked, downloaded or accessed from such website. MAS shall also not be responsible for any damages, including direct, indirect, incidental, punitive or consequential damages or loss of any kind whatsoever arising from access to that website. Use of the link to the IMF exchange rate website and access to such linked website is entirely at your own risk.
Javascript example
Making an ajax request with jQuery:
var data = {
resource_id:'2f0d9ccd-4190-41fd-a53d-2a319934ca6c',//the resource id
limit:5 //get 5 results
};
$.ajax({
url: 'https://eservices.mas.gov.sg/api/action/datastore/search.json',
data:data,
dataType:'json',
success:function(data){
alert('Total results found:'+ data.result.total)
}
});
Python Example
import urllib.request
url = 'https://eservices.mas.gov.sg/api/action/datastore_search?resource_id=2f0d9ccd-4190-41fd-a53d-2a319934ca6c&limit=5'
with urllib.request.url.open (url) as req:
  print req.read()