2.12Framework.Environment object

The Framework.Environment object contains information about the MyTrader environment:

Property

Description

deviceId

Unique ID for the user's device. See below.

loginSessionId

Unique ID for the current logged-in session. Changes each time that the user logs in to an account. (Therefore, not persistent across a browser session where the user logs in and out of accounts.)

hasMailSystem

Describes whether MyTrader's internal mail system is available in this version of the platform

hasCalendar

Describes whether an economic calendar is available in this version of the platform

The deviceId uniquely identifies a device such a web browser. The deviceId is "persistent" but not truly "permanent":

It will be different for each web browser - Chrome, Safari etc - on a single computer.

It will be different for an incognito/private browser window versus a normal window (and different each time an incognito session is opened)

If the user uninstalls and reinstalls the mobile app, the deviceId will change

This deviceId in Framework.Environment is (deliberately) not the identifier for the device in the MyTrader mail system. The mail ID cannot be discovered programmatically by a widget, script, or UDIX.