Keyboard Shortcuts
Likes
Search
No historical market data for AAL/STK@VALUE Last 1d
Hi Everyone,
I'm receiving this error callback when making an historical data request for AAL: "No historical market data for AAL/STK@VALUE Last 1d"? (error code 162) I can't work out what's going on!? I'm retrieving the contract object fresh before sending the reqHistoricalData request.? The exchange in the contract object is 'SMART' and primaryExchange is 'NASDAQ', but the error message seems to indicate AAL is looking at the VALUE exchange. TWS shows historical data for AAL in the last 1 D, so it's not clear why the API would say there is no data. Most of my historical data requests are working fine (with all the same request parameters, except the contract object) - though there are a handful of others (say 1 in 100) that are also giving the same error above. Can anyone help solve this? |
When you say "I'm retrieving the contract object fresh" are you talking about reqContractDetails? If so, how many contracts does the request return? When I ask for AAL:STOCK (no other fields initialized in the query contract) I get 31 contracts for three instruments:
Only that last contract for "AVIAAM LEASING AB" trades on the VALUE exchange. Any chance wires might get crossed and the historical data request sees that contract? Attached a quick CSV with the contracts I get. ´³¨¹°ù²µ±ð²Ô On Tue, Aug 2, 2022 at 12:02 AM, David Walker wrote:Hi Everyone, |
¿ªÔÆÌåÓýHi ´³¨¹°ù²µ±ð²Ô, ? Thanks I had a similar thought, but I traced the contract into the IB client class function and it is definitely submitting the AAL NASDAQ contract.? Here is the contract object as it is inside the reqHistoricalData function in the client class: ? {'comboLegs': None, 'comboLegsDescrip': '', 'conId': 139673266, 'currency': 'USD', 'deltaNeutralContract': None, 'exchange': 'SMART', 'includeExpired': False, 'lastTradeDateOrContractMonth': '', 'localSymbol': 'AAL', 'multiplier': '', 'primaryExchange': 'NASDAQ', 'right': '', 'secId': '', 'secIdType': '', 'secType': 'STK', 'strike': 0.0, 'symbol': 'AAL', 'tradingClass': 'NMS'} ? The conId matches the correct NASDAQ AAL conId on IB¡¯s website.? The conId of the VALUE hosted instrument is 285940697, so it¡¯s hard to see the crossover happening on IB¡¯s side. ? In response to the request with the contract above, the same error is produced: ¡°162 Historical Market Data Service error message:No historical market data for AAL/STK@VALUE Last 1d¡± ? Could you to make an identical request with the exact contract above and see if you receive the same error?? ? Dave ? ? ? From: [email protected] <[email protected]> On Behalf Of ´³¨¹°ù²µ±ð²Ô Reinold via groups.io
Sent: Tuesday, 2 August 2022 4:35 PM To: [email protected] Subject: Re: [TWS API] No historical market data for AAL/STK@VALUE Last 1d ? When you say "I'm retrieving the contract object fresh" are you talking about reqContractDetails? If so, how many contracts does the request return? When I ask for AAL:STOCK (no other fields initialized in the query contract) I get 31 contracts for three instruments:
Only that last contract for "AVIAAM LEASING AB" trades on the VALUE exchange. Any chance wires might get crossed and the historical data request sees that contract? Attached a quick CSV with the contracts I get. ´³¨¹°ù²µ±ð²Ô On Tue, Aug 2, 2022 at 12:02 AM, David Walker wrote:
|
You caught yourself a good one here, David. I am sure our environments are different enough that we get (at least) slightly different results. I am running tests in a paper account, TWS 10.16.1n and a pretty odd Java API 9.85.02 (that is version 161). In that context, requesting historical data for AAL/STK/SMART/NASDAQ works as expected and without any issues. BUT ... Before requesting historical data, our down-loader grabs the head timestamp as described in . And that throws an error similar to what you get. The interesting part is that the error tracks with the value I use for the "exchange" field in the contract: Error when exchange="SMART" 19:43:51:211 <- 87-10000002-139673266-AAL-STK--0.0---SMART-NASDAQ-USD-AAL-NMS-0-1-TRADES-2- No error when "exchange" is one of the legitimate real exchanges for AAL, here for example "NYSE": 19:56:05:306 <- 87-10000002-139673266-AAL-STK--0.0---NYSE-NASDAQ-USD-AAL-NMS-0-1-TRADES-2- Maybe you can try to grab historical data for NYSE/NASDAQ yourself (instead of SMART/NASDAQ). If that works it would probably be something you want to raise with IBKR support. ´³¨¹°ù²µ±ð²Ô On Tue, Aug 2, 2022 at 05:42 PM, David Walker wrote:
|
I noticed this as well with AAL and some others.? Just using the basic twsactivex sample spreadsheet, it works e.g. "ADJUSTED_LAST" but only if the duration, in this case, is less than 8 Y, anything more and I get the error...? Which is weird, right?!? Because for others, if say 15 Y and IPO is in 2012, it just returns the data from 2012 on, no problem.
|
AAL merged with LCC, so I think the earliest point in data refers to LCC instead, which is of course delisted now. This seems to be an IBKR issue quite clearly.
Data problems are a plenty now it seems. For example, I cannot get any tickByTick data for ABNB for example, whether specifying the primary exchange or not. |
Get same issue using exchange="SMART" , But as you point it out it works when exchange = primaryExchange. IMHO How did IB compound a bar across multiple exchange ? Suggestion for this thread |
Maybe a different issue Try emptying the contract, (including symbol) |