开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Cannot receive market data - it used to work before...


 

Hi,?
I have the following script:?
?
ticker = 'AAPL'
algo_params={AlgoParam.Z_THRESH: 3}
symbol = Symbol(ticker, 100, IbAsyncContractService.createContract(ticker, SecType.STOCK))
Algorithm = ZCalcAlgorithm(symbol, algo_params)
app.run_algo(Algorithm)
?
where run_algo function is just this:
?
def run_algo(self, algorithm: IAlgorithm):
? ? ? symbol = algorithm.symbol
? ? ? self.qualifyContracts(symbol.contract)
? ? ? self.reqMarketDataType(1)
? ? ? self.symbols[symbol.name] = symbol
? ? ? self.algos[symbol.name] = algorithm
? ? ? self.reqMktData(symbol.contract)

I receive the following error: (It has worked before)

Error 10089, reqId 130: Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.BA NYSE/TOP/ALL, contract: Stock(conId=4762, symbol='BA', exchange='SMART', primaryExchange='NYSE', currency='USD', localSymbol='BA', tradingClass='BA')

P.S. when I log in to my account using the web, I receive the attached massage (uploaded file) which disappears a moment later.?