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

refactor online serving rolling api

This commit is contained in:
Young
2021-07-29 04:40:27 +00:00
committed by you-n-g
parent 05d28469ad
commit 9303415666
6 changed files with 81 additions and 54 deletions

View File

@@ -570,9 +570,11 @@ def get_pre_trading_date(trading_date, future=False):
def transform_end_date(end_date=None, freq="day"):
"""get previous trading date
"""handle the end date with various format
If end_date is -1, None, or end_date is greater than the maximum trading day, the last trading date is returned.
Otherwise, returns the end_date
----------
end_date: str
end trading date