Perpetual Futures Funding-Rate Engine: Architecture (2026)

Perpetual Futures Funding-Rate Engine: Architecture (2026)

Perpetual Futures Funding Rate Engine: Architecture and Math (2026)

This article is systems-architecture analysis only. It is not financial, trading, legal or compliance advice, and it recommends no instrument or venue.

Most of the time the number is boring. In Q3 2025, BitMEX reported that its BTC perpetual printed a funding rate of exactly 0.01% about 78% of the time. Yet the perpetual futures funding rate is one of the most consequential numbers an exchange computes, because it moves cash between every open position on a fixed clock and feeds straight into mark prices, margin and liquidation. The October 10, 2025 crash, with more than $19 billion of positions reportedly liquidated in a day, showed what happens when pricing, collateral marking and loss-sharing are stressed together. Venues have spent 2026 tightening those paths. This post rebuilds the funding engine from first principles, checks each formula against the published documentation of Binance, BitMEX, dYdX and Hyperliquid as of November 2026, and lays out a reference architecture with its failure modes.

What this covers: the funding rate formula and why each term exists, a four-plane engine architecture, runnable Python for the computation, the settlement cycle, and what breaks in production.

Context and Background

A dated futures contract has a built-in tether. At expiry it settles to the spot price, so the basis (the gap between futures and spot) must close by a known date. A perpetual swap removes the expiry. Without some other force, its price could float away from the underlying for as long as leverage demand is lopsided.

Funding is that force, and the perpetual futures funding rate is its price. At each funding time, holders on one side pay holders on the other an amount proportional to their position notional. When the perpetual trades rich to spot, longs pay shorts. When it trades cheap, shorts pay longs. The payment makes the crowded side expensive to hold and pays arbitrageurs to take the other side, which pulls the price back toward the index. The exchange measures and transfers; in the standard design it is not a counterparty to the flow.

BitMEX introduced the modern template in 2016, and almost every venue since has copied its shape. Centralised venues such as Binance, OKX and Bybit run it inside their own matching and risk stacks. Onchain order-book venues such as dYdX v4 and Hyperliquid run it as deterministic state-machine logic, where validators or block proposers contribute inputs. The shape is shared; the parameters differ in ways that matter for engineers, especially sampling cadence, interval length, caps, and which price converts size to notional.

That last point is easy to miss. The funding engine sits between three other systems. It reads from the low-latency exchange matching engine that owns the order book. It writes to the ledger that owns balances. And it feeds the mark price used by the real-time risk engine for crypto derivatives. A bug in funding is rarely a local bug; it usually surfaces as an unfair liquidation or a ledger that no longer balances.

Primary sources for the formulas below are the Binance Futures funding rate FAQ, the Hyperliquid funding documentation and the dYdX v4 funding concepts page. All three were read in November 2026. Venues change parameters by announcement or governance vote, so any production system should treat these as configuration, never as constants.

Reference Architecture for a Perpetual Futures Funding Rate Engine

A perpetual futures funding rate engine samples the premium of the perpetual over a spot index at a fixed cadence, averages those samples over the interval, adds a clamped interest term, scales and caps the result, then posts a zero-sum transfer between longs and shorts at the funding timestamp. Architecturally it splits into pricing, funding and money planes.

Perpetual futures funding rate engine reference architecture with pricing, funding and money planes

Figure 1: Reference architecture. Spot feeds build the index; the perpetual’s own book yields impact prices; premium samples drive the rate calculator; a scheduler triggers settlement into the ledger, with the insurance fund behind it.

Figure 1 groups the engine into four planes. Inputs arrive from external spot venues, the venue’s own matching engine, and a versioned contract configuration. The pricing plane builds the index price, samples impact prices, and computes the mark price. The funding plane stores premium samples, computes the rate when the scheduler ticks, and publishes both a live predicted rate and the final rate. The money plane freezes positions, posts the transfer, and escalates any shortfall to the insurance fund.

The funding rate formula, term by term

Every major venue computes the perpetual futures funding rate with a variant of the same equation. Binance publishes it as:

F = [P + clamp(I − P, 0.05%, −0.05%)] / (8 / N)

Here P is the average premium index over the interval, I is the interest rate per 8 hours, and N is the funding interval in hours. BitMEX states the 8-hour core as F = P + Clamp(I − P, −0.05%, 0.05%), and Hyperliquid uses the same core with clamp bounds of ±0.0005.

In the perpetual futures funding rate, the interest term I is a convention, not a market rate. BitMEX describes the 0.01% per 8 hours figure as an arbitrary number it first chose; it works out to roughly 10.95% a year. Binance’s default is 0.03% per day, or 0.01% per 8-hour interval. Hyperliquid fixes it at 0.01% per 8 hours, paid as 0.00125% per hour. dYdX v4 is the notable exception: its default interest component for cross markets is 0%, while a governance vote set isolated markets to 0.125 bps per hour.

The clamp term does the interesting work. Because P + clamp(I − P, −0.05%, +0.05%) equals exactly I whenever P is within 0.05% of I, the rate snaps to the baseline across a dead band. With I at 0.01%, any average premium between −0.04% and +0.06% produces exactly 0.01%. That is why BitMEX observed the baseline about 78% of the time for BTC and about 88% for ETH in Q3 2025. Outside the band, the rate tracks the premium minus a constant 0.05% offset. The clamp is a deliberate dead zone that stops funding from chattering on tiny basis noise.

Why the premium uses impact prices, not last trade

The premium index measures how far the executable perpetual price sits from the index. Binance and dYdX both define it as:

Premium = [max(0, Impact Bid − Index) − max(0, Index − Impact Ask)] / Index

The impact bid is the average fill price of a market sell of a fixed notional, and the impact ask is the same for a market buy. Hyperliquid uses the same structure with the oracle price in place of the index for its standard perps. For HIP-3 builder-deployed perps it uses a more responsive form, 0.5 × (impact bid + impact ask) / oracle − 1.

The design choice is defensive. A single trade print, or a small order at the top of book, cannot move an impact price much, because the impact price averages across enough depth to fill a meaningful size. Note also the asymmetry: if the index sits inside the impact spread, both max terms are zero and the premium is zero. A wide book therefore produces no funding pressure on its own, which is correct, because wide books carry no directional information.

The impact notional is sized to the contract’s risk tier. Binance sets the Impact Margin Notional to 200 USDT divided by the initial margin rate at maximum leverage, so a 20x contract with a 5% initial rate walks 4,000 USDT of book. dYdX uses 500 USDC divided by the initial margin fraction, so 5,000 USDC at a 10% fraction. Hyperliquid sets the notional per contract in its specifications.

Sampling, averaging and the interval clock

Sampling cadence is where perpetual futures funding rate implementations differ most, and it drives the engine’s data volume. Binance samples the premium every 5 seconds, which gives 5,760 points per 8-hour interval. For intervals longer than an hour it weights later points more heavily, with the n-th point getting weight n; for 1-hour intervals it weights them equally. Hyperliquid samples every 5 seconds and averages over each hour. BitMEX snapshots a premium index once per minute and takes the arithmetic mean over the 8-hour window, according to its support documentation. dYdX takes a per-minute sample as the median of the premium votes block proposers submitted that minute, then averages the 60 samples at the top of each hour.

The interval clock then scales the rate. Binance divides the 8-hour-equivalent rate by 8/N, so an hourly contract pays one-eighth per settlement. Hyperliquid computes an 8-hour rate and pays one-eighth of it every hour. dYdX divides the premium component by 8 and adds the hourly interest component. Normalising every quoted rate to a common period before comparison is the single most common fix analysts need when they line up venues side by side.

Caps, floors and why they track margin

The final step clamps the perpetual futures funding rate to a hard band. The band exists so that funding alone cannot push a reasonably margined account into liquidation within one interval. That is why several venues tie it to margin parameters rather than a fixed number.

Binance’s FAQ sets the cap and floor for listed majors to ±0.75 × the maintenance margin ratio, and ±2% for other USDⓈ-M perpetuals. dYdX caps the 8-hour rate at 600% × (initial margin − maintenance margin); for a large-cap market at 5% and 3%, that is 12%. Hyperliquid caps funding at 0.5% per hour for every asset, which its docs describe as much less aggressive than centralised counterparts. These are three different philosophies: margin-relative, margin-headroom-relative and flat.

Walk-through: Computing and Settling the Perpetual Futures Funding Rate

The pipeline from book snapshot to final rate is short, but each stage has a correctness trap. Figure 2 shows the stages in order.

Funding rate formula pipeline from impact price sampling to capped final rate

Figure 2: Computation pipeline. Each 5-second snapshot yields a premium sample; the interval average passes through the interest clamp, interval scaling and the cap before becoming the final rate.

The dashed edge in Figure 2 is the predicted rate. Venues publish a running estimate from the partial window, and traders treat it as a real-time signal. Architecturally it is a read-only projection of the same sample store, computed with the same code path as the final rate. Running two implementations, one for the estimate and one for settlement, is a classic source of “the predicted rate said X but I was charged Y” tickets.

Runnable Python for the funding computation

The following module implements the venue-neutral core: walking the book for impact prices, building premium samples, the weighted average, the clamp, interval scaling, the cap and a zero-sum settlement. Parameters default to the Binance-style shape; the 0.75% cap is an illustrative placeholder, not any specific contract’s limit. It uses Decimal throughout because funding moves money and binary floating point does not round the way a ledger must.

"""Venue-neutral funding-rate computation (illustrative parameters)."""
from dataclasses import dataclass
from decimal import Decimal, ROUND_DOWN, getcontext

getcontext().prec = 28
D = Decimal


def clamp(x: Decimal, lo: Decimal, hi: Decimal) -> Decimal:
    return max(lo, min(hi, x))


def impact_price(levels, notional: Decimal):
    """Average fill price for `notional` (quote units) walking one side of the book.
    levels: list of (price, qty) best-first. Returns None if the book is too thin."""
    remaining, cost, qty_filled = notional, D(0), D(0)
    for px, qty in levels:
        take_quote = min(remaining, px * qty)
        cost += take_quote
        qty_filled += take_quote / px
        remaining -= take_quote
        if remaining <= 0:
            return cost / qty_filled
    return None  # not enough depth: caller decides the fallback


def premium_sample(bids, asks, index: Decimal, imn: Decimal):
    ib, ia = impact_price(bids, imn), impact_price(asks, imn)
    if ib is None or ia is None:
        return None
    return (max(D(0), ib - index) - max(D(0), index - ia)) / index


def average_premium(samples, interval_hours: int) -> Decimal:
    """Linear time weights (1..n) for intervals > 1h, equal weights for 1h."""
    vals = [s for s in samples if s is not None]
    if not vals:
        raise ValueError("no valid premium samples in interval")
    if interval_hours > 1:
        w = range(1, len(vals) + 1)
        return sum(D(i) * v for i, v in zip(w, vals)) / D(sum(w))
    return sum(vals) / D(len(vals))


@dataclass(frozen=True)
class FundingParams:
    interval_hours: int = 8
    interest_8h: Decimal = D("0.0001")      # 0.01% per 8h baseline
    damper: Decimal = D("0.0005")           # +/-0.05% clamp on (I - P)
    cap: Decimal = D("0.0075")              # per-interval cap; venue/contract specific


def funding_rate(avg_p: Decimal, p: FundingParams) -> Decimal:
    raw = avg_p + clamp(p.interest_8h - avg_p, -p.damper, p.damper)
    scaled = raw / (D(8) / D(p.interval_hours))
    return clamp(scaled, -p.cap, p.cap)


def settle(positions, mark_or_oracle: Decimal, rate: Decimal, unit=D("0.00000001")):
    """positions: {account: signed size in base units}. Positive rate: longs pay.
    Returns per-account cash deltas (rounded toward zero) and the rounding residual."""
    deltas = {}
    for acct, size in positions.items():
        amt = -(size * mark_or_oracle * rate)
        deltas[acct] = amt.quantize(unit, rounding=ROUND_DOWN)
    residual = -sum(deltas.values())
    return deltas, residual


if __name__ == "__main__":
    index = D("100000")
    bids = [(D("100060"), D("0.2")), (D("100050"), D("0.5")), (D("100040"), D("2"))]
    asks = [(D("100070"), D("0.2")), (D("100080"), D("0.5")), (D("100090"), D("2"))]
    imn = D("200") / D("0.008")          # 200 / initial margin rate at max leverage
    s = premium_sample(bids, asks, index, imn)
    print(f"impact notional: {imn:.0f}  premium sample: {s:.8f}")

    p8 = FundingParams()
    ramp = [s * D(i) / D(5760) for i in range(1, 5761)]     # 5-second samples, 8h
    avg = average_premium(ramp, 8)
    print(f"ramp: weighted avg P = {avg:.8f} -> F8h = {funding_rate(avg, p8):.8f}")

    for flat in ("0.0012", "-0.0030", "0.0200"):
        f = funding_rate(D(flat), p8)
        print(f"flat P = {flat:>8} -> F8h = {f:.8f}")
    f1 = funding_rate(D("0.0012"), FundingParams(interval_hours=1, cap=D("0.005")))
    print(f"flat P = 0.0012 on a 1h schedule -> F1h = {f1:.8f}")

    book = {"A": D("1.37"), "B": D("-0.333333"), "C": D("-1.036667")}
    deltas, residual = settle(book, D("100030"), funding_rate(D("0.0012"), p8))
    print("payments:", {k: str(v) for k, v in deltas.items()}, "residual:", residual)

Running it with Python 3.10 or later prints:

impact notional: 25000  premium sample: 0.00058005
ramp: weighted avg P = 0.00038673 -> F8h = 0.00010000
flat P =   0.0012 -> F8h = 0.00070000
flat P =  -0.0030 -> F8h = -0.00250000
flat P =   0.0200 -> F8h = 0.00750000
flat P = 0.0012 on a 1h schedule -> F1h = 0.00008750
payments: {'A': '-95.92877000', 'B': '23.34030999', 'C': '72.58846000'} residual: 1E-8

Reading the worked numbers

The numbers are illustrative, but each one demonstrates a property worth testing. The single premium sample is 0.058%: the 25,000 USDT impact notional fills 20,012 USDT at the top bid level and the rest one tick lower, so the impact bid sits about 58 dollars above a 100,000 index. A premium that ramps linearly from zero to that level over 8 hours averages about 0.039% under linear weights, roughly two-thirds of the end value, because later samples count more. That average sits inside the dead band, so the rate is exactly the 0.01% baseline.

A flat premium of 0.12% sits outside the band, so the clamp saturates at −0.05% and the rate is 0.07%. A premium of −0.30% saturates the other way and gives −0.25%, so shorts pay longs. A premium of 2% would produce 1.95%, but the illustrative cap cuts it to 0.75%. On an hourly schedule the same 0.12% premium produces 0.00875% per hour, which is exactly one-eighth of the 8-hour figure. That property is a cheap invariant for a test suite.

The settlement line is the important one. Three accounts with a net zero position, valued at 100,030 and charged 0.07%, produce payments that miss zero by one satoshi-sized unit after rounding toward zero. That residual is real money at scale. A venue with a million positions and 24 settlements a day accumulates dust that must go somewhere: to an explicit rounding account, to the insurance fund, or to the venue’s fee income. The ledger must state which, and record it on every run.

The settlement cycle

Computing the rate is the easy half. Settling it correctly across every open position, at an exact instant, while trading continues, is where the engineering effort goes. Figure 3 shows a cycle that stays correct under retries and concurrency.

Funding settlement sequence from scheduler tick through ledger posting and risk recheck

Figure 3: Settlement sequence. The scheduler closes the sample window, positions are frozen at the funding timestamp, one idempotent journal is posted and checked for balance, and the risk engine rechecks margin before the final rate is published.

The first rule is that positions are read as of the funding timestamp, not as of whenever the batch job reaches each account. Binance states plainly that only positions held at the funding time pay or receive, and that actual settlement can deviate by up to 15 seconds. The engine therefore needs a consistent snapshot, either a versioned read from the position store or a cut in the event log, so that a trade at T plus 2 seconds does not leak into the T settlement. An event-sourced, bitemporal ledger design gives you this almost for free, because “positions as of T” is a replay up to an offset.

The second rule is one journal per contract per funding timestamp, keyed by an idempotency key such as contract plus timestamp. If the settlement worker crashes after posting half the entries, a retry must either complete the same journal or find it already applied. Partial application is the worst outcome, because some traders paid and others did not. The same discipline appears in Kafka exactly-once transactions with idempotent producers and in payment APIs.

The third rule is that the journal must balance, net of the declared rounding account, before it commits. A balance check inside the transaction catches sign errors, double counting and currency mix-ups at the cheapest possible moment.

Which price converts size to notional

Notional for funding is size times a price, and venues disagree on which price. Binance computes the funding amount from the nominal value of positions. Hyperliquid states explicitly that the payment is position size times the oracle price, and not the mark price. The choice matters during dislocations: if mark and index diverge by 2%, the payment differs by 2% depending on which you pick. Whichever price you choose, freeze it with the snapshot and store it on the journal, so that a later audit can recompute every payment from stored inputs alone.

Mark price: the funding rate’s other customer

The perpetual futures funding rate also feeds the mark price, which closes a loop many diagrams leave out. Binance defines its USDⓈ-M mark price as the median of three values. Price 1 is the index times one plus the last funding rate scaled by the time remaining in the interval. Price 2 is the index plus a 30-second moving average of mid minus index. The third is the contract’s last price.

The median makes mark resistant to any single input being wrong. A spoofed last trade cannot move it if the other two agree, and a stale basis average cannot move it if the funding-implied price and last price agree. But it means the funding engine’s output is now an input to liquidation pricing. A bad funding print propagates into mark for the rest of the interval, and from there into liquidations. That dependency is why the rate calculator needs the same change control as the risk engine. It is also why collateral and margin management systems for derivatives should subscribe to funding events rather than poll for them.

The index price: weights, outliers and staleness

The index is the anchor for premium, mark and therefore the perpetual futures funding rate, so its construction is a first-class part of the funding system. Binance builds its price index as a weighted sum of spot prices across constituent exchanges, with undisclosed weights. If one source deviates more than 3% from the median of all sources, its price is capped at 1.03 or 0.97 times the median; some majors use a 1% band instead. A source that is unreachable or has not updated for five minutes gets zero weight.

Hyperliquid’s validators each compute the oracle as a liquidity-weighted median of centralised exchange spot prices. dYdX v4 has validators report prices through its oracle sidecar. Whatever the method, the engineering requirements are the same: per-source staleness detection, outlier rejection relative to a robust centre, an audit record of which sources contributed to each sample, and a defined fallback when too few sources remain. The feed-handling side of this is close to ITCH-style market data feed handlers, where gap detection and sequencing determine whether downstream consumers can trust a tick.

Capacity and data volume

The numbers are small but not trivial. At one sample every 5 seconds, each contract generates 17,280 premium samples a day. A venue with 500 perpetuals produces about 8.6 million samples daily, each carrying impact bid, impact ask, index and source metadata. That fits comfortably in a time-series store. However, the impact price calculation needs a consistent book snapshot at each tick, and walking depth for 500 books every 5 seconds is a constant load the matching engine host must serve without stalling order processing.

The usual answer is to compute impact prices from a book replica fed by the matching engine’s market-data stream, never from the live matching structure. The replica can lag by milliseconds without harm, because a 5-second sample is insensitive to sub-second skew. Settlement is the bursty part: a million positions settled at one timestamp is a million ledger entries in seconds. Hourly funding multiplies that burst by eight compared with an 8-hour schedule, which is a real capacity input for any venue moving to hourly funding.

Trade-offs, Gotchas, and What Goes Wrong

The failure modes cluster at the boundaries between planes. Figure 4 shows how a robust engine routes the main ones.

Failure handling for funding engine covering stale index, thin books, shortfalls, insurance fund and auto-deleveraging

Figure 4: Failure routing. Stale index sources are dropped or replaced, intervals with too few valid samples fall back to the baseline with an alert, and payers who cannot fund the transfer go to liquidation, then the insurance fund, then auto-deleveraging.

Thin books and missing samples. If the book cannot fill the impact notional, there is no valid sample. Dropping it silently biases the average toward whichever periods had depth. Count missing samples, publish the count with the rate, and define a minimum-coverage threshold below which the engine uses the baseline and pages an operator. dYdX encodes a similar idea as a governance parameter for the minimum number of premium votes per sample.

Interval switching. Binance’s FAQ says a settlement that hits the cap or floor can switch a contract from an 8-hour or 4-hour interval to a 1-hour interval from the next cycle. Since January 2, 2026, the interval reverts from 1 hour to 4 hours after 16 consecutive cycles with an absolute rate of 0.025% or less. A dynamic interval breaks every downstream assumption about fixed settlement times, so the scheduler must read the interval from versioned config at each tick, and the public API must announce changes in advance.

Cross-margin coupling. In a cross-margin account, a funding debit on one contract reduces the margin available to every other position. A large negative-funding short in one market can therefore tip an unrelated long into liquidation. The engine should emit funding as a balance event the risk engine consumes immediately, and the risk engine should evaluate the whole account, not the single contract that paid.

Manipulation near the window edge. Linear time weighting makes late samples count more, so pushing the book in the final minutes of an 8-hour window buys more influence than the same push early on. Impact pricing and the clamp blunt the effect, but surveillance should still watch depth withdrawals and aggressive quoting clustered before funding times. Equal weighting on hourly schedules reduces the edge bias, at the cost of reacting more slowly to a genuine late move.

Clock and sequencing. Samples need timestamps from one authoritative clock, and the funding cut needs a clean sequence boundary. Mixing wall-clock time from feed handlers with sequence numbers from the matching engine invites off-by-one-sample bugs at the window edge. Hybrid logical clocks or a single sequencer-assigned time remove that ambiguity.

Insufficient balance. Binance deducts funding from available balance first and then from position margin. A payer whose margin is exhausted by funding is a liquidation candidate, so funding settlement and the liquidation engine must not race. If liquidation cannot close the position above bankruptcy price, the insurance fund absorbs the loss. If the fund cannot, the venue falls back to auto-deleveraging (ADL), closing profitable opposing positions at the bankrupt trader’s bankruptcy price.

ADL ranking is a policy choice. Binance ranks ADL candidates by profit percentage times effective leverage for winners, which pushes the most leveraged profitable traders to the front of the queue. On October 10, 2025, Hyperliquid reportedly triggered cross-margin ADL for the first time as long positions went bankrupt faster than its liquidity vault could absorb them. Afterwards, analysts and traders publicly debated how venues choose ADL victims. Treat the ranking function as a published, versioned, testable policy, not an implementation detail.

Self-referential pricing. During the same crash, Binance reportedly marked certain collateral assets using its own internal order books, and USDe printed at $0.65 there while trading near $0.99 elsewhere. Binance later announced roughly $283 million in compensation. This was a collateral-marking failure rather than a perpetual futures funding rate failure, but it shares the same inputs, so the lesson transfers: any price input that can be moved by the venue’s own thin book is a manipulation and cascade surface.

Practical Recommendations

Build the perpetual futures funding rate engine as a pure function wrapped in an auditable pipeline. The rate calculation should take a frozen sample set and a versioned parameter set and return a number, with no clocks, network calls or hidden state inside. Everything stateful, including sampling, scheduling, snapshots and ledger posting, sits around it and records its inputs. That split makes the core trivially testable and lets auditors replay any historical rate from stored data.

Treat every perpetual futures funding rate parameter as data. Interest rate, clamp width, cap, impact notional, sampling cadence, interval length and the notional-conversion price are all things venues change, sometimes during a volatile session. Store them with effective-from timestamps and stamp the version on every published rate and every journal.

Use the same code for the predicted and final rate, and reconcile the two continuously. Reconcile settlement too: sum of payments, rounding residual and per-account recomputation from stored inputs, every interval. A dedicated reconciliation engine pays for itself the first time a sign error reaches production. Finally, rehearse the tail path of liquidation, insurance fund and ADL with replayed crash data, not synthetic calm markets.

A short checklist for a design review:

  • Rate core is a pure function over frozen samples and versioned params.
  • Impact prices come from a book replica, with missing-sample counts published.
  • Positions and conversion price are frozen at the funding timestamp.
  • One idempotent, balanced journal per contract per timestamp, with an explicit rounding account.
  • Predicted and final rates share code and are reconciled.
  • Interval changes are versioned config, announced through the API.
  • Insurance fund and ADL policies are documented, ranked and replay-tested.

Frequently Asked Questions

How is the perpetual futures funding rate calculated?

Most venues compute an average premium index from impact bid and ask prices relative to a spot index, then apply F = P + clamp(I − P, −0.05%, 0.05%), where I is an interest term, usually 0.01% per 8 hours. The result is scaled to the funding interval and clamped to a cap and floor. Binance, BitMEX and Hyperliquid all publish this shape. dYdX v4 instead divides the hourly premium by 8 and adds an interest component, which is 0% by default for cross markets. Always check the venue’s current documentation, because parameters change.

Why is the funding rate so often exactly 0.01%?

The clamp creates a dead band. With an interest term of 0.01% and a ±0.05% clamp on the interest-minus-premium difference, any average premium between −0.04% and +0.06% yields exactly 0.01%. Calm markets usually sit inside that band, so the rate prints the baseline. BitMEX reported that its BTC perpetual printed exactly 0.01% about 78% of the time in Q3 2025, and its ETH perpetual about 88% of the time. A rate away from the baseline signals a basis large enough to escape the band.

How often is funding paid on Binance, dYdX and Hyperliquid?

Binance defaults to every 8 hours at 00:00, 08:00 and 16:00 UTC, though many contracts run 4-hour or 1-hour intervals. A contract can switch to hourly after hitting its cap and, since January 2026, revert to 4 hours after 16 consecutive calm cycles. dYdX v4 settles hourly using the average of 60 per-minute samples. Hyperliquid also pays hourly, at one-eighth of a computed 8-hour rate. Compare rates only after normalising them to the same period, such as annualised or per 8 hours.

What is the difference between index price, mark price and last price?

The index price is a weighted aggregate of spot prices from external venues; it anchors the premium. The last price is the perpetual’s most recent trade on the venue. The mark price values positions and triggers liquidations. Binance computes it as the median of a funding-implied price, an index-plus-basis price and the last price. Keeping these separate is central to exchange design. A spoofed trade can move the last price, but it should not move mark or funding on its own.

What happens if a trader cannot pay funding?

Funding is deducted from available balance and then from position margin, according to Binance’s documentation. If that pushes the account below maintenance margin, the liquidation engine takes over. If the position cannot be closed above its bankruptcy price, the insurance fund covers the deficit. If the fund is insufficient, the venue uses auto-deleveraging, closing profitable opposing positions at the bankruptcy price in a published ranking order. Engineering-wise, funding settlement and liquidation must share a consistent view of balances to avoid races.

Is a funding rate engine the same on decentralised exchanges?

The maths is nearly identical, but the trust model differs. On dYdX v4, block proposers submit premium votes each block and the state machine takes the per-minute median before averaging hourly. On Hyperliquid, validators compute a liquidity-weighted median oracle from centralised exchange prices. The computation must therefore be deterministic across all nodes, so it typically uses fixed-point arithmetic and governance-controlled parameters. Centralised venues have more freedom to change parameters quickly, while onchain venues trade some agility for verifiability.

Further Reading

By Riju — about

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *