'''
 Generated by EZX Code Generator  
Date: 02/24/22 
'''


from iserver.EzxMsg import EzxMsg, EzxMsgMeta
from iserver.msgs import *
from iserver.enums import api



class UpdatePosition(EzxMsg, metaclass=EzxMsgMeta):


	def __init__(self, **kwargs):
		self.myID : str = None
		self.account : str = None
		self.side : int = None
		self.symbol : str = None
		self.lastShares : float = None
		self.lastPrice : float = None
		super(UpdatePosition, self).__init__(**kwargs)
		self.msg_type = api.IserverMsgType.COMMAND.value
		self.msg_subtype = api.IserverMsgSubType.UPDATE_POSITION.value

