hackingthemarkets / interactive-brokers-web-api

A docker container and flask app for use with the Interactive Brokers Web API 1.0
Apache License 2.0
64 stars 38 forks source link

cannot make client portal api work in cloud vps #2

Open k4rajers opened 1 month ago

k4rajers commented 1 month ago

image

I get access denied when trying to access the cloud endpoint like https://cloudvps-ip:5055

Then i tried to add my public ip address in the conf.yaml file like below:

ips: allow:

After this change i was able to access the login endpoint https://cloudvps-ip:5055/sso/Login?forwardTo=22&RL=1&ip2loc=US and got the screen like in the below snapshot

image (5)

There is one specific endpoint which fails with 403 https://cloudvps-ip:5055/portal.proxy/v1/gstat/bulletins as seen in the networks requests. I am not sure how important or significant this is.

And, then when i tried to login with my credentials i get redirected to https://cloudvps-ip:5055/sso/Dispatcher like show in the below snapshot

image (6)

Ideally i should have seen page with "client login succeeds".

I think https://cloudvps-ip:5055/portal.proxy/v1/gstat/bulletins is vital to make this work.

k4rajers commented 1 month ago

There is a related reddit thread https://www.reddit.com/r/interactivebrokers/comments/165fufn/cant_host_ib_client_portal_web_api_on_a_remote

seems like it is really hard to run the client portal api in vps server.

There is not much of a value in terms of automation if we cannot host this on vps server.

k4rajers commented 1 month ago

Related issue https://github.com/Voyz/ibeam/issues/155

Maybe not be directly related coz ibeam uses selenium

But no clear solution on how to properly host in cloud.