Add debug statement in crossfilter

master
Mark Veidemanis 1 year ago
parent e388624f65
commit af69b886ba
Signed by: m
GPG Key ID: 5ACFCEED46C0904F

@ -30,6 +30,12 @@ def crossfilter(account, symbol, direction, func):
if func == "entry":
return {"action": "rejected", "positions": opposing_position_info}
elif func == "exit":
log.debug(
(
f"Found {opposing_position_info['units']} units of "
f"{symbol} on side {opposing_side}"
)
)
# Pass back opposing side so we can close it
return {
"action": "close",

Loading…
Cancel
Save