iioc order. StockSharphttps://stocksharp.com/handlers/atom.ashx?category=tag&id=iioc order&type=articlesCopyright @ StockSharp Platform LLC 2010 - 20242024-03-28T19:44:17Zhttps://stocksharp.com/images/logo.pnghttps://stocksharp.com/topic/11166/FAQ on FIX Protocol. Limit orders FOK and IOC (FAK).2019-11-15T18:04:12Z2019-11-15T18:04:32ZMarathttps://stocksharp.com/users/101940/info@stocksharp.comEarlier, we said that the <b>FIX Protocol</b> not only increased the<b> speed of traders</b> in the market, but also provided an opportunity for market participants to use <b>limit orders</b>, which reduced the risks of trading. Let's take a closer look at two types of limit orders. <br />Let's start with the <em>FOK</em> order.<br />Literally, its name stands for - <em>'Fill Or Kill'</em>. The essence of this order is that it is<b> executed immediately</b> and in <b>full at the stated price</b>, or will not be executed at all, which eliminates the possibility of slippage. Thus, if your order<b> cannot be executed in full</b>, then the order is<b> simply rejected</b>, if the order <b>can be executed in full</b>, then the <b>order is executed in full at the specified price</b>. [nerd] This type of order is very <b>convenient</b> for <b>scalping</b> or <b>arbitrage strategies</b>, as they <b>eliminate the risk of slippage</b>. In fact, we can say that the <a href="https://stocksharp.com/robot/18/edward-scissorhands/" title="https://stocksharp.com/robot/18/edward-scissorhands/">"Edward – Scissorhands"</a><b> arbitrage strategy</b> from StockSharp <b>eliminates risks</b>. Below is an example of the rejection of the <em>FOK</em> order in the <em>CME</em> system, due to the fact that the <b>order size is 20</b>, and the<b> book contains only 19</b>, so the order <b>can not be executed completely</b>, and the system cancels it. <br /><br /><a href='https://stocksharp.com/file/110086/fok-orde-fix-protocol_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/110086/fok-orde-fix-protocol_jpg/?size=500x500" alt="FOK-orde-FIX-protocol.jpg" title="FOK-orde-FIX-protocol.jpg" /></a><br /><br />The next type of limit orders are <em>IOC</em> orders. <br />The name <em>'Immediate OR Cancel' </em>means that the <b>order is executed in whole or in part at the set price</b>, otherwise the order will be canceled. For example, if the <b>order size is 100 units</b>, only <b>50 units can be sold at the set price</b>. If we use an order of type <em>FOK</em>, the system will cancel it, as it can not be fully executed. When using the <em>IOC</em> <b>limit order</b>, the order will be <b>executed for 50 units</b>, and the <b>remaining ones will be canceled</b>. <em>IOC</em> also has another name <em>FAK</em>, which stands for <em>'Fill And Kill'</em>, executed and discarded the remainder.[nerd]<br />For example, an <em>IOC</em> order will be partially executed (in the <em>CME</em> system, its name is <em>FAK</em>). If we <b>buy 15</b>, and the book <b>contains only 10</b>, then we <b>buy 10</b>, and the <b>remaining 5</b> are rejected, so this order can be called partially executable:<br /><br /><a href='https://stocksharp.com/file/110085/iok-order-fix-protocol_jpg/' class='lightview' data-lightview-options="skin: 'mac'" data-lightview-group='mixed'><img src="https://stocksharp.com/file/110085/iok-order-fix-protocol_jpg/?size=500x500" alt="IOK-order-FIX-protocol.jpg" title="IOK-order-FIX-protocol.jpg" /></a><br /><br /><b>Limit orders</b> when working through the <b>FIX Protocol</b> allow the trader to <b>reduce risks</b>, and in some cases, especially when working with <b>arbitrage strategies</b> to <b>reduce them to zero</b>. Our company provides a range of programs to work in the market through <b>FIX connect</b>, such as: designer trading strategies <a href="https://stocksharp.com/products/designer/" title="https://stocksharp.com/products/designer/">Designer</a>, trading program <a href="https://stocksharp.com/products/terminal/" title="https://stocksharp.com/products/terminal/">Terminal</a>. We also provide a full range of connectors for connection to trades, including FIX. Flexible system of discounts and reliability of connection, makes us one of leaders in the market. The full range of connectors and software can be found on our <a href="https://stocksharp.com/products/pricing/" title="https://stocksharp.com/products/pricing/">website</a>.<br />