Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Fix binance product update #1795

Merged
merged 2 commits into from
Dec 11, 2018

Conversation

BAKFR
Copy link
Contributor

@BAKFR BAKFR commented Dec 10, 2018

It was far easier than I though: Poloniex already had the notional thing of Binance, but it was called min_total.

I've not tested to execute an order, but I've read it twice. It should not have any problem.
There are more details in the commit messages.

Kévin Bernard-Allies added 2 commits December 10, 2018 23:16
The function avoid code duplication and is more easily readable.

Small behavior change: the new function accept products with both `min_size` and `min_total`.
Previously, only the first one available was checked.
Changes with the previous version:
- Binance filters are selected by type rather than by index. It fixes DeviaVir#1794
- No more useless removal of trailing zeros of 'increment' and 'asset_increment'
- Binance notional filter is set in `product.min_total` rather than roughly modifying `product.min_size`.
  It fixes DeviaVir#1793
@DeviaVir DeviaVir merged commit d04c103 into DeviaVir:unstable Dec 11, 2018
YarnSeemannsgarn pushed a commit to YarnSeemannsgarn/zenbot that referenced this pull request Apr 15, 2020
* Engine: Split code about check of minimal order size into a function

The function avoid code duplication and is more easily readable.

Small behavior change: the new function accept products with both `min_size` and `min_total`.
Previously, only the first one available was checked.

* Binance: rewrite update-products to fix bugs

Changes with the previous version:
- Binance filters are selected by type rather than by index. It fixes DeviaVir#1794
- No more useless removal of trailing zeros of 'increment' and 'asset_increment'
- Binance notional filter is set in `product.min_total` rather than roughly modifying `product.min_size`.
  It fixes DeviaVir#1793
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants