estimate_net_position
Detailed financial estimate for a specific lending position — what will
I actually earn (or pay) after gas costs?
Combines current live rates, gas costs, and historical computed returns
to project net yield over a holding period.
Args:
api_key: Your PreFlyte API key (required).
protocol: Protocol name — "aave-v3" or "compound-v3".
chain: Chain name — "ethereum" or "arbitrum".
asset: Asset symbol — "USDC", "WETH", etc.
action: "supply" or "borrow".
position_size_usd: Amount in USD.
duration_days: Intended holding period in days. Default 30.
Returns:
Dictionary with position details, current snapshot, cost breakdown,
projected return, historical context, and confidence level.
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": {
"api_key": "<api_key>",
"protocol": "<protocol>",
"chain": "<chain>",
"asset": "<asset>",
"action": "<action>",
"position_size_usd": "<position_size_usd>"
},
"name": "estimate_net_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes | ||
| chain | Yes | ||
| action | Yes | ||
| api_key | Yes | ||
| protocol | Yes | ||
| duration_days | No | ||
| position_size_usd | Yes |