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

mm/binance: Use filters and withdraw multiple #3093

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

martonp
Copy link
Contributor

@martonp martonp commented Nov 21, 2024

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.

Copy link
Member

@buck54321 buck54321 left a comment

Choose a reason for hiding this comment

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

@martonp martonp marked this pull request as ready for review November 28, 2024 10:21
}

req.Header = header

return req, nil
// bnc.log.Tracef("Sending request: %+v", req)
Copy link
Contributor

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?

Comment on lines 63 to 65
// WithdrawMax float64 `json:"withdrawMax,string"`
WithdrawMin float64 `json:"withdrawMin,string"`
// SameAddress bool `json:"sameAddress"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe remove commented.

Copy link
Contributor Author

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.

@buck54321
Copy link
Member

Needs a rebase, but look great.

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?
Copy link
Member

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? 🤪

Copy link
Contributor Author

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.

buck54321 and others added 3 commits November 29, 2024 10:35
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.
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.

4 participants