bitmex-client-websocket icon indicating copy to clipboard operation
bitmex-client-websocket copied to clipboard

Support authKeyExpires for expires based authentication

Open supermomonga opened this issue 7 years ago • 3 comments

According to the document, it's not recommended to use nonce for authentication.

https://www.bitmex.com/app/apiKeysUsage#Authenticating-with-an-API-Key

The new recommended way to authenticate is to use expires fir signature calculation, and it's also supported in WebSocket API.

https://www.bitmex.com/app/wsAPI#Authentication

So we can add authKeyExpires method.

supermomonga avatar Jun 18 '18 03:06 supermomonga

note: Python implementation is here. https://github.com/BitMEX/sample-market-maker/blob/master/market_maker/auth/APIKeyAuthWithExpires.py

supermomonga avatar Jun 18 '18 03:06 supermomonga

I'm working on this now.

Sign the initial upgrade request in the same manner you would sign other REST calls (api-* headers), or

This way is not working as expected. I'll send a ticket to the BitMEX support.

After connection, send an "authKeyExpires".

This way works fine at my local branch.

I'll send a Pull Request later.

supermomonga avatar Jun 19 '18 00:06 supermomonga

Hello, ok, thank you. Looking forward to PR

Marfusios avatar Jun 21 '18 20:06 Marfusios