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

add test and mod doc

This commit is contained in:
Young
2020-09-25 10:25:33 +00:00
parent 9f5e18fc3e
commit 0e8a4a3eb5
6 changed files with 46 additions and 3 deletions

View File

@@ -149,7 +149,7 @@ class Exchange:
self.quote = quote_df.to_dict("index")
def _update_limit(self, buy_limit, sell_limit):
self.quote["limit"] = ~self.quote["$change"].between(-sell_limit, buy_limit)
self.quote["limit"] = ~self.quote["$change"].between(-sell_limit, buy_limit, inclusive=False)
def check_stock_limit(self, stock_id, trade_date):
"""Parameter