开云体育

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

TWS Gateway: Requested market data is not subscribed


 

I am trying to get market data (reqMktData) for IBM. I define a contract like this:

contract = Contract()
contract.symbol = "IBM"
contract.secType = "STK"
contract.currency = "USD"
contract.exchange = "NYSE"
contract.primaryExchange = "NYSE"
I then connect to the gateway I got running:
app = TwsApp()
app.connect(host='localhost', port=4002, clientId=23)
app.reqMktData(1, contract, '', False, False, [])
From the gateway, I keep getting:

17:38:12:884 -> ---9-1-1-
17:38:12:945 -> ---54-2--1-2104-Market data farm connection is OK:usfarm-
17:38:12:947 -> ---34-2--1-2106-HMDS data farm connection is OK:ushmds-
17:38:12:951 -> ---84-2--1-2158-Sec-def data farm connection is OK:secdefil-
17:38:12:970 <- 1-11-1-0-IBM-STK--0.0---NYSE-NYSE-USD---0--0-0--
17:38:13:408 -> ---54-2--1-2119-Market data farm is connecting:usfarm.nj-
17:38:14:562 -> ---84-2--1-2104-Market data farm connection is OK:usfarm.nj-
17:38:15:049 -> ---d4-2-1-354-Requested market data is not subscribed.Delayed market data is available.IBM NYSE/TOP/ALL-

I'm logged in with the paper account on the gateway. Is that what causes this? Or have I misunderstood something with subscriptions? I am subscribed to?NYSE (Network A/CTA) - Trader Workstation (in addition to all the GFIS subscription for which fees have been waived for non-pros).

Join [email protected] to automatically receive all group messages.