Open acmeyer opened 6 years ago
@acmeyer Whats the state of this? I couldn't really figure out if you still rely on the CB allocation data or if you do the calculation yourself.
@nomad5am the app still pulls the weights from CB.
@acmeyer But AFAIK they took down all their website and json files right? So it won't work anymore, correct?
@nomad5am looks like you're correct, it's been taken down. So the weights will only work if you had the app running prior to them taking it down and only then whatever they were at that moment. Sorry, this repo has been neglected since it wasn't being heavily used.
Currently, the weights for the Index Fund are being pulled from https://index-am.coinbase.com//v2/indices/cbi/composition.json to match Coinbase's weights.
The goal here is to do this all automatically with an official calculation, that uses the same formula Coinbase does. That way, if Coinbase ever changes the url or otherwise removes the ability to get this information, the code can still work properly.
Their methodology can be found here.