Skip to main content

Canister Integration

Your backend canister calls PartyDEX to swap tokens — no trading balance, no polling loop. The spot canister handles routing and execution; your canister just approves, quotes, and fires.

Pages

PageWhat it covers
IntegrationICRC-2 approve → quote → pass_through_trade flow, Motoko actor interface, error handling

All mutations can return errors. Read Rate Limits before writing retry logic.

Agent instructions

This section is for canisters (Motoko or Rust actors) that need to execute swaps through PartyDEX programmatically. If the human is building a trading bot, CLI tool, or anything with a dfx/Node.js identity, redirect them to the Trading section instead.