Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
Q
Quant_API_SDK
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenwen.tang
Quant_API_SDK
Commits
9dfa0fa1
Commit
9dfa0fa1
authored
Jun 04, 2025
by
吕先亚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(vender): 移除最后交易日排除周末的逻辑- 删除了用于判断和跳过周末的 while 循环
- 保留原始逻辑,即返回当月最后一天的时间戳
parent
d4bbf72d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
sv_quant_api.py
vender/sv_quant_api.py
+0
-2
No files found.
vender/sv_quant_api.py
View file @
9dfa0fa1
...
...
@@ -12,8 +12,6 @@ def last_busi_date(day_str: str):
_
,
last_day
=
calendar
.
monthrange
(
year
,
month
)
last_day_date
=
datetime
(
year
,
month
,
last_day
)
last_day_date
=
last_day_date
.
replace
(
hour
=
23
,
minute
=
59
,
second
=
59
,
microsecond
=
997000
)
while
last_day_date
.
weekday
()
>=
5
:
# weekday() 返回0-6,5是周六,6是周日
last_day_date
-=
timedelta
(
days
=
1
)
return
last_day_date
.
strftime
(
'
%
Y-
%
m-
%
d
%
H:
%
M:
%
S.
%
f'
)[:
-
3
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment