UnusualAlpha/ib-gateway-docker

READ_ONLY_API=no is not working

Opened this issue · 4 comments

i did start the container with READ_ONLY_API=no in the .env file and added READ_ONLY_API: ${READ_ONLY_API:-}
in the docker-compose.yml

however in the container, this isn't reflected

root@1253ca273743:~# cat /root/ibc/config.ini|grep ReadOnlyApi=
ReadOnlyApi=

@qubolino thanks for your report. I'll try to solve that soon.

Oli2 commented

Hello,
I encountered the same issue. Strangely enough, even if I manually change READ_ONLY_API=no in the config file inside the container, I am still getting the following error message.
Error 321, reqId 2147483647: Error validating request.-'cB' : cause - The API interface is currently in Read-Only mode. Error 321, reqId -1: Error validating request.-'b_' : cause - The API interface is currently in Read-Only mode. open orders request timed out completed orders request timed out
A fix would be greatly appreciated.

Hi @qubolino and @Oli2, sorry for the delayed reply.
I tried to reproduce the problem but without success, what tag/version you are using? If you are using the stable or latest tags, please print also the image sha256 (docker images --digests).

I'm having the same issue on both latest and stable.

Error 321, reqId 2147483647: Error validating request.-'cB' : cause - The API interface is currently in Read-Only mode. Error 321, reqId -1: Error validating request.-'b_' : cause - The API interface is currently in Read-Only mode. open orders request timed out completed orders request timed out on ib.connect()

Result of docker images --digests:

ghcr.io/unusualalpha/ib-gateway         latest     sha256:1fd51ff4ecb3000569829b3ef31bfe4a0b4b0cf25f04c6ed31909944e8d8e289   c947285f9146   2 months ago   892MB
ghcr.io/unusualalpha/ib-gateway         stable     sha256:7d5c3e5d0e49197f7abeab871d6c48e43996de8177d7cac2262cba0795367603   b9f3bc2748cd   2 months ago   892MB

Thanks for your work!