INNER CODE UNIT · Python
bzxd_mark
ibaihuo/chanvis · api/chanapi.py:281
def bzxd_mark():
"""
线段的标记的点
"""
mtype = request.args.get('mtype', 'zzk')
sym = request.args.get('symbol', 'BTC')
tf = request.args.get('tf', '1')
tf = RESOU_DICT[tf]
col = CHAN_DB[ESSENCE_XD_COL.format(sym=sym, tf=tf)]
tf_sec = TF_SEC_MAP[tf]
# 查找本周期最新的时间
rep_ct = CONF_DB[f'replay_config'].find_one({'current_ts': {'$exists': True}})
current_dt = int2time(rep_ct[f'ts_{tf}'] + tf_sec * 20)