1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-06 20:41:09 +08:00

add print cash in verbose mode and code format

This commit is contained in:
Young
2021-07-20 05:12:22 +00:00
parent 92f2891664
commit 4e862f7d1f
4 changed files with 37 additions and 46 deletions

View File

@@ -160,7 +160,7 @@ class Account:
self.accum_info.add_return_value(profit) # note here do not consider cost
def update_order(self, order, trade_val, cost, trade_price):
if not self.is_port_metr_enabled():
if self.current.skip_update():
# TODO: supporting polymorphism for account
# updating order for infinite position is meaningless
return