I am working on dividing index.js up into several smaller files. The current list is incomplete:
allocation.js is a set of asset identifiers and a percentage for each, which may be a target or a current value. This allows for a record of what you have on the exchange and another of what you have in one or more other places, and finally a record of how you'd like all these assets to be allocated, which give the bot work to do.)
balancer.js is an object that will determine what trade should be made to hit the passed in allocation target.
exchangeApi.js implements the API for the exchange (currently Kraken)
savings.js is a set of asset identifiers and an amount for each.
I am working on dividing index.js up into several smaller files. The current list is incomplete: allocation.js is a set of asset identifiers and a percentage for each, which may be a target or a current value. This allows for a record of what you have on the exchange and another of what you have in one or more other places, and finally a record of how you'd like all these assets to be allocated, which give the bot work to do.) balancer.js is an object that will determine what trade should be made to hit the passed in allocation target. exchangeApi.js implements the API for the exchange (currently Kraken) savings.js is a set of asset identifiers and an amount for each.