LogoLogo
Go to website
  • Getting Started
    • Introduction
    • Vision & Milestones
  • Aver Protocol
    • Drag & Drop AI Agent Builder
    • Architecture
    • Use Cases
    • Tokenize & Launch Your Agents
    • Roadmap
    • Tokenomics
  • API REFERENCE
    • Agents
    • Strategies
    • Functions
Powered by GitBook
On this page
  1. API REFERENCE

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.

PreviousAgentsNextFunctions

Last updated 5 months ago

Fetch strategy by ID

get

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."
}

Delete a strategy

delete

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

  • GETList strategies
  • POSTCreate a new strategy
  • GETFetch strategy by ID
  • PATCHUpdate a strategy
  • DELETEDelete a strategy

List strategies

get

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."
  }
]

Create a new strategy

post

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."
}

Update a strategy

patch

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."
}