Re: record and replay ib_async session (data only)?
Jason,
Yes. ?Also I think that what I described may be the easiest way to do that.
One reason is that to store level 2 data efficiently you need some kind of diff-based approach (as level 2 levels
By
Neal Y
·
#231
·
|
Re: record and replay ib_async session (data only)?
I don’t know either, but since you can request the real time level 2 data via reqMktDepth, if you were to request it and subsequently store it, would that give you what you need?
By
Jason
·
#230
·
|
Re: record and replay ib_async session (data only)?
Mainly, as far as I can tell (per historical_time_and_sales.html ( https://interactivebrokers.github.io/tws-api/historical_time_and_sales.html#reqHistoricalTicks ) ), for some data historical data is
By
Neal Y
·
#229
·
|
Re: record and replay ib_async session (data only)?
What do you gain from this approach?
If I want to backtest something, I only care about the data and my algo code; ib_async is just an interface to the brokerage and doesn’t make my algo work or
By
Jason
·
#228
·
|
record and replay ib_async session (data only)?
How hard would it be to modify ib_async to record a session for playing back later? ?The motivation is that it would give a general mechanism for recording data for later use, such as
By
Neal Y
·
#227
·
|
Re: how to unset goodAfterTime ?
It seems this is not possible with TWS API. ?More generally, the only way to "pause" and "resume" a standing limit order seems to be to raise and lower the limit price. ?See the following topic at
By
Neal Y
·
#226
·
|
how to unset goodAfterTime ?
I am able to set the goodAfterTime field as expected for a standing order, e.g. to "20250113 15:59:00 US/Eastern", and it seems to work as expected.
However, I would also like to be able to reset the
By
Neal Y
·
#225
·
|
Is it possible to get pre-market bid/ask?
I'm having some trouble getting bid/ask/last information on pre-market.
The bid/ask come as -1, and the last sometimes is not present.
I've been trying
```
contract = Stock('AAPL', 'OVERNIGHT',
By
code_block
·
#224
·
|
Re: Ambiguous Contract on qualifyContracts for SPXW Option
Yeah this is one of those edge cases that we all dread... My bot had the same issue and could not run.
Notice the localSymbol code allows you to break the ambiguity: one is for today, the other for
By
Gary Moody
·
#223
·
|
Re: Ambiguous Contract on qualifyContracts for SPXW Option
This is because IB screwed something up and marked the AM expiration as
SPXW instead of SPX. Today was the first time I have ever seen this. IB
support told me they were aware of the issue and were
By
leop.48
·
#222
·
|
Re: Ambiguous Contract on qualifyContracts for SPXW Option
Got it thanks. But it seems like there is no way for selecting contract using trading class in this case as it is SPXW for both. Only way to use contract ID and not being able to know which one is
By
Pratik Babhulkar
·
#221
·
|
Re: Ambiguous Contract on qualifyContracts for SPXW Option
You're getting an error because the market are closed tomorrow,
and you need to add trading class to option contracts.
For ES futures options I had the same problem: differente trading classes E2C and
By
Kianti
·
#220
·
|
Ambiguous Contract on qualifyContracts for SPXW Option
Interesting observation. Would love to have your opinions.
I have been using this script to validate the option contracts using `qualifyContracts`. Today, I am getting ambiguous contracts error for
By
Pratik Babhulkar
·
#219
·
|
Re: How to check TWS connectivity?
Mell,
Many thanks.
Pranav
Sent: Wednesday, January 8, 2025 8:16 AM
To: [email protected]
Subject: Re: [ib-async] How to check TWS connectivity?
The call is: isConnected()
By
Pranav Lal
·
#218
·
|
Re: How to check TWS connectivity?
You can check is_Connected() it will be true or false.MelSent from my Galaxy
By
Mel
·
#217
·
|
Re: How to check TWS connectivity?
The call is: isConnected()Sent from my Galaxy
By
Mel
·
#216
·
|
Re: How to check TWS connectivity?
Hi,
I cannot remember the exact name of the variable but there is a is_ready variable that tells you if the API is ready to go.
Pranav
By
Pranav Lal
·
#215
·
|
How to check TWS connectivity?
Using the API, what is a good way to check if the TWS is connected to IB servers?
By
R Malhotra
·
#214
·
|
Re: Option Open Interest
Thank you!
Confirming that the following code works both during and before and after market open hours:
from ib_async import *
import time
ib = IB()
ib.connect('127.0.0.1', 4001,
By
Dennis
·
#213
·
|
Re: Trying to load data asynchronously and struggling with asyncio again
Hey Christian,
Sorry, I since realized that your issue is with timeouts, not errors. Perhaps one of these settings will solve the problem:
ib.connect( '127.0.0.1' , 7497 , clientId= 1 , timeout= 0 )
By
Some_guy_555
·
#212
·
|