fxcm / ForexConnectAPI

Designed to trade, retrieve live/history price. Intended to be used to build auto-trading robots, custom trading on FXCM accounts.
132 stars 47 forks source link

Login Fail. Server issues? #21

Open jimmylai-hk opened 11 months ago

jimmylai-hk commented 11 months ago

I'm able to login FXCM trade station with the ACCOUNT_ID and password.

However, I cannot login using the code below using the same ACCOUNT_ID and password.

The same code can be run yesterday without any problem. What's the issue?

def session_status_changed(session: fxcorepy.O2GSession, status: fxcorepy.AO2GSessionStatus.O2GSessionStatus): print("Trading session status: " + str(status))

def init_forexconnect(fx, ACCOUNT_ID, PASSWORD): fx.login(ACCOUNT_ID, PASSWORD, "fxcorporate.com/Hosts.jsp", "DEMO", session_status_callback=session_status_changed)

with ForexConnect() as fx: init_forexconnect(fx, ACCOUNT_ID,PASSWORD) print(f"Success")

fxcm-dhalpert commented 11 months ago

To login please use the username no account ID.

Maxim-Fil commented 11 months ago

I have the same problem - module write "User or connection doesn't exist"