gmx_fork_position_reads

Documentation for eth_defi.testing.gmx_lagoon.gmx_fork_position_reads function.

gmx_fork_position_reads()

Read positions from the actual fork instead of public-chain indexers.

Public REST/GraphQL services cannot index transactions on a private Anvil fork. Return empty results from those two tiers so the unchanged production reader takes its real RPC fallback. Market/oracle APIs and onchain contract calls remain live. Provider integration tests separately exercise the tiers.

Returns

Context with restored reader methods on exit.

Return type

collections.abc.Iterator[None]