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.

INSTRUMENT_STATUS messages
 Post subject: INSTRUMENT_STATUS messages Post rating: 0   New post Posted: Tue 21 Jun, 2011, 08:14 

User rating: -
The documentation for IMessage.Type.INSTRUMENT_STATUS says "Sent if system changes instrument status." What does that mean? If the set of subscribed instruments changes?


 
 Post subject: Re: INSTRUMENT_STATUS messages Post rating: 0   New post Posted: Tue 21 Jun, 2011, 10:53 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
No the message gets sent when the tradability of the Instrument changes, i.e. it changes from tradable to untradable or vice versa.


 
 Post subject: Re: INSTRUMENT_STATUS messages Post rating: 0   New post Posted: Tue 21 Jun, 2011, 11:30 

User rating: -
Thanks. Should I cast the incoming IMessage to IInstrumentStatusMessage when IMessage.getType == INSTRUMENT_STATUS?


 
 Post subject: Re: INSTRUMENT_STATUS messages Post rating: 0   New post Posted: Tue 21 Jun, 2011, 12:14 

User rating: -
Every 30 seconds, I am getting an INSTRUMENT_STATUS message with isTradable() == true, for the one instrument I am subscribed to. In between I am not receiving any messages with isTradable() == false.
Is this normal?


 
 Post subject: Re: INSTRUMENT_STATUS messages Post rating: 0   New post Posted: Tue 21 Jun, 2011, 13:59 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Isak_ wrote:
Thanks. Should I cast the incoming IMessage to IInstrumentStatusMessage when IMessage.getType == INSTRUMENT_STATUS?
Yes, if you wish to access the fields of the interface.
Isak_ wrote:
Every 30 seconds, I am getting an INSTRUMENT_STATUS message with isTradable() == true, for the one instrument I am subscribed to. In between I am not receiving any messages with isTradable() == false.
Is this normal?
If you don't receive INSTRUMENT_STATUS on every tick it does not mean that the instrument is not tradable it just means that the message does not get fired that often.


 
 Post subject: Re: INSTRUMENT_STATUS messages Post rating: 0   New post Posted: Tue 21 Jun, 2011, 16:47 

User rating: -
Support wrote:
If you don't receive INSTRUMENT_STATUS on every tick it does not mean that the instrument is not tradable it just means that the message does not get fired that often.
But I thought it only gets fired when the instrument's tradability changes.


 
 Post subject: Re: INSTRUMENT_STATUS messages Post rating: 0   New post Posted: Wed 22 Jun, 2011, 08:45 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Isak_ wrote:
Support wrote:
If you don't receive INSTRUMENT_STATUS on every tick it does not mean that the instrument is not tradable it just means that the message does not get fired that often.
But I thought it only gets fired when the instrument's tradability changes.
Sorry for the imprecision - the message fires in live mode in every 30 seconds for every subscribed instrument indicating its tradability.


 

Jump to:  

  © 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