Add debug statement in crossfilter
This commit is contained in:
parent
e388624f65
commit
af69b886ba
|
@ -30,6 +30,12 @@ def crossfilter(account, symbol, direction, func):
|
||||||
if func == "entry":
|
if func == "entry":
|
||||||
return {"action": "rejected", "positions": opposing_position_info}
|
return {"action": "rejected", "positions": opposing_position_info}
|
||||||
elif func == "exit":
|
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
|
# Pass back opposing side so we can close it
|
||||||
return {
|
return {
|
||||||
"action": "close",
|
"action": "close",
|
||||||
|
|
Loading…
Reference in New Issue