CODE AND RESULT BELOW:

package net.test;

import com.dukascopy.api.IAccount;
import com.dukascopy.api.IBar;
import com.dukascopy.api.IContext;
import com.dukascopy.api.IHistory;
import com.dukascopy.api.IMessage;
import com.dukascopy.api.IOrder;
import com.dukascopy.api.IStrategy;
import com.dukascopy.api.ITick;
import com.dukascopy.api.Instrument;
import com.dukascopy.api.JFException;
import com.dukascopy.api.Period;
import com.dukascopy.api.system.ClientFactory;
import com.dukascopy.api.system.*;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class QuickTest {

    public static void main(String[] args) throws Exception {
        IClient client = ClientFactory.getDefaultInstance();
        client.setSystemListener(new ISystemListener() {
            @Override
            public void onStart(long processId) {
            }

            @Override
            public void onStop(long processId) {
            }

            @Override
            public void onConnect() {
            }

            @Override
            public void onDisconnect() {
            }
        });
        client.connect("https://www.dukascopy.com/client/demo/jclient/jforex.jnlp", "DEMO2thrrh", "thrrh");
        while (!client.isConnected()) {
            Thread.sleep(1000);
        }
        client.startStrategy(new IStrategy() {
            @Override
            public void onStart(IContext context) throws JFException {
                IHistory h = context.getHistory();
                Set<Instrument> ins = new HashSet();
                ins.add(Instrument.EURUSD);
                context.setSubscribedInstruments(ins);

                List<IOrder> list = new ArrayList();
                for (Instrument i : Instrument.values()) {
                    List<IOrder> tmp = h.getOrdersHistory(i, 1355225111749L, 1355227483324L);
                    if (tmp.size() > 0) {
                        list.addAll(tmp);
                    }
                }

                if (list.size() > 0) {
                    for (IOrder lo : list) {
                        printIOrder(lo);
                    }
                }
            }

            private void printIOrder(IOrder o) {
                System.out.println("getOrderId .......................... " + o.getId());
                System.out.println("  getInstrument ..................... " + o.getInstrument());
                System.out.println("  getAmount ......................... " + o.getAmount());
                System.out.println("  getOpenPrice ...................... " + o.getOpenPrice());
                System.out.println("  getClosePrice ..................... " + o.getClosePrice());
                System.out.println("  getProfitLossInAccountCurrency .... " + o.getProfitLossInAccountCurrency());
                System.out.println("  getProfitLossInPips ............... " + o.getProfitLossInPips());
                System.out.println("  getCommission ..................... " + o.getCommission());
                System.out.println("  CloseTime ......................... " + new Date(o.getCloseTime()));
                System.out.println("  CloseTime (unixtime) .............. " + o.getCloseTime());
                System.out.println("  FillTime .......................... " + new Date(o.getFillTime()));
                System.out.println("  FillTime (unixtime) ............... " + o.getFillTime());
            }

            @Override
            public void onTick(Instrument instrument, ITick tick) throws JFException {
            }

            @Override
            public void onBar(Instrument instrument, Period period, IBar askBar, IBar bidBar) throws JFException {
            }

            @Override
            public void onMessage(IMessage message) throws JFException {
            }

            @Override
            public void onAccount(IAccount account) throws JFException {
            }

            @Override
            public void onStop() throws JFException {
            }
        });

    }
}


getOrderId .......................... 44974086
  getInstrument ..................... EUR/USD
  getAmount ......................... 0.4
  getOpenPrice ...................... 1.29664
  getClosePrice ..................... 1.29669
  getProfitLossInAccountCurrency .... 15.31
  getProfitLossInPips ............... 0.5
  getCommission ..................... 16.5
  CloseTime ......................... Tue Dec 11 12:25:54 CET 2012
  CloseTime (unixtime) .............. 1355225154939
  FillTime .......................... Tue Dec 11 12:25:11 CET 2012
  FillTime (unixtime) ............... 1355225111749
getOrderId .......................... 44975480
  getInstrument ..................... EUR/USD
  getAmount ......................... 0.0
  getOpenPrice ...................... 1.29757
  getClosePrice ..................... 1.29757
  getProfitLossInAccountCurrency .... 0.0
  getProfitLossInPips ............... 0.0
  getCommission ..................... 0.0
  CloseTime ......................... Tue Dec 11 12:48:46 CET 2012
  CloseTime (unixtime) .............. 1355226526000
  FillTime .......................... Tue Dec 11 12:48:46 CET 2012
  FillTime (unixtime) ............... 1355226526000
getOrderId .......................... 44975440
  getInstrument ..................... EUR/USD
  getAmount ......................... 0.4
  getOpenPrice ...................... 1.2985
  getClosePrice ..................... 1.2985
  getProfitLossInAccountCurrency .... 0.0
  getProfitLossInPips ............... 0.0
  getCommission ..................... 13.2
  CloseTime ......................... Tue Dec 11 12:48:46 CET 2012
  CloseTime (unixtime) .............. 1355226526000
  FillTime .......................... Tue Dec 11 12:48:16 CET 2012
  FillTime (unixtime) ............... 1355226496980
getOrderId .......................... 44977981
  getInstrument ..................... EUR/USD
  getAmount ......................... 0.4
  getOpenPrice ...................... 1.29949
  getClosePrice ..................... 1.29906
  getProfitLossInAccountCurrency .... -131.66
  getProfitLossInPips ............... -4.3
  getCommission ..................... 9.9
  CloseTime ......................... Tue Dec 11 13:04:43 CET 2012
  CloseTime (unixtime) .............. 1355227483324
  FillTime .......................... Tue Dec 11 13:02:02 CET 2012
  FillTime (unixtime) ............... 1355227322000
getOrderId .......................... 44977944
  getInstrument ..................... EUR/USD
  getAmount ......................... 0.4
  getOpenPrice ...................... 1.29949
  getClosePrice ..................... 1.29949
  getProfitLossInAccountCurrency .... 0.0
  getProfitLossInPips ............... 0.0
  getCommission ..................... 13.2
  CloseTime ......................... Tue Dec 11 13:02:02 CET 2012
  CloseTime (unixtime) .............. 1355227322000
  FillTime .......................... Tue Dec 11 13:01:47 CET 2012
  FillTime (unixtime) ............... 1355227307243