Keyboard Shortcuts
Likes
Search
E-MINI reqTickByTick data parameters
fran
Hi everyone, I am having trouble getting the E-MINI ticker tick-by-tick data (specifically E-mini S&P 500; ESdec15'23(50) CME). I am trying to run this line of code:
Where the contract is described like this in another file: Contract ContractSamples::EMINI(){ ??? Contract contract; ?? ?contract.symbol = "ES"; ?? ?contract.secType = "FUT"; ?? ?contract.exchange = "CME"; ?? ?contract.currency = "USD"; ??? contract.localSymbol = "ESZ2"; ?? ?contract.lastTradeDateOrContractMonth = "202315"; ?? ?return contract; } I keep getting an error related to a non-existing ticker. I would appreciate any help/insight to solve this. |
¿ªÔÆÌåÓýlocalSymbol should be ¡°ESZ3¡±. What you¡¯ve got, ¡°ESZ2¡±, is for December 2022. ? ? From: [email protected] <[email protected]> On Behalf Of fran
Sent: Monday, November 20, 2023 8:51 PM To: [email protected] Subject: [TWS API] E-MINI reqTickByTick data parameters ? Hi everyone, I am having trouble getting the E-MINI ticker tick-by-tick data (specifically E-mini S&P 500; ESdec15'23(50) CME). I am trying to run this line of code:
|
When you specify localSymbol you don't have to provide lastTradeDateOrContractMonth as well. But if you do, they have to match. You set lastTradeDateOrContractMonth to "202315", which is not even a real date in the first place. I suggest you leave that field alone (that's what I do) or you'd have to provide the correct date of "20231215" ´³¨¹°ù²µ±ð²Ô Hi Richard, thank you for your answer. I tried your suggestion but I keep getting "Error. Id: 20004, Code: 200, Msg: No security definition has been found for the request". |
¿ªÔÆÌåÓýOops, sorry I didn¡¯t notice also that you have ? contract.lastTradeDateOrContractMonth = "202315"; ? This should be ¡°202312¡±, or ¡°20231215¡±. ? |