策略
检查https-quantla-Argus-是否正常
小草 · python · 工具与附录 · 2018-06-22 10:29:01
背景术语
源码摘要 自动提取 · 未经作者说明
工具/类库:包含 1 个函数、0 个类,未检测到开仓/平仓调用。
工具/类库
识别到的术语
无
操作术语
无
代码注释
- 无注释
代码行 10 · 函数 1 · 类 0 · 参数 0
源码(10 行)
import urllib2
def main():
Log("开始检查@")
while True:
try:
urllib2.urlopen("https://quant.la/API/Argus/predict", timeout=15)
Log("服务正常")
except:
Log(_D()," 服务异常@")
Sleep(10*60*1000)