I'm trying to use hitbtc-api node-module. Howerver, I'm not quite able to create the class instance correctly through its constructor. The example on its site says I should do it like this:
const restClient = new HitBTC({ key, secret, isDemo: false });
But I don't really know how to pass the key and secret there. I have tried this:
const restClient = new HitBTC({ "123456123456123456", "123456123456123456", isDemo: false });
In this case it returns error saying HitBTC is not a constructor.
I got that the constructor requires object as an parameter, but after this:
const restClient = new HitBTC({ key: "123456123456123456", secret : "123456123456123456", isDemo: false });
and still getting the same error, I gave up trying. Has anyone met with this instance creation before?
I'm a bit curious, because I have never seen an object without key names.