Interacting With Agents

Follow the steps below to test and interact with trading agents using predefined commands via the Agent Chat interface.

  1. Select the Agents tab from the top Navbar to access the Agent Chat interface.

  2. You will see an input box where you can interact directly with the Agent.


# Steps to Test the Agent

  1. Navigate to the Agent section

  1. In the chat input box, enter the query for one of the supported commands listed below:

  • Deposit

  • Withdraw Assets

  • Close Position

  • Open Position

  1. Provide the appropriate parameters for the command you're testing.


# Supported Commands and Parameters

Deposit

Command: I want to Deposit 100 USDC on Avalance Fuji Required Parameters:

export type DepositParams = {
  collateral?: number; 
  payToken?: string;
  chainName: string;
};

Example:

{
  "collateral": 100,
  "payToken": "USDC",
  "chainName": "Avalanche Fuji"
}

Withdraw Assets

Command: I want to withdraw 100 USDC on Avalance Fuji Required Parameters:

export type WithdrawParams = {
  withdrawAmount: string | null;
};

Example:

{
  "withdrawAmount": "100"
}

Close Position

Command: I want to close my position on ETH perp Required Parameters:

export type ClosePositionParams = {
  perpName: string | null;
};

Example:

{
  "perpName": "ETH/USD"
}

Open Position

Command: I want to open a long position on ETH perp with 100 usdc with 3x leverage Required Parameters:

export type PositionParams = {
  perpName?: string;
  leverage?: number;
  collateral?: number;
  positionType?: "long" | "short";
};

Example:

{
  "perpName": "ETH/USD",
  "leverage": 5,
  "collateral": 100,
  "positionType": "long",
}

Last updated