Documentation ¶
Index ¶
- type BaseAction
- func (this *BaseAction) BuildRealTimeDataLink(di global.DataIndex, rsKlineBarChan chan interface{}) (err error)
- func (this *BaseAction) GetSymbolList() (sl []global.Symbol, err error)
- func (this *BaseAction) LoadPastData(di global.DataIndex, sTime, eTime global.Timestamp, rsStateChan chan bool) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseAction ¶
type BaseAction struct { }
基础接口实现类型
func (*BaseAction) BuildRealTimeDataLink ¶
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
Click to show internal directories.
Click to hide internal directories.