check_constraint
Calculate price-bound violations and basket economics for supplied quotes and a relation, returning best basket, fees, and net edge for hypothetical or historical prices.
Instructions
Calculate a price-bound violation and basket economics conditional on the relation you supply.
A pure calculation with no network calls: use it for hypothetical or
historical prices, and use check_constraint_live to fetch current quotes
instead. Returns violated, profitable_after_fees, the best basket (legs,
cost, conditional payoff bound, fees, gross and net edge), every candidate basket,
any missing quotes, and the assumptions behind the check (full fills at the
quoted prices, a correctly specified relation). The assessment object marks
relation_verified=false, execution_verified=false and conditional_on_relation=true:
this tool does not verify resolution rules, order-book depth or full fills.
Quote prices must be finite and in [0, 1]; prices used to calculate fees must
be strictly between 0 and 1. Each (venue, market_id) must be unique.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"relation": "<relation>",
"quotes": "<quotes>"
},
"name": "check_constraint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maker | No | Price fees as resting maker orders instead of taker orders (default false). Maker fees are lower or zero, but a resting order may not fill. | |
| quotes | Yes | One quote per contract, in the order the relation expects: implication (A, B) where A implies B; complement and same_event (A, B); exclusivity and event_sum every outcome. | |
| relation | Yes | Bound to test: implication (A implies B, so P(A) <= P(B)), exclusivity (at most one outcome happens), complement (exactly one of two), same_event (one event quoted on two venues) or event_sum (exactly one of n). See list_relation_types. | |
| contracts | No | Finite, positive contracts bought on every leg (default 1). Fees scale with size. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||