Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CHORE: solved all deprecated, comment all unused variables and functions #1763

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

lanphan
Copy link
Contributor

@lanphan lanphan commented Oct 2, 2024

No description provided.

@bbgokarma-bot
Copy link

Welcome back! @lanphan, This pull request may get 374 BBG.

Copy link

codecov bot commented Oct 2, 2024

Codecov Report

Attention: Patch coverage is 17.64706% with 14 lines in your changes missing coverage. Please review.

Project coverage is 23.96%. Comparing base (2a767ab) to head (8b17d78).
Report is 145 commits behind head on main.

Files with missing lines Patch % Lines
pkg/backtest/report.go 0.00% 2 Missing ⚠️
pkg/bbgo/builder.go 0.00% 2 Missing ⚠️
pkg/bbgo/session.go 0.00% 2 Missing ⚠️
pkg/cache/cache.go 0.00% 2 Missing ⚠️
pkg/service/persistence_json.go 0.00% 2 Missing ⚠️
pkg/bbgo/config.go 50.00% 1 Missing ⚠️
pkg/bbgo/environment.go 50.00% 1 Missing ⚠️
pkg/optimizer/config.go 0.00% 1 Missing ⚠️
pkg/util/json.go 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1763      +/-   ##
==========================================
- Coverage   24.11%   23.96%   -0.16%     
==========================================
  Files         617      623       +6     
  Lines       37569    38041     +472     
==========================================
+ Hits         9060     9115      +55     
- Misses      27711    28129     +418     
+ Partials      798      797       -1     
Files with missing lines Coverage Δ
pkg/backtest/exchange.go 0.00% <ø> (ø)
pkg/backtest/matching.go 68.07% <ø> (ø)
pkg/bbgo/activeorderbook.go 24.44% <ø> (-1.88%) ⬇️
pkg/bbgo/interact.go 4.20% <ø> (+0.09%) ⬆️
pkg/bbgo/order_executor_simple.go 0.00% <ø> (ø)
pkg/bbgo/reporter.go 10.34% <ø> (ø)
pkg/exchange/binance/parse.go 20.00% <ø> (ø)
pkg/util/http_response.go 91.30% <100.00%> (ø)
pkg/bbgo/config.go 44.26% <50.00%> (ø)
pkg/bbgo/environment.go 1.29% <50.00%> (ø)
... and 7 more

... and 4 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a8f163b...8b17d78. Read the comment docs.

// }
// }
// }
// }
Copy link
Owner

Choose a reason for hiding this comment

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

why comment this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

they are all un-used functions right now

}
}
}
// func (b *ActiveOrderBook) waitClear(
Copy link
Owner

Choose a reason for hiding this comment

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

Can you keep this function, and renmae it to waitOrderClear()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

should we public it, rename it to WaitOrderClear()? I think we should, so that strategies can take advantage of it

Copy link
Owner

Choose a reason for hiding this comment

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

I think we should only rename it when we are going to use it

@c9s
Copy link
Owner

c9s commented Oct 7, 2024

would be great if you can rebase + fixup the commits, so the other branches won't conflict with these changes

@c9s c9s changed the title solved all deprecated, comment all unused variables and functions CHORE: solved all deprecated, comment all unused variables and functions Oct 7, 2024
@bbgokarma-bot
Copy link

Re-estimated karma: this pull request may get 666 BBG

@c9s c9s merged commit b23c7a7 into c9s:main Oct 22, 2024
3 of 5 checks passed
@bbgokarma-bot
Copy link

Hi @lanphan,

Well done! 681 BBG has been sent to your polygon wallet. Please check the following tx:

https://polygonscan.com/tx/0x0ff63858ee63ff570970e67f9f1999c1e2d1da9bfa20f35212266d60c189da8e

Thank you for your contribution!

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