This package presents a client for cryptocoin exchange api.
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)
}
- 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
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 |
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 |