QuantConnect / Lean.Brokerages.InteractiveBrokers

InteractiveBrokers Brokerage Plugin
Apache License 2.0
27 stars 17 forks source link

Review Log In Process #109

Closed AlexCatarino closed 1 month ago

AlexCatarino commented 2 months ago

Expected Behavior

Informs users they didn't use the correct credentials.

Actual Behavior

We can see that IBAutomater doesn't move past the Log In window:

2024-04-29T18:13:48.5741860Z TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterOutputDataReceived(): Click button: [Log In]
2024-04-29T18:15:45.8683713Z TRACE:: MessagingCloud.HasSubscribers: False
2024-04-29T18:28:29.9922351Z TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterOutputDataReceived(): IB launcher log file: /QuantConnect/live/Jts/launcher.log

The problem is invalid user name:

 Loading IBGateway - Version: 1019 - Path: /QuantConnect/live/ibgateway - User: El Chavo del Ocho

when members use their real name instead of the username. E.g.

 Loading IBGateway - Version: 1019 - Path: /QuantConnect/live/ibgateway - User: chavito8

Potential Solution

N/A

Reproducing the Problem

Deploy to IB and use your real name as user name.

Checklist

jaredbroad commented 2 months ago

😬 seems a little tricky to detect this one reliably.

Martin-Molinero commented 2 months ago

When submitting a user name with spaces, the log in button is not even clickable, we could detect this specifically and report it back to the user as an error

image
tmills86 commented 1 month ago

Any invalid characters in the username, including capital letters, will grey out the login box