开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: Need Information Regarding FIll Or Kill Order


 

If you have the same problem when using TWS alone, it is not an API problem.
You might still get help here but it is technically off-topic. Problems
should always be addressed in TWS first before API questions become
relevant. Otherwise you look in the wrong place for most problems. It is a
common mistake. First try things in TWS. Second if you have problems with
your code, try things in the API demo apps if possible. In your own code
make sure you are receiving error callbacks (and logging or otherwise
recording the information) so you can report all appropriate information
when you post a question.


You do not explain what you mean by "unable to get FOK value" when using TWS
alone. If FOK simply does not show up in the popup list, then you probably
have not enabled it in the Features under your TWS configuration. At the
moment I'm running IB Gateway so I can only run TWS in demo mode. But there
I see what I previously suggested to you. Under

Configuration > Features > Order Management > Time-in-Force

you must make sure Fill-or-Kill is checked. Is this your problem?

The curious thing is that IB Gateway does not seem to provide the Features
section. Perhaps this means all such features are turned on in IB Gateway.
If so using the Gateway might be something else for you to try, at least to
get more information, if necessary.

-K

On 7/12/13 12:24 AM, "narasingarao_kavali" <no_reply@...> wrote:


Hi Kurt,

Yes, i am placing order with API (with ActiveX API)

k.php%3Fib_entity%3Dllc
from the above link, we can place an order for stock for FOK Orders.

i have subscribed for Stock Instruments and placed order from my Application
with FOK as TimeinForce. but in IB TWS it is showing as Limit Order with Day
as the TimeinForce.

i have done same process in IB TWS also. but i am unable to get the FOK value
in TimeinForce for Stock also.

so, is there any scrip available to test this FOK order. ??

--- In TWSAPI@..., Kurt Bigler <kkb@...> wrote:

What you are stating is not quite clear.


On 7/11/13 3:36 AM, "narasingarao_kavali" <no_reply@...> wrote:

Dear Friends,

I am placing an order with Fillorkill as timeinforce which gives 'FOK'.
Do you mean you are placing an order via the API? You are specifying "FOK"
in timeinforce?

but
if i place an FOK order for any Stock (Which they specified in help) that
order is showing
What do you mean by showing? The Order echoed back to you by order
callbacks does not match the Order you passed to placeOrder?

The only think I can think of is maybe TWS requires that you enable the
order feature in order to use it via the API.

Have you tried placing the same order via TWS?

-Kurt

as limit order (LMT) with DAY as Time in Force instead of
Fillorkill (FOK).

please provide me any scrip available to test FOK Order for testing.

Join [email protected] to automatically receive all group messages.