price btc get unhandled promise reject warning
(node:46296) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'last' of undefined
(node:46296) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
while getting other coins' price is perfectly working. why? node version 8.7
Try running it with a specific exchange, see if that narrows down the error:
coinx price btc -e kraken
etc
the same error appears again..
(node:90024) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'last' of undefined
(node:90024) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I don't know if it's relevant, but i have just configured api key only on kraken. Yet none of the five exchange returns true result. Moreover, specifying -e parameter doesn't make any difference on the outcome of other coins whose value are correctly returned. Here's the complete log and thank you for your time.
>coinx price btc -e liqui
Getting prices for Bitcoin (BTC)...
(node:89464) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'last' of undefined
(node:89464) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
>coinx price btc -e bitfinex
Getting prices for Bitcoin (BTC)...
(node:89092) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'last' of undefined
(node:89092) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
>coinx price btc -e bittrex
Getting prices for Bitcoin (BTC)...
(node:85928) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'last' of undefined
(node:85928) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
>coinx price btc -e poloniex
Getting prices for Bitcoin (BTC)...
(node:85276) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'last' of undefined
(node:85276) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
>coinx price etc -e poloniex
Getting prices for Ethereum Classic (ETC)...
Exchange Price in BTC Price in USD
Bitfinex 0.00194000 $14.34
Bittrex 0.00194681 $14.39
Kraken 0.00195400 $14.44
Average 0.00194694 $14.39
I've tried ETH and it often takes a long time (say 10 hours) before returning value (which i've never seen). Currently BTC and ETH are the only known coins that coinx on my machine cannot reach the prices.