The Stack’s lower edge: from the graduation bar, the running high of your own candles, until it reaches the Stack’s end. Cyan teal (never green: the candles are green), or the nearest in your brand. Label STACK.
Recipe
// bars: your candles, oldest first
// graduatedAt: the graduation time (graduatedAt), in your bars' time unit
// end: stack.endPriceQuote (null if unknown)
// the SDK's stackEdgeWalk(bars, graduatedAt, endPrice) is this walk
type Bar = { time: number; high: number; close: number };
function stackLine(bars: Bar[], graduatedAt: number, end: number | null) {
let start = 0;
for (let j = 0; j < bars.length; j++) {
if (bars[j].time <= graduatedAt) start = j; else break;
}
const out: { time: number; value: number }[] = [];
let high = 0;
for (const b of bars.slice(start)) {
if (!(b.close > 0) || !(b.high > 0)) continue;
high = Math.max(high, b.high);
// the Stack is used up here: draw nothing after
if (end !== null && end > 0 && high >= end) break;
out.push({ time: b.time, value: high });
}
return out;
}
Reference
Guidelines
Colours and labels
FLOOR: FLOOR orange, 2 px step line, labelled FLOOR, under the price.
STACK: cyan teal, labelled STACK, above the candles.
Mainnet and testnet, read from the address book: a chain appears here the day it is deployed. On EVM the program is FloorAmm, at one address on every chain it is deployed on, Elysium included. TON is coming soon.
Two read-only feeds of the on-chain trades, for trackers and aggregators: /api/dex/{chain} and /api/coingecko/{chain}, where the chain is one of sol, eth, base, bsc, arb, arc, rh, hyper.
/api/dex
Path
What
/latest-block
The last block (Solana: slot) fully indexed.
/asset?id=
A token: name, symbol, live total supply, supply outside the program.
/pair?id=
One pair per launch: the launch token and its quote, created at, creator. Takes the launch id or the token.
/events?fromBlock=&toBlock=
One swap per trade, inclusive, at most 25,600 blocks, gross amounts, the price after the trade.
/block?number=
A block and its time (DEXTools).
/exchange?id=floor
The exchange: name and logo (DEXTools).
/asset/holders?id=&page=&pageSize=
A launch token's holders (DEXTools).
/api/coingecko
Path
What
/pairs
Every pair: ticker_id, base, target, pool_id.
/tickers
Last price, bid, ask, 24 h volumes, high and low, liquidity, and depthUp2 / depthDown2: the quote that moves the price 2 % up or the bid 2 % down.
/historical_trades?ticker_id=&type=&limit=
Recent buys and sells, at most 100 a page, paged back with before=.
Rules
No key, GET only, JSON. One rate bucket per client: 240 requests, then 8 a second.
A pair is a launch: the launch token against its quote. There are no pools; graduation keeps the same pair.
Liquidity is the quote side: the money the program holds to buy tokens back, plus the money raised before graduation. The token side is reported as 0.
Amounts are exact decimal strings in whole units; an unknown figure is left out, never sent as 0.
A bad query is a 400, an unknown or unlisted id a 404, and a 503 when the whole answer cannot be read: never a partial page.
Ids are byte-exact: Solana addresses are case-sensitive.
A buy the program cannot finish fills what it reached and refunds the rest in the same call.
Step budget: 16 price pieces for a Solana buy, 24 for an EVM buy and for any sell.
Buys and sells cannot be paused. Only new launches can.
No pool and no outside LPs. Liquidity is F + C + K, plus Bonding’s money before graduation.
Fees are on top, in the quote: the Platform fee (0.4%) and the $FLOOR fee (0.1%) before graduation; from graduation the Team Fee, Backing Fee, Platform fee, $FLOOR fee and Holder Fee.
A quote must be on the chain’s quote registry.
Graduation is a state change on the same program: the pair and the address stay.
How a FLOOR launch works, in four chapters: a flat-price window, a Stack that sells as the price climbs, and the floor under it. With a toy launch to trade.