Dukascopy
 
 
Wiki JStore Search Login

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

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

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

Any asynchronous live tick listener other than IStrategy?
 Post subject: Any asynchronous live tick listener other than IStrategy? Post rating: 0   New post Posted: Mon 09 Feb, 2015, 11:20 
User avatar

User rating: 6
Joined: Thu 19 May, 2011, 11:14
Posts: 235
Location: South Africa,
Suppose I just want to make a program that displays the last quote of a given instrument, like in the top left corner of the JForex client. Every time a new tick arrives, I just want to display it immediately. I do not want to sit in a loop and call getLastTick(). I want to listen to the live ticks asynchronously.

But my program is not a strategy, so I feel uncomfortable using IStrategy to listen to the ticks. Is there another way to listen to the live ticks asynchronously?


 
 Post subject: Re: Any asynchronous live tick listener other than IStrategy? Post rating: 0   New post Posted: Fri 13 Feb, 2015, 08:56 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
A standard option would be to create a plugin:
https://www.dukascopy.com/wiki/#Plugins

The plugin could subscribe to tick feed using context.subscribeToFeed(new TicksFeedDescriptor(Instrument.EURUSD), new IFeedListener {...});


 

Jump to:  

cron
  © 1998-2025 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