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.

Get orderID
 Post subject: Get orderID Post rating: 0   New post Posted: Mon 24 Jan, 2011, 14:56 

User rating: 0
Joined: Wed 18 May, 2011, 23:26
Posts: 40
Location: Switzerland,
IOrder has support to retrieve "label" via getLabel() and "position id" via getId(). Is there a way to get the order id?

Just for some clarification, please see this image from the jforex wiki - please note the "Order ID" and a "Position ID":

Image

IOrder's have an ID - https://www.dukascopy.com/client/javadoc ... Order.html

IOrder.getId() returns position ID... maybe there should be a getOrderId() and getPositionId()?

Repost from: viewtopic.php?f=1&t=24683


 
 Post subject: Re: Get orderID Post rating: 0   New post Posted: Thu 27 Jan, 2011, 11:56 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
It is not possible to get the order id via API. Could you please clarify why do you need to get the order id?


 
 Post subject: Re: Get orderID Post rating: 0   New post Posted: Thu 27 Jan, 2011, 16:11 

User rating: 0
Joined: Wed 18 May, 2011, 23:26
Posts: 40
Location: Switzerland,
Order id is needed for custom reports that need to be generated.

Order ID is the only unique ID for an order... for example, a long market order position with a take profit and stop loss has one position ID, but 3 order IDs (one for the long, one for the take profit, and one for the stop loss).

Thank you


 
 Post subject: Re: Get orderID Post rating: 0   New post Posted: Sat 29 Jan, 2011, 06:52 

User rating: 0
Joined: Thu 19 Aug, 2010, 13:53
Posts: 62
I think getOrderId() should be renamed getPositionId()

The IOrder interface contains the getId() method.


 
 Post subject: Re: Get orderID Post rating: 0   New post Posted: Tue 01 Feb, 2011, 10:31 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
darlu72 wrote:
I think getOrderId() should be renamed getPositionId()


The IOrder interface contains the getId() method.


 

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