From d977f04f0fb2f7110704de3d4fe476315aa012e4 Mon Sep 17 00:00:00 2001 From: msincenselee Date: Sun, 19 Jan 2020 17:02:37 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=A2=9E=E5=BC=BA]=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=BD=AC=E6=8D=A2=E5=AD=97=E7=AC=A6=E4=B8=B2=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=EF=BC=8C=E4=BE=9B=E6=97=A5=E5=BF=97=E8=AE=B0=E5=BD=95/?= =?UTF-8?q?=E8=B0=83=E8=AF=95=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/trader/converter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vnpy/trader/converter.py b/vnpy/trader/converter.py index d2fe23d4..c0c83002 100644 --- a/vnpy/trader/converter.py +++ b/vnpy/trader/converter.py @@ -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}'