Fix docstring, comment typos

This commit is contained in:
JOlson
2020-05-09 16:37:38 +12:00
committed by Jacob Plaster
parent 51803c87c9
commit 427e99710e
17 changed files with 52 additions and 43 deletions

View File

@@ -100,7 +100,9 @@ class Position:
lev, pid, mtsc, mtsu, ptype, coll, coll_min, meta)
def __str__(self):
''' Allow us to print the Trade object in a pretty format '''
"""
Allow us to print the Trade object in a pretty format
"""
text = "Position '{}' {} x {} <status='{}' pl={}>"
return text.format(self.symbol, self.base_price, self.amount,
self.status, self.profit_loss)