acmeyer / open-source-coinbase-index-fund

Create your own index fund on Coinbase Pro that replicates Coinbase's Index Fund.
MIT License
15 stars 8 forks source link

Add an official calculation of Methodology rather than pulling weights from Coinbase #9

Open acmeyer opened 6 years ago

acmeyer commented 6 years ago

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.

just-nilux commented 4 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.

acmeyer commented 4 years ago

@nomad5am the app still pulls the weights from CB.

just-nilux commented 4 years ago

@acmeyer But AFAIK they took down all their website and json files right? So it won't work anymore, correct?

acmeyer commented 4 years ago

@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.