Position Class

Class representing a single market position for an account.

Definition

Namespace: T4.API
Assembly: T4API.47 (in T4API.47.dll) Version: 4.7.0.0 (4.7.68.4)
C#
public class Position
Inheritance
Object    Position

Remarks

The Position object contains all the Orders for this account for this market as well as the details of the position itself, such as net position, P&L, margin etc.

Properties

AverageOpenPrice The average price of any open position the account has in this market.
Buys The total number of lots bought in the current trading day.
FeesAndCommissions The fees and commissions for the current day.
Margin The margin requirement for this account in this market.
Market The market for this position.
Net Returns the current net position of the account in this market.
OvernightUPL The total Unrealised Profit and Loss from open positions from previous days to the latest settlement prices.
PL The total profit and loss for the account in this market for the current trading day.
PLTrade The total profit and loss for the account in this market for the current trading day valued against the last trade price.
RPL The total Realised Profit and Loss (closed positions) for this account in this market for the current trading day.
Sells The total number of lots sold in the current trading day.
TotalBuyFillPrice The total price of all buy trades the account has in this market.
TotalSellFillPrice The total price of all sell trades the account has in this market.
UPL The total Unrealised Profit and Loss (open positions) for this account in this market for the current trading day.
UPLTrade The total Unrealised Profit and Loss (open positions) for this account in this market for the current trading day.
WorkingBuys The total number of lots that are currently working to buy in the market for this account.
WorkingSells The total number of lots that are currently working to sell in the market for this account.
Worst Returns the worst position that this account can have in this market.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

Fields

Account Reference to the account this position belongs to.

See Also