Market totals over time (v4)
get_market_historyv4 only. Deposits, borrows, available liquidity and utilisation over a window, for one hub or one spoke. Pick the layer deliberately: a hub is the liquidity itself and answers 'is this market growing', a spoke is one venue onto that liquidity and answers 'is this venue being used'. Ids come from get_reserve_details, which returns both 'hubId' and 'spokeId' for a reserve, or from get_hubs ('hubId') and get_user_positions ('spokeId' for a spoke the wallet already holds). The two are not interchangeable and the wrong one is rejected. To judge a venue before entering it, take the ids from get_reserve_details rather than from a position that does not exist yet. For the protocol as a whole rather than one market use get_protocol_history, for one reserve's rate use get_apy_history, and for one asset across every reserve holding it use get_asset_history.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The hubId (scope 'hub') or spokeId (scope 'spoke'). Not an address. | |
| scope | Yes | Which layer 'id' names: a hub's liquidity, or one spoke onto it. | |
| window | No | How far back to go (default week). | |
| version | No | Optional, and only 'v4': this tool exists on v4 only. |