This repository is bitcoin trade library written by Golang and currently support part of bitmex api.
The websocket part is changed from https://github.com/santacruz123/bitmex-go, I have added restart machenism to help recover from disconnected websocket connections.
restfulApi part use a lot of structures in github.com/BitMEX/api-connectors.git
go get github.com/jxc6698/bitcoin-exchange-api
You can look at test/bitmex_test.go
add your apikey and secretkey in path
export BITMEX_API_KEY="api-key"
export BITMEX_API_SECRET="api-secret"
go test test/bitmex_test.go
go test --run Test_restfulapi_bulk test/bitmex_test.go
MIT LICENCE