ZuluTrading Forex API Java Tutorial

ZuluTrading Binary API Java Tutorial

Back to the ZuluTrading Forex API Reference

1. Introduction

2. Prerequisites

To run the example application in Windows you need:

3. How to run

  • Start eclipse
  • Create a new workspace (File->Switch workspace->other->) named "zulutradeWorkspace" under C:\
  • Unzip zulutrade-sample-trading-api-client.zip into C:\zulutradeWorkspace
  • Unzip zulutrade-sample-trading-api-binary-options-client.rar into C:\zulutradeWorkspace
  • File->Import...->"Existing Maven Projects" and click "next"
  • Click on browse in the "Import Maven projects" window
  • Navigate to "C:\zulutradeWorkspace", select "zulutrade-sample-trading-api-client" and press "OK"
  • Navigate to "C:\zulutradeWorkspace", select "zulutrade-sample-trading-api-binary-options-client.rar" and press "OK"
  • In the next window tick "/pom.xml" if not already ticked and click "Finish"
  • The project is imported, you should be able to see it on the Project explorer
  • Navigate in project and open ZuluTradingSampleApp.java, the source will open in editor file
  • Navigate in project and open ZuluTradingBinaryOptionsSampleApp.java, the source will open in editor file
  • In editor fill in your zulu account credentials and save "ZuluTradingSampleApp.java" (Ctrl+s)
  • In editor fill in your zulu account credentials and save "ZuluTradingBinaryOptionsSampleApp.java" (Ctrl+s)
  • Go to ZuluTradingBinaryOptionsSampleApp, right click, Run as-> Java application
  • Go to ZuluTradingSampleApp, right click, Run as-> Java application
  • If everything went ok, the following output will be shown in console