Skip to content

MngAddVirtualDealerPolicy

Creates a Virtual Dealer policy and publishes a new runtime snapshot. Requires SESSION_ADMIN.

HTTP: POST /dealing/virtual-dealer/policy

{
  "command":"MngAddVirtualDealerPolicy",
  "name":"Default virtual dealer",
  "description":"Automatic execution policy",
  "enabled":true,
  "volume_min":0,
  "volume_max":10000,
  "max_spread_points":50,
  "max_price_deviation_points":30,
  "failure_action":"NEXT_STEP"
}

The response contains the complete created policy object, including its assigned id, created_at, and updated_at.

name is required and must be unique. All numeric limits must be non-negative. A non-zero volume_max cannot be less than volume_min. failure_action accepts only NEXT_STEP or REJECT.