PositionSizingResult
Documentation for eth_defi.gmx.market_depth.PositionSizingResult Python class.
- class PositionSizingResult
Bases:
objectResult of whale-risk position sizing for one side of a market.
Computed by
calculate_max_position_whale_risk(). The maximum position is the tightest of three constraints:Portfolio: the total capital available (
portfolio_usd).Whale risk: a fraction of the side’s open interest (
max_oi_pct * side_oi), so the position doesn’t move the market disproportionately.Pool capacity: the remaining OI capacity before the reserve cap.
Attributes summary
max_position_usdpct_of_total_oiwhale_okcap_okbinding_constraintMethods summary
__init__(max_position_usd, pct_of_total_oi, ...)