Hi,
If my goal is to get the token balances of several users on specified dates over a period what would be the best way to go about this?
For example: 100 users that I want to get weekly snapshot holdings for the last 12 months (or say monthly balance snapshots over the last 24 months)
One way I could do it is to request the tokens per wallet per month:
https://docs.moralis.io/web3-data-api/evm/reference/get-wallet-token-balances?
This means I would have to run this request 100 users x 52 weeks =5200 times, right?
Alternatively I could use the wallet history approach where I could request the complete wallet history: https://docs.moralis.io/web3-data-api/evm/reference/wallet-api/get-wallet-history?
Then recreate the wallet snapshots locally for the last 12 months.
This would only require 100 calls, right?
I was curious if there was a certain set of rules that could convert this second endpoint of wallet history to exactly match the snapshot of tokens from the first endpoint in every scenario.
Basically if i call the full wallet history of a user what would be the formula used to convert that wallet history to weekly snapshots.
Are there any exceptions in the wallet history that would give me an incomplete snapshot of a user for a given week or month?
Thank you.