Skip to content

Commit

Permalink
0.0.75: bug-fix during liqudation process at end of trading day,
Browse files Browse the repository at this point in the history
properly handle partial-fills

Signed-off-by: Amichay Oren <[email protected]>
  • Loading branch information
amor71 committed Nov 19, 2020
1 parent 45f9643 commit d311345
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion analyis/notebooks/portfolio_performance_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"metadata": {},
"outputs": [],
"source": [
"day_to_analyze = \"2020-11-12\"\n",
"day_to_analyze = \"2020-11-18\"\n",
"env = \"PAPER\" # values may be PAPER / PROD / BACKTEST"
]
},
Expand Down
2 changes: 1 addition & 1 deletion liualgotrader/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.74"
__version__ = "0.0.75"
2 changes: 1 addition & 1 deletion liualgotrader/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ async def liquidate(
trading_api: tradeapi,
) -> None:

if symbol_position:
if symbol_position and symbol not in trading_data.open_orders:
tlog(
f"Trading over, trying to liquidate remaining position {symbol_position} in {symbol}"
)
Expand Down

0 comments on commit d311345

Please sign in to comment.