Get strategy volume time series

Returns a paginated, time-bucketed USD incoming-volume series for a single strategy identified by `(chainId, maker, app, strategyHash)`. Buckets are aligned to UTC by `granularity` and span the strategy lifetime (from shipped block timestamp to docked block timestamp, or to `now()` while the strategy is still open).

GEThttps://api.1inch.com/aqua/v1.0/strategies/volume/{chainId}/{maker}/{app}/{strategyHash}
Supported on:
EthereumBaseBNB ChainPolygonLineaSonicUnichainRobinhood ChainArbitrumAvalancheZKsyncGnosisOptimism

Parameters

chainId
* number path
maker
* string path
app
* string path
strategyHash
* string path
granularity
string (Enum)query
sort
string (Enum)query
cursor
string query
limit
number query

Request Body

This request doesn’t have any request body.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
const axios = require('axios');

async function httpCall() {
  const url =
    'https://api.1inch.com/aqua/v1.0/strategies/volume/{chainId}/{maker}/{app}/{strategyHash}';

  const config = {
    headers: {
      Authorization: `Bearer ${API_KEY}`,
    },
    params: {
      limit: 10,
    },
    paramsSerializer: {
      indexes: null,
    },
  };

  try {
    const response = await axios.get(url, config);
    console.log(response.data);
  } catch (error) {
    console.error(error);
  }
}

Returns

GetStrategyVolumeResponseDto object
items
* array
items
StrategyVolumeDto object
timestamp
* number
volume
* any
allOf[0]
VolumeAmountDto object
usd
* number
total
* number
nextCursor
* string
prevCursor
* string
JSON
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
  "items": [
    {
      "timestamp": 1705276800,
      "volume": {
        "usd": 12345.678901
      }
    }
  ],
  "total": 1234,
  "nextCursor": "eyJjaGFpbklkIjoxLCJzb3J0IjoiZGVzYyIsImRpcmVjdGlvbiI6Im5leHQifQ",
  "prevCursor": "eyJjaGFpbklkIjoxLCJzb3J0IjoiZGVzYyIsImRpcmVjdGlvbiI6InByZXYifQ"
}

Did you find what you need?