makerdao / market-maker-keeper

Maker Keeper Framework: Market maker keepers for OasisDEX, EtherDelta, 0x (RadarRelay, ERCdEX), Paradex, DDEX, IDEX, Bibox, Ethfinex, GoPax, HitBTC, TheOcean, OKEX and Gate.io.
GNU Affero General Public License v3.0
478 stars 182 forks source link

Add tests to BinanceUsBands. Fix precision issue #198

Closed Exef closed 3 years ago

Exef commented 3 years ago

I've found a bug in the precision calculation for price and amounts. Added test to cover it.

The TestBinanceBands test class runs all tests specified in the original TestBands class with modified bands.

Please, check if the expected prices and amounts defined in `test_should_create_both_buy_and_sell_orders_and_modifie_it_according_rules are correct.