Skip to content

goex-top/goexws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goexws

Hard fork from goex to generate new websocks interface

It's only support public market data

package goexws

import (
	"github.com/nntaoli-project/goex"
)


type FuturesWsApi interface {
	DepthCallback(func(depth *goex.Depth))
	TickerCallback(func(ticker *goex.FutureTicker))
	TradeCallback(func(trade *goex.Trade, contract string))
	KlineCallback(func(kline *goex.FutureKline, period int, contract string))
	SubscribeDepth(pair goex.CurrencyPair, size int, contractType string) error
	SubscribeTicker(pair goex.CurrencyPair, contractType string) error
	SubscribeTrade(pair goex.CurrencyPair, contractType string) error
	SubscribeKline(pair goex.CurrencyPair, period int, contractType string) error
}

type SpotWsApi interface {
	DepthCallback(func(depth *goex.Depth))
	TickerCallback(func(ticker *goex.Ticker))
	TradeCallback(func(trade *goex.Trade))
	KlineCallback(func(*goex.Kline, int))
	SubscribeDepth(pair goex.CurrencyPair, size int) error
	SubscribeTicker(pair goex.CurrencyPair) error
	SubscribeTrade(pair goex.CurrencyPair) error
	SubscribeKline(pair goex.CurrencyPair, period int) error
}

About

only market data with websockets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages