API Support Forum
OEC API > Order Execution > Invalid contract
Author Topic: Invalid contract
(5 messages, Page 1 of 1)
Moderators: VPfau
RPaganini2
Posts: 68
Joined: Jul 20, 2011


Posted: Aug 04, 2011 @ 01:19 PM             Msg. 1 of 5
Hi, I'm trying to send my first single order, but I don't know if the information about is correct.

I'm trying to buy a Swiss Franc (Symbol 6SU1).

I put the CFI Code as FXXXXS. Is it correct?

I put the MaturityMonthYear as 201109w1.

When I try to send these order, I receive the following FIX message:

Header
BeginString [8R] = FIX.4.4
BodyLength [9R] = 260
MsgSeqNum [34R] = 490
MsgType [35R] = ExecutionReport
SenderCompID [49R] = OEC
SendingTime [52R] = 20110804-16:47:21
TargetCompID [56R] = MYAWESOMELOGIN
Body
Account [1] = MYACCOUNTNUMBER
AvgPx [6R] = 0
ClOrdID [11] = 1878002
CumQty [14R] = 0
ExecID [17R] = OECFIX:634480019943936744:29
OrderID [37R] = OECFIX:634480019943936744:28
OrderQty [38] = 1
OrdStatus [39R] = REJECTED
Side [54R] = BUY [1]
Symbol [55] = 6SU1
Text [58] = Unknown contract
TransactTime [60] = 20110804-16:47:21
OrdRejReason [103] = UNKNOWNSYM [ 1 ]
ExecType [150R] = REJECTED
LeavesQty [151R] = 1
MaturityMonthYear [200] = 201109w1
CFICode [461] = FXXXXS
Trailer
CheckSum [10R] = 158



Rufo André Paganini
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Aug 04, 2011 @ 01:27 PM             Msg. 2 of 5
Hello,

Format like "201109w1" should be used for weekly equity options only. For 6SU1 you need to specify just 201109

Victor Vins
Lead Software Developer
RPaganini2
Posts: 68
Joined: Jul 20, 2011


Posted: Aug 04, 2011 @ 01:35 PM             Msg. 3 of 5
Thanks Vitor.

I tried it but the error persists.

OrderQty [38] = 1
OrdStatus [39R] = REJECTED
Side [54R] = BUY [1]
Symbol [55] = 6SU1
Text [58] = Unknown contract
TransactTime [60] = 20110804-17:34:01
OrdRejReason [103] = UNKNOWNSYM [1]
ExecType [150R] = REJECTED
LeavesQty [151R] = 1
MaturityMonthYear [200] = 201109
CFICode [461] = FXXXXS


In these case the CFICode is FXXXXS?

Rufo André Paganini
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Aug 04, 2011 @ 02:38 PM             Msg. 4 of 5
CFICode is correct, but symbol should be 6S

Victor Vins
Lead Software Developer
RPaganini2
Posts: 68
Joined: Jul 20, 2011


Posted: Aug 04, 2011 @ 09:42 PM             Msg. 5 of 5
Ok Victor,

<<< OrdStatus [39R] = FILLED [2]

Thankssss!!

Rufo André Paganini