API Support Forum
OEC API > FIX Support > How to determine which message is for expiration and which is for liquidation
Author Topic: How to determine which message is for expiration and which is for liquidation
(9 messages, Page 1 of 1)
Moderators: VPfau
TTsenkov
Posts: 8
Joined: May 17, 2024


Posted: Aug 07, 2024 @ 05:57 AM             Msg. 1 of 9
We expect to receive two types of messages: expiration and liquidation. Upon receiving an expiration message, we will close the futures position on our end. Upon receiving a liquidation message, we will perform other actions on our side. How can we determine which message is for expiration and which is for liquidation?
CMicciche902
Posts: 367
Joined:


Posted: Aug 07, 2024 @ 08:49 AM             Msg. 2 of 9
Can you provide more context so I can answer your question? What message are you asking about specifically?

If we liquidate a position, you will be locked from trading and your position is flattened. You will not be able to place any trade. Same for expiration. Once a contract has expired, trading is not possible. You would need to trade in the next available month.
Chris M
TTsenkov
Posts: 8
Joined: May 17, 2024


Posted: Aug 07, 2024 @ 09:57 AM             Msg. 3 of 9
How to determine that execution report is about liquidation? Does any tag contain information about it?
DKlotz
Posts: 4
Joined: May 31, 2023


Posted: Aug 11, 2024 @ 10:01 AM             Msg. 4 of 9
Chris,

Can you provide any sample code of for the different unsolicited messages we can expect to receive? IE a liquidation, an expiration, etc?

thanks
Dave
CMicciche902
Posts: 367
Joined:


Posted: Aug 12, 2024 @ 08:37 AM             Msg. 5 of 9
Below is an example of an unsolicited order (ie. liquidation and similar to an offsetting trade due to contract expiration):
325 UnsolicitedIndicator=Y


08:27:53.025 FIX.4.4:OEC_TEST->CMiccicheTM: <- 8=FIX.4.49=25735=834=1649=OEC_TEST52=20240812-13:27:5356=CMiccicheTM1=API0008396=0.0011=OECFIX:21342961914=017=OECFIX:213429619:15237=21342961938=139=A40=154=255=ES59=060=20240812-13:27:53.015150=A151=1167=FUT200=202409325=Y377=N461=FXXXXS1028=Y10=121

13:27:5356=CMiccicheTM1=API0008396=0.0011=OECFIX:21342961914=017=OECFIX:213429619:15237=21342961938=139=A40=154=255=ES59=060=20240812-13:27:53.015150=A151=1167=FUT200=202409325=Y377=N461=FXXXXS1028=Y10=121

08:27:53.047 FIX.4.4:OEC_TEST->CMiccicheTM: <- 8=FIX.4.49=25735=834=1749=OEC_TEST52=20240812-13:27:5356=CMiccicheTM1=API0008396=0.0011=OECFIX:21342961914=017=OECFIX:213429619:15337=21342961938=139=040=154=255=ES59=060=20240812-13:27:53.046150=0151=1167=FUT200=202409325=Y377=N461=FXXXXS1028=Y10=093

08:27:53.061 FIX.4.4:OEC_TEST->CMiccicheTM: <- 8=FIX.4.49=27635=834=1849=OEC_TEST52=20240812-13:27:5356=CMiccicheTM1=API0008396=5382.7511=OECFIX:21342961914=117=OECFIX:213429619:15431=5382.7532=137=21342961938=139=240=154=255=ES59=060=20240812-13:27:53.046150=F151=0167=FUT200=202409325=Y377=N461=FXXXXS1028=Y10=008

08:27:53.063 FIX.4.4:OEC_TEST->CMiccicheTM: <- 8=FIX.4.49=26035=834=1949=OEC_TEST52=20240812-13:27:5356=CMiccicheTM1=API0008396=5382.7511=OECFIX:21342961914=117=OECFIX:213429619:15537=21342961938=139=B40=154=255=ES59=060=20240812-13:27:53.061150=B151=0167=FUT200=202409325=Y377=N461=FXXXXS1028=Y10=042
Chris M
DKlotz
Posts: 4
Joined: May 31, 2023


Posted: Aug 12, 2024 @ 10:54 AM             Msg. 6 of 9
Thank you!!
TTsenkov
Posts: 8
Joined: May 17, 2024


Posted: Aug 12, 2024 @ 11:06 AM             Msg. 7 of 9
Thanks for examples.
325 tag is sent for both: for expiration and for liquidation.
But how to know is message expiration or liquidation? They look similar
TTsenkov
Posts: 8
Joined: May 17, 2024


Posted: Aug 13, 2024 @ 03:25 AM             Msg. 8 of 9
Hello, any update?
CMicciche902
Posts: 367
Joined:


Posted: Aug 22, 2024 @ 03:31 PM             Msg. 9 of 9
Both orders will look similar, you will not be able to determine which is which via FIX.
Chris M