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 IOrder object after close
 Post subject: Get IOrder object after close Post rating: 0   New post Posted: Thu 16 Aug, 2012, 17:59 

User rating: 0
Joined: Thu 09 Aug, 2012, 01:17
Posts: 9
According to the API doc for the engine object, an IOrder object for an order can be retrieved using this function

Quote:
IOrder getOrderById(String orderId)

Returns order in IOrder.State.CREATED, IOrder.State.OPENED and IOrder.State.FILLED state by id, or null if no order was found


This seems to not permit retrieving an order once it has entered the CLOSED state. How can one get order information after it has closed?


 
 Post subject: Re: Get IOrder object after close Post rating: 0   New post Posted: Thu 16 Aug, 2012, 18:55 

User rating: 0
Joined: Thu 09 Aug, 2012, 01:17
Posts: 9
Use getHistoricalOrderById in IHistory

Quote:
IOrder getHistoricalOrderById(String id)
throws JFException

Returns historical (closed) order by position id for the given user account.


 

Jump to:  

cron
  © 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