Perform a Sell
POST/agent/sell/:agent_id/:ca/:quantity/
Create a sell instruction for Agent. The agent's ID (agent_id) should be
provided in the path parameter. Along with the ca (contract address) and the quantity to be sold.
Quantity can be either all or a number > 0. Quantity is the amount of tokens
to sell (in lamports for Solana or wei for Base). If all is provided, all tokens will be sold.
This call simply schedules the sell. The actual sell will be executed asynchronously. The response will contain the task ID which can be used to check the status of the task.
To check status of the task, use the /task/status/{task_id}/ endpoint.
Request
Responses
- 200
- 422
Successful Response
Validation Error