diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-05-01 16:02:00 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-05-01 16:02:00 +0200 |
commit | 1902674cbeaa4dc0cdc31e6f0f7a548b3fa7f38e (patch) | |
tree | 8773f0fbba805f0e4f76fb742da766b4f1a56073 /tests/test_ccxt_wrapper.py | |
parent | 52ea19aa73348a523b3b884e2a7fb749b2bf4f19 (diff) | |
download | Trader-1902674cbeaa4dc0cdc31e6f0f7a548b3fa7f38e.tar.gz Trader-1902674cbeaa4dc0cdc31e6f0f7a548b3fa7f38e.tar.zst Trader-1902674cbeaa4dc0cdc31e6f0f7a548b3fa7f38e.zip |
Don’t close dust remaining orders before end of trade.
Fixes https://git.immae.eu/mantisbt/view.php?id=41
Diffstat (limited to 'tests/test_ccxt_wrapper.py')
-rw-r--r-- | tests/test_ccxt_wrapper.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_ccxt_wrapper.py b/tests/test_ccxt_wrapper.py index 9ddfbc1..c326f0a 100644 --- a/tests/test_ccxt_wrapper.py +++ b/tests/test_ccxt_wrapper.py | |||
@@ -545,3 +545,7 @@ class poloniexETest(unittest.TestCase): | |||
545 | self.assertEqual("0.0000001", self.s.price_to_precision("BAR", D("0.0000001"))) | 545 | self.assertEqual("0.0000001", self.s.price_to_precision("BAR", D("0.0000001"))) |
546 | self.assertEqual("0", self.s.price_to_precision("FOO", D("0.000001"))) | 546 | self.assertEqual("0", self.s.price_to_precision("FOO", D("0.000001"))) |
547 | 547 | ||
548 | def test_is_dust_trade(self): | ||
549 | self.assertTrue(self.s.is_dust_trade(D("0.0000009"), D("1000"))) | ||
550 | self.assertTrue(self.s.is_dust_trade(D("0.000001"), D("10"))) | ||
551 | self.assertFalse(self.s.is_dust_trade(D("0.000001"), D("100"))) | ||