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
·
|
Re: groups of events into one event
Hi,
You can use the event that is on the ticker.
You are referring to the ib_async.IB() events, which will emit updates for any ticker that is active. But there is a ticker event too, which will
By
Gonzalo Saenz
·
#277
·
|
groups of events into one event
Hi,
When using TickerUpdateEvent, or pendingTickersEvent, is there a way to collect individual stock events into a grouped event......for example if I have 10 stocks in a portfolio that is streaming
By
in_woolloomooloo
·
#276
·
|
Re: discrepancy with historic data
thanks for the responses. i realised/figured out that the open print will get the first trade after 9.30.00 which isn't necessarily the open auction.
By
in_woolloomooloo
·
#275
·
|
Re: Why strike price 5635 missing from SPX option chain for 2025-03-14?
If it's missing in TWS, then there's no API issue (at least not on the last mile).
I doubt it wasn't available on the market, so only reasonable explanation is that the gamma was so high it hit some
By
mov_ebpesp
·
#274
·
|
Re: Why strike price 5635 missing from SPX option chain for 2025-03-14?
Sorry, I attach here the screen shot for the missing strike
By
Lewis_Tang
·
#273
·
|
Why strike price 5635 missing from SPX option chain for 2025-03-14?
My algo tried to define options contract for strike price 5635 with expiry on 2025-04-14 (0DTE), but got error message saying "Unknown contract". I then found that this particular strike (5635) was
By
Lewis_Tang
·
#272
·
|