check_constraint
Test supplied prediction-market prices offline for no-arbitrage violations and find the cheapest basket that profits after fees.
Instructions
Check offline whether prices you supply violate a no-arbitrage relation, and price the cheapest exploiting basket after fees.
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, guaranteed payoff, 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).
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 | Contracts bought on every leg (default 1). Fees scale with size. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||