This API will be discontinued by 31 October 2023, please update your APIs and bookmark to "https://eservices.mas.gov.sg/apimg-portal/".

For more information, please subscribe to the new API resources and accelerate your app roadmap. "Browse the new API Catalogue"

[Deprecation]
API for Table III.2 Foreign Exchange Market Turnover , Yearly
Monthly Statistical Bulletin
 
See the data published through this API 


How to use the APIs


The Resource ID for this resource is 9e86bff3-1ba8-4d51-8403-d17794bc0696. For more details on how to use the API, see the API documentation.


Return the first five results




Fields


NoNameTitleTypeUnit Of MeasureDescription
1end_of_yearEnd of yearDatetime (Year) "YYYY"  
2sgd_total_turnoverTotal TurnoverNumeric (General)S$ Million 
3sgd_daily_averageDaily Average Numeric (General)S$ Million 
4usd_total_turnoverTotal Turnover Numeric (General)US$ Million 
5usd_daily_averageDaily AverageNumeric (General)US$ Million 



API Examples


Javascript example

Making an ajax request with jQuery:
                                
                var data = {

                       resource_id:'9e86bff3-1ba8-4d51-8403-d17794bc0696',//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=9e86bff3-1ba8-4d51-8403-d17794bc0696&limit=5'
with urllib.request.url.open (url) as req:   print req.read()


© 2023, Government of Singapore. Last updated on 01 Aug 2023