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.

Client Ratio calculation
 Post subject: Client Ratio calculation Post rating: 0   New post Posted: Sat 03 Aug, 2013, 17:14 

User rating: 0
Joined: Sat 08 Jun, 2013, 12:05
Posts: 71
Location: FranceFrance
Hi
In case of a WithDraw message
I would like to know if the Client's ratio get updaded just before the onMessage function is invoked, or are the client's states updaded at the next onAccount function invocation (every ~5s)?

public void onMessage(IMessage m) throws JFException {
    if (m.getType() == Type.WITHDRAWAL) {
        IWithdrawalMessage m2 = (IWithdrawalMessage)m;
        for (IClientInfo i : account.getClients()){
            //i.getRatio() // new ratios ?

Thanks, sorry to ask this, but it's hard to test


 
The Best Answer  Post subject: Re: Client Ratio calculation Post rating: 0   New post Posted: Mon 05 Aug, 2013, 15:03 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
lil wrote:
I would like to know if the Client's ratio get updaded just before the onMessage function is invoked, or are the client's states updaded at the next onAccount function invocation (every ~5s)?
The latter.


 

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