get_market_snapshot
Get current market snapshot for a specific lending market.
Returns the latest rates, risk parameters, token price, and gas price.
This is the foundation of RealityCheck — giving agents ground truth
about current market conditions before they act.
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", "USDT", "DAI", "WETH", "WBTC", "wstETH".
Returns:
Dictionary with latest lending rates, risk parameters (if available),
current token price, current gas price, data freshness timestamps,
and rate_context (7-day averages, standard deviations, anomaly flags).
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>"
},
"name": "get_market_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes | ||
| chain | Yes | ||
| api_key | Yes | ||
| protocol | Yes |