getRebalanceInfo
Get rebalance information showing yield generated by rebalancing strategies. Optionally filter by cross-chain or same-chain rebalances.
Signature
getRebalanceInfo(isCrossChain?: boolean): Promise<RebalanceInfoResponse>
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
isCrossChain | boolean | ❌ | Filter by cross-chain or same-chain rebalances |
Returns
List of rebalance events
Return Type
interface RebalanceInfoResponse {
success: boolean;
data: RebalanceInfo[];
count: number;
}
Example
// Get same-chain rebalances
const rebalances = await sdk.getRebalanceInfo(false);
console.log("Rebalance count:", rebalances.count);
rebalances.data.forEach(r => {
console.log(`${r.fromProtocol} -> ${r.toProtocol}: ${r.amount}`);
});