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.

IOrder.getRequestedAmount()
 Post subject: IOrder.getRequestedAmount() Post rating: 0   New post Posted: Thu 11 Mar, 2010, 03:08 

User rating: 0
Joined: Wed 10 Feb, 2010, 14:09
Posts: 8
Why is it that this returns an amount that is greater than the original order requested amount?

This seems to happen on the final fill of the order when IOrder.getAmount() returns the fully filled quantity, and IOrder.getRequestedAmount() appears to return the full requested quantity + final fill quantity.

At the extreme, I notice that say I buy 1M of USD/JPY through a placed_bid which gets filled immediately I get IOrder.getAmount() = 1.0, and IOrder.getRequestedAmount() = 2.0!!

It is a behaviour that is very difficult to programme around and it's messing up my fill accounting.


 
 Post subject: Re: IOrder.getRequestedAmount() Post rating: 0   New post Posted: Thu 11 Mar, 2010, 15:39 

User rating: 0
Joined: Wed 10 Feb, 2010, 14:09
Posts: 8
Example message:

MessageType NOTIFICATION Text STRING_MESSAGE-BID ACCEPTED: #25563635 PLACE BID 5 mil. AUD/USD @ 0.914 EXPIRES: GTC - Position #7150667 Related order [jfgm3qnu1]-FILLED / AUD/USD / 0.913534 / 5.0 / 5.0

MessageType ORDER_SUBMIT_OK Text Related order [jfgm3qnu1]-FILLED / AUD/USD / 0.913534 / 10.0 / 5.0

My interpretation is that the 10.0 ought to have been a 5.0, can you explain?


 
 Post subject: Re: IOrder.getRequestedAmount() Post rating: 0   New post Posted: Wed 12 May, 2010, 09:39 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
This is fixed and available in current JForex release.


 

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