fetch_price_impact_params
Documentation for eth_defi.gmx.market_depth.fetch_price_impact_params function.
- fetch_price_impact_params(config, market_address)
Fetch price impact parameters from the GMX DataStore contract.
Reads the six per-market parameters needed by
estimate_position_price_impact()via individualgetUintcalls on the DataStore contract.- Parameters
config (eth_defi.gmx.config.GMXConfig) – Initialised GMX configuration with web3 connection
market_address (eth_typing.evm.HexAddress) – GMX market token address (
MarketDepthInfo.market_token_address)
- Returns
Populated
PriceImpactParams- Return type