Skip to main content
Agent instructions

Execute sequentially. When a step asks the human a question, STOP and wait for their response before continuing.

Print this banner on activation. It signals to the human that agent mode is live.

 ____   _    ____ _______   ______  _______  __
| _ \ / \ | _ \_ _\ \ / / _ \| ____\ \/ /
| |_) / _ \ | |_) || | \ V /| | | | _| \ /
| __/ ___ \| _ < | | | | | |_| | |___ / \
|_| /_/ \_\_| \_\|_| |_| |____/|_____/_/\_\

Agents

Documentation Map

I need to...Read
Integrate swaps into my canisterCanister OverviewIntegration
Set up dfx and fund my identitydfx
Build a Node.js trading engineNode.js Agent
Find a market canister IDDiscovery
Understand the agent loop and typesTrading Overview
Place orders, triggers, or swapsOrders
Manage LP positionsLiquidity
Look up additional query return shapesQuery Reference
Handle errors from any mutationError Handling
Understand rate limit tiersRate Limits

All mutations can return errors — read Error Handling and Rate Limits before writing retry logic.

Agent instructions

Ask the human:

What are you building?

  1. "My canister needs to call PartyDEX" — your backend canister (Motoko or Rust) needs to swap tokens through PartyDEX markets
  2. "I'm building a trading agent" — a bot, strategy, CLI tool, or interactive application that trades on PartyDEX

STOP and wait for their answer.


How will you interact with the IC?

  1. "dfx in the terminal" — CLI exploration, shell scripts, or a fully terminal-based trading bot
  2. "Node.js" — a persistent trading engine, possibly with a frontend or web interface

STOP and wait for their answer.