Skip to content

Commit

Permalink
fix(print)
Browse files Browse the repository at this point in the history
  • Loading branch information
MetzkerLior committed Jul 4, 2024
1 parent 095628f commit 7ec38d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bktest/backtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def order(
print(f"[warning] order not placed: {symbol} @ {percent}%", file=sys.stderr)
number_of_orders_not_executed += 1
else:
print(f"[warning] cannot place order: {symbol} @ {percent}%: no price available", file=sys.stderr)
print(f"[warning] cannot place order: {symbol} @ {order.quantity}{'%' if self.quantity_in_decimal else 'x'}: no price available", file=sys.stderr)
number_of_orders_not_executed += 1

print(f"***** new_positions_in_account = {new_positions_in_account} *****")
Expand Down

0 comments on commit 7ec38d6

Please sign in to comment.