Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sreenivasdoosa committed May 10, 2021
1 parent fd63d6d commit 0a44f3e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/ordermgmt/Order.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@

from json import JSONEncoder

class Order(JSONEncoder):
class Order():
def __init__(self, orderInputParams = None):
self.tradingSymbol = orderInputParams.tradingSymbol if orderInputParams != None else ""
self.exchange = orderInputParams.exchange if orderInputParams != None else "NSE"
Expand All @@ -26,6 +24,3 @@ def __str__(self):
+ ", triggerPrice=" + str(self.triggerPrice) + ", qty=" + str(self.qty) \
+ ", filledQty=" + str(self.filledQty) + ", pendingQty=" + str(self.pendingQty) \
+ ", averagePrice=" + str(self.averagePrice)

def default(self, o):
return JSONEncoder.default(self, o)

0 comments on commit 0a44f3e

Please sign in to comment.