Strategies
Strategies define high-level plans—like DeFi trading or data analytics—that guide agents to achieve specific goals. They encapsulate goals, parameters, and logic for optimized decision-making.
Retrieve a list of available strategies for agents, including DeFi trading, data analytics, or other specialized tasks.
List of strategies retrieved successfully.
Server error while listing strategies.
GET /v1/strategies HTTP/1.1
Host: api.aver.co
Accept: */*
[
{
"id": "strategy_98765",
"title": "Crypto Arbitrage",
"description": "Arbitrage strategy between different DeFi protocols."
}
]
Add a new strategy that can be linked to one or more agents.
Strategy created successfully.
Invalid request data or missing required fields.
Server error while creating strategy.
POST /v1/strategies HTTP/1.1
Host: api.aver.co
Content-Type: application/json
Accept: */*
Content-Length: 37
{
"title": "text",
"description": "text"
}
{
"id": "strategy_98765",
"title": "Crypto Arbitrage",
"description": "Arbitrage strategy between different DeFi protocols."
}
Retrieve details of a specific strategy, including its parameters and associated agents.
The unique identifier of the strategy.
Strategy details retrieved successfully.
Strategy not found.
Server error while retrieving the strategy.
GET /v1/strategies/{id} HTTP/1.1
Host: api.aver.co
Accept: */*
{
"id": "strategy_98765",
"title": "Crypto Arbitrage",
"description": "Arbitrage strategy between different DeFi protocols."
}
Modify the parameters or description of an existing strategy.
The unique identifier of the strategy.
Strategy updated successfully.
Invalid update payload.
Strategy not found.
Server error while updating the strategy.
PATCH /v1/strategies/{id} HTTP/1.1
Host: api.aver.co
Content-Type: application/json
Accept: */*
Content-Length: 37
{
"title": "text",
"description": "text"
}
{
"id": "strategy_98765",
"title": "Crypto Arbitrage",
"description": "Arbitrage strategy between different DeFi protocols."
}
Remove a strategy by its unique identifier.
The unique identifier of the strategy.
Strategy deleted successfully. No content in response.
No content
Strategy not found.
Server error while deleting the strategy.
DELETE /v1/strategies/{id} HTTP/1.1
Host: api.aver.co
Accept: */*
No content
Last updated