---
title: "private/set_mmp_config"
method: POST
path: "/private/set_mmp_config"
tags: ["Market Maker Protection"]
---

# private/set_mmp_config

`POST /private/set_mmp_config`

## Request

- Base URL: `https://api.derive.xyz/v3`
- URL: `https://api.derive.xyz/v3/private/set_mmp_config`
- Auth: API key in header `X-DeriveWallet` and API key in header `X-DeriveTimestamp` and API key in header `X-DeriveSignature`

Creates or fully replaces the market maker protection settings for a subaccount and currency. Accepts an amount limit and delta limit (as decimals) plus the rolling interval and freeze duration in milliseconds; omitted limits default to zero. Requires a trading-scoped session key and echoes the applied configuration back.

## Request body

- SetMmpConfigRequest: `mmp_interval` and `mmp_frozen_time` are specified in milliseconds (rounded up to the nearest whole second).
  - `currency` string, required
  - `mmp_amount_limit` string, decimal: Decimal string of the human value (e.g. `"1.5"`), up to 12 fractional digits; a string or JSON number is accepted
  - `mmp_delta_limit` string, decimal: Decimal string of the human value (e.g. `"1.5"`), up to 12 fractional digits; a string or JSON number is accepted
  - `mmp_frozen_time` integer, required
  - `mmp_interval` integer, required
  - `subaccount_id` integer, required

## Response `200`

Success

- SetMmpConfigResponse: Echoes the stored config: decimal-string limits, ms intervals.
  - `currency` string, required
  - `mmp_amount_limit` string, required
  - `mmp_delta_limit` string, required
  - `mmp_frozen_time` integer, required
  - `mmp_interval` integer, required
  - `subaccount_id` integer, required

## Other responses

- `default`: JSON-RPC error (see Error Codes)

## Changes

- **2026-10-20** `0c500202be49`: 2 info
  - the endpoint scheme security `DeriveWallet AND DeriveTimestamp AND DeriveSignature` was added to the API
  - added the media type `application/json` for the response with the status `default`

[Operation history](https://skmtc.dev/lyra/apis/derive-v3-api/changes/private/set_mmp_config/post.md)

---

[API](https://skmtc.dev/lyra/apis/derive-v3-api.md) - [All operations](https://skmtc.dev/lyra/apis/derive-v3-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lyra/apis/derive-v3-api/revisions/415f8a73b10c?raw)
