Actions61
- Activity Actions
- Asset Actions
- Custom Query Actions
- Hub Actions
- Lending Actions
- Market Data Actions
- Position Management Actions
- Position Swap Actions
- Protocol Actions
- Reserve Actions
- Spoke Actions
- Swap Actions
- User Position Actions
Asset → Get Borrow History
AI-generatedSummary
Fetch borrow history for an ERC20 token on a specified chain
Inputs
- chainId — Chain name or ID selected from dropdown; can be provided via an expression
- assetTokenAddress (required) — ERC20 token address of the asset; must be supplied
- assetAdvancedOptions — Advanced options such as using a cached asset ID instead of the token address
- assetHistoryWindow — Time window for historical borrow data (e.g., Last Day, Last Week, All Time)
Output shape
array of borrow history entries
Each entry includes borrow amount, debt position, interest rates, and timestamps; optional fields may be omitted
Examples
Example 1: Review borrowing activity for a token over the past week
chainId selected, assetTokenAddress entered, assetHistoryWindow = LAST_WEEK
Example 2: Use a cached asset ID instead of token address to fetch borrow history
assetId provided (base64 encoded), assetHistoryWindow default
Example 3: Fetch full borrow history for all time
assetHistoryWindow = ALL