Skip to content

Commit a7c5138

Browse files
committed
Update xt_subscriber.py
1 parent 48ad2f3 commit a7c5138

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

delegate/xt_subscriber.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def today_deal_report(self, today):
309309

310310
if len(df) > 0:
311311
title = f'[{self.account_id}]{self.strategy_name} 交易{len(df)}单'
312-
txt = f'{title}\n{today}'
312+
txt = f'{title}\n\n{today}'
313313
for index, row in df.iterrows():
314314
# ['日期', '时间', '代码', '名称', '类型', '注释', '成交价', '成交量']
315315
txt += '\n\n> '
@@ -359,7 +359,7 @@ def today_hold_report(self, today):
359359
f'盈亏额:<font{color}>{(curr_price - open_price) * vol:.2f}</font>'
360360

361361
title = f'[{self.account_id}]{self.strategy_name} 持仓{i}支'
362-
txt = f'{title}\n{today}\n{txt}'
362+
txt = f'{title}\n\n{today}\n{txt}'
363363

364364
if self.ding_messager is not None:
365365
self.ding_messager.send_markdown(title, txt)

0 commit comments

Comments
 (0)