Keyboard Shortcuts
Likes
- Twsapi
- Messages
Search
Re: 2024 NQ and ES futures historical data
I don’t think we allowed to share data per our contract. ? Why don’t you just download it from IB? On Tue, Jan 7, 2025 at 6:30?PM IBmark via <ferreira.helhazar=[email protected]> wrote:
|
Re: 2024 NQ and ES futures historical data
开云体育What language do you use?? If python I can probably help you fix your request if you just need daily.? Minute data would take a bit... -------- Original message -------- From: "IBmark via groups.io" <ferreira.helhazar@...> Date: 2025-01-07 11:20 a.m. (GMT-08:00) Subject: [TWS API] 2024 NQ and ES futures historical data Hi everyone,
?
I need to test something and I have been having a bit of trouble requesting data from IB. Does anyone have last year?s historical data for ES and NQ? doesn?t have to be tick data. Alternatively where can I find it cheap and reliable??
?
thanks a bunch.?
|
2024 NQ and ES futures historical data
Hi everyone,
?
I need to test something and I have been having a bit of trouble requesting data from IB. Does anyone have last year?s historical data for ES and NQ? doesn?t have to be tick data. Alternatively where can I find it cheap and reliable??
?
thanks a bunch.? |
Hotkey for market data lines?
In the recent past I came across a hotkey that provided a detailed list of data lines (window, instrument, and exchange). It was updated dynamically. I link several windows together so clicking on a line in a watchlist changed several windows and the data lines associated with them.
?
This is different that the summary you get with <ctrl><alt>=.
?
I'm sure I wrote it down but that sticky note is probably behind my desk somewhere.
?
I'm using TWS 10.30
? |
Re: reqMktData callbacks are missing data with gateway 10.30 and 10.31 sporadically, works fine with 10.19 and older gateways/TWS
Interestingly the documentation on what reqMktData (both old and new). Have this statement "A tickPrice value of -1 or 0 followed by a tickSize of 0 indicates there is no data for this field currently available". Which I read as: if there is no data I get -1, if there is data I get some number. I guess this is there IB could be much more explicit. If one subscribes to market data in the middle of the trading session what happens? Does one get a "snapshot" of data = the latest data IB has (some might be very old) and then updates only then changes happen (which I believe how 10.19 and older worked). OR the "snapshot" part never happens now (10.30 and later?). ? However, a couple of observations from live environment which make me doubt the above explanation and make me lean on "some resource optimization went wrong". Is more likelly explanation. Here is a problem from one of live environments? 1. if the above is true, then high/low would be really rarelly updated. And this is not the case. Once asked for data those (high/low) get streamed, most of the time. Ok, it could be that for high/low there is an exception 2. In real env I often see?lastTimestamp missing (timestamp of the last trade) yet the price is present. For me it points to that "timestamp" stream got dropped by IB somehow in this case.? Of course, the way API is setup we should not expect a perfect synchronicity here. but not getting within 20 seconds a timestamp is really a bug and probably of the same nature as we discuss here.? 3. Another fact that points to optimization problem. In this test app one needs to run several loops to consitently see the problem. With the first loop is likelly to be fine, only in later loops the issues will pop up.? ? No updates from IB on the issue yet (I reported end of Nov). I keep asking for progress and they keep replying that "they cannot repeat the issue". I of course sent all the test code and tips and tricks...?
I keep wondering, since IB is silint of the issue I have no other choice but to continue guessing that this is an "optimization went wrong". Makes me wonder (untill IB proves otherwise): what els is not stable in 10.30? Like if you "push API too much you might only get a fraction of you account reported or you order will not be posted"-
|
Re: reqMktData callbacks are missing data with gateway 10.30 and 10.31 sporadically, works fine with 10.19 and older gateways/TWS
jy.yngbld@...,
1. first loop of the test not always gives the errors. If you run several loops, then it is more likelly to repeat the issue Program_get_bid.py -f symbols.csv -m REALTIME --data-lines 75 --loops 5 --port 4001
2. "I noticed that I don't have any output files from this script." if you scroll in this discussions, the very first message has the app which outputs much more?
3. "I am on TWS 10.30.1, did you recently update to 10.30 or have you been fighting with this for a while?" I had this issue for more than 2 months now. Ever since 10.30 was promoted to "stable". I updated and immidiatelly run into this. |
Problems with " error advancedOrderRejectJson" Using version API_Version=10.33.01 from December 2024.
Using version ?API_Version=10.33.01 ?from December 2024.
1. ? ? ? decoder.py uses ?" self.wrapper.error(reqId, errorTime, errorCode, errorString, advancedOrderRejectJson)" ?
Instead, it does not use the argument ""advancedOrderRejectJson":
2. ? ? ? client.py in 238 lines ""self.wrapper.error(reqId, currentTimeMillis(), NOT_CONNECTED.code(), NOT_CONNECTED.msg())"" ?
3. ? ? ? connection.py in 2 lines does not use "" advancedOrderRejectJson"""
?
This topic is confusing and several problems emerge in error scenarios.
|
How to identify futures orders placed by ATS
TWS sent a notification to complete a task saying that US futures exchanges require brokers to identify orders placed by automated systems.?
How do you mark order as ATS??
Is there a field for this, like tag??
?
|
About python threading
for example i want create one client, and request two or more contract history data, this is wrong way?
```
app = Client() ```
the app can not disconnect
?
so i write like this:
```
for row in ['AAPL','GOOG']: ```
then i disconnect on historicalDataEnd function, then it is work fine.
?
so my question is, one client only can do one thing?
? |
Re: Fee Rate via API
Not sure whether it works for FEE_RATE (you could easily try it), but has parameter keepUpToDate that, if set to TRUE, continues sending you real-time-like updates after the initial historical bars have been delivered. There are a few caveats (such as you may have to resubscribe under certain conditions and you might get multiple partial updates in some periods), but you should be able to create a reliable regular update service (say once a minute) assuming updates are available for FEE_RATE. 闯ü谤驳别苍 ? On Fri, Jan 3, 2025 at 01:04 PM, Scott Kister wrote:
|
Re: Fee Rate via API
Thanks for the pointer, I was able to get that to work. I was hoping I could just use a market data subscription to keep it up-to-date as with shares available to short. It seems very odd that they only provide historical data for fee rate and not the current value, but at least the data is available via the API, I can request a 1-minute bar from the last minute. |
Fee Rate via API
Is the hard to borrow fee available via the API? It is vieable in TWS under Short Selling -> Fee Rate
ib.reqMktData(contract, tick_list=236) returns the number of shares available to short, but doesn't return the fee rate. I know it is available via FTP, but sometimes it is missing there and I would prefer to keep it up-to-date via the API. I tried searching the docs, but was unable to find it. |
Re: reqMktData subscription is not continuous
toggle quoted message
Show quoted text
-------- Original message -------- From: "Andy Sanders via groups.io" <arteinvolo@...> Date: 2024-12-28 9:29 a.m. (GMT-08:00) Subject: Re: [TWS API] reqMktData subscription is not continuous Appeared to be that was some glitch with paper account. Liver data feed works fine.?
|
Re: Question on nextValidId function
thanks again 闯ü谤驳别苍, everything is clearer now, complicated as you said, but clearer :) BR, Marco On Sat, Dec 28, 2024 at 4:48?AM 闯ü谤驳别苍 Reinold via <TwsApiOnGroupsIo=[email protected]> wrote:
|