Skip to content

MMPOperations

MMPOperations

Info

Access via client.mmp property.

Market maker protection operations.

Initialize market maker protection operations.

Parameters:

Name Type Description Default
subaccount Subaccount

Subaccount instance providing access to auth, config, and APIs

required

Functions

get_config

get_config(
    *, currency: Optional[str] = None
) -> list[MMPConfigResultSchema]

Get the current mmp config for a subaccount (optionally filtered by currency).

reset

reset(*, currency: Optional[str] = None) -> Result

Resets (unfreezes) the mmp state for a subaccount (optionally filtered by currency).

set_config

set_config(
    *,
    currency: str,
    mmp_frozen_time: int,
    mmp_interval: int,
    mmp_amount_limit: Decimal = Decimal("0"),
    mmp_delta_limit: Decimal = Decimal("0")
) -> PrivateSetMmpConfigResultSchema

Set the mmp config for the subaccount and currency.