Quotes

Free live quote comparison: best full-size venue quote vs a sliced execution estimate

POST/v1/quotes

Unauthenticated and free (edge rate-limited). Every number derives from live venue quote APIs at request time. The sliced figure comes from the SAME planner that executes intents, run in its preview mode: one extra small quote from the winning venue measures price impact, the planner sizes slices against half the stated slippage budget, and it may return one slice or refuse outright. It is an estimate, never a promise.

Request body

  • chain_id integer
  • sell_token string (required)
  • buy_token string (required)
  • sell_amount string (required)

Responses

200Live comparison

  • chain_id integer (required)
  • sell_token string (required)
  • buy_token string (required)
  • sell_amount string (required)
  • quoted_at object (required)
  • full_size object (required)
  • sliced_plan object,null (required)
  • expected_savings object,null (required)
  • planner_abort object,null (required)
  • assumed_max_slippage_bps integer (required)
  • metered_fee object (required)

400Invalid request or unsupported chain
502No venue answered

Example

curl -X POST https://api.cofferline.com/v1/quotes \
  -H "content-type: application/json" \
  -d '{"sell_token":"…","buy_token":"…","sell_amount":"…"}'