In my previous public update for this tool, the most important addition was support for diesel pools.
I guess the tool started to shape up quite well with today's commits. By the way, I'm anxious to see VSC starting to get used, so I can build something for it too.
In the meantime, this is what's new for today's update:
setup.sh
which:
FIXED:
I just realized that this shell script runs all accounts with the same set of tokens defined in config.py
for all accounts; I suggest you to use the multiaccount-manual-run.sh
for snapshots of a different set of tokens for each account, until I fix this)multiaccount-manual-run.sh
where someone can add all their accounts and associated lists of tokens and the script will run for each account (and create a snapshot json file for each account); persistent caching helps prevent asking for the same data from APIs multiple times. I added this shell script thinking about people who don't want the snapshots being taken automatically (maybe because they don't want to add a service and a timer on their system or because they want it to run it occasionally)The structure of snapshots is as follows. Under the SNAPSHOTS_DIR
(defined in config.py
or taken as an argument in command line), we have:
[SMAPSHOTS_DIR]/[USERNAME]/[SNAPSHOT_TYPE]/timestamped-filename.json
Something like this:
The exact filename depends on the snapshot type. For example, for a weekly snapshot, it would be something like 2025-W26.json
.
At this point, after I fix (FIXED!) the oversight about the automated script using the same list of tokens for every account, instead of distinct ones (which can easily be circumvented for the short term by running the multiaccount-manual-run.sh
), this side of the tool is pretty much feature complete.
What could be done next would be to use the snapshot JSON files to generate some reports / charts, but that's another big project by itself.
What I can say is that, despite using AIs to help with this project, I learned (or remembered where I already knew somewhere in the back of my mind) a bunch through it.
setup.sh
to work with a list of accounts AND the associated list of tokens for each account.
setup.sh
stop-automation.sh
, in case someone doesn't want automated snapshots taken anymoreuninstall.sh
script with the obvious functionality (read the updated readme.md
on the repo for more info)Any feedback?
I think the tool is looking good. Are you having AI refractor the code for you? I remember that being a tedious step, but its good so that the code is more easily maintained.
It helps here and there. But I do more and more myself to avoid running out of free prompts for the day (for multiple models, lol).
It's quite complicated to get the AI involved in this. You have to be smart about it, because otherwise you could run out of prompts after... 1 prompt, and not even that one completed.
How do you determine the second layer tokens value? I mean it's a market maker so it takes the buy orders value?
Ignore the previous message if you read it.
It's the average between buy price and sell price. If buy price is missing, it is considered 0, so in effect the price of the token is considered half the sell price. If both are missing, the price is 0.
could make a dynamic calculation? tokens with a wide spread or low sale volume i guess its optimistic even the average
View more
I haven't used this tool before, but since you said that using it makes things easier, I will definitely try using it.
Well... I built it. How can I say otherwise? 😄