Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2809b73

Browse files
authoredMay 16, 2020
Merge pull request yutiansut#1533 from kite8/master
修复base_datastruct中date方法引起的复权问题
2 parents ea8afc0 + 1dad27a commit 2809b73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎QUANTAXIS/QAData/base_datastruct.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,8 @@ def position(self):
385385
def date(self):
386386
index = self.data.index.remove_unused_levels()
387387
try:
388-
return index.levels[0] if 'date' in self.data.index.names else list(
389-
set(self.datetime.date)
388+
return index.levels[0] if 'date' in self.data.index.names else sorted(
389+
list(set(self.datetime.date))
390390
)
391391
except:
392392
return None

0 commit comments

Comments
 (0)
Please sign in to comment.