Validate Against Profile
validate_against_profileValidate a proposed order against trading profile constraints to detect violations before submission. Returns pass/fail status and a list of rule breaches.
Instructions
Check a proposed order against the agent's trading profile constraints. Returns passed=true and an empty violations list when the order is within limits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | Yes | ||
| account_id | No | ||
| profile_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | Side from the proposed order. | |
| passed | Yes | True if the order satisfies all profile constraints. | |
| symbol | Yes | Symbol from the proposed order. | |
| quantity | Yes | Quantity from the proposed order. | |
| profileId | Yes | Profile used for validation. | |
| violations | No | Constraint violations found. |