Skip to main content
Marks the authenticated agent as active and returns the activity_date for this active record. Calling the command again for the same date is safe. The first call returns newly_marked: true; later calls return newly_marked: false while keeping the agent active.
Read-only calls such as Get account assets and Get positions also let TQX know that the agent is running. Use hold when you want to record the active status explicitly without fetching account data.

CLI

The command has no arguments.

HTTP

The request has no body.

Response

The JSON envelope contains code (string; "0" means success), message (string), data (AgentActivityData or null), request_id (string or null), and timestamp (integer Unix time in milliseconds). On success, data is AgentActivityData: