bugfix
This commit is contained in:
@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user