oandapyV20.definitions.pricing

class oandapyV20.definitions.pricing.PriceStatus

Bases: object

Definition representation of PriceStatus

Definitions used in requests and responses. This class provides the ID and the description of the definitions.

>>> import oandapyV20.definitions.pricing as defpricing
>>> print defpricing.PriceStatus.non_tradeable
non-tradeable
>>> c = defpricing.PriceStatus()
>>> print c[c.non_tradeable]
The Instrument’s price is not tradeable.

Note

attribute name non-tradeable is renamed to non_tradeable, value stil is non-tradeable. This means that a lookup stil applies.

__getitem__(definitionID)

return description for definitionID.

definitions

readonly property holding definition dict.

invalid = 'invalid'
non_tradeable = 'non-tradeable'
tradeable = 'tradeable'