Skip to content

jxc6698/bitcoin-exchange-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

bitcoin exchange api for golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages