oandapyV20.definitions.accounts¶
-
class
oandapyV20.definitions.accounts.
AccountFinancingMode
¶ Bases:
object
Definition representation of AccountFinancingMode
Definitions used in requests and responses. This class provides the ID and the description of the definitions.
>>> import oandapyV20.definitions.accounts as defaccounts >>> print defaccounts.AccountFinancingMode.SECOND_BY_SECOND SECOND_BY_SECOND >>> c = defaccounts.AccountFinancingMode() >>> print c[c.SECOND_BY_SECOND] Second-by-second financing is paid/charged for open Trades in the Account, both daily and when the the Trade is closed
-
DAILY
= 'DAILY'¶
-
NO_FINANCING
= 'NO_FINANCING'¶
-
SECOND_BY_SECOND
= 'SECOND_BY_SECOND'¶
-
__getitem__
(definitionID)¶ return description for definitionID.
-
definitions
¶ readonly property holding definition dict.
-
-
class
oandapyV20.definitions.accounts.
PositionAggregationMode
¶ Bases:
object
Definition representation of PositionAggregationMode
Definitions used in requests and responses. This class provides the ID and the description of the definitions.
>>> import oandapyV20.definitions.accounts as defaccounts >>> print defaccounts.PositionAggregationMode.NET_SUM NET_SUM >>> c = defaccounts.PositionAggregationMode() >>> print c[c.NET_SUM] The units for each side (long and short) of the Position are netted together and the resulting value (long or short) is used to compute the Position value or margin.
-
ABSOLUTE_SUM
= 'ABSOLUTE_SUM'¶
-
MAXIMAL_SIDE
= 'MAXIMAL_SIDE'¶
-
NET_SUM
= 'NET_SUM'¶
-
__getitem__
(definitionID)¶ return description for definitionID.
-
definitions
¶ readonly property holding definition dict.
-