Add debug statement in crossfilter

This commit is contained in:
Mark Veidemanis 2022-12-07 07:20:47 +00:00
parent e388624f65
commit af69b886ba
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 6 additions and 0 deletions

View File

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