PriceImpactParams

Documentation for eth_defi.gmx.market_depth.PriceImpactParams Python class.

class PriceImpactParams

Bases: object

Per-market price impact parameters read from the GMX DataStore contract.

All factor and exponent values use GMX’s 30-decimal fixed-point format (integers). Pass them directly to estimate_position_price_impact().

Attributes summary

positive_factor

negative_factor

positive_exponent

negative_exponent

max_positive_factor

max_negative_factor

Methods summary

__init__(positive_factor, negative_factor, ...)

__init__(positive_factor, negative_factor, positive_exponent, negative_exponent, max_positive_factor, max_negative_factor)
Parameters
  • positive_factor (int) –

  • negative_factor (int) –

  • positive_exponent (int) –

  • negative_exponent (int) –

  • max_positive_factor (int) –

  • max_negative_factor (int) –

Return type

None