-
Notifications
You must be signed in to change notification settings - Fork 100
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
mm/binance: Use filters and withdraw multiple #3093
base: master
Are you sure you want to change the base?
Conversation
06a8b19
to
47d2deb
Compare
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.
I think this can be much simpler. Please review these two suggestions.
client/mm/libxc/binance.go
Outdated
} | ||
|
||
req.Header = header | ||
|
||
return req, nil | ||
// bnc.log.Tracef("Sending request: %+v", req) |
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.
Do you still need this?
// WithdrawMax float64 `json:"withdrawMax,string"` | ||
WithdrawMin float64 `json:"withdrawMin,string"` | ||
// SameAddress bool `json:"sameAddress"` |
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.
Maybe remove commented.
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.
I think it's ok.. good to know what other fields there are without having to check the API.
Needs a rebase, but look great. |
client/mm/libxc/binance.go
Outdated
conv := float64(qui.Conventional.ConversionFactor) / float64(bui.Conventional.ConversionFactor) * calc.RateEncodingFactor | ||
market.RateStep = uint64(math.Round(filter.TickSize * conv)) | ||
market.MinPrice = uint64(math.Round(filter.MinPrice * conv)) | ||
market.MaxPrice = uint64(math.Round(filter.MaxPrice * conv)) // Why was the conv outside of the math.Round? |
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 was the conv outside of the math.Round?
Not sure. Whadya expect me to test my code suggestions? 🤪
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.
Lol that comment was kind of meant for myself.
The price and lot size filters were not being used, leading to trade errors. The withdraw multiple was also not being used leading to withdraw errors.
abde4ea
to
3db198f
Compare
The price and lot size filters were not being used, leading to trade
errors. The withdraw multiple was also not being used leading to withdraw
errors.