更新数据之后马上开始计算指标
This commit is contained in:
@@ -9,6 +9,7 @@ import time
|
||||
import traceback
|
||||
from dingtalk import DingTalkBot
|
||||
import os
|
||||
from signal_calc import main_calc_process
|
||||
|
||||
webhook = "https://oapi.dingtalk.com/robot/send?access_token=21de667159edadd33172c6ec414a2addf9c6359189350ffd36819d2a20e8a0f4"
|
||||
secret = "SEC43a0fa0b29717f98637a119b92a0bd5f7b2b6da671bdd2bd1279ed8323454d5e"
|
||||
@@ -95,6 +96,7 @@ def main():
|
||||
if len(res) == 0:
|
||||
res = db_manager.insert_dataframe(df, "index_kline")
|
||||
logger.info(res)
|
||||
main_calc_process()
|
||||
except Exception as e:
|
||||
error_message = f"{e}\n{traceback.format_exc()}"
|
||||
logger.error(error_message)
|
||||
|
||||
Reference in New Issue
Block a user