Funding countdown
A React component in Beamline's Trading category.
Perpetual funding rate with who pays, and a live countdown ring to the next funding.
Use it for
- Perpetual futures headers.
Not for
- General deadlines → a countdown in page-header.
Anatomy
- label
- rate (+ who pays)
- ring
- hh:mm:ss
- hover card (when funding is paid, how often)
Variants
- ring: on, off
States
- positive
- negative
- unpublished
- new rate (flashes once in its direction)
- last minute (timer and ring in the warning colour; the digits say it too)
- new interval (the ring refills from where it stood)
- narrow parent (content-sized: the countdown wraps under the rate)
Keyboard
- The countdown is one focus stop: focus shows when funding is paid and how often (also on hover). role=timer, not announced every second.
Motion
Ring empties continuously; digits tick each second, only while on screen in a visible tab and before the funding time (then it holds 00:00:00). A new interval refills the ring over --pui-duration-considered from where it stood (instant under reduced motion). A newly published rate flashes once (the shared flash). Digits never animate.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
rate (required) | number | null | — | Current funding rate as a fraction per interval: 0.0001 = 0.0100%. `null` = not published yet. |
nextAt (required) | number (ms epoch) | — | When the next funding happens (ms epoch). |
intervalHours | number | 8 | Funding interval in hours; drives the ring. |
style / ref | CSSProperties / native Ref | — | style: Inline styles on the documented visual root; no inline overrides by default. ref: Receives the documented root element; no ref by default. |
classNames | FundingCountdownClassNames | — | Classes for the named visual parts; no part overrides by default. |
label | string | — | Visible label or accessible name for the control. Defaults to "Funding". |
ring | boolean | — | Show the ring that empties toward the next funding. |
className | string | — | Classes on the documented visual root; no override by default. |
style | CSSProperties | — | Inline styles on the documented visual root; no inline overrides by default. |
ref | Ref<HTMLDivElement> | — | Receives the documented root element; no ref by default. |
Built from
Used in
Import
import { FundingCountdown } from "@beamline/funding-countdown";
Get it
Funding countdown is part of Beamline UI. Install the parts you need in your React app as compiled packages or editable source. Get Beamline · Connect your agent
More in Trading
- Price chart: Candles, line or area price chart with volume, OHLC legend and reference lines, built for live ticks.
- Market heatmap: Treemap of markets sized by weight and coloured by change, grouped by sector, with hatched no-data tiles.
- Order book: Asks, spread and bids with cumulative depth bars, grouping, change flashes and keyboard price picking.
- Options chain: Calls and puts for one expiry around a centre column of strikes: bid, ask, implied volatility, delta, volume and open interest, the money shaded in, a…
- Depth chart: Cumulative bid and ask depth as stepped areas around the mid, with hover readout.
- Ticker tape: A continuously scrolling row of symbols with price, change and mini trend; anyone can hold it: hover, keyboard focus or a tap.
- Watchlist: A selectable, sortable list of markets with mini trends, prices, changes and stars.
- Trades tape: Recent trades, newest first, with side glyphs, large-print marking and one-time arrival flashes.
- Order ticket: Buy/sell order entry with limit, market and stop types, % of balance, inline validation and a live cost summary.
- Swap form: Exchange one token for another: type what you pay (or Max), pick each token from a searchable list with balances, and the form quotes what you receive…
- Positions table: Open positions with live unrealised PnL, liquidation warnings and close actions.
- P&L calendar: A trader's month at a glance: every trading day's profit or loss in its cell, shaded deeper the bigger it was in the gain or loss colour and marked ▲ or…
- Price ticker: Symbol, last price with a directional flash, 24h change and stats.