-
-
Notifications
You must be signed in to change notification settings - Fork 293
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
fix: rebalance: fix positions and profit stats map #1109
fix: rebalance: fix positions and profit stats map #1109
Conversation
Welcome back! @narumiruna, This pull request may get 235 BBG. |
Codecov Report
@@ Coverage Diff @@
## main #1109 +/- ##
=======================================
Coverage 19.87% 19.87%
=======================================
Files 434 434
Lines 33883 33883
=======================================
Hits 6734 6734
Misses 26604 26604
Partials 545 545 Continue to review full report in Codecov by Sentry.
|
0196787
to
0458858
Compare
Re-estimated karma: this pull request may get 245 BBG |
func NewPositionMap(markets []types.Market) PositionMap { | ||
m := make(PositionMap) | ||
|
||
func (m PositionMap) createPositions(markets []types.Market) PositionMap { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not NewPositionMap ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we change the config from
quoteCurrency: USDT
targetWeights:
BTC: 50%
USDT: 50%
to
quoteCurrency: USDT
targetWeights:
BTC: 50%
ETH: 25%
USDT: 25%
, then the previous PositionMap
(loaded from Redis) doesn't contain ETHUSDT.
Hi @narumiruna, Well done! 270 BBG has been sent to your polygon wallet. Please check the following tx: https://polygonscan.com/tx/0x2e63d173cd809dd76e14fe60430ceabf7afa9b13e30ccb71a617cb7134b7ee75 Thank you for your contribution! |
No description provided.