Skip to content

Instantly share code, notes, and snippets.

@JCBarry
Created April 14, 2011 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JCBarry/919733 to your computer and use it in GitHub Desktop.
Save JCBarry/919733 to your computer and use it in GitHub Desktop.
Sell short and buy to cover fixml examples
Sell Short
Side=5 -- this triggers the sell short
Typ=2 -- this triggers a limit order
Px=22 -- this is the limit price
<FIXML xmlns="http://www.fixprotocol.org/FIXML-5-0-SP2">
<Order TmInForce="0" Typ="2" Side="5" Px="22" Acct="12345678">
<Instrmt SecTyp="CS" Sym="F"/>
<OrdQty Qty="1"/>
</Order>
</FIXML>
Buy to Cover
AcctTyp="5" -- this triggers the buy to cover
Typ=2 -- this triggers a limit order
Px=13 -- this is the limit price
<FIXML xmlns="http://www.fixprotocol.org/FIXML-5-0-SP2">
<Order TmInForce="0" Typ="2" Side="1" AcctTyp="5" Px="13" Acct="12345678">
<Instrmt SecTyp="CS" Sym="F"/>
<OrdQty Qty="1"/>
</Order>
</FIXML>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment