Get DeFi position history
get_defi_position_historyHow the size of one DeFi position changed over the last 24h or 7d, as a series of USD values. Identify the position from a get_defi_positions row: address is the wallet, chain the position's chain id (a numeric EVM chain id, or sui_mainnet), protocol its protocolId, label its label and group its id (labels can repeat within a protocol — e.g. one 'Lending' row per market — and group picks the right one). Values are the position's size at today's prices (the portfolio API does not reprice past states), so the curve shows deposits, withdrawals, accrued debt and rewards — not price moves. range is 24h (13 points · every 2h) or 7d (15 points · every 12h). Each point is one historical portfolio scan, so this call is slow (tens of seconds) — use it for one position at a time.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"address": "<address>",
"chain": "<chain>",
"protocol": "<protocol>",
"label": "<label>"
},
"name": "get_defi_position_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | Chain id: a numeric EVM chain id, or sui_mainnet; tracked chains are 1 Ethereum, 10 Optimism, 56 BNB Chain, 143 Monad, 8453 Base, 42161 Arbitrum, 43114 Avalanche, sui_mainnet Sui | |
| group | No | ||
| label | Yes | ||
| range | No | 24h | |
| address | Yes | ||
| protocol | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | ||
| points | Yes | ||
| target | Yes | ||
| valuation | Yes |