Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

IPluginContext#subscribeToTicksFeed() does not work
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=16&t=55650
Page 1 of 1

Author:  SMARTFX [ Tue 24 Oct, 2017, 14:21 ]
Post subject:  IPluginContext#subscribeToTicksFeed() does not work

Hi Dukascopy Team,

I would like to report that IPluginContext#subscribeToTicksFeed() does not work.

Consider the code below. The onTick() method is never called.

Please, provide a fix.

Thanks & best regards,
Greg

public class MyPlugin extends Plugin implements  ITickFeedListener {
   
    public void onStart(IPluginContext context) throws JFException {
        context.subscribeToTicksFeed(Instrument.EURUSD, this);
    }

    public void onStop() throws JFException {
    }
   
    @Override
    public void onTick(Instrument instrument, ITick tick) {
       System.out.println(instrument + " | " + tick);
    }
}

  Page 1 of 1