To perform any operation using ForexConnect API, you must log in to the FXCM server.
For a detailed step-by-step instruction on how to log in, see the Logging In article.
The following sample scripts are available at github:
- Login.py
This sample script shows how to log in and to log out.
- LoginWithToken.py
This sample script shows how to create a second trading session using an SSO token.