2.2Framework objects

The Framework object contains the following sub-objects describing the current MyTrader environment:

Object

Description

Account

The trading account which MyTrader is currently logged into. Availability of some features in the framework depends on the functionality provided by the broker account, and reported in the account's features.

Environment

Contains a persistent identifier for the client's browser/app

Translation

Contains functions for translating variables into the user's currently selected language

Theme

Contains information about the user's selected graphical theme for the software (e.g. light, dark)

There is also a class which is widely used as a response from actions such as trading requests and dialogs:

Object

Description

FXB.Result

Standard response/error object