get_gmx_market_addresses

Documentation for eth_defi.gmx.whitelist.get_gmx_market_addresses function.

get_gmx_market_addresses(web3)

Get iterator of all GMX market addresses for a chain.

Convenience function for scripting and batch operations.

Example:

from web3 import Web3
from eth_defi.gmx.whitelist import get_gmx_market_addresses

web3 = Web3(Web3.HTTPProvider("https://arb1.arbitrum.io/rpc"))

for market_address in get_gmx_market_addresses(web3):
    print(market_address)
Parameters

web3 (web3.main.Web3) – Web3 instance connected to Arbitrum or another GMX-supported chain.

Returns

Iterator of market addresses.

Return type

Iterator[eth_typing.evm.HexAddress]