Skip to content

Commit

Permalink
condensed execution update output
Browse files Browse the repository at this point in the history
  • Loading branch information
rstms committed Jul 28, 2020
1 parent bb010bb commit 533def8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
1.14.15
1.14.16
3 changes: 2 additions & 1 deletion txtrader/rtx.py
Expand Up @@ -1671,10 +1671,11 @@ def send_execution_update(self, fields, mapped=False):
cusip = fields.get('CUSIP','')
volume = fields['VOLUME']
price = fields['PRICE']
transaction = fields['BUYORSELL']
remaining = fields['ORDER_RESIDUAL']

if self.log_execution_updates:
self.output(f"FILL: {xid} {oid} {status} {account} {symbol} {cusip} {volume} {price} {remaining}")
self.output(f"FILL: {xid} {cusip} {symbol} {transaction} {volume} {price} {remaining}")

self.WriteAllClients(f"execution.{xid} {account} {oid} {status}", option_flag='execution-notification')
self.WriteAllClients(f"execution-data {json.dumps(fields)}", option_flag='execution-data')
Expand Down
4 changes: 2 additions & 2 deletions txtrader/version.py
@@ -1,3 +1,3 @@
DATE='2020-07-28'
TIME='04:19:03'
VERSION='1.14.15'
TIME='04:35:06'
VERSION='1.14.16'

0 comments on commit 533def8

Please sign in to comment.