awitherow / coinbot-prototype

a coin trading assistant [deprecated]
http://awitherow.github.com/coinbot-prototype
7 stars 3 forks source link

mutli coin integration #15

Closed awitherow closed 7 years ago

awitherow commented 7 years ago

https://github.com/coinbase/gdax-node/issues/20

Apparently you have to create multiple clients.

psuedo implementation

const choiceCurrency = "USD"
const coins = [`BTC`, 'ETH', 'LTC'];

coins.map(coin => run(`coin-${choiceCurrency}`));

getSnapshot(coin) -> client[coin].getProductTicker(coinSnapshot)
getAccount(coin) -> client[coin].getAccounts filter == coin

run algorithm as normal.
awitherow commented 7 years ago

woot! #28 closes this.