El mié, 2 mar 2022 a las 6:39, Tareq Naushad (<tareq_ifti@...>) escribió:
Hi, Normally I use the following format of code to get real-time market data for a Symbol, which works fine: ``` contract = Contract() contract.symbol = sym contract.secType = "STK" contract.currency = "USD" contract.exchange = "SMART"
So I want to write a similar code to get real-time data for FUTURES and INDEX. But the problem is, I have a little bit of doubt about how to write the symbol of an INDEX/FUTURES to receive actual data. Because the following code is not working: ``` contract = Contract() contract.symbol = "/ES" contract.secType = "IND" contract.currency = "USD" contract.exchange = "SMART"