markets

Individual AMM rebalance trades.

One row per AMM rebalance. feeRateRaw is a 1e18 rate, not an amount — never sum it. Newest first; isDesc and sortBy=date|amount change it. New rows only prepend, so dedupe on id while paging. minAmountUsd drops priced rows under the given threshold ($0.1, $1, $100, $1000, $10000, $100000, $1000000); totalCount follows it. A row with a real amount and no USD value is kept whatever the threshold — unpriced is not filtered, and ranks at zero. Omitting marketIdx spans every market. offset is capped at 1000000 and a request past it is a 400 — narrow with marketIdx, address or minAmountUsd. A market whose asset the API does not know is a 500 for the whole list; name a marketIdx to read the others.

get/v1/analytics/markets/rebalances

Query parameters

chainIdstring
limitstring

Integer 1-200; outside is a 400, never clamped.

Integer 1-200; outside is a 400, never clamped.

offsetstring

Integer 0-1000000; outside is a 400, never clamped.

Integer 0-1000000; outside is a 400, never clamped.

marketIdxstring

Integer 0-64; outside is a 400, never clamped.

Integer 0-64; outside is a 400, never clamped.

includeLegacy'true' | 'false'
minAmountUsd'0.1' | '1' | '100' | '1000' | '10000' | '100000' | '1000000'
addressstring
isDesc'true' | 'false'
sortBy'date' | 'amount'

Response

Individual AMM rebalance trades.

successtrue required
totalCountstring required
timestampstring required

Changes