diff --git a/Base/Conditional.mimic b/Base/Conditional.mimic index 11eb6f1..ea8376a 100755 --- a/Base/Conditional.mimic +++ b/Base/Conditional.mimic @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -# CCXT Conditional Orders - OliverTwist +# MIMIC Conditional Orders - OliverTwist # Jackrabbit Relay # 2021 Copyright © Robert APM Darin @@ -149,7 +149,7 @@ def main(): # if ticker is below price and spread, purge and re-purchase - if amount>bal: + if abs(amount)>bal: if "ConditionalRepurchase" in relay.Active: relay.JRLog.Write(f"Original: {json.dumps(relay.Order)}",stdOut=False)