---
title: "Stable funding perps (SFP)"
description: "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."
order: 31
llms: trading, market-data
---

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](#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](#prices)).
- Funding is charged once a day, at separate rates for longs and shorts, quoted as an annual percentage
  ([Funding](#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](#placing-orders)).

The calls are under [RFQ](../reference/index.md#rfq) (request for quote) and
[Trading hours](../reference/index.md#trading-hours) in the reference. Most other calls work as usual, with the
differences on this page.

## Finding them

[get_all_instruments](../reference/rpc/get_all_instruments.md) returns perpetuals only unless you ask for
other kinds:

```json
{"kinds": ["STABLE_PERP"], "is_active": true}
```

[get_filtered_instruments](../reference/rpc/get_filtered_instruments.md) 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](#placing-orders)) |

## 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](../reference/rpc/get_sfp_trading_schedule.md) 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](../reference/rpc/ticker.md) shows the current `session` (`REGULAR`, `PRE_MARKET`, `AFTER_MARKET`,
`OVERNIGHT` or `CLOSE`). During `CLOSE`, `status` is `CLOSED` and:

- new orders and [create_rfq](../reference/rpc/create_rfq.md) 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](../reference/rpc/ticker.md), `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](rate-limits.md)) |
| [candlestick](../reference/rpc/candlestick.md), `v1.candle` | `INDEX` candles only (`3043` for other types) |
| [mini_ticker](../reference/rpc/mini_ticker.md), [trade](../reference/rpc/trade.md), [trade_history](../reference/rpc/trade_history.md), and their streams | Not available: `7725 ErrSfpEndpointNotSupported`. Your own fills are in [fill_history](../reference/rpc/fill_history.md) |
| [orderbook_levels](../reference/rpc/orderbook_levels.md), `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
```

- `size` is the position size, without its sign: the side decides which rate applies. (Qualified makers are
  paid differently.)
- `index price` is the index when the charge runs, within a minute after the charge time.
  [funding_rate](../reference/rpc/funding_rate.md) records it as `mark_price`.
- `days` is 3 on the instrument's `triple_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](../reference/rpc/ticker.md)'s `next_funding_time` is 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](../reference/rpc/ticker.md) | 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](../reference/rpc/funding_rate.md) | Past charges: both rates, `funding_multiplier` (`days` in the formula) and `mark_price` (the index used). Hourly aggregation is rejected (`3008`) |
| [funding_payment_history](../reference/rpc/funding_payment_history.md) | What each of your positions paid or received: `amount` is positive when it paid, negative when it received |

<details>
<summary>Guarantees and edge cases</summary>

- Each side's rate is the lowest maker rate minus a spread.
- With no maker rates, the rate is 0.

</details>

## 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:

1. Call [create_rfq](../reference/rpc/create_rfq.md) with the instrument, `size` and optionally `side` (leave it
   out to ask both ways). It lives until `expiry`: 60 s by default, at most 300 s. A sub-account can have one
   open RFQ per instrument (`2146` for a second).
2. Qualified makers see it, with an anonymous ID instead of your account and without your side, and can add
   orders for it.
3. [v1.quote](../reference/streams/rfq_quote.md) 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).
4. To trade, send an IOC limit order with `metadata.rfq_id` set, on the RFQ's instrument (`7705` otherwise),
   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 (`7708` for a second).

Or let it expire, or [cancel_rfq](../reference/rpc/cancel_rfq.md). Fills from an RFQ carry `rfq_id` and
`counterparty_type`.

## Errors

[Error codes](../reference/errors.md) 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 |
