运行以下代码后:
//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);
我收到以下错误:
Error. Id: 1, Code: 354, Msg: Requested market data is not subscribed.Error&BEST/STK/Top&BEST/STK/Top
我正在使用盈透证券 (IB) 免费试用账户。我是否需要对我的代码做其他事情,或者我是否真的需要为此类市场数据向 IB 支付费用?