Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue while calling api #6

Open
abhidev54 opened this issue Jan 10, 2018 · 2 comments
Open

Issue while calling api #6

abhidev54 opened this issue Jan 10, 2018 · 2 comments

Comments

@abhidev54
Copy link

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?

@milosjovac
Copy link

milosjovac commented Jan 12, 2018

Try

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

@Nixon1979
Copy link

Awesome, thanks this helped...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants