Maker fees history time series

Returns a paginated, time-bucketed series of the fees collected by the maker’s strategies in USD. Buckets are aligned to UTC by `granularity` and span the maker’s activity window (first strategy created to now, or to the last strategy closure). Scoped to specific chains via `chainId`; all chains are aggregated when omitted. Pagination cursors are bound to this endpoint and its request dimensions and are not interchangeable with the other history endpoints.

GEThttps://api.1inch.com/aqua/v1.0/strategies/makers/{address}/history/fees
Supported on:
EthereumBaseBNB ChainZKsyncGnosisOptimismPolygonLineaSonicUnichainRobinhoodArbitrumAvalanche

Parameters

address
* string path
granularity
string (Enum)query
sort
string (Enum)query
cursor
string query
limit
number query
chainId
array 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/makers/{address}/history/fees';

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

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

Returns

200
400
GetMakerHistoryFeesResponseDto object
items
* array
items
HistoryFeesBucketDto object
timestamp
* number
usd
* number
nextCursor
* string
prevCursor
* string
JSON
1
2
3
4
5
6
7
8
9
10
11
{
  "items": [
    {
      "timestamp": 1705276800,
      "usd": 123.456789
    }
  ],
  "nextCursor": "eyJtYWtlciI6IjB4Li4uIiwic29ydCI6ImRlc2MiLCJkaXJlY3Rpb24iOiJuZXh0In0",
  "prevCursor": "eyJtYWtlciI6IjB4Li4uIiwic29ydCI6ImRlc2MiLCJkaXJlY3Rpb24iOiJwcmV2In0"
}

Did you find what you need?