Closed Woutvan closed 4 years ago
401 means your not authenticated. Check those two:
Did you create the API key and secret for the testnet (https://testnet.bybit.com/) or the livenet (https://bybit.com/)? If you created them for the livenet, add livenet: true
to the options:
const ws = new WebsocketClient({key: API_KEY, secret: PRIVATE_KEY, livenet: true});
Is your IP from which you try to access the websocket whitelisted for the key you use?
Hi,
I'm a beginner and just installed your package. My goal is to output each action that is happening on my Bybit account. So when a trade is placed and closed I want to see it in my code. Not sure if this is possible or not.
Now my first test is failing already. I'm trying this:
My API keys are new and are having full access (so not a read only key). The output i get is:
Anyone that can give me a hint? Thanks !