Show / Hide Table of Contents

Struct ProfitLossValue

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
Namespace: tt_net_sdk
Assembly: tt-net-api.dll
Syntax
public struct ProfitLossValue

Constructors

ProfitLossValue(decimal, decimal, decimal)

Declaration
public ProfitLossValue(decimal asNativeCurrency, decimal asPrimaryCurrency, decimal asQuantityTimesPrice)
Parameters
Type Name Description
decimal asNativeCurrency
decimal asPrimaryCurrency
decimal asQuantityTimesPrice

ProfitLossValue(decimal, decimal, decimal, decimal, bool, bool, bool, bool)

Declaration
public ProfitLossValue(decimal asNativeCurrency, decimal asPrimaryCurrency, decimal asQuantityTimesPrice, decimal asTicks, bool supportsAsNativeCurrency, bool supportsAsPrimaryCurrency, bool supportsAsQuantityTimesPrice, bool supportsAsTicks)
Parameters
Type Name Description
decimal asNativeCurrency
decimal asPrimaryCurrency
decimal asQuantityTimesPrice
decimal asTicks
bool supportsAsNativeCurrency
bool supportsAsPrimaryCurrency
bool supportsAsQuantityTimesPrice
bool supportsAsTicks

Fields

InvalidValue

Declaration
public static readonly ProfitLossValue InvalidValue
Field Value
Type Description
ProfitLossValue

Properties

AsNativeCurrency

Declaration
public decimal AsNativeCurrency { get; }
Property Value
Type Description
decimal

AsPrimaryCurrency

Declaration
public decimal AsPrimaryCurrency { get; }
Property Value
Type Description
decimal

AsQuantityTimesPrice

Declaration
public decimal AsQuantityTimesPrice { get; }
Property Value
Type Description
decimal

AsTicks

Declaration
public decimal AsTicks { get; }
Property Value
Type Description
decimal

SupportsAsNativeCurrency

Declaration
public bool SupportsAsNativeCurrency { get; }
Property Value
Type Description
bool

SupportsAsPrimaryCurrency

Declaration
public bool SupportsAsPrimaryCurrency { get; }
Property Value
Type Description
bool

SupportsAsQuantityTimesPrice

Declaration
public bool SupportsAsQuantityTimesPrice { get; }
Property Value
Type Description
bool

SupportsAsTicks

Declaration
public bool SupportsAsTicks { get; }
Property Value
Type Description
bool

Methods

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
ValueType.ToString()
In this article
Back to top