I'm working on a defi tracking project as a way to solve a problem I have and learn to code as I go. The goal is a website where the user can enter a wallet address and get the P&L for different positions they have. Zapper does a good job for 80% of what is needed, but there's no P&L calc and no way to see how the returns work.
So, I've started with some simple API calls using covalent and I'm trying to figure out how to organize my files. Right now I'm writing a class to call APIs. Should that be in a folder that has all the code around dealing with API data? Should the API data cleaning be done in separate files? How about the website features like calculating the P&L?
I've heard of the MVC framework, but I'm not sure how to apply it. Any insight is appreciated. Thanks in advance.