Re: Clicking an override button
Thanks for your reply
So if I follow you correctly,
you submit an order,
it fails,
you check your Trade.log for the error message,
and in a future order, you set Order.advancedErrorOverride
By
Gonzalo Saenz
·
#298
·
|
Re: Clicking an override button
Hi Gonzalo,
Documentation is sketchy to say the least. See the below link.
https://interactivebrokers.github.io/tws-api/order_submission.html
The rest of it was trial and error.
By
Pranav Lal
·
#297
·
|
Re: Clicking an override button
Where did you get this information? Is there any documentation for this?
From time to time my orders are canceled, this might help?
---- On Thu, 27 Mar 2025 17:41:35 +0100 Pranav
By
Gonzalo Saenz
·
#296
·
|
Re: Clicking an override button
Hi all,
Problem solved. I had to use a key value pair when specifying the string in
the advancedErrorOverride property.
advancedErrorOverride="8229,SURVEILLANCE"
I initially thought that ib_async
By
Pranav Lal
·
#295
·
|
Re: Trying to load data asynchronously and struggling with asyncio again
`ib.reqHistoricalDataAsync` takes timeout parameter, set it to 0 and this method will not time out.
By
t1user
·
#294
·
|
Re: ib.reqTickers() conflicts with ib.reqTickByTickData()
thank you for replying,
I have identified the problem: the reqTickers was nested in the reqTickByTickData, so I changed the App structure.
BTW do you know the function to use for nested call (even
By
barone
·
#293
·
|
Re: Live and paper data mixed
What seems to be happening is the instance of IB() is keeping data and not actually sending a request to TWS. The API logs only show one request being sent per connection, not the two I was expecting
By
Glenn
·
#292
·
|
Re: Live and paper data mixed
Hi Glen,
I have a similar setup but do not switch programmatically between the 2 gateways. However, how about adding a delay between the switching? This would ensure connection closure.
By
Pranav Lal
·
#291
·
|
Live and paper data mixed
I have a program that will place trades in either the paper or live account. I run both platforms simultaneously on the same machine. It crashes when I try get my account value after switching from
By
Glenn
·
#290
·
|
Re: Clicking an override button
Hi all,
I am answering my own question. I suspect I need to specify order conditions
and allow the advancedErrorOverride flag.
How do I do this?
Pranav
By
Pranav Lal
·
#289
·
|
Clicking an override button
Hi all,
I have recently begun getting messages that a security is under
surveillance.
The exact entry in my program's log is below.
2025-03-24 06:59:15,321 ib_async.wrapper ERROR Error 201, reqId 7:
By
Pranav Lal
·
#288
·
|
Re: ib.reqTickers() conflicts with ib.reqTickByTickData()
These two methods are very different:
reqTickers ( * contracts , regulatorySnapshot = False ) [source] ( https://ib-insync.readthedocs.io/_modules/ib_insync/ib.html#IB.reqTickers ) ? (
By
biney59@...
·
#287
·
|
Re: Unable to determine when an order is submitted
Hi Elat,
<snip Moreover the status gets fired once and not for each status.
PL] Ouch, that is one reason why my code is not executing the way I expect. I’ll do some tweaking.
Thanks for your
By
Pranav Lal
·
#286
·
|
Re: Unable to determine when an order is submitted
Hi Prenav,
be careful on choosing the status.. I've noticed in paper trading that stutus (PreSubmitted) could never be reached as those statuses are executed very quickly. Moreover the status gets
By
elat
·
#285
·
|
ib.reqTickers() conflicts with ib.reqTickByTickData()
Hello Everyone,
when building the APP (not in a notebook Jupyter), if call the ib.reqTickers() after having called ib.reqTickByTickData() it goes in overflow and crashes. But, if I call reqTickers()
By
barone
·
#284
·
|
Re: Unable to determine when an order is submitted
Might work in simulation, but remember in real trade there will be delay after placing order:
stop_loss_trade = ib.placeOrder(contract, stop_loss_order)
# BELOW might not be true always so
By
biney59@...
·
#283
·
|
Re: Unable to determine when an order is submitted
Hi biney59,
Thanks for your suggestion.
I got rid of the event logic and the program is working as I want it to at least in the simulator.
Here is a snippet of the modified code.
#
By
Pranav Lal
·
#282
·
|
Re: Unable to determine when an order is submitted
PreSubmitted is not the status you want, as that still does not mean active. What you want is Submitted. You can look at https://ib-api-reloaded.github.io/ib_async/api.html#ib_async.order.OrderStatus
By
biney59@...
·
#281
·
|
Unable to determine when an order is submitted
Hi all,
I am unable to determine when an order is submitted. See the below code of
my on_order_status event. What am I doing wrong? The on_order_status event
does fire. I suspect I have the if
By
Pranav Lal
·
#280
·
|
Re: groups of events into one event
Thanks so much. I didn’t know about the event kit notebook…..that will be useful, or the ticker event.
By
in_woolloomooloo
·
#278
·
|