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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user