The Trading Economics Application Programming Interface (API) provides direct access to our data. It allows you to download millions of rows of historical data, to query our real-time economic calendar and to subscribe to updates. Providing several request methods to query our databases, with samples available in different programming languages, it is the best way to export data in XML, CSV or JSON format. The API can be used to feed a custom developed application, a public website or just off-the-shelf software like Microsoft Excel.
Note: If you don't have a client key a sample of data will be provided or you can get your free key here:
https://developer.tradingeconomics.com
- Install Java
- Clone tradingeconomics repo
git clone https://github.com/tradingeconomics/tradingeconomics.git
cd tradingeconomics/java
- Run the examples
- Go into the example folder on JavaEg
- To Compile:
javac Calendar.java
- To run:
java Calendar.java