Inspiration

We saw a lot of interest in politician trades. Specifically by how much they outperformed the market. We wanted to be able to get an in-depth view of their actions to see just how good they are doing.

What it does

PolX parses financial data to calculate how much money politicians make on a trade-by-trade basis in comparison with you, had you done the same trade as soon as it became public information.

How we built it

We used a Golang monorepo + React.js frontend to build everything. To make things as efficient as possible we split up our backend into two services: scraping and analytics. Scraping pulls data, while analytics processes user requests in combination with the aforementioned scraped data.

Both services are containerized and deployed to GCP.

Challenges we ran into

We really wanted to let you all use the demo, but we got hit with the good ol' frontend CORS error so we couldn't upload the frontend.

Accomplishments that we're proud of

The app is storing around 10,000 politican trades with an easy way to expand further. In addition the calculations on senators with larger data sets are quite accurate. Finally the UI is pretty clean in our opinions.

What we learned

Working between different operating systems is very challenging. Even though all of use were using tools like ASDF, Docker, and the same shell, it was very frustrating to battle dependency issues.

What's next for POLX

PolX needs more data, more servers, and less CORS. Once those three things are done, our app should be able to help guide you to trade like a politican!

Share this project:

Updates