def __init__(self, **kwargs):
        """
        Create a new Price instance
        """
        super(Price, self).__init__()
 
        #
        # The Price's Instrument.
        #
        self.instrument = kwargs.get("instrument")
 
        #
        # Flag indicating if the Price is tradeable or not
        #
        self.tradeable = kwargs.get("tradeable")
 
        #
        # The date/time when the Price was created.
        #
        self.timestamp = kwargs.get("timestamp")
 
        #
        # The base bid price as calculated by pricing.
        #
        self.baseBid = kwargs.get("baseBid")
 
        #
        # The base ask price as calculated by pricing.
        #
        self.baseAsk = kwargs.get("baseAsk")
 
        #
        # The list of prices and liquidity available on the Instrument's bid
        # side. It is possible for this list to be empty if there is no bid
        # liquidity currently available for the Instrument in the Account.
        #
        self.bids = kwargs.get("bids")
 
        #
        # The list of prices and liquidity available on the Instrument's ask
        # side. It is possible for this list to be empty if there is no ask
        # liquidity currently available for the Instrument in the Account.
        #
        self.asks = kwargs.get("asks")
 
        #
        # The closeout bid price. This price is used when a bid is required to
        # closeout a Position (margin closeout or manual) yet there is no bid
        # liquidity. The closeout bid is never used to open a new position.
        #
        self.closeoutBid = kwargs.get("closeoutBid")
 
        #
        # The closeout ask price. This price is used when an ask is required to
        # closeout a Position (margin closeout or manual) yet there is no ask
        # liquidity. The closeout ask is never used to open a new position.
        #
        self.closeoutAsk = kwargs.get("closeoutAsk")
def __init__ ( self , ** kwargs ) : super ( Price , self ) . __init__ ( ) self . instrument = kwargs . get ( "instrument" ) self . tradeable = kwargs . get ( "tradeable" ) self . timestamp = kwargs . get ( "timestamp" ) self . baseBid = kwargs . get ( "baseBid" ) self . baseAsk = kwargs . get ( "baseAsk" ) self . bids = kwargs . get ( "bids" ) self . asks = kwargs . get ( "asks" ) self . closeoutBid = kwargs . get ( "closeoutBid" ) self . closeoutAsk = kwargs . get ( "closeoutAsk" )
Create a new Price instance