From 1ef02c5c045278c59f7852e4c5adc6f9598bc911 Mon Sep 17 00:00:00 2001 From: Rose Heart Date: Mon, 4 Mar 2024 14:56:33 +0000 Subject: [PATCH] Bug fixes. Changes to be committed: modified: Base/Conditional.mimic --- Base/Conditional.mimic | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)