Path: blob/master/src/ordermgmt/OrderInputParams.py
297 views
1from models.Segment import Segment2from models.ProductType import ProductType34class OrderInputParams:5def __init__(self, tradingSymbol):6self.exchange = "NSE" # default7self.isFnO = False8self.segment = Segment.EQUITY # default9self.productType = ProductType.MIS # default10self.tradingSymbol = tradingSymbol11self.direction = ""12self.orderType = "" # One of the values of ordermgmt.OrderType13self.qty = 014self.price = 015self.triggerPrice = 0 # Applicable in case of SL order1617def __str__(self):18return "symbol=" + str(self.tradingSymbol) + ", exchange=" + self.exchange \19+ ", productType=" + self.productType + ", segment=" + self.segment \20+ ", direction=" + self.direction + ", orderType=" + self.orderType \21+ ", qty=" + str(self.qty) + ", price=" + str(self.price) + ", triggerPrice=" + str(self.triggerPrice) \22+ ", isFnO=" + str(self.isFnO)232425