diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-02-12 14:11:02 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-02-12 14:11:02 +0100 |
commit | 97922ff1826cc6b9c0329cc30e8d4621bb2644ee (patch) | |
tree | 1437590a98b10f64683e226d03fda130840f0ba6 /portfolio.py | |
parent | 9f54fd9acf98692ff7601fd3236c46745eb26e15 (diff) | |
download | Trader-97922ff1826cc6b9c0329cc30e8d4621bb2644ee.tar.gz Trader-97922ff1826cc6b9c0329cc30e8d4621bb2644ee.tar.zst Trader-97922ff1826cc6b9c0329cc30e8d4621bb2644ee.zip |
Add print_balances helper
Diffstat (limited to 'portfolio.py')
-rw-r--r-- | portfolio.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/portfolio.py b/portfolio.py index b77f975..482d0da 100644 --- a/portfolio.py +++ b/portfolio.py | |||
@@ -345,6 +345,8 @@ class Trade: | |||
345 | ticker = ticker["original"] | 345 | ticker = ticker["original"] |
346 | rate = Computation.compute_value(ticker, self.order_action(inverted), compute_value=compute_value) | 346 | rate = Computation.compute_value(ticker, self.order_action(inverted), compute_value=compute_value) |
347 | 347 | ||
348 | # FIXME: Dust amount should be removed from there if they werent | ||
349 | # honored in other sales | ||
348 | delta_in_base = abs(self.value_from - self.value_to) | 350 | delta_in_base = abs(self.value_from - self.value_to) |
349 | # 9 BTC's worth of move (10 - 1 or 1 - 10 depending on case) | 351 | # 9 BTC's worth of move (10 - 1 or 1 - 10 depending on case) |
350 | 352 | ||