gnosis / prediction-market-agent-tooling

Tools to benchmark, deploy and monitor prediction market agents.
GNU Lesser General Public License v3.0
22 stars 4 forks source link

Add `supported_markets` field to `DeployableTraderAgent` #519

Closed kongzii closed 1 month ago

kongzii commented 1 month ago

We are doing stuff like

if market_type != MarketType.OMEN:
    raise RuntimeError("This agent works only on Omen markets.")

in PMA. I think it'd be great to have it as a property directly on DeployableTraderAgent.

And then refactor PMA to use it.

kongzii commented 1 month ago

Was needed in https://github.com/gnosis/prediction-market-agent-tooling/pull/525, so added it as part of that PR