gmx.types

Documentation for eth_defi.gmx.types Python module.

GMX protocol type definitions.

Common type aliases used throughout the GMX module for better type safety and documentation.

TokenSymbol

Token symbol (e.g., “BTC”, “ETH”, “USDC”)

MarketSymbol

Market symbol (e.g., “BTC”, “ETH/USD”, “DOGE”)

MarketAddress

Market address as hexadecimal string

USDAmount

USD-denominated price or value

APRDecimal

Annual Percentage Rate as decimal (e.g., 0.05 for 5%)

PositionSide

Position side identifier (“long” or “short”)

alias of Literal[‘long’, ‘short’]

LiquidityData

Liquidity data for a specific side/market

alias of dict[str, float]

MarketData

Market data mapping

alias of dict[str, float]

PositionSideData

Position side data mapping

alias of dict[Literal[‘long’, ‘short’], dict[str, float]]

PriceData

Price data mapping

alias of dict[str, float]

TVLData

TVL data mapping

alias of dict[str, float]

InterestData

Interest data mapping

alias of dict[str, float]