You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

22 lines
463 B

package exchange
import "sig-pub/pkg/types"
// 交易所行情数据订阅
type ExchangeSubscriber interface {
// 交易所类型
ExhcangeType() types.Exchange
// 消费k线行情数据
ConsumerKline() <-chan *types.ChannelKline
// 订阅产品k线行情
SubscribeKline(instIds ...string) (err error)
// 取消订阅产品k线行情
UnsubscribeKline(instIds ...string) (err error)
}
// 交易所行情数据请求
type ExchangeFetcher interface {
}