getBorrowHistory
Retrieve borrow interest records for a currency, newest first, with flexible 30-day windows. Filter by time range to analyze up to two years of borrowing costs.
Instructions
Get interest records, sorted in reverse order of creation time. Supports up to 2 years of data.
Time range rules:
Without both
startTimeandendTime: returns last 30 days by defaultOnly
startTimeprovided: returns from startTime to startTime + 30 daysOnly
endTimeprovided: returns from endTime - 30 days to endTimeBoth provided: endTime - startTime must be ≤ 30 days
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| cursor | No | ||
| endTime | No | ||
| currency | No | ||
| startTime | No |