After running the following code:
//IB's main object
var ibClient = new EWrapperExt(this);
//Connect
ibClient.ClientSocket.eConnect("127.0.0.1", 7496, 0);
var contractAAPL = new Contract
{
Symbol = "AAPL",
SecType = "STK",
Currency = "USD",
Exchange = "Smart"
};
//Invoke IB's ClientSocket's data request
ibClient.ClientSocket.reqMktData(1, contractAAPL, "", false, null);
I am getting the following error:
Error. Id: 1, Code: 354, Msg: Requested market data is not subscribed.Error&BEST/STK/Top&BEST/STK/Top
I am using the Interactive Brokers (IB) free trial account. Is there something else I need to do with my code or do I actually have to pay IB for this sort of market data?