NFT数字藏品系统开发源码搭建案例展示
2023-06-13 09:17:10 时间
What does quantitative trading mean?
Quantitative trading refers to the investment method of trading using computer technology with the help of modern statistical and mathematical methods. Quantitative trading can bring a variety of "high probability" events with excess returns from huge historical data to formulate strategies, verify and solidify these laws and strategies with quantitative models, and then strictly implement solidified strategies to guide investment in order to obtain sustainable, stable and higher-average returns.
Log("输出参数", arrParams, "#FF0000")
while True:
nowTime = time.localtime(time.time())
nowHour = nowTime.tm_hour
nowMin = nowTime.tm_min
nowSec = nowTime.tm_sec
tbl = {
"type" : "table",
"title" : "msg",
"cols" : ["id", "begin", "end", "今天是否执行过启动", "今天是否执行过停止"],
"rows" : []
}
for i in range(len(arrParams)):
tbl["rows"].append([arrParams[i]["id"], json.dumps(arrParams[i]["begin"]), json.dumps(arrParams[i]["end"]), arrParams[i]["isProcessOpenThisDay"], arrParams[i]["isProcessCloseThisDay"]])
if nowDay != nowTime.tm_mday:
arrParams[i]["isProcessOpenThisDay"] = False
arrParams[i]["isProcessCloseThisDay"] = False
if arrParams[i]["isProcessOpenThisDay"] == False:
if nowTime.tm_hour == arrParams[i]["begin"]["hour"] and nowTime.tm_min >= arrParams[i]["begin"]["min"] and nowTime.tm_sec >= arrParams[i]["begin"]["sec"]:
ret = api('RestartRobot', int(arrParams[i]["id"]))
arrParams[i]["isProcessOpenThisDay"] = True
Log("机器人ID:", arrParams[i]["id"], "执行启动,请登录平台检查是否启动成功", "扩展API返回值:", ret, strPush)
if arrParams[i]["isProcessCloseThisDay"] == False:
if nowTime.tm_hour == arrParams[i]["end"]["hour"] and nowTime.tm_min >= arrParams[i]["end"]["min"] and nowTime.tm_sec >= arrParams[i]["end"]["sec"]:
ret = api('StopRobot', int(arrParams[i]["id"]))
arrParams[i]["isProcessCloseThisDay"] = True
Log("机器人ID:", arrParams[i]["id"], "执行停止,请登录平台检查是否停止成功", "扩展API返回值:", ret, strPush)
if nowDay != nowTime.tm_mday:
nowDay = nowTime.tm_mday
LogStatus(_D(), nowTime, "\n`" + json.dumps(tbl) + "`")
Sleep(500)
相关文章
- TCP波场拼智能合约系统开发案例分析丨TCP波场拼智能合约开发源码模式
- Flask学习实践使用案例
- 软件方法(下)第9章分析类图案例篇Part02
- PQ实战案例拆解 | 汇总多股票交易数据,计算最近60天的5日移动平均的操作与算法优化
- 【愚公系列】2022年12月 .NET CORE工具案例-PLG轻量级日志可视化服务
- 花上百万元用three.js开发的元宇宙空间,在线大型车展参考案例
- 什么是NFT数字藏品系统开发丨NFT数字藏品系统开发案例及源码分析
- 链游开发源码案例丨链游系统开发(方案及逻辑)丨链游dapp系统开发(运营版)
- Golang 上下文 Context 通过案例讲源码(1): 值传递
- 【视频】R语言生存分析原理与晚期肺癌患者分析案例|数据分享|附代码数据
- PHP(Mysql/Redis)消息队列的介绍及应用场景案例详解编程语言
- AJAX文件上传并显示进度条(案例实战)