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.

JForex shows open order, but it is not
 Post subject: JForex shows open order, but it is not Post rating: 0   Post Posted: Tue 13 Sep, 2011, 10:28 
User avatar

User rating: 21
Joined: Thu 19 May, 2011, 20:50
Posts: 413
Location: Germany, Munich
Dear Support,

I have a problem with the closing procedure.
My strategy closes an order. After ten seconds it checks if the order is closed. If not it tries to close it again.
After some attempts JForex returns an error: "com.dukascopy.api.JFException: state is CREATED"
It happens only sometimes.
Is this a bug?
If it happens the order stays in JForex tab "Positions" as unclosed. But in the background the order is certainly closed. It is visible if one relogins or if one chooses File --> Reconnect in the JForex menu.


Please check the Activity Log of DEMO2GItuj of the beginning of the day 13 September 2011.

I am using the current JForex Demo
JForex 2.13.27
API 2.6.38


 
 Post subject: Re: JForex shows open order, but it is not Post rating: 0   Post Posted: Tue 13 Sep, 2011, 12:32 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Apparently the behvior was caused by a temporary server problem. In a case the problem does persist, please provide code snippets where you fetch the order and check its state.


 

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