How to research crypto funding rates and liquidations with an AI agent
Updated · 1ToolRing team
A crypto funding rates API returns the periodic payments between long and short holders of a perpetual contract, which shows how crowded each side is. With 1ToolRing your agent reads surf/exchange/funding-history for the rate series and surf/market/liquidation/chart for forced closures, then lines them up by time with the long/short ratio. You pay per call from a prepaid balance, and the result is research data with no trading signal attached.
Derivatives researchers, newsletter writers and people who hold perpetual positions watch four series: funding, the long/short ratio, open interest and liquidations. Funding tells you which side is paying to keep its position open, the ratio shows how accounts lean, and liquidations show where positions on margin were forced to close.
Trouble starts when series from different exchanges, contracts or windows land in one chart. Funding intervals differ between venues, so two rates cannot be compared until both are expressed over the same period, and a liquidation spike means little without the price move beside it. So keep one contract, one exchange and one window per comparison.
Paste this into your agent
Works in Claude, ChatGPT, Cursor, Codex, n8n and any MCP client. Change the placeholders, keep the row cap.
Set up 1ToolRing from 1toolring.com/install, then research the BTC perpetual contract on one exchange over the last 14 days. Inspect the price first. Use surf/exchange/funding-history, surf/exchange/long-short-ratio, surf/market/liquidation/chart and surf/exchange/klines for the same contract and window, keep it under 8 calls, and return a daily table with funding rate, long/short ratio, liquidation totals and closing price, plus the time of each call.First time? Set up takes one command or one connector URL:
set up 1ToolRing - https://1toolring.com/llms.txtPaste this into your agent's chat (Claude Code, Codex, Cursor, ChatGPT, claude.ai). Your agent sets up 1ToolRing and you sign in.
Tools this workflow uses
Your agent finds these with discover_tools and reads each input schema and price with inspect_tool. Both are free. Only a successful run is charged.
| Tool | What it does here | Price |
|---|---|---|
surf/exchange/funding-history | Returns historical funding rate records for one perpetual contract, the main series in this research. | $0.0079 / callRp142 / call |
surf/exchange/long-short-ratio | Returns the historical long/short ratio for the same contract, to set positioning beside funding. | $0.0079 / callRp142 / call |
surf/market/liquidation/chart | Returns OHLC-style aggregated liquidation data for a token on one exchange, to see when positions were forced to close. | $0.016 / callRp283 / call |
surf/market/futures | Returns a ranked snapshot of futures market data across all tracked tokens, which helps you choose the contracts worth studying. | $0.016 / callRp283 / call |
surf/exchange/perp | Returns a current snapshot for one perpetual pair with funding rate, open interest, mark price and index price. | $0.0079 / callRp142 / call |
surf/exchange/klines | Returns price candles for the same market, so every funding and liquidation reading sits next to a price. | $0.0079 / callRp142 / call |
Step by step
- Choose contracts from a snapshot. Start with one call to
surf/market/futuresto see the ranked futures market across tracked tokens. Pick the few contracts you actually want to study and skip history for the rest. - Fix contract, exchange and window. Write down the exact perpetual contract, the exchange and the date range. Every later call uses the same three, or the series will not line up.
- Read schemas and prices. Run
inspect_toolon each tool you plan to call. The schema shows how the contract and the window are written, and the price per call is visible before anything is charged. - Pull the series. Fetch funding history, the long/short ratio and the liquidation chart for the contract, then candles from
surf/exchange/klinesfor the same window. That is a handful of calls per contract. - Line everything up by time. Bucket every series to the same period, with daily as a sensible default for a two-week window, and convert funding to that period if the venue settles more often. Mark the days where a liquidation spike coincides with a large price move.
- Say what the data cannot show. These series cover the exchanges and contracts the tools track. State that in the write-up, keep the fetch time, and resist turning a pattern into a forecast.
What is a crypto funding rate?
A funding rate is a periodic payment between holders of long and short positions on a perpetual futures contract, which keeps the contract price close to the spot price. When it is positive, longs pay shorts. When it is negative, shorts pay longs. A rate that stays high for days suggests the long side is crowded, though it says nothing certain about where the price goes next.
What do long/short ratios and liquidations add?
The long/short ratio describes how accounts or positions split between the two sides on one exchange. A liquidation is the forced close of a position that has run out of margin. Read with funding, they show whether positioning was one-sided and whether it was flushed out. Each comes from one venue, so it describes that venue and should be labeled that way.
Which derivatives series should my table keep?
One row per day, one contract per table, and the source of every column written down.
| Column | Source tool | How to read it |
|---|---|---|
| Funding rate per period | surf/exchange/funding-history | Positive means longs pay shorts |
| Long/short ratio | surf/exchange/long-short-ratio | How accounts on one exchange lean |
| Liquidations | surf/market/liquidation/chart | Size and timing of forced closes |
| Open interest, mark and index price | surf/exchange/perp | The current state of the contract |
| Close price | surf/exchange/klines | The price move to compare against |
| Fetched at | Your own log | When each series was read |
When is this the wrong tool?
If you need a live feed for an automated strategy, per-call history lookups are the wrong shape. They suit research notes, reviews after a volatile day and weekly summaries. Nothing here is investment advice, and trading on margin can lose more than a spot position, so use the data to understand what happened and make trading decisions separately.
What does it cost?
Two weeks of history for two contracts, plus one futures snapshot to choose them. Candle calls for the price column would add two more calls.
| Call | Tool | Count | USD | IDR |
|---|---|---|---|---|
| Futures snapshot, once | surf/market/futures | 1 | $0.016 | Rp283 |
| Funding history for 2 contracts | surf/exchange/funding-history | 2 | $0.016 | Rp284 |
| Long/short ratio for 2 contracts | surf/exchange/long-short-ratio | 2 | $0.016 | Rp284 |
| Liquidations for 2 contracts | surf/market/liquidation/chart | 2 | $0.031 | Rp566 |
| Total | $0.078 | Rp1.417 | ||
Computed from list prices as of 2026-11-10. A run is held at its maximum and settled to the real cost, and a failed call is not charged. See how pricing works.
Questions
Where does the funding rate data come from?
inspect_tool, shows how to choose the contract and the exchange. Keep both in your table so every number can be traced.