zoeydawn / coin-ticker

Wrapper for bitcoin exchange apis. The easiest way to add cryptocurrency market data into your application!
https://www.npmjs.com/package/coin-ticker
45 stars 22 forks source link

Promise pending #4

Closed scottie closed 7 years ago

scottie commented 7 years ago

I get Promise pending no matter how i run this. Any ideas? Even in node terminal.

zoeydawn commented 7 years ago

It actually returns a promise. I have updated the readme because I see how this could be confusing. Try using a promise like this:

coinTicker('bitstamp', 'btcusd')
   .then( tick => {
      console.log(tick);
   });