开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: 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:

  • 25 contracts relate to "AMERICAN AIRLINES GROUP INC" (conid 139673266) for the various exchanges it is listed on
  • 5 contracts relate to "ANGLO AMERICAN PLC" (conid 45024954)
  • 1 contract is for "AVIAAM LEASING AB" (conid 285940697)

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,

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?

Join [email protected] to automatically receive all group messages.