Configure Polymarket Subgraph to get top market holders

Job ID: 39033385

Budget: $10 – $30 USD

I need help configuring the Polymarket subgraph git repository (https://github.com/Polymarket/polymarket-subgraph) to only listen to specific information

The end goal of this project is to be able to input a list of Polymarket market/outcome IDs and have the output be an object showing the addresses of the top 10 holders of that outcome and how many shares each of the addresses hold.

**The only thing I need help with is modifying the code in the repo so that it only fetches the information I need.** I have cloned the Polymarket subgraph git repository and have already connected it to Alchemy. The problem is that currently, when I run "docker compose up", it seems that tons of queries and CUs are being used in my Alchemy account (maybe 300,000 in 20 minutes).

I need someone to accomplish two main goals in this project:

1) Modify the code so that only the bare minimum information is listened to in Alchemy to satisfy the requirements: For a given list of market/outcome IDs, once every 60 seconds fetch the object showing the top 10 holders and their number of shares. (And also NOT fetch any other information that will drive up Alchemy query usage.)

2) Configure the code so that it can be dynamic. I can write TypeScript code that will fetch and update a list of market/outcomes every 60 minutes. I just need you to configure the repo's code so that the connection to Alchemy reads in from a dynamic variable (the current list of markets).

When you apply, send me an example of related Web3 work that you've done, otherwise I will not respond.
Related categories: Node.js GraphQL