Skip to content

Conversation

dboyliao
Copy link
Collaborator

@dboyliao dboyliao commented May 5, 2025

No description provided.

@dboyliao dboyliao requested a review from zenixls2 May 5, 2025 08:00
@dboyliao dboyliao requested a review from c9s as a code owner May 5, 2025 08:00
@@ -43,7 +44,7 @@ func (store *SerialMarketDataStore) Subscribe(interval types.Interval) {
store.Subscription = append(store.Subscription, interval)
}

func (store *SerialMarketDataStore) BindStream(ctx context.Context, stream types.Stream) {
func (store *SerialMarketDataStore) BindStream(ctx context.Context, stream Stream) {
if store.UseMarketTrade {
if IsBackTesting {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps remove this condition to simplify the package import

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll comment out this first.
Let's see if we need to add it back in the future.

@@ -49,6 +49,7 @@ var BackTestService *service.BacktestService
func SetBackTesting(s *service.BacktestService) {
BackTestService = s
IsBackTesting = s != nil
types.IsBackTesting = IsBackTesting
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so let's remove this line

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@dboyliao dboyliao force-pushed the dboy/marketstore-to-types branch from 14ed5df to bb62755 Compare May 5, 2025 09:04
@dboyliao dboyliao merged commit fd00d45 into main May 5, 2025
3 checks passed
@dboyliao dboyliao deleted the dboy/marketstore-to-types branch May 5, 2025 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants