MngClaimDealerRequest¶
Atomically assigns a PENDING request to the current session login and changes its status to CLAIMED. The dealer must belong to the request's pool.
HTTP: POST /dealing/request/claim
{"command":"MngClaimDealerRequest","id":42}
The response contains the updated request:
{"request":{"id":42,"operation":0,"login":10001,"order":70001,"symbol":"EURUSD","cmd":0,"volume":100,"route_id":1,"route_step_position":0,"dealer_pool_id":3,"status":1,"assigned_dealer_login":1001,"created_at":1785300000,"deadline_at":1785300030,"completed_at":0,"execution_result":0,"dealer_comment":""}}
The claim fails when the request is expired, already claimed, or no longer pending.