This commit is contained in:
David Brazda
2023-12-12 21:26:24 +01:00
parent 527c3139f2
commit a70e2adf45

View File

@ -162,7 +162,7 @@ class LiveInterface(GeneralInterface):
return a.avg_entry_price, a.qty return a.avg_entry_price, a.qty
except (APIError, Exception) as e: except (APIError, Exception) as e:
#no position #no position
if e.code == 40410000: return 0,0 if hasattr(e, 'code') and e.code == 40410000: return 0,0
else: else:
reason = "Exception when calling LIVE interface pos, REPEATING:" + str(e) + format_exc() reason = "Exception when calling LIVE interface pos, REPEATING:" + str(e) + format_exc()
print("API ERROR: Nepodarilo se ziskat pozici.", reason) print("API ERROR: Nepodarilo se ziskat pozici.", reason)