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.

Subscribe instruments with IContext or IClient?
 Post subject: Subscribe instruments with IContext or IClient? Post rating: 0   New post Posted: Mon 27 Feb, 2017, 07:29 
User avatar

User rating: 11
Joined: Tue 27 Mar, 2012, 17:47
Posts: 111
Location: GermanyGermany
Hello Support,

there are two methods for subscribing to instruments in JForex API.
1) https://www.dukascopy.com/client/javadoc/com/dukascopy/api/system/IClient.html#setSubscribedInstruments(java.util.Set)
2) https://www.dukascopy.com/client/javadoc/com/dukascopy/api/IContext.html#setSubscribedInstruments(java.util.Set,%20boolean)

Could you please explain the exact difference between the two methods?

Thx,
Juergen


 
 Post subject: Re: Subscribe instruments with IContext or IClient? Post rating: 0   New post Posted: Wed 01 Mar, 2017, 10:14 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
IClient one is used more when programming with JForex SDK.
IContext one is used more when running strategies from Jforex Client.


 
 Post subject: Re: Subscribe instruments with IContext or IClient? Post rating: 0   New post Posted: Wed 01 Mar, 2017, 13:07 
User avatar

User rating: 11
Joined: Tue 27 Mar, 2012, 17:47
Posts: 111
Location: GermanyGermany
So, semantics are the same?
Because the descriptions of both methods is not the same.


 
 Post subject: Re: Subscribe instruments with IContext or IClient? Post rating: 0   New post Posted: Thu 02 Mar, 2017, 16:43 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Yes, they do the same thing.


 

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