ib-gateway-docker icon indicating copy to clipboard operation
ib-gateway-docker copied to clipboard

READ_ONLY_API=no is not working

Open qubolino opened this issue 2 years ago • 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 avatar Dec 21 '22 16:12 qubolino

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

efernandesng avatar Dec 22 '22 23:12 efernandesng

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.

Oli2 avatar Jan 03 '23 19:01 Oli2

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).

efernandesng avatar Jan 08 '23 15:01 efernandesng

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!

tsa31584 avatar Apr 05 '23 19:04 tsa31584