@ -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",