1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-09 22:10:56 +08:00

Correct errors and typos in doc strings (#1338)

* add missing parameters to doc string in order_generate

* fix some typos in doc strings

* reformat base on code style standard

* Update qlib/backtest/__init__.py

* Update examples/run_all_model.py

* Update examples/run_all_model.py

Co-authored-by: you-n-g <you-n-g@users.noreply.github.com>
This commit is contained in:
qianyun210603
2022-11-07 23:37:18 +08:00
committed by GitHub
parent 2fae407b19
commit 94e420f755
4 changed files with 35 additions and 19 deletions

View File

@@ -244,7 +244,7 @@ def backtest(
benchmark: str
the benchmark for reporting.
account : Union[float, int, Position]
information for describing how to creating the account
information for describing how to create the account
For `float` or `int`:
Using Account with only initial cash
For `Position`:

View File

@@ -236,7 +236,7 @@ class Account:
if not self.current_position.skip_update():
stock_list = self.current_position.get_stock_list()
for code in stock_list:
# if suspend, no new price to be updated, profit is 0
# if suspended, no new price to be updated, profit is 0
if trade_exchange.check_stock_suspended(code, trade_start_time, trade_end_time):
continue
bar_close = cast(float, trade_exchange.get_close(code, trade_start_time, trade_end_time))