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.

why isn't it possible to access acountId from IOrder?
 Post subject: why isn't it possible to access acountId from IOrder? Post rating: 0   New post Posted: Mon 10 Jun, 2013, 19:11 

User rating: 0
Joined: Sat 08 Jun, 2013, 12:05
Posts: 71
Location: FranceFrance
seeing https://www.dukascopy.com/client/javadoc ... Order.html I can't get back the Id of the account that own that position right?
So I should store somewhere a map account ids => orders ids?

Thanks


 
 Post subject: Re: why isn't it possible to access acountId from IOrder? Post rating: 0   New post Posted: Tue 11 Jun, 2013, 07:34 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
lil wrote:
seeing https://www.dukascopy.com/client/javadoc ... Order.html I can't get back the Id of the account that own that position right?
No, the interface does not hold such information.
Quote:
why isn't it possible to access acountId from IOrder?
Why should it be? For retrieving account information see:
https://www.dukascopy.com/wiki/#Account_Info
https://www.dukascopy.com/wiki/#Account_Type_and_Login
If you need to find out if a closed order is of particular account, then check it from the order history by using the IHistory.getHistoricalOrderById method.


 
 Post subject: Re: why isn't it possible to access acountId from IOrder? Post rating: 0   New post Posted: Tue 11 Jun, 2013, 16:27 

User rating: 0
Joined: Sat 08 Jun, 2013, 12:05
Posts: 71
Location: FranceFrance
yes no problem, it's a good thing like you say, the ticket already uniquely identify it
it was more a confirmation question, because I've seen other APIs where they did ;)

ps: https://www.dukascopy.com/wiki/#Account_Info that example is weird to me, why summing amounts if they are on diffrent instruments? it's like summing 4 apples with 3 oranges etc..


 
 Post subject: Re: why isn't it possible to access acountId from IOrder? Post rating: 0   New post Posted: Wed 12 Jun, 2013, 08:36 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
lil wrote:
ps: https://www.dukascopy.com/wiki/#Account_Info that example is weird to me, why summing amounts if they are on diffrent instruments? it's like summing 4 apples with 3 oranges etc..
You are right, significant part of examples don't have universal applicability - many of them for simplicity assume that there is only one instrument in use.


 

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