https://github.com/fxpgr/go-exchange-client
go-ccex-api-client is a client for Bitcoin Exchanges implemented with Go lang. Poloniex/Hitbtc/Bitflyer etc...
https://github.com/fxpgr/go-exchange-client
binance bitcoin bitflyer exchange golang hitbtc poloniex
Last synced: 5 months ago
JSON representation
go-ccex-api-client is a client for Bitcoin Exchanges implemented with Go lang. Poloniex/Hitbtc/Bitflyer etc...
- Host: GitHub
- URL: https://github.com/fxpgr/go-exchange-client
- Owner: fxpgr
- License: mit
- Created: 2018-02-26T10:00:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-03-13T03:44:57.000Z (over 6 years ago)
- Last Synced: 2025-08-14T08:27:25.747Z (10 months ago)
- Topics: binance, bitcoin, bitflyer, exchange, golang, hitbtc, poloniex
- Language: Go
- Homepage:
- Size: 334 KB
- Stars: 12
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go-ccex-api-Client - a Client for Bitcoin exchanges
[](https://godoc.org/github.com/fxpgr/go-ccex-api-client)
[](https://travis-ci.org/fxpgr/go-ccex-api-client)
[](https://coveralls.io/github/fxpgr/go-ccex-api-client?branch=master&time=now)
[](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity)
This package presents a client for cryptocoin exchange api.
## Example
```go
package main
import (
"fmt"
"github.com/fxpgr/go-ccex-api-client/api/public"
"github.com/fxpgr/go-ccex-api-client/api/private"
"github.com/fxpgr/go-ccex-api-client/models"
)
func main() {
bitflyerPublicApi,err := public.NewClient("bitflyer")
if err != nil {
panic(err)
}
currencyPairs,err := bitflyerPublicApi.CurrencyPairs()
if err != nil {
panic(err)
}
for _,v := range currencyPairs {
fmt.Println(bitflyerPublicApi.Rate(v.Trading,v.Settlement))
fmt.Println(bitflyerPublicApi.Volume(v.Trading,v.Settlement))
}
bitflyerPrivateApi,err := private.NewClient("bitflyer","APIKEY","SECRETKEY")
bitflyerPrivateApi.Balances()
bitflyerPrivateApi.Order("BTC","USDT",models.Bid,10000.0,1)
}
```
## API Documents
- Bitflyer : https://lightning.bitflyer.jp/docs?lang=ja
- Poloniex : https://poloniex.com/support/api/
- Hitbtc : https://api.hitbtc.com/
- Huobi : https://github.com/huobiapi/API_Docs_en/wiki/REST_Reference
## PublicAPI
| | fetchRate() | Volume() | CurrencyPairs() | Rate() | FrozenCurrency() | Board() |
|-----------|-------------|----------|-----------------|--------|------------------|---------|
| Bitflyer | Done | Done | Done | Done | Done | Done |
| Poloniex | Done | Done | Done | Done | Done | Done |
| Hitbtc | Done | Done | Done | Done | Done | Done |
| Huobi | Done | Done | Done | Done | Done | Done |
| Okex | Done | Done | Done | Done | Done | Done |
| Cobinhood | Done | Done | Done | Done | Done | Done |
| Lbank | Done | Done | Done | Done | Done | Done |
| Kucoin | Done | Done | Done | Done | Done | Done |
## PrivateAPI
| | Order() | CancelOrder() | SellFeeRate() | PurchaseFeeRate() | Balances() | CompleteBalances() | ActiveOrders() | TransferFee() | Transfer() | Address() | Precise() |
|----------|---------|---------------|---------------|-------------------|------------|--------------------|----------------|---------------|------------|-----------|-----------|
| Bitflyer | Done | Done | Done | Done | Done | Done | Done | Done | Done | Done | Done |
| Poloniex | Done | Done | Done | Done | Done | Done | Done | Done | Done | Done | Done |
| Hitbtc | Done | Done | Done | Done | Done | Done | Done | Done | Done | Done | Done |
| Huobi | Done | Done | Done | Done | Done | Done | Done | Done | Done | Done | Done |
| Lbank | Done | Done | Done | Done | Done | Done | Done | Done | Done | Done | Done |
| Kucoin | Done | Done | Done | Done | Done | Done | Done | Done | Done | Done | Done |