qtpylib icon indicating copy to clipboard operation
qtpylib copied to clipboard

read-only API mode

Open js333031 opened this issue 6 years ago • 0 comments

I set my IB API settings to be in read-only mode and tried the "Writing your Blotter" script on https://qtpylib.io/docs/latest/blotter.html. TWS pops up a message that "an API client is attempting to send a request that needs API write access."

Is there way to use qtpylib w/IB API set in read-only mode? I would like to get historical and real-time market data and not execute orders via qtpylib.

Output of the python app is: 2019-05-16 09:15:10,688 [INFO] qtpylib.blotter: Connecting to Interactive Brokers... Server Version: 76 TWS Time at connection:20190516 09:15:09 EST 2019-05-16 09:15:12,742 [INFO] qtpylib.blotter: Connection established... 2019-05-16 09:15:13,987 [INFO] qtpylib.blotter: Contract Added [AAPL] 2019-05-16 09:15:34,478 [ERROR] qtpylib.blotter: [IB #321] Error validating request:-'cp' : cause - The API interface is currently in Read-Only mode. 2019-05-16 09:15:34,577 [ERROR] qtpylib.blotter: [IB #10092] Deep market data is not supported for this combination of security type/exchange

js333031 avatar May 16 '19 13:05 js333031