v2

OpenAPI 3.0.02026-07-311824171.4 MB
Trading
Matching Engine
Private

Configures Market Maker Protection (MMP) for a specific index. This method sets the monitoring window, freeze duration, and exposure limits (quantity, delta, vega, and Maximum Quote Quantity).

At least one limit parameter must be set. Maximum Quote Quantity (MQQ) is a required parameter that limits the total combined size of open MMP orders. MQQ is configured per index but enforced per side, per order book (instrument).

The interval parameter defines the monitoring window duration in seconds. The frozen_time parameter sets how long MMP remains active after being triggered. Set frozen_time to 0 to disable automatic reset (manual reset required).

For Mass Quotes, use the mmp_group parameter to configure MMP for a specific group. Set block_rfq to true to configure MMP for Block RFQ (requires block_rfq:read_write scope). Set interval to 0 to remove MMP configuration.

MMP margin reservation (MQQ-based Initial Margin)

Setting a non-zero max_quote_quantity immediately reserves Initial Margin equal to MQQ × 3%. This reservation is unconditional and continuous — it is held from the moment the config is active regardless of whether you have any open positions or open orders. Multiple MMP groups on the same currency pair each contribute independently. The reserved margin is visible in the Portfolio Margin section of the platform.

To release the reserved margin, remove the MMP configuration entirely by calling this method with interval = 0. Setting interval to 0 deletes the configuration entry for the specified index_name (and mmp_group if provided), which immediately frees all margin reserved by that config entry.

📖 Related Article: Market Maker Protection API Configuration

Scope: trade:read_write or block_rfq:read_write (when block_rfq = true)

Try in API console

get/private/set_mmp_config

Query parameters

index_name'btc_usd' | 'eth_usd' | 'btc_usdc' | 'eth_usdc' | 'ada_usdc' | 'algo_usdc' | 'avax_usdc' | 'bch_usdc' | 'bnb_usdc' | 'doge_usdc' | 'dot_usdc' | 'hype_usdc' | 'link_usdc' | 'ltc_usdc' | 'near_usdc' | 'paxg_usdc' | 'shib_usdc' | 'sol_usdc' | 'ton_usdc' | 'trx_usdc' | 'trump_usdc' | 'uni_usdc' | 'xrp_usdc' | 'usde_usdc' | 'buidl_usdc' | 'btcdvol_usdc' | 'ethdvol_usdc' | 'btc_usdt' | 'eth_usdt' | 'all' required

Index identifier of derivative instrument on the platform

Index identifier of derivative instrument on the platform

intervalinteger required
Example:60

The duration of the monitoring window in seconds. For example, an interval of 3 implies a 3-second window.

The interval begins after the first trade. If a new trade is executed after the interval has ended, a new interval is started, and counters reset. If a trade occurs during an already running interval, that interval continues unaffected.

This mechanism allows the platform to track activity in short, rolling windows to identify potentially risky trading behavior.

If set to 0, the entire MMP configuration entry for this index_name (and mmp_group) is removed. This also releases any Initial Margin that was reserved by max_quote_quantity.

Maximum value: 3600 seconds (1 hour).

frozen_timeinteger required

Time in seconds that MMP remains active after being triggered. Once this frozen period has passed, MMP will automatically reset, allowing new orders to be submitted.

If you want to disable automatic reset, set frozen_time to 0. In that case, a manual reset is required using the private/reset_mmp method.

Manual reset is also possible during the frozen time period.

Maximum value: 3600 seconds (1 hour).

mmp_groupstring
Example:MassQuoteBot7

Designates the MMP group for which the configuration is being set. If the specified group is already associated with a different index_name, an error is returned. This parameter enables distinct configurations for each MMP group, linked to particular index_name. Maximum 64 characters. Case sensitive.

Omitting this parameter targets the orders MMP group — the default group used for regular orders with the mmp flag set. This is not an error or an incomplete request.

Passing an explicit empty string ("") is not allowed and returns an error. Only omitting the parameter reaches the orders MMP group.

📖 Related Article: Mass Quotes Specifications

quantity_limitnumber
Example:3

The total traded quantity, measured in units of the base currency (e.g., BTC in BTC-PERPETUAL), within the interval.

This count is direction-agnostic—a buy followed by a sell counts double.

Example: Buy 10 BTC and sell 10 BTC = 20 total quantity.

Applicable to both options and futures.

Positive value with maximum 4 decimal places.

delta_limitnumber

The maximum allowable net transaction delta change during the interval.

Expressed in units of base currency.

The delta_limit is treated as an absolute threshold: e.g., delta_limit: 10 → MMP is triggered if net transaction delta exceeds +10 or drops below -10.

Direction matters: buying +5 delta and selling −5 delta cancels out if within the same interval.

Note: Note that we use the net transaction delta instead of delta. Net Transaction Delta = Delta - Mark Price. In the rest of this document, "delta" actually refers to net transaction delta.

Positive value with maximum 4 decimal places.

vega_limitnumber

The maximum change in vega exposure allowed within a given interval, measured in absolute terms.

Expressed in USD, representing the change in sensitivity to implied volatility across executed trades.

This parameter is primarily relevant for options traders managing risk in volatile markets.

Similar to delta_limit, the vega_limit is direction-aware and evaluated on a net basis. If the exposure exceeds the set threshold (positively or negatively), MMP will be triggered.

Notice: When evaluating Delta and Vega limits for MMP, Deribit uses the greeks at the moment of trade execution. The system does not re-evaluate Delta or Vega using live greeks at the time of MMP checking.

Positive value with maximum 4 decimal places.

max_quote_quantitynumber required
Example:2.5

Maximum Quote Quantity (MQQ) in base currency. MQQ is configured per index but enforced per side, per order book (instrument) — the total combined size of open MMP orders per side per instrument cannot exceed MQQ. See response description for detailed information about MQQ behavior and limitations. Maximum 4 decimal places.

block_rfqboolean

If true, configures MMP for Block RFQ. When set, requires block_rfq scope instead of trade scope. Block RFQ MMP settings are completely separate from normal order/quote MMP settings.

trade_count_limitinteger

For Block RFQ only (block_rfq = true). Sets the maximum number of Block RFQ trades allowed in the lookback window. Each RFQ trade counts as +1 towards the limit (not individual legs). Works across all currency pairs. When using this parameter, index_name must be set to "all". Maximum - 1000.

Response

Success response

jsonrpc'2.0' required

The JSON-RPC version (2.0)

idinteger

The id that was sent in the request