oandapyV20.definitions.transactions¶
-
class
oandapyV20.definitions.transactions.TransactionType¶ Bases:
objectDefinition representation of TransactionType
Definitions used in requests and responses. This class provides the ID and the description of the definitions.
>>> import oandapyV20.definitions.transactions as deftransactions >>> print deftransactions.TransactionType.STOP_LOSS_ORDER STOP_LOSS_ORDER >>> c = deftransactions.TransactionType() >>> print c[c.STOP_LOSS_ORDER] Stop Loss Order Transaction
-
CLIENT_CONFIGURE= 'CLIENT_CONFIGURE'¶
-
CLIENT_CONFIGURE_REJECT= 'CLIENT_CONFIGURE_REJECT'¶
-
CLOSE= 'CLOSE'¶
-
CREATE= 'CREATE'¶
-
DAILY_FINANCING= 'DAILY_FINANCING'¶
-
LIMIT_ORDER= 'LIMIT_ORDER'¶
-
LIMIT_ORDER_REJECT= 'LIMIT_ORDER_REJECT'¶
-
MARGIN_CALL_ENTER= 'MARGIN_CALL_ENTER'¶
-
MARGIN_CALL_EXIT= 'MARGIN_CALL_EXIT'¶
-
MARGIN_CALL_EXTEND= 'MARGIN_CALL_EXTEND'¶
-
MARKET_IF_TOUCHED_ORDER= 'MARKET_IF_TOUCHED_ORDER'¶
-
MARKET_IF_TOUCHED_ORDER_REJECT= 'MARKET_IF_TOUCHED_ORDER_REJECT'¶
-
MARKET_ORDER= 'MARKET_ORDER'¶
-
MARKET_ORDER_REJECT= 'MARKET_ORDER_REJECT'¶
-
ORDER_CANCEL= 'ORDER_CANCEL'¶
-
ORDER_CLIENT_EXTENSIONS_MODIFY= 'ORDER_CLIENT_EXTENSIONS_MODIFY'¶
-
ORDER_CLIENT_EXTENSIONS_MODIFY_REJECT= 'ORDER_CLIENT_EXTENSIONS_MODIFY_REJECT'¶
-
ORDER_FILL= 'ORDER_FILL'¶
-
REOPEN= 'REOPEN'¶
-
RESET_RESETTABLE_PL= 'RESET_RESETTABLE_PL'¶
-
STOP_LOSS_ORDER= 'STOP_LOSS_ORDER'¶
-
STOP_LOSS_ORDER_REJECT= 'STOP_LOSS_ORDER_REJECT'¶
-
STOP_ORDER= 'STOP_ORDER'¶
-
STOP_ORDER_REJECT= 'STOP_ORDER_REJECT'¶
-
TAKE_PROFIT_ORDER= 'TAKE_PROFIT_ORDER'¶
-
TAKE_PROFIT_ORDER_REJECT= 'TAKE_PROFIT_ORDER_REJECT'¶
-
TRADE_CLIENT_EXTENSIONS_MODIFY= 'TRADE_CLIENT_EXTENSIONS_MODIFY'¶
-
TRADE_CLIENT_EXTENSIONS_MODIFY_REJECT= 'TRADE_CLIENT_EXTENSIONS_MODIFY_REJECT'¶
-
TRAILING_STOP_LOSS_ORDER= 'TRAILING_STOP_LOSS_ORDER'¶
-
TRAILING_STOP_LOSS_ORDER_REJECT= 'TRAILING_STOP_LOSS_ORDER_REJECT'¶
-
TRANSFER_FUNDS= 'TRANSFER_FUNDS'¶
-
TRANSFER_FUNDS_REJECT= 'TRANSFER_FUNDS_REJECT'¶
-
__getitem__(definitionID)¶ return description for definitionID.
-
definitions¶ readonly property holding definition dict.
-
-
class
oandapyV20.definitions.transactions.FundingReason¶ Bases:
objectDefinition representation of FundingReason
Definitions used in requests and responses. This class provides the ID and the description of the definitions.
>>> import oandapyV20.definitions.transactions as deftransactions >>> print deftransactions.FundingReason.ACCOUNT_TRANSFER ACCOUNT_TRANSFER >>> c = deftransactions.FundingReason() >>> print c[c.ACCOUNT_TRANSFER] Funds are being transfered between two Accounts.
-
ACCOUNT_TRANSFER= 'ACCOUNT_TRANSFER'¶
-
ADJUSTMENT= 'ADJUSTMENT'¶
-
CLIENT_FUNDING= 'CLIENT_FUNDING'¶
-
DIVISION_MIGRATION= 'DIVISION_MIGRATION'¶
-
SITE_MIGRATION= 'SITE_MIGRATION'¶
-
__getitem__(definitionID)¶ return description for definitionID.
-
definitions¶ readonly property holding definition dict.
-
-
class
oandapyV20.definitions.transactions.MarketOrderReason¶ Bases:
objectDefinition representation of MarketOrderReason
Definitions used in requests and responses. This class provides the ID and the description of the definitions.
>>> import oandapyV20.definitions.transactions as deftransactions >>> print deftransactions.MarketOrderReason.TRADE_CLOSE TRADE_CLOSE >>> c = deftransactions.MarketOrderReason() >>> print c[c.TRADE_CLOSE] The Market Order was created to close a Trade at the request of a client
-
CLIENT_ORDER= 'CLIENT_ORDER'¶
-
DELAYED_TRADE_CLOSE= 'DELAYED_TRADE_CLOSE'¶
-
MARGIN_CLOSEOUT= 'MARGIN_CLOSEOUT'¶
-
POSITION_CLOSEOUT= 'POSITION_CLOSEOUT'¶
-
TRADE_CLOSE= 'TRADE_CLOSE'¶
-
__getitem__(definitionID)¶ return description for definitionID.
-
definitions¶ readonly property holding definition dict.
-
-
class
oandapyV20.definitions.transactions.LimitOrderReason¶ Bases:
objectDefinition representation of LimitOrderReason
Definitions used in requests and responses. This class provides the ID and the description of the definitions.
>>> import oandapyV20.definitions.transactions as deftransactions >>> print deftransactions.LimitOrderReason.CLIENT_ORDER CLIENT_ORDER >>> c = deftransactions.LimitOrderReason() >>> print c[c.CLIENT_ORDER] The Limit Order was initiated at the request of a client
-
CLIENT_ORDER= 'CLIENT_ORDER'¶
-
REPLACEMENT= 'REPLACEMENT'¶
-
__getitem__(definitionID)¶ return description for definitionID.
-
definitions¶ readonly property holding definition dict.
-
-
class
oandapyV20.definitions.transactions.StopOrderReason¶ Bases:
objectDefinition representation of StopOrderReason
Definitions used in requests and responses. This class provides the ID and the description of the definitions.
>>> import oandapyV20.definitions.transactions as deftransactions >>> print deftransactions.StopOrderReason.CLIENT_ORDER CLIENT_ORDER >>> c = deftransactions.StopOrderReason() >>> print c[c.CLIENT_ORDER] The Stop Order was initiated at the request of a client
-
CLIENT_ORDER= 'CLIENT_ORDER'¶
-
REPLACEMENT= 'REPLACEMENT'¶
-
__getitem__(definitionID)¶ return description for definitionID.
-
definitions¶ readonly property holding definition dict.
-
-
class
oandapyV20.definitions.transactions.MarketIfTouchedOrderReason¶ Bases:
objectDefinition representation of MarketIfTouchedOrderReason
Definitions used in requests and responses. This class provides the ID and the description of the definitions.
>>> import oandapyV20.definitions.transactions as deftransactions >>> print deftransactions.MarketIfTouchedOrderReason.CLIENT_ORDER CLIENT_ORDER >>> c = deftransactions.MarketIfTouchedOrderReason() >>> print c[c.CLIENT_ORDER] The Market-if-touched Order was initiated at the request of a client
-
CLIENT_ORDER= 'CLIENT_ORDER'¶
-
REPLACEMENT= 'REPLACEMENT'¶
-
__getitem__(definitionID)¶ return description for definitionID.
-
definitions¶ readonly property holding definition dict.
-
-
class
oandapyV20.definitions.transactions.TakeProfitOrderReason¶ Bases:
objectDefinition representation of TakeProfitOrderReason
Definitions used in requests and responses. This class provides the ID and the description of the definitions.
>>> import oandapyV20.definitions.transactions as deftransactions >>> print deftransactions.TakeProfitOrderReason.ON_FILL ON_FILL >>> c = deftransactions.TakeProfitOrderReason() >>> print c[c.ON_FILL] The Take Profit Order was initiated automatically when an Order was filled that opened a new Trade requiring a Take Profit Order.
-
CLIENT_ORDER= 'CLIENT_ORDER'¶
-
ON_FILL= 'ON_FILL'¶
-
REPLACEMENT= 'REPLACEMENT'¶
-
__getitem__(definitionID)¶ return description for definitionID.
-
definitions¶ readonly property holding definition dict.
-
-
class
oandapyV20.definitions.transactions.StopLossOrderReason¶ Bases:
objectDefinition representation of StopLossOrderReason
Definitions used in requests and responses. This class provides the ID and the description of the definitions.
>>> import oandapyV20.definitions.transactions as deftransactions >>> print deftransactions.StopLossOrderReason.ON_FILL ON_FILL >>> c = deftransactions.StopLossOrderReason() >>> print c[c.ON_FILL] The Stop Loss Order was initiated automatically when an Order was filled that opened a new Trade requiring a Stop Loss Order.
-
CLIENT_ORDER= 'CLIENT_ORDER'¶
-
ON_FILL= 'ON_FILL'¶
-
REPLACEMENT= 'REPLACEMENT'¶
-
__getitem__(definitionID)¶ return description for definitionID.
-
definitions¶ readonly property holding definition dict.
-
-
class
oandapyV20.definitions.transactions.TrailingStopLossOrderReason¶ Bases:
objectDefinition representation of TrailingStopLossOrderReason
Definitions used in requests and responses. This class provides the ID and the description of the definitions.
>>> import oandapyV20.definitions.transactions as deftransactions >>> print deftransactions.TrailingStopLossOrderReason.ON_FILL ON_FILL >>> c = deftransactions.TrailingStopLossOrderReason() >>> print c[c.ON_FILL] The Trailing Stop Loss Order was initiated automatically when an Order was filled that opened a new Trade requiring a Trailing Stop Loss Order.
-
CLIENT_ORDER= 'CLIENT_ORDER'¶
-
ON_FILL= 'ON_FILL'¶
-
REPLACEMENT= 'REPLACEMENT'¶
-
__getitem__(definitionID)¶ return description for definitionID.
-
definitions¶ readonly property holding definition dict.
-
-
class
oandapyV20.definitions.transactions.OrderFillReason¶ Bases:
objectDefinition representation of OrderFillReason
Definitions used in requests and responses. This class provides the ID and the description of the definitions.
>>> import oandapyV20.definitions.transactions as deftransactions >>> print deftransactions.OrderFillReason.STOP_ORDER STOP_ORDER >>> c = deftransactions.OrderFillReason() >>> print c[c.STOP_ORDER] The Order filled was a Stop Order
-
LIMIT_ORDER= 'LIMIT_ORDER'¶
-
MARKET_IF_TOUCHED_ORDER= 'MARKET_IF_TOUCHED_ORDER'¶
-
MARKET_ORDER= 'MARKET_ORDER'¶
-
MARKET_ORDER_DELAYED_TRADE_CLOSE= 'MARKET_ORDER_DELAYED_TRADE_CLOSE'¶
-
MARKET_ORDER_MARGIN_CLOSEOUT= 'MARKET_ORDER_MARGIN_CLOSEOUT'¶
-
MARKET_ORDER_POSITION_CLOSEOUT= 'MARKET_ORDER_POSITION_CLOSEOUT'¶
-
MARKET_ORDER_TRADE_CLOSE= 'MARKET_ORDER_TRADE_CLOSE'¶
-
STOP_LOSS_ORDER= 'STOP_LOSS_ORDER'¶
-
STOP_ORDER= 'STOP_ORDER'¶
-
TAKE_PROFIT_ORDER= 'TAKE_PROFIT_ORDER'¶
-
TRAILING_STOP_LOSS_ORDER= 'TRAILING_STOP_LOSS_ORDER'¶
-
__getitem__(definitionID)¶ return description for definitionID.
-
definitions¶ readonly property holding definition dict.
-
-
class
oandapyV20.definitions.transactions.OrderCancelReason¶ Bases:
objectDefinition representation of OrderCancelReason
Definitions used in requests and responses. This class provides the ID and the description of the definitions.
>>> import oandapyV20.definitions.transactions as deftransactions >>> print deftransactions.OrderCancelReason.LINKED_TRADE_CLOSED LINKED_TRADE_CLOSED >>> c = deftransactions.OrderCancelReason() >>> print c[c.LINKED_TRADE_CLOSED] The Order is linked to an open Trade that was closed.
-
ACCOUNT_LOCKED= 'ACCOUNT_LOCKED'¶
-
ACCOUNT_NEW_POSITIONS_LOCKED= 'ACCOUNT_NEW_POSITIONS_LOCKED'¶
-
ACCOUNT_ORDER_CREATION_LOCKED= 'ACCOUNT_ORDER_CREATION_LOCKED'¶
-
ACCOUNT_ORDER_FILL_LOCKED= 'ACCOUNT_ORDER_FILL_LOCKED'¶
-
BOUNDS_VIOLATION= 'BOUNDS_VIOLATION'¶
-
CLIENT_REQUEST= 'CLIENT_REQUEST'¶
-
CLIENT_REQUEST_REPLACED= 'CLIENT_REQUEST_REPLACED'¶
-
CLIENT_TRADE_ID_ALREADY_EXISTS= 'CLIENT_TRADE_ID_ALREADY_EXISTS'¶
-
FIFO_VIOLATION= 'FIFO_VIOLATION'¶
-
INSUFFICIENT_LIQUIDITY= 'INSUFFICIENT_LIQUIDITY'¶
-
INSUFFICIENT_MARGIN= 'INSUFFICIENT_MARGIN'¶
-
INTERNAL_SERVER_ERROR= 'INTERNAL_SERVER_ERROR'¶
-
LINKED_TRADE_CLOSED= 'LINKED_TRADE_CLOSED'¶
-
LOSING_TAKE_PROFIT= 'LOSING_TAKE_PROFIT'¶
-
MARKET_HALTED= 'MARKET_HALTED'¶
-
MIGRATION= 'MIGRATION'¶
-
OPEN_TRADES_ALLOWED_EXCEEDED= 'OPEN_TRADES_ALLOWED_EXCEEDED'¶
-
PENDING_ORDERS_ALLOWED_EXCEEDED= 'PENDING_ORDERS_ALLOWED_EXCEEDED'¶
-
POSITION_CLOSEOUT_FAILED= 'POSITION_CLOSEOUT_FAILED'¶
-
POSITION_SIZE_EXCEEDED= 'POSITION_SIZE_EXCEEDED'¶
-
STOP_LOSS_ON_FILL_CLIENT_ORDER_ID_ALREADY_EXISTS= 'STOP_LOSS_ON_FILL_CLIENT_ORDER_ID_ALREADY_EXISTS'¶
-
STOP_LOSS_ON_FILL_GTD_TIMESTAMP_IN_PAST= 'STOP_LOSS_ON_FILL_GTD_TIMESTAMP_IN_PAST'¶
-
STOP_LOSS_ON_FILL_LOSS= 'STOP_LOSS_ON_FILL_LOSS'¶
-
TAKE_PROFIT_ON_FILL_CLIENT_ORDER_ID_ALREADY_EXISTS= 'TAKE_PROFIT_ON_FILL_CLIENT_ORDER_ID_ALREADY_EXISTS'¶
-
TAKE_PROFIT_ON_FILL_GTD_TIMESTAMP_IN_PAST= 'TAKE_PROFIT_ON_FILL_GTD_TIMESTAMP_IN_PAST'¶
-
TAKE_PROFIT_ON_FILL_LOSS= 'TAKE_PROFIT_ON_FILL_LOSS'¶
-
TIME_IN_FORCE_EXPIRED= 'TIME_IN_FORCE_EXPIRED'¶
-
TRAILING_STOP_LOSS_ON_FILL_CLIENT_ORDER_ID_ALREADY_EXISTS= 'TRAILING_STOP_LOSS_ON_FILL_CLIENT_ORDER_ID_ALREADY_EXISTS'¶
-
TRAILING_STOP_LOSS_ON_FILL_GTD_TIMESTAMP_IN_PAST= 'TRAILING_STOP_LOSS_ON_FILL_GTD_TIMESTAMP_IN_PAST'¶
-
__getitem__(definitionID)¶ return description for definitionID.
-
definitions¶ readonly property holding definition dict.
-