正确调用 datetime.now() 获取当前时间
This commit is contained in:
parent
3cee732ab4
commit
7213923f58
@ -280,7 +280,7 @@ class FreqaiPrimer(IStrategy):
|
||||
|
||||
try:
|
||||
# 获取当前时间戳
|
||||
current_time = datetime.datetime.now().timestamp()
|
||||
current_time = datetime.now().timestamp()
|
||||
|
||||
# 检查缓存:如果距离上次计算时间小于更新间隔,则直接返回缓存值
|
||||
if (pair in self._volatility_cache and
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user