hitbtc-api-node
hitbtc-api-node copied to clipboard
Issue while calling api
const websocketClient = HitBTC.WebsocketClient({ key, secret, isDemo: false });
It is giving error like "TypeError: HitBTC.WebsocketClient is not a function".
Can you please help me on this?
Try
const HitBTC = require('hitbtc-api').default
let websocketClient = new HitBTC.WebsocketClient({ key: key, secret: secret, isDemo: false })
Awesome, thanks this helped...