baseclass

package
v0.0.0-...-f37401a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	aicoin.Client
	Exchange string // 子类设置
	// contains filtered or unexported fields
}

Client 提供 API的调用客户端

func (*Client) Constructor

func (c *Client) Constructor(config *config.Config)

Constructor 创建一个新的client

func (*Client) GetDepth

func (c *Client) GetDepth(req global.TradeSymbol) (global.Depth, error)

GetDepth 获取深度行情

func (*Client) GetKline

func (c *Client) GetKline(req global.KlineReq) ([]global.Kline, error)

GetKline 获取k线数据

func (*Client) SubDepth

func (c *Client) SubDepth(sreq global.TradeSymbol) (chan global.Depth, error)

SubDepth 订阅深度行情

func (*Client) SubLateTrade

func (c *Client) SubLateTrade(sreq global.TradeSymbol) (chan global.LateTrade, error)

SubLateTrade 订阅交易详细数据

func (*Client) SubTicker

func (c *Client) SubTicker(sreq global.TradeSymbol) (chan global.Ticker, error)

SubTicker ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL