dparlevliet / node.bittrex.api

Node Bittrex API is an asynchronous node.js library for the Bittrex API, the data can be received either via GET request or Stream.
MIT License
253 stars 100 forks source link

Provide warnings for missing options #148

Open TomYeoman opened 6 years ago

TomYeoman commented 6 years ago

Hi all,

great project you have here!

This is a fix for a little pain point I had when accidentally passing through undefined as my API key, which resulted in a cryptic error about "sigBytes being undefined".

Upon digging further I found the issue but thought this addition would help users spot early on if they've passed any undefined options in.

Thanks!