saxo_openapi.definitions.accounthistory

AccountHistory Definitions.

class saxo_openapi.definitions.accounthistory.InlineCountValue

Bases: object

Definition representation of InlineCountValue

Definitions used in requests and responses. This class provides the ID and the description of the definitions.

>>> import saxo_openapi.definitions.accounthistory as defaccounthistory
>>> print(defaccounthistory.InlineCountValue.AllPages)
AllPages
>>> c = defaccounthistory.InlineCountValue()
>>> print(c[c.AllPages])
The results will contain a total count of items in the queried dataset.
>>> # or
>>> print(defaccounthistory.InlineCountValue().definitions[c.AllPages])
>>> # all keys
>>> print(defaccounthistory.InlineCountValue().definitions.keys())
>>> ...
AllPages = 'AllPages'
None = 'None'
__getitem__(definitionID)

return description for definitionID.

definitions

readonly property holding definition dict.

class saxo_openapi.definitions.accounthistory.AccountPerformanceStandardPeriod

Bases: object

Definition representation of AccountPerformanceStandardPeriod

Definitions used in requests and responses. This class provides the ID and the description of the definitions.

>>> import saxo_openapi.definitions.accounthistory as defaccounthistory
>>> print(defaccounthistory.AccountPerformanceStandardPeriod.AllTime)
AllTime
>>> c = defaccounthistory.AccountPerformanceStandardPeriod()
>>> print(c[c.AllTime])
All time account performance.
>>> # or
>>> print(defaccounthistory.AccountPerformanceStandardPeriod().definitions[c.AllTime])
>>> # all keys
>>> print(defaccounthistory.AccountPerformanceStandardPeriod().definitions.keys())
>>> ...
AllTime = 'AllTime'
Month = 'Month'
Quarter = 'Quarter'
Year = 'Year'
__getitem__(definitionID)

return description for definitionID.

definitions

readonly property holding definition dict.

class saxo_openapi.definitions.accounthistory.AssetType

Bases: object

Definition representation of AssetType

Definitions used in requests and responses. This class provides the ID and the description of the definitions.

>>> import saxo_openapi.definitions.accounthistory as defaccounthistory
>>> print(defaccounthistory.AssetType.Name)
Name
>>> c = defaccounthistory.AssetType()
>>> print(c[c.Name])
Description
>>> # or
>>> print(defaccounthistory.AssetType().definitions[c.Name])
>>> # all keys
>>> print(defaccounthistory.AssetType().definitions.keys())
>>> ...
Bond = 'Bond'
Cash = 'Cash'
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'
Name = 'Name'
Stock = 'Stock'
StockIndex = 'StockIndex'
StockIndexOption = 'StockIndexOption'
StockOption = 'StockOption'
__getitem__(definitionID)

return description for definitionID.

definitions

readonly property holding definition dict.

class saxo_openapi.definitions.accounthistory.AccountPerformanceFieldGroup

Bases: object

Definition representation of AccountPerformanceFieldGroup

Definitions used in requests and responses. This class provides the ID and the description of the definitions.

>>> import saxo_openapi.definitions.accounthistory as defaccounthistory
>>> print(defaccounthistory.AccountPerformanceFieldGroup.AccountSummary)
AccountSummary
>>> c = defaccounthistory.AccountPerformanceFieldGroup()
>>> print(c[c.AccountSummary])
>>> # or
>>> print(defaccounthistory.AccountPerformanceFieldGroup().definitions[c.AccountSummary])
>>> # all keys
>>> print(defaccounthistory.AccountPerformanceFieldGroup().definitions.keys())
>>> ...
AccountSummary = 'AccountSummary'
All = 'All'
Allocation = 'Allocation'
AvailableBenchmarks = 'AvailableBenchmarks'
BalancePerformance = 'BalancePerformance'
BalancePerformance_AccountValueTimeSeries = 'BalancePerformance_AccountValueTimeSeries'
BenchMark = 'BenchMark'
BenchmarkPerformance = 'BenchmarkPerformance'
TimeWeightedPerformance = 'TimeWeightedPerformance'
TimeWeightedPerformance_AccumulatedTimeWeightedTimeSeries = 'TimeWeightedPerformance_AccumulatedTimeWeightedTimeSeries'
TotalCashBalancePerCurrency = 'TotalCashBalancePerCurrency'
TotalPositionsValuePerCurrency = 'TotalPositionsValuePerCurrency'
TotalPositionsValuePerProductPerSecurity = 'TotalPositionsValuePerProductPerSecurity'
TradeActivity = 'TradeActivity'
__getitem__(definitionID)

return description for definitionID.

definitions

readonly property holding definition dict.