(2)获取当前 K 线对应时间的时间戳 websocket测试 POST 说明 / 示例 用法: ContextInfo.get_bar_timetag(index) 释义: 获取当前 K 线对应时间的时间戳 参数: number:K 线索引号 返回: number 示例: ```py def handlebar(ContextInfo): index = ContextInfo.barpos print(ContextInfo.get_bar_timetag(index)) ```
用法: ContextInfo.get_bar_timetag(index) 释义: 获取当前 K 线对应时间的时间戳 参数: number:K 线索引号 返回: number 示例: ```py def handlebar(ContextInfo): index = ContextInfo.barpos print(ContextInfo.get_bar_timetag(index)) ```