func NewMiaxMessageSource(i int, speed int) *miaxMessageSource { return &miaxMessageSource{ cancel: make(chan struct{}), bchan: bchan.NewBchan(), mps: speed, curSeq: 0, num: i, } }
func NewBatsMessageSource(i int, speed int) *batsMessageSource { return &batsMessageSource{ cancel: make(chan struct{}), bchan: bchan.NewBchan(), mps: speed, curSeq: 1000000, num: i, } }