func (store *MarketDataStore) KLinesOfInterval(interval types.Interval) (kLines types.KLineWindow, ok bool) {
	kLines, ok = store.KLineWindows[interval]
	return kLines, ok
}
KLinesOfInterval returns the kline window of the given interval
package bbgo
import "github.com/c9s/bbgo/pkg/types"
const MaxNumOfKLines = 5_000
const MaxNumOfKLinesTruncate = 1_000
type MarketDataStore struct {
	Symbol string
	KLineWindows map[types.Interval]types.KLineWindow `json:"-"`
	kLineWindowUpdateCallbacks []func(interval types.Interval, kline types.KLineWindow)
}
func NewMarketDataStore(symbol string) *MarketDataStore {
	return &MarketDataStore{
		Symbol: symbol,
		KLineWindows: make(map[types.Interval]types.KLineWindow, len(types.SupportedIntervals)),  
	}
}
func (store *MarketDataStore) SetKLineWindows(windows map[types.Interval]types.KLineWindow) {
	store.KLineWindows = windows
}