[go: nahoru, domu]

Skip to content

Yobit exchange golang wrapper. Async and with "Trade API"

License

Notifications You must be signed in to change notification settings

ikonovalov/go-yobit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-yobit

go-yobit is an implementation of the Yobit exchange API in Golang.

Supports

  • Public API
  • Trade API
  • Cloudflare challenge solver

Import

import "github.com/ikonovalov/go-yobit"

Usage

package main
import "github.com/ikonovalov/go-yobit"

credential := yobit.ApiCredential{Key: 'zzz', Secret: 'ggg'}
yo := yobit.New(credential)
defer yo.Release()

// get tickers
tickersChan := make(chan yobit.TickerInfoResponse)
go yo.Tickers24(usdPairs, tickersChan)
tickerRs := <-tickersChan

// get wallet balances
channel := make(chan yobit.GetInfoResponse)
go yo.GetInfo(channel)
getInfoRes := <-channel

MIT License