MngGetGatewayRuntime¶
Returns process, transport and provider state for one active gateway runtime. Requires SESSION_ADMIN.
HTTP: GET /gateway/:id/runtime
{"command":"MngGetGatewayRuntime","id":1}
{"runtime":{"gateway_id":1,"state":"READY","state_id":6,"pid":32145,"local_port":41763,"instance_id":"gw-1-a12b34cd","provider_state":"READY","config_version":3,"sent_sequence":2,"received_sequence":18,"started_at":1785300000,"connected_at":1785300001,"ready_at":1785300001,"last_heartbeat_at":1785300018,"last_exit_at":0,"last_exit_code":0,"restart_count":0,"last_error":"","symbols":[{"source":"EURUSD","target":"EURUSD","min_lot":0.01,"max_lot":100.0,"lot_step":0.01}]}}
Returns RET_NOT_FOUND when no runtime context exists, including a configured gateway that is disabled or was manually stopped.
local_port is the actual port used by the current process. It is especially important when the configuration uses port: 0.
symbols contains the specifications confirmed by the running gateway, not a copy read directly from provider_config. It is empty until the provider reaches READY and is cleared after a restart or invalid provider-state response.