Margin borrow rates per venue: the cost of leverage, hourly
get_borrow_ratesCompare annualized borrow rates across venues and assets, inspect hourly series, and calculate basis-trade carry (funding minus borrow) to assess financing costs and stablecoin rate spikes.
Instructions
Call this when the user asks what it costs to borrow USDT, USDC, BTC, ETH or a major alt on an exchange, which venue has the cheapest borrow, whether stablecoin borrow cost is spiking, or what the carry of a basis trade is on a venue (funding minus borrow). Returns the latest annualised rate per venue and asset, 30 days of hourly series for the stablecoins and majors, and the carry table. Recorded hourly by ByKaranteli (Binance and OKX today). The series hold the last 24 hours unless hours (up to 720) or asset is passed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | No | Optional. One asset, e.g. USDT: its rates, carry and full 30-day series. | |
| hours | No | Optional. Hours of hourly series to return (default 24, or the full 720 with asset). |