i am trying t o get realTimeBars for SPX. I have the below snippet of code ,?
?Contract contract = new Contract();
contract.symbol("SPY");
contract.secType("STK");
contract.currency("USD");
contract.exchange("SMART");
contract.primaryExch("ISLAND");
m_client.reqRealTimeBars(3010, contract, 5, "TRADES", false, null);
but when executed it throws the following error?
Error. Id: 3010, Code: 420, Msg: Invalid Real-time Query:No data of type DayChart is available for the exchange 'SMART' and the security type 'Index'' and '5 secs'
I am able to fetch historical quotes for SPX , also have tried realTimeBars for other stocks/symbols. Only while trying to pull spx real time bars i am hitting this issue.?
Has any one tried this before? am i missing something??