huobipro

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2020 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseAction

type BaseAction struct {
}

基础接口实现类型

func (this *BaseAction) BuildRealTimeDataLink(di global.DataIndex, rsKlineBarChan chan interface{}) (err error)

BuildRealTimeDataLink 创建长链接更新数据(数据类型为:Kline,Trade,Depth)

参数: di 数据索引
参数: rsKlineBarChan 返回数据的接收管道,当有数据返回时会给该管道输出数据

func (*BaseAction) GetSymbolList

func (this *BaseAction) GetSymbolList() (sl []global.Symbol, err error)

获取所有交易对列表

func (*BaseAction) LoadPastData

func (this *BaseAction) LoadPastData(di global.DataIndex, sTime, eTime global.Timestamp, rsStateChan chan bool) (err error)

LoadPastData 加载历史数据(Kline,Trade,Depth)

参数: di 数据索引
参数: sTime 更新的开始时间
参数: eTime 更新的截止时间
参数: rsStateChan 是否更新完毕,更新完毕会给这个管道返回状态为true

Jump to

Keyboard shortcuts

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