dojo.market_agents.gmxV2

Models for GMX V2 protocol.

class HistoricReplayAgent(dojo.agents.base_agent.BaseAgent[typing.Any]):

Agent that replays historic actions exactly.

HistoricReplayAgent( chain: dojo.common.Chain, block_range: tuple[int, int], market_venues: list[dojo.models.gmxV2.market.MarketVenue], name: str = 'MarketAgent')

Initialize the agent.

Parameters
  • chain: Agent is for a specific chain.
  • block_range: Range of blocks that this agent should be active on.
  • market_venues: List of GMXv2 markets that the agent should be active on.
def reward(self, obs: Any) -> float:

Reward is not relevant for this agent.