Initializes a new instance of the FTSession class.
FTSession configuration options.
OptionalemailOptionalmfaOptionalotpOptionalpasswordOptionalphoneOptionalpinOptionalprofileOptionaltBuilds the session headers and cookies from provided tokens.
Deletes the session cookies.
Returns the current session tokens (access_token, ftat, sid and cookies).
Finish the login process to the Firstrade platform when using email or phone MFA.
The MFA code provided by the user.
StaticmaskMasks the email for use in the API.
The email address to be masked.
The masked email address.
Class creating a session for Firstrade.
This class handles the creation and management of a session for logging into the Firstrade platform. It supports multi-factor authentication (MFA) and can save session cookies for persistent logins.