[增强] 增加转换字符串接口,供日志记录/调试使用

This commit is contained in:
msincenselee 2020-01-19 17:02:37 +08:00
parent d867fda497
commit d977f04f0f

View File

@ -302,3 +302,5 @@ class PositionHolding:
return req_list
def to_str(self):
return f'Long:{self.long_pos},yd:{self.long_yd},td:{self.long_td}; Short:{self.short_pos},yd:{self.short_yd},td:{self.short_yd}'