oandapyV20.definitions.instruments¶
Instruments Definitions.
-
class
oandapyV20.definitions.instruments.
CandlestickGranularity
¶ Bases:
object
Definition representation of CandlestickGranularity
Definitions used in requests and responses. This class provides the ID and the description of the definitions.
>>> import oandapyV20.definitions.instruments as definstruments >>> print definstruments.CandlestickGranularity.H4 H4 >>> c = definstruments.CandlestickGranularity() >>> print c[c.H4] 4 hour candlesticks, day alignment >>> # or >>> print definstruments.CandlestickGranularity().definitions[c.H4] >>> # all keys >>> print definstruments.CandlestickGranularity().definitions.keys() >>> ...
-
D
= 'D'¶
-
H1
= 'H1'¶
-
H12
= 'H12'¶
-
H2
= 'H2'¶
-
H3
= 'H3'¶
-
H4
= 'H4'¶
-
H6
= 'H6'¶
-
H8
= 'H8'¶
-
M
= 'M'¶
-
M1
= 'M1'¶
-
M10
= 'M10'¶
-
M15
= 'M15'¶
-
M2
= 'M2'¶
-
M30
= 'M30'¶
-
M4
= 'M4'¶
-
M5
= 'M5'¶
-
S10
= 'S10'¶
-
S15
= 'S15'¶
-
S30
= 'S30'¶
-
S5
= 'S5'¶
-
W
= 'W'¶
-
__getitem__
(definitionID)¶ return description for definitionID.
-
definitions
¶ readonly property holding definition dict.
-
-
class
oandapyV20.definitions.instruments.
WeeklyAlignment
¶ Bases:
object
Definition representation of WeeklyAlignment
Definitions used in requests and responses. This class provides the ID and the description of the definitions.
>>> import oandapyV20.definitions.instruments as definstruments >>> print definstruments.WeeklyAlignment.Monday Monday >>> c = definstruments.WeeklyAlignment() >>> print c[c.Monday] Monday >>> # or >>> print definstruments.WeeklyAlignment().definitions[c.Monday] >>> # all keys >>> print definstruments.WeeklyAlignment().definitions.keys() >>> ...
-
Friday
= 'Friday'¶
-
Monday
= 'Monday'¶
-
Saturday
= 'Saturday'¶
-
Sunday
= 'Sunday'¶
-
Thursday
= 'Thursday'¶
-
Tuesday
= 'Tuesday'¶
-
Wednesday
= 'Wednesday'¶
-
__getitem__
(definitionID)¶ return description for definitionID.
-
definitions
¶ readonly property holding definition dict.
-
-
class
oandapyV20.definitions.instruments.
PriceComponents
¶ Bases:
object
Definition representation of PriceComponents
Definitions used in requests and responses. This class provides the ID and the description of the definitions.
>>> import oandapyV20.definitions.instruments as definstruments >>> print definstruments.PriceComponents.A A >>> c = definstruments.PriceComponents() >>> print c[c.A] Ask >>> # or >>> print definstruments.PriceComponents().definitions[c.A] >>> # all keys >>> print definstruments.PriceComponents().definitions.keys() >>> ...
-
A
= 'A'¶
-
B
= 'B'¶
-
M
= 'M'¶
-
__getitem__
(definitionID)¶ return description for definitionID.
-
definitions
¶ readonly property holding definition dict.
-