Order Types

Created at 01 Jun 2017, 12:34
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
J.

j.tarno

Joined 10.03.2017

Order Types
01 Jun 2017, 12:34


Hello,

is there a way of sending a FOK order or IOC order? The FIX API documentation 4.4.4. New Order Single (MsgType(35)=D) does not include this information. Also a similiar question has been posted here but was not answered properly.

Greetings,

Jan.


@j.tarno
Replies

Spotware
01 Jun 2017, 14:14

Hi j.tarno,

No, these types of orders are not currently supported by our FIX API.


@Spotware

#EOL
01 Jun 2017, 15:52

There are no such order types like FOK or IOC. This is Time In Force (tag 59).

The types (tag 40) are Market, Limit, Stop, etc.

As you can see in 4.4.4, currently supported values for Time In Force are IOC, GTC and GTD with the following restrictions:

<style type="text/css">
.tg  {border-collapse:collapse;border-spacing:0;font-size:14px;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;}
.tg .tg-72gw{background-color:#9a0000;vertical-align:top}
.tg .tg-qpvr{background-color:#009901;vertical-align:top}
</style>
<table class="tg">
  <tr>
    <td class="tg"></td>
    <td class="tg">IOC</td>
    <td class="tg">GTC</td>
    <td class="tg">GTD</td>
  </tr>
  <tr>
    <td class="tg">Market</td>
    <td class="tg-qpvr"></td>
    <td class="tg-72gw"></td>
    <td class="tg-72gw"></td>
  </tr>
  <tr>
    <td class="tg">Stop</td>
    <td class="tg-72gw"></td>
    <td class="tg-qpvr"></td>
    <td class="tg-qpvr"></td>
  </tr>
  <tr>
    <td class="tg">Limit</td>
    <td class="tg-72gw"></td>
    <td class="tg-qpvr"></td>
    <td class="tg-qpvr"></td>
  </tr>

 


@#EOL

#EOL
01 Jun 2017, 15:54 ( Updated at: 21 Dec 2023, 09:20 )

RE:

#EOL said:

There are no such order types like FOK or IOC. This is Time In Force (tag 59).

The types (tag 40) are Market, Limit, Stop, etc.

As you can see in 4.4.4, currently supported values for Time In Force are IOC, GTC and GTD with the following restrictions:


@#EOL

j.tarno
03 Jun 2017, 21:53 ( Updated at: 21 Dec 2023, 09:20 )

RE:

Spotware said:

Hi j.tarno,

No, these types of orders are not currently supported by our FIX API.

Hi,

thanks for your answer.

That is from cTrader FIX Engine documentation. Does it meant the description is wrong?

Instead of FOK or IOC I could use 126 ExpireTime. Using this tag - is the order pulled when the server time is bigger than time in tag 126?

Kindregards,

Jan.


@j.tarno

#EOL
06 Jun 2017, 12:09

RE: RE:

j.tarno said:

That is from cTrader FIX Engine documentation. Does it meant the description is wrong?

Instead of FOK or IOC I could use 126 ExpireTime. Using this tag - is the order pulled when the server time is bigger than time in tag 126?

 

the description is correct.

If you want to send a market order (tag 40 = 1) you should specify IOC time in force (tag 59 = 3). Both tags are required.

If you want to send stop order or limit order (tag 40 = 3 or tag 40 = 2) you should specify GTC time in force (tag 59 = 1).

If you want to send stop order or limit order with expiration (tag 40 = 3 or tag 40 = 2) you should specify GTD time in force (tag 59 = 6) and expiration timestamp of some moment in the future in ExpireTime (tag 126).


@#EOL