oandapyV20.definitions.pricing¶
Pricing related Definitions.
-
class
oandapyV20.definitions.pricing.PriceStatus¶ Bases:
objectDefinition 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. >>> # or >>> print defpricing.PriceStatus().definitions[c.non_tradeable] >>> # all keys >>> print defpricing.PriceStatus().definitions.keys() >>> ...
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'¶
-