@dataalways
the tough part is adjusting for inputs right? so you have to take the spent_tx_id from bitcoin.inputs, use its date and calculate realized value from that. i wonder if dune could even handle, there's about 1 million inputs per day that will each be looking up a custom value. and then you need to do that for 15 years