Check a trade against every Canton venue at that time
check_tradeWas a trade well executed? Give the token sold and bought, the amount sold, the amount received, the time (ISO such as 2026-10-27T18:05:00Z, or unix seconds) and optionally the venue. The trade is priced again on every venue from the pool reserves and order books read at the five-minute ticks either side of it (archive since 27 Oct 2026), by the same code as quote(), after network fees. Returns the venue that returned the most, how far the trade fell short of it in basis points (at the reading least favourable to that), and with venue given, how much of the gap was the choice of venue and how much the fill itself. Nothing is executed or stored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buy | Yes | Symbol of the token bought, e.g. USDCx | |
| sell | Yes | Symbol of the token sold, e.g. CC | |
| time | Yes | When the trade ran: ISO 8601 such as 2026-10-27T18:05:00Z, or unix seconds; the archive starts 27 Oct 2026 21:01 UTC | |
| venue | No | Optional: the venue it ran on, e.g. cantex, tradecraft, oneswap, temple, rocky or poolparty | |
| amount_in | Yes | How much of the sold token went in, in its own units | |
| amount_out | Yes | How much of the bought token came back, in its own units |