We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e44f6a2 + a756b3e commit bee10fcCopy full SHA for bee10fc
qstrader/compliance/example.py
@@ -1,6 +1,7 @@
1
import datetime
2
import os
3
import csv
4
+from qstrader.price_parser import PriceParser
5
6
from .base import AbstractCompliance
7
@@ -53,6 +54,6 @@ def record_trade(self, fill):
53
54
writer.writerow([
55
fill.timestamp, fill.ticker,
56
fill.action, fill.quantity,
- fill.exchange, fill.price,
57
- fill.commission
+ fill.exchange, PriceParser.display(fill.price, 4),
58
+ PriceParser.display(fill.commission, 4)
59
])
0 commit comments