Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Submit JForex API bug reports in this forum only.
    Submit Converter issues in Converter Issues.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

IPluginContext#subscribeToTicksFeed() does not work
 Post subject: IPluginContext#subscribeToTicksFeed() does not work Post rating: 0   New post Posted: Tue 24 Oct, 2017, 14:21 
User avatar

User rating: 8
Joined: Mon 09 Jun, 2014, 21:07
Posts: 49
Location: Poland, Warsaw
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);
    }
}


 

Jump to:  

  © 1998-2024 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com