Skip to content

mm/binance: Use filters and withdraw multiple - #3093

Merged
buck54321 merged 3 commits into
decred:masterfrom
martonp:priceFilters
Dec 2, 2024
Merged

mm/binance: Use filters and withdraw multiple#3093
buck54321 merged 3 commits into
decred:masterfrom
martonp:priceFilters

Conversation

@martonp

@martonp martonp commented Nov 21, 2024

Copy link
Copy Markdown
Collaborator

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.

@buck54321 buck54321 left a comment

Copy link
Copy Markdown
Member

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
Comment thread client/mm/libxc/binance.go Outdated
req.Header = header

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

Copy link
Copy Markdown
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 thread client/mm/libxc/bntypes/types.go
@buck54321

Copy link
Copy Markdown
Member

Needs a rebase, but look great.

Comment thread 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?

Copy link
Copy Markdown
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
Copy Markdown
Collaborator 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.
@buck54321
buck54321 merged commit b766dc5 into decred:master Dec 2, 2024
martonp added a commit to martonp/dcrdex that referenced this pull request Feb 6, 2025
* mm/binance: Use filters and withdraw multiple

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.
buck54321 pushed a commit to buck54321/dcrdex that referenced this pull request Feb 25, 2025
* mm/binance: Use filters and withdraw multiple

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