INNER CODE UNIT · Python

from_

ibaihuo/chanvis · api/chanapi.py:145

        from_ = to_ - int(tf_sec) * 60 * 2000

    _xfrom = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(int(from_)))
    _xto = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(int(to_)))

    # 整数的to_
    tf_sec = TF_SEC_MAP[tf]

    int_to_ = to_

    use_partial_k = False
    if current_ts % tf_sec != 0:
        use_partial_k = True

    # 当从小级别到大级别的时候,小级别的1分钟,刚好走到大级别的整数周期
    # 此时,大级别的周期实际上没有完,需要回退一个周期,再使用partial数据
    if rep_ct:
        ts_1m = rep_ct['ts_1m']

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…