API Support Forum
OEC API > API Support > Orders getting rejected
Author Topic: Orders getting rejected
(6 messages, Page 1 of 1)
Moderators: VPfau
JGrahovac
Posts: 19
Joined: Mar 13, 2017


Posted: Apr 12, 2017 @ 08:41 PM             Msg. 1 of 6
I'm trying to send a few orders using CppComSample and I'm getting rejections.
I tried both Market and Limit orders for both futures and spot currencies.
Any idea?
Thanks.
CMicciche902
Posts: 277
Joined:


Posted: Apr 13, 2017 @ 03:35 PM             Msg. 2 of 6
You are sending spot FX orders to a futures account, which is not permitted. Forex orders need to go to the Forex account, account number starts with APIFX.

Also, continuous contracts do not accept orders. Please trade underlying symbol like ESM7.


Account,Trader,Category,Order #,Side,Qty,Filled Qty,Symbol,Price,Avg.Price,State,3rd Party App,Last.Cmd,Comments,Account Type,Fill Time,Completed Time,Exch. Order,Post-Allocation,Risk Provider
API003094,JGrahovac,API,204546546,Buy,1,0,EUR/USD,MKT,,Rejected,OEC API Samples,Invalid contract for this account type,,Customer,,Apr/12 21:10:01.928,,,OEC
API003094,JGrahovac,API,204546547,Buy,10000,0,AUD/CAD,MKT,,Rejected,OEC API Samples,Invalid contract for this account type,,Customer,,Apr/12 21:24:56.566,,,OEC
API003094,JGrahovac,API,204546548,Buy,100000,0,AUD/CAD,LMT 0.10020 GTC,,Rejected,OEC API Samples,Invalid contract for this account type,,Customer,,Apr/12 21:25:29.171,,,OEC
API003094,JGrahovac,API,204546549,Buy,1,0,@ES,MKT,,Rejected,OEC API Samples,Trading with continuous contracts is not supported,,Customer,,Apr/12 21:27:22.287,,,OEC
API003094,JGrahovac,API,204546550,Buy,100000,0,AUD/USD,MKT,,Rejected,OEC API Samples,Invalid contract for this account type,,Customer,,Apr/12 21:29:05.595,,,OEC
API003094,JGrahovac,API,204546551,Buy,1,0,@ES,MKT GTC,,Rejected,OEC API Samples,Trading with continuous contracts is not supported,,Customer,,Apr/12 21:39:13.186,,,OEC
API003094,JGrahovac,API,204546552,Buy,1,0,EUR/USD,MKT,,Rejected,OEC API Samples,Invalid contract for this account type,,Customer,,Apr/12 21:47:54.973,,,OEC
Chris M
JGrahovac
Posts: 19
Joined: Mar 13, 2017


Posted: Apr 13, 2017 @ 08:20 PM             Msg. 3 of 6
I sent a few Market orders for EUR/USD using APIFX003227 account. All were buy orders for 100000(I tried 10000 as well) without price and all were rejected.
I tried Limit order with the price, the same rejected.
Is there any way I can see the reason for the rejection.
Thanks.
CMicciche902
Posts: 277
Joined:


Posted: Apr 17, 2017 @ 10:45 AM             Msg. 4 of 6
This FX account is a mini FX where order quantity of 1 equals 10,000 currency units. For below order, send order qty as 1:


Account,Trader,Category,Order #,Side,Qty,Filled Qty,Symbol,Price,Avg.Price,State,3rd Party App,Last.Cmd,Comments,Account Type,Fill Time,Completed Time,Exch. Order,Post-Allocation,Risk Provider
APIFX003227,JGrahovac,API,204561115,Buy,10000,0,CAD/CHF,MKT,,Rejected,OEC API Samples,MaxQty=100,,MiniFX,,Apr/16 21:35:03.806,,,
Chris M
JGrahovac
Posts: 19
Joined: Mar 13, 2017


Posted: Apr 17, 2017 @ 11:14 AM             Msg. 5 of 6
The same...order rejected. I sent a few market buy orders for EUR/USD, CAD/JPY, CAD/CHF... with quantity 1 as you said.
CMicciche902
Posts: 277
Joined:


Posted: Apr 17, 2017 @ 11:51 AM             Msg. 6 of 6
FX account APIFX003227 was expired on our back end. I have removed this account and provided you a fresh new FX account APIFX003265 which should not cause issues. Sorry for the troubles.
Chris M