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.
Responses
200
List of strategies retrieved successfully.
application/json
500
Server error while listing strategies.
get
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.
Body
titlestringRequired
descriptionstringOptional
Responses
201
Strategy created successfully.
application/json
400
Invalid request data or missing required fields.
500
Server error while creating strategy.
post
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.
Path parameters
idstringRequired
The unique identifier of the strategy.
Responses
200
Strategy details retrieved successfully.
application/json
404
Strategy not found.
500
Server error while retrieving the strategy.
get
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.
Path parameters
idstringRequired
The unique identifier of the strategy.
Body
titlestringOptional
descriptionstringOptional
Responses
200
Strategy updated successfully.
application/json
400
Invalid update payload.
404
Strategy not found.
500
Server error while updating the strategy.
patch
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.
Path parameters
idstringRequired
The unique identifier of the strategy.
Responses
204
Strategy deleted successfully. No content in response.
404
Strategy not found.
500
Server error while deleting the strategy.
delete
DELETE /v1/strategies/{id} HTTP/1.1
Host: api.aver.co
Accept: */*
No content
Last updated