Skip to content
juxeii edited this page Nov 14, 2016 · 7 revisions

JForexUtils is a collection of user-friendly, robust and useful tools for working with the JForex API from Dukascopy. It basically wraps the most used native API calls to provide a much cleaner and less cumbersome way of working.

This wiki is based on version 0.9.8 and above.

JForexUtils relies on Java 8

With the advent of Java 8 many powerful new features like Streams, lambdas etc. made it to the language. With correct usage of these tools, source code becomes more succinct and declarative.

Warning: JForexUtils is not compatible with Java versions < 8!

JForexUtils focuses on a declarative style

A primary developing goal is to provide the user with a declarative and fluent programming style. Many objects can be created by Builders and with the usage of RxJava all data flows can also be written in a declarative way. This keeps the library and user code read- and maintainable.

JForexUtil uses RxJava.

A trading strategy creates, changes and closes orders frequently during its run. Since all of these operations involve a server-client communication, JForexUtils makes heavy use of the RxJava library. This results in an API in which the user can specify what actions to take for all order related messages.

It does not hurt if you know some basics of RxJava before using JForexUtils, but it is not required.