Open gabrielfior opened 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).
"https://clob.polymarket.com/"
We should use the newer markets endpoint (docs). It has pagination, skip, etc.
markets
@kongzii also says it's OK to remove the old clob endpoint usage in favor of the new endpoint.
clob
Linking this comment here https://github.com/gnosis/prediction-market-agent-tooling/pull/506/files#diff-5011282075767c1cfa0a6950d58a8e7a055ff591320be5b11937b2250b6fe720R33
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.