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