Stable funding perps (SFP)
How stable funding perps (_SFP instruments) differ from perpetuals: trading hours, index pricing, daily funding at fixed long and short rates, order rules, RFQs, and what qualified makers do.
On this page
Help me with: Stable funding perps (SFP). How stable funding perps (_SFP instruments) differ from perpetuals: trading hours, index pricing, daily funding at fixed long and short rates, order rules, RFQs, and what qualified makers do.
Target environment: {environment} (chain ID {chainId}). Recorded signing cases keep their original environment.
{executionGuidance}
Read this first: {origin}/bundle/guides/stable-perps.md (~21 KB, plain Markdown: this page plus the AGENTS.md rules, Environments).
Fetch other pages from the index at {origin}/llms.txt only as you need them. {origin}/downloads/contract.json is a machine-readable contract for tools, not for reading.
Rules: follow AGENTS.md; do not send requests without the user asking you to; read credentials from environment variables; never retry writes automatically; show me the code and how to run it. A stable funding perp (SFP) is a perpetual on a traditional market such as gold or crude
oil. Its instruments end in _SFP (for example XAU_USDC_SFP) and have kind STABLE_PERP. It differs from
a crypto perpetual in four ways:
- It trades only while its underlying market is open (Trading hours).
- It has no mark price (the fair-value price crypto perpetuals use for margin). Margin, PnL (profit and loss) and liquidation use the index price, the underlying market's spot price (Prices).
- Funding is charged once a day, at separate rates for longs and shorts, quoted as an annual percentage (Funding).
- Only qualified makers (market makers approved by Grvt) rest orders on the book. Everyone else trades against them as a taker, and takers pay no trading fee (Placing orders).
The calls are under RFQ (request for quote) and Trading hours in the reference. Most other calls work as usual, with the differences on this page.
Finding them
get_all_instruments returns perpetuals only unless you ask for other kinds:
{"kinds": ["STABLE_PERP"], "is_active": true}
get_filtered_instruments with "kind": ["STABLE_PERP"] works
too. Fields that matter here:
| Field | Meaning |
|---|---|
asset_class | Picks the trading schedule, for example COMMODITY_CME |
triple_swap_day | Stable funding perps only. The weekday whose funding charge covers 3 days (the weekend). It differs by instrument |
spread_penalty_tolerance | Stable funding perps only. For makers: how far from the index price a fill can happen before the maker pays a fee penalty (Fees) |
Before you trade
The sub-account must be in multi-asset mode, where it can hold several currencies as collateral.
Otherwise orders and RFQs fail with 2147 StablePerpRequiresMultiAssetMode. While it holds a stable funding perp
position or open order, it can't switch back to single-asset mode.
Trading hours
get_sfp_trading_schedule returns this week's sessions and this year's holidays for each asset class (and for instrument groups with their own hours). For example, CME commodities trade from Sunday 18:00 to Friday 17:00 New York time, with a break from 17:00 to 18:00 each day. A holiday can close a market early or for the whole day.
ticker shows the current session (REGULAR, PRE_MARKET, AFTER_MARKET,
OVERNIGHT or CLOSE). During CLOSE, status is CLOSED and:
- new orders and create_rfq fail with
7726 ErrSfpMarketClosed; cancels still work; - the index price is frozen until the market opens again;
- liquidation continues.
Prices
The index price values positions for margin, PnL and liquidation. It also triggers take-profit and
stop-loss orders with trigger_by INDEX or MID (others get 2111 UnsupportedTriggerBy).
Market data differs from perpetuals:
| Call | For stable funding perps |
|---|---|
ticker, v1.ticker.s / v1.ticker.d | No mark_price, funding_rate*, best_bid_size, best_ask_size, last_size or long_short_ratio. Adds funding_rate_long_apr_pct, funding_rate_short_apr_pct and session. Stream rate must be 5000 ms or more. REST calls can have their own per-IP budget, shared by all stable funding perps (Rate limits) |
candlestick, v1.candle | INDEX candles only (3043 for other types) |
| mini_ticker, trade, trade_history, and their streams | Not available: 7725 ErrSfpEndpointNotSupported. Your own fills are in fill_history |
orderbook_levels, v1.book.* | As usual. The book holds qualified makers' orders |
Funding
Each trading day, at the close of the regular session, every open position pays or receives funding. Longs and shorts have separate rates, each an annual percentage. For both, positive means that side receives and negative means it pays.
How much, for one position:
amount = abs(size) × index price × abs(rate) / 100 × days / 365
sizeis the position size, without its sign: the side decides which rate applies. (Qualified makers are paid differently.)index priceis the index when the charge runs, within a minute after the charge time. funding_rate records it asmark_price.daysis 3 on the instrument'striple_swap_day(covering the weekend) and 1 on other days. There is no charge on Saturday or Sunday.- On a weekday holiday the charge runs once as usual: at the early close if the market closes early, otherwise
at its regular close time. ticker's
next_funding_timeis the exact time of the next charge. - Amounts are rounded in the exchange's favour: up when you pay, down when you receive.
For example, a long of 10 XAU_USDC_SFP at an index of 3,880 and a long rate of -5.44 pays about 5.78 USDC a
day, and about 17.35 USDC on its triple day.
| Where to read it | What |
|---|---|
| ticker | The rates for the next charge (funding_rate_long_apr_pct, funding_rate_short_apr_pct) and next_funding_time. The rates come from qualified makers and can change until the charge |
| funding_rate | Past charges: both rates, funding_multiplier (days in the formula) and mark_price (the index used). Hourly aggregation is rejected (3008) |
| funding_payment_history | What each of your positions paid or received: amount is positive when it paid, negative when it received |
Guarantees and edge cases
- Each side's rate is the lowest maker rate minus a spread.
- With no maker rates, the rate is 0.
Placing orders
| Rule | Error |
|---|---|
Limit orders only. To buy "at market", send an IOC order with limit_price set to the worst price you accept | 7711 |
Time in force is GOOD_TILL_TIME (GTT: rests until filled, cancelled or expired) or IMMEDIATE_OR_CANCEL (IOC: fills what it can at once, cancels the rest). No fill-or-kill | 7709 |
| Post-only orders (rejected rather than trade at once) are for qualified makers only | 7724 |
No private quotes (metadata.is_private) | 7706 |
A GOOD_TILL_TIME limit order from an account that is not a qualified maker doesn't rest on the public book.
It waits off the book and fills, as a taker, when a maker order on the book crosses its price.
Fees. Takers pay no trading fee. Makers pay their tier's maker fee, plus a penalty on fills more than
spread_penalty_tolerance (a percentage) from the index price, in the maker's favour.
Trading a large size: RFQ
When the book is too thin for your size, ask for quotes:
- Call create_rfq with the instrument,
sizeand optionallyside(leave it out to ask both ways). It lives untilexpiry: 60 s by default, at most 300 s. A sub-account can have one open RFQ per instrument (2146for a second). - Qualified makers see it, with an anonymous ID instead of your account and without your side, and can add orders for it.
- v1.quote sends you, for each side, the average price for your size and how much of it the book can fill, updated as the book changes (at most every 500 ms).
- To trade, send an IOC limit order with
metadata.rfq_idset, on the RFQ's instrument (7705otherwise), while the RFQ is open (7707). Its side must match the RFQ's side if you gave one; its size can differ. One order per RFQ (7708for a second).
Or let it expire, or cancel_rfq. Fills from an RFQ carry rfq_id and
counterparty_type.
Errors
Error codes lists every stable funding perp error (codes 77xx and 78xx, plus 2111,
2146, 2147, 3008 and 3043). Two need context their messages don't give:
| Code | Name | What it means |
|---|---|---|
| 7704 | ErrSfpOrderNotSupported | Stable funding perp orders are switched off in this environment |
| 7701 | ErrSfpIndicativeNotQualifiedMaker | A maker-only action (indicative prices or ECN orders) from an account that is not a qualified maker for the instrument |