/go-liqui

Liqui public and trade API client for Go

Primary LanguageGo

go-liqui

An unofficial Liqui public and trade API client for Go.

Supports

Liqui public API

  • info
  • ticker
  • depth
  • trades

Liqui trade API (needs an authentication)

  • getInfo
  • Trade
  • ActiveOrders
  • OrderInfo
  • CancelOrder
  • TradeHistory
  • WithdrawCoin Method (not active now, will be available soon)

Usage

Ticker

package main

import (
	"context"
	"fmt"

	"github.com/gabu/go-liqui"
)

func main() {
	liqui := liqui.NewClient()
	ctx := context.Background()
	ticker, err := liqui.Ticker(ctx, "ltc_btc")
	if err != nil {
		fmt.Println(err)
	}
	fmt.Println(ticker)
}

Authentication

func main() {
	liqui := liqui.NewClient().Auth("YOUR API KEY", "YOUR API SECRET")
}