gnosis / prediction-market-agent-tooling

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

Refactor Polymarkets API usage #459

Open gabrielfior opened 1 month ago

gabrielfior commented 1 month ago

Currently we use "https://clob.polymarket.com/" (see https://github.com/gnosis/prediction-market-agent-tooling/blob/1ce2148c36095333263404206ab4e6ac02e46471/prediction_market_agent_tooling/markets/polymarket/api.py#L28) as the API endpoint for fetching markets from Polymarket (for historical reasons).

We should use the newer markets endpoint (docs). It has pagination, skip, etc.

@kongzii also says it's OK to remove the old clob endpoint usage in favor of the new endpoint.

kongzii commented 3 weeks ago

Linking this comment here https://github.com/gnosis/prediction-market-agent-tooling/pull/506/files#diff-5011282075767c1cfa0a6950d58a8e7a055ff591320be5b11937b2250b6fe720R33