Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 831 Bytes

File metadata and controls

41 lines (27 loc) · 831 Bytes

Description

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

Installation

go get github.com/jxc6698/bitcoin-exchange-api

Usage

You can look at test/bitmex_test.go

Testing

add your apikey and secretkey in path

  export BITMEX_API_KEY="api-key"
  export BITMEX_API_SECRET="api-secret"

run all testcases

  go test test/bitmex_test.go
run a specific testcase
  go test --run Test_restfulapi_bulk test/bitmex_test.go

LICENCE

MIT LICENCE


Thanks