normalize_gmx_token_symbol

Documentation for eth_defi.gmx.contracts.normalize_gmx_token_symbol function.

normalize_gmx_token_symbol(chain, token_symbol)

Normalize token symbol to the canonical form used by GMX API for a given chain.

On GMX, ETH and WETH are treated as the same token, as are AVAX and WAVAX. This function returns the canonical symbol that GMX API uses.

Parameters
  • chain (str) – Network name

  • token_symbol (str) – Original token symbol (e.g., “ETH”, “WETH”)

Returns

Canonical token symbol (e.g., always “ETH” for ETH/WETH on Arbitrum)

Return type

str