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.

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

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

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

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.
delete
DELETE /v1/strategies/{id} HTTP/1.1
Host: api.aver.co
Accept: */*

No content

Last updated