Client information for registerClientInfo command.
Must match xStation5 format exactly for authentication to succeed. This identifies the client application to XTB servers.
const clientInfo: ClientInfo = { appName: 'xStation5', // default; configurable via WSClientConfig.appName appVersion: '2.94.1', // default; configurable via WSClientConfig.appVersion appBuildNumber: '0', device: 'Linux x86_64', // default; configurable via WSClientConfig.device osVersion: '', comment: 'Node.js WebSocket Client', apiVersion: '2.73.0', osType: 0, // 0 = Other/Linux deviceType: 1 // 1 = Desktop}; Copy
const clientInfo: ClientInfo = { appName: 'xStation5', // default; configurable via WSClientConfig.appName appVersion: '2.94.1', // default; configurable via WSClientConfig.appVersion appBuildNumber: '0', device: 'Linux x86_64', // default; configurable via WSClientConfig.device osVersion: '', comment: 'Node.js WebSocket Client', apiVersion: '2.73.0', osType: 0, // 0 = Other/Linux deviceType: 1 // 1 = Desktop};
API version
Build number
Application name (should be 'xStation5')
Application version
Optional comment
Device description
Device type (1=Desktop, 2=Mobile, 3=Tablet)
OS type (0=Other/Linux, 1=Windows, 2=Mac)
Operating system version
Client information for registerClientInfo command.
Must match xStation5 format exactly for authentication to succeed. This identifies the client application to XTB servers.
Example