madeinQuant
madeinQuant

Reputation: 1813

IBrokers error message (354 Requested market data is not subscribed.AAPL NASDAQ.NMS/TOP/ALL )

I try to connect TWS(A trading application of Interactive Broker) with a testing script in R.

library (IBrokers)
tws <- twsConnect()
aapl.csv <- file("AAPL.csv", open="w")
reqMktData (tws, twsSTK("AAPL"), eventWrapper = eWrapper.MktData.CSV(1), file = aapl.csv)

close(aapl.csv)
close(two)

I got error messages. I can retrieve historical data "AAPL" from TWS successfully. Please advise what wrong with the program.

2 -1 2104 Market data farm connection is OK:hfarm 
2 -1 2104 Market data farm connection is OK:jfarm 
2 -1 2104 Market data farm connection is OK:eufarm 
2 -1 2104 Market data farm connection is OK:usfuture 
2 -1 2104 Market data farm connection is OK:cashfarm 
2 -1 2104 Market data farm connection is OK:usfarm.us 
2 -1 2104 Market data farm connection is OK:usfarm 
2 -1 2106 HMDS data farm connection is OK:ilhmds 
2 -1 2106 HMDS data farm connection is OK:fundfarm 
2 -1 2106 HMDS data farm connection is OK:ethmds 
2 -1 2106 HMDS data farm connection is OK:ushmds 
2 1 354 Requested market data is not subscribed.AAPL NASDAQ.NMS/TOP/ALL 

Thank you.

Upvotes: 2

Views: 3219

Answers (1)

Scott Wagemann
Scott Wagemann

Reputation: 56

The subscriptions on the paper account mirror the subscriptions on the live account. Here are a few things that could cause that error:

1.You are not paying for the Nasdaq subscription on your live account.

2.Your live account is currently using the subscription and you're trying to request the data on your paper account. You can't do both.

Upvotes: 2

Related Questions