Market Maker Protection

private/set_mmp_config

Changed on

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.

post/private/set_mmp_config

Request

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

Request body

SetMmpConfigRequest required

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

Success

SetMmpConfigResponse required

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

Changes

    • info

      the endpoint scheme security DeriveWallet AND DeriveTimestamp AND DeriveSignature was added to the API

    • info

      added the media type application/json for the response with the status