API Support Forum
OEC API > API Support > Order Rejected
Author Topic: Order Rejected
(4 messages, Page 1 of 1)
Moderators: VPfau
MMuhammad80
Posts: 7
Joined: Feb 25, 2010


Posted: Mar 31, 2010 @ 10:45 AM             Msg. 1 of 4
I placed for testing purposes on sim.openecry.com an order for ESM0.
The first 2 stages are okay, but the order is not filled. I get the messages below back. Are orders on the simulation-server not filled?
Other flags like e.g. GTC give the same result.

ORDER_STATECHANGED:
oldOrderState: Unknown
ID: -1
ContractSymbol: ESM0
Type: Market
Flags: None
CurrentState: Sent
Quantity: 1
Price: 0
Price2: 0
TypePriceString: MKT
Timestamp: 31.03.2010 15:35:23

ORDER_CONFIRMED:
oldOrderID: -1
ID: 44280532
ContractSymbol: ESM0
Type: Market
Flags: None
CurrentState: Sent
Quantity: 1
Price: 0
Price2: 0
TypePriceString: MKT
Timestamp: 31.03.2010 15:35:27

ORDER_STATECHANGED:
oldOrderState: Sent
ID: 44280532
ContractSymbol: ESM0
Type: Market
Flags: None
CurrentState: Rejected
Quantity: 1
Price: 0
Price2: 0
TypePriceString: MKT
Timestamp: 31.03.2010 15:35:27

Muhammad Ali
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Mar 31, 2010 @ 11:58 AM             Msg. 2 of 4
You could check the reason of rejection in the State.Comments property of the latest state in Order.States collection.

I would also not recommend to use FX (FOREX) accounts for futures trading.
MMuhammad80
Posts: 7
Joined: Feb 25, 2010


Posted: Mar 31, 2010 @ 01:43 PM             Msg. 3 of 4
+ Last {Rejected Invalid contract for this account type}

Its exactly this reason. We want to trade S&P-500 Emini Futures and Options on these Futures.
What is the correct account-type for this?

Muhammad Ali
MMuhammad80
Posts: 7
Joined: Feb 25, 2010


Posted: Mar 31, 2010 @ 02:31 PM             Msg. 4 of 4
Problem solved. On sim.openecry.com are 3 different accounts. One has to skip through this list.

Muhammad Ali