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

bbgo: add price check and add max leverage for cross margin #935

Merged
merged 5 commits into from
Sep 11, 2022

Conversation

c9s
Copy link
Owner

@c9s c9s commented Sep 11, 2022

fix account value calculation

@codecov
Copy link

codecov bot commented Sep 11, 2022

Codecov Report

Merging #935 (20dd37c) into main (cacc24f) will increase coverage by 0.01%.
The diff coverage is 26.19%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #935      +/-   ##
==========================================
+ Coverage   20.01%   20.02%   +0.01%     
==========================================
  Files         410      410              
  Lines       30636    30705      +69     
==========================================
+ Hits         6131     6150      +19     
- Misses      23916    23966      +50     
  Partials      589      589              
Impacted Files Coverage Δ
pkg/bbgo/risk.go 33.33% <26.19%> (-0.86%) ⬇️
pkg/strategy/bollmaker/dynamic_spread.go 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

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

@c9s c9s merged commit 2214920 into main Sep 11, 2022
@c9s c9s deleted the fix/open-position branch September 11, 2022 16:42
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.

1 participant