hitbtc-api-node icon indicating copy to clipboard operation
hitbtc-api-node copied to clipboard

Issue while calling api

Open abhidev54 opened this issue 8 years ago • 2 comments

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?

abhidev54 avatar Jan 10 '18 04:01 abhidev54

Try

const HitBTC = require('hitbtc-api').default
let websocketClient = new HitBTC.WebsocketClient({ key: key, secret: secret, isDemo: false })

milosjovac avatar Jan 12 '18 19:01 milosjovac

Awesome, thanks this helped...

Nixon1979 avatar Mar 06 '18 09:03 Nixon1979