commentsCommunication

Nexo consists of three AI agents (1, 2, 3) that communicate via RESTfularrow-up-right API endpoints using JSON payloads. This allows them to exchange trade instructions, execution results, and performance feedback in a structured, scalable manner.

Nexo’s AI agents communicate in a loop.

Agent 1Agent 2: Provides feedback for strategy optimization.

Endpoint: POST /strategy_feedback (Agent 2)

Purpose: Agent 1 analyzes trade performance and sends feedback to Agent 2, suggesting optimizations for future trades.

Description: Agent 1 evaluates execution speed, slippage impact, and market conditions to refine trade parameters for Agent 2.


Agent 2Agent 3: Sends trade instructions.

Endpoint: POST /execute_trade (Agent 3)

Purpose: Agent 2 sends trade instructions to Agent 3 for execution.

Description: Agent 2 analyzes on-chain trends (DEX volume, social sentiment, liquidity pools, ...) and sends trade instructions to Agent 3. Slippage tolerance is set to avoid bad fills in volatile markets.


Agent 3Agent 1: Reports trade execution results.

Endpoint: POST /trade_report (Agent 1)

Purpose: Agent 3 confirms the trade execution and reports key details.

Description: After submitting the transaction on Solana, Agent 3 tracks its execution, logs trade details, and reports the final price to Agent 1.


Last updated