This application allows you to subscribe to the BitMEX. financial exchange, notifications of price changes using a websocket.
It is recommended to use Postman for testing.
The "authKeyExpires" operation is used for authentication. The application immediately after connecting sends this command
{"op": "authKeyExpires", "args": ["ORqVaoVf1TJrVnKexpWjHfjk", 1638741658, "2333c8d56f1db38cfa6e5e3cd2992b78c96dd6dc07f80e549764a26342fa867c"]}
- Test
- Docker
- Сonfiguration
- https://github.com/gorilla/websocket/blob/master/examples/echo/client.go
- https://github.com/adampointer/go-bitmex/tree/6f35eb4e776be519d3327973afea6d0e71e1c512
- https://testnet.bitmex.com/app/apiKeysUsage#full-sample-calculation
- https://github.com/BitMEX/sample-market-maker
├── cmd
│ └── main.go
├── go.mod
├── go.sum
├── images
│ ├── connect.png
│ ├── subscribe.png
│ └── unsubscribe.png
├── internal
│ ├── auth
│ │ └── auth.go
│ ├── bitmex
│ │ ├── bitmex.go
│ │ └── command.go
│ ├── handler
│ │ ├── handler.go
│ │ └── serverWsBitMex.go
│ └── server.go
├── logs
│ └── all.log
├── pkg
│ ├── logging
│ │ └── logging.go
│ └── websocket
│ ├── client.go
│ ├── server.go
│ └── wsServer.go
└── Readme.md
Linters used(staticcheck), If my repository helped you then give it a star please :)