Markets and currency

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.txt

Paste 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.

ToolWhat it does herePrice
surf/exchange/funding-historyReturns historical funding rate records for one perpetual contract, the main series in this research.$0.0079 / callRp142 / call
surf/exchange/long-short-ratioReturns the historical long/short ratio for the same contract, to set positioning beside funding.$0.0079 / callRp142 / call
surf/market/liquidation/chartReturns 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/futuresReturns 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/perpReturns a current snapshot for one perpetual pair with funding rate, open interest, mark price and index price.$0.0079 / callRp142 / call
surf/exchange/klinesReturns price candles for the same market, so every funding and liquidation reading sits next to a price.$0.0079 / callRp142 / call

Step by step

  1. Choose contracts from a snapshot. Start with one call to surf/market/futures to see the ranked futures market across tracked tokens. Pick the few contracts you actually want to study and skip history for the rest.
  2. 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.
  3. Read schemas and prices. Run inspect_tool on 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.
  4. Pull the series. Fetch funding history, the long/short ratio and the liquidation chart for the contract, then candles from surf/exchange/klines for the same window. That is a handful of calls per contract.
  5. 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.
  6. 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.

ColumnSource toolHow to read it
Funding rate per periodsurf/exchange/funding-historyPositive means longs pay shorts
Long/short ratiosurf/exchange/long-short-ratioHow accounts on one exchange lean
Liquidationssurf/market/liquidation/chartSize and timing of forced closes
Open interest, mark and index pricesurf/exchange/perpThe current state of the contract
Close pricesurf/exchange/klinesThe price move to compare against
Fetched atYour own logWhen 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.

CallToolCountUSDIDR
Futures snapshot, oncesurf/market/futures1$0.016Rp283
Funding history for 2 contractssurf/exchange/funding-history2$0.016Rp284
Long/short ratio for 2 contractssurf/exchange/long-short-ratio2$0.016Rp284
Liquidations for 2 contractssurf/market/liquidation/chart2$0.031Rp566
Total$0.078Rp1.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?
From the exchanges the tool tracks, returned per perpetual contract. The schema, which the agent reads free with inspect_tool, shows how to choose the contract and the exchange. Keep both in your table so every number can be traced.
How much history can I pull?
That depends on the range limits in each tool's schema. Start with two weeks for one contract, check the result, then widen the window if you need more.
Is a high funding rate a signal to short?
No. A high rate shows that longs were paying to hold their positions. It describes positioning, and positioning alone does not predict the next move, so treat it as context.
What does a failed call cost?
Nothing. The most a run can cost is held when it starts, and if the provider errors the hold is released in full. Only a completed call is charged, at the price shown before it ran.
Can I compare exchanges?
Yes, with one set of calls per exchange for the same contract and window. Keep each venue in its own column, and convert funding to a common period before you compare levels.