A portfolio position
The following tables list the members exposed by Position.
Public Properties
| Name | Description | |
|---|---|---|
|
Amount | Gets position amount |
|
Debt | Gets position debt |
|
EntryDate | Gets entry date of this position |
|
EntryPrice | Gets entry price of this position |
|
EntryQty | Gets entry quantity of this position |
|
Instrument | Gets position instrument |
|
Margin | Gets position margin |
|
Qty | Gets position quantity |
|
QtyBought | Gets position bought quantity |
|
QtySold | Gets position sold quantity |
|
QtySoldShort | Gets position sold short quantity |
|
Side | Gets position side |
|
Transactions | Gets a list of position transactions |
Public Methods
| Name | Description | |
|---|---|---|
|
GetCashFlow | Returns positon cash flow |
|
GetDebtValue | Returns marked to market position debt value |
|
GetDuration | Returns position duration |
|
GetLeverage | Returns marked to market position leverage |
|
GetMarginValue | Returns marked to market position margin value |
|
GetNetCashFlow | Returns position net cash flow |
|
GetNetPnL | Returns marked to market position net PnL (profit and loss) |
|
GetNetPnLPercent | Returns marked to market position net PnL (profit and loss) in % |
|
GetPnL | Returns marked to market position PnL (profit and loss) |
|
GetPnLPercent | Returns marked to market position PnL (profit and loss) in % |
|
GetPrice | Returns marked to market position price |
|
GetUnrealizedPnL | Returns marked to market position unrealized PnL (profit and loss) |
|
GetValue | Returns marked to market position value |