saxo_openapi.definitions.orders¶
Order related definitions.
-
class
saxo_openapi.definitions.orders.AmountType¶ Bases:
objectDefinition representation of AmountType
Definitions used in requests and responses. This class provides the ID and the description of the definitions.
>>> import saxo_openapi.definitions.orders as deforders >>> print(deforders.AmountType.CashAmount) CashAmount >>> c = deforders.AmountType() >>> print(c[c.CashAmount]) Order amount is specified as a monetary value >>> # or >>> print(deforders.AmountType().definitions[c.CashAmount]) >>> # all keys >>> print(deforders.AmountType().definitions.keys()) >>> ...
-
CashAmount= 'CashAmount'¶
-
Quantity= 'Quantity'¶
-
__getitem__(definitionID)¶ return description for definitionID.
-
definitions¶ readonly property holding definition dict.
-
-
class
saxo_openapi.definitions.orders.AssetType¶ Bases:
objectDefinition representation of AssetType
Definitions used in requests and responses. This class provides the ID and the description of the definitions.
>>> import saxo_openapi.definitions.orders as deforders >>> print(deforders.AssetType.Bond) Bond >>> c = deforders.AssetType() >>> print(c[c.Bond]) Bond >>> # or >>> print(deforders.AssetType().definitions[c.Bond]) >>> # all keys >>> print(deforders.AssetType().definitions.keys()) >>> ...
-
Bond= 'Bond'¶
-
CfdIndexOption= 'CfdIndexOption'¶
-
CfdOnFutures= 'CfdOnFutures'¶
-
CfdOnIndex= 'CfdOnIndex'¶
-
CfdOnStock= 'CfdOnStock'¶
-
ContractFutures= 'ContractFutures'¶
-
FuturesOption= 'FuturesOption'¶
-
FuturesStrategy= 'FuturesStrategy'¶
-
FxBinaryOption= 'FxBinaryOption'¶
-
FxForwards= 'FxForwards'¶
-
FxKnockInOption= 'FxKnockInOption'¶
-
FxKnockOutOption= 'FxKnockOutOption'¶
-
FxNoTouchOption= 'FxNoTouchOption'¶
-
FxOneTouchOption= 'FxOneTouchOption'¶
-
FxSpot= 'FxSpot'¶
-
FxVanillaOption= 'FxVanillaOption'¶
-
ManagedFund= 'ManagedFund'¶
-
MutualFund= 'MutualFund'¶
-
Stock= 'Stock'¶
-
StockIndex= 'StockIndex'¶
-
StockIndexOption= 'StockIndexOption'¶
-
StockOption= 'StockOption'¶
-
__getitem__(definitionID)¶ return description for definitionID.
-
definitions¶ readonly property holding definition dict.
-
-
class
saxo_openapi.definitions.orders.Direction¶ Bases:
objectDefinition representation of Direction
Definitions used in requests and responses. This class provides the ID and the description of the definitions.
>>> import saxo_openapi.definitions.orders as deforders >>> print(deforders.Direction.Buy) Buy >>> c = deforders.Direction() >>> print(c[c.Buy]) Buy >>> # or >>> print(deforders.Direction().definitions[c.Buy]) >>> # all keys >>> print(deforders.Direction().definitions.keys()) >>> ...
-
Buy= 'Buy'¶
-
Sell= 'Sell'¶
-
__getitem__(definitionID)¶ return description for definitionID.
-
definitions¶ readonly property holding definition dict.
-
-
class
saxo_openapi.definitions.orders.OrderDurationType¶ Bases:
objectDefinition representation of OrderDurationType
Definitions used in requests and responses. This class provides the ID and the description of the definitions.
>>> import saxo_openapi.definitions.orders as deforders >>> print(deforders.OrderDurationType.AtTheClose) AtTheClose >>> c = deforders.OrderDurationType() >>> print(c[c.AtTheClose]) At the close of the trading session >>> # or >>> print(deforders.OrderDurationType().definitions[c.AtTheClose]) >>> # all keys >>> print(deforders.OrderDurationType().definitions.keys()) >>> ...
-
AtTheClose= 'AtTheClose'¶
-
AtTheOpening= 'AtTheOpening'¶
-
DayOrder= 'DayOrder'¶
-
FillOrKill= 'FillOrKill'¶
-
GoodForPeriod= 'GoodForPeriod'¶
-
GoodTillCancel= 'GoodTillCancel'¶
-
GoodTillDate= 'GoodTillDate'¶
-
ImmediateOrCancel= 'ImmediateOrCancel'¶
-
__getitem__(definitionID)¶ return description for definitionID.
-
definitions¶ readonly property holding definition dict.
-
-
class
saxo_openapi.definitions.orders.OrderType¶ Bases:
objectDefinition representation of OrderType
Definitions used in requests and responses. This class provides the ID and the description of the definitions.
>>> import saxo_openapi.definitions.orders as deforders >>> print(deforders.OrderType.Algorithmic) Algorithmic >>> c = deforders.OrderType() >>> print(c[c.Algorithmic]) Algo order >>> # or >>> print(deforders.OrderType().definitions[c.Algorithmic]) >>> # all keys >>> print(deforders.OrderType().definitions.keys()) >>> ...
-
Algorithmic= 'Algorithmic'¶
-
Limit= 'Limit'¶
-
Market= 'Market'¶
-
Stop= 'Stop'¶
-
StopIfTraded= 'StopIfTraded'¶
-
StopLimit= 'StopLimit'¶
-
Switch= 'Switch'¶
-
TrailingStop= 'TrailingStop'¶
-
TrailingStopIfBid= 'TrailingStopIfBid'¶
-
TrailingStopIfOffered= 'TrailingStopIfOffered'¶
-
TrailingStopIfTraded= 'TrailingStopIfTraded'¶
-
Traspaso= 'Traspaso'¶
-
TraspasoIn= 'TraspasoIn'¶
-
__getitem__(definitionID)¶ return description for definitionID.
-
definitions¶ readonly property holding definition dict.
-
-
class
saxo_openapi.definitions.orders.ToOpenClose¶ Bases:
objectDefinition representation of ToOpenClose
Definitions used in requests and responses. This class provides the ID and the description of the definitions.
>>> import saxo_openapi.definitions.orders as deforders >>> print(deforders.ToOpenClose.ToClose) ToClose >>> c = deforders.ToOpenClose() >>> print(c[c.ToClose]) Order/Position is ToClose >>> # or >>> print(deforders.ToOpenClose().definitions[c.ToClose]) >>> # all keys >>> print(deforders.ToOpenClose().definitions.keys()) >>> ...
-
ToClose= 'ToClose'¶
-
ToOpen= 'ToOpen'¶
-
Undefined= 'Undefined'¶
-
__getitem__(definitionID)¶ return description for definitionID.
-
definitions¶ readonly property holding definition dict.
-