Interface IPosition
Encapsulates position information from Alpaca REST API.
Namespace: Alpaca.Markets
Assembly: Alpaca.Markets.dll
Syntax
public interface IPosition
Properties
| Improve this Doc View SourceAssetChangePercent
Gets position's asset price change in percent.
Declaration
Decimal? AssetChangePercent { get; }
Property Value
Type | Description |
---|---|
System.Nullable<Decimal> |
AssetClass
Gets asset class.
Declaration
AssetClass AssetClass { get; }
Property Value
Type | Description |
---|---|
AssetClass |
AssetCurrentPrice
Gets position's asset current price.
Declaration
Decimal? AssetCurrentPrice { get; }
Property Value
Type | Description |
---|---|
System.Nullable<Decimal> |
AssetId
Gets unique asset identifier.
Declaration
Guid AssetId { get; }
Property Value
Type | Description |
---|---|
Guid |
AssetLastPrice
Gets position's asset last trade price.
Declaration
Decimal? AssetLastPrice { get; }
Property Value
Type | Description |
---|---|
System.Nullable<Decimal> |
AvailableQuantity
Get total number of shares available minus open orders (with the fractional part).
Declaration
Decimal AvailableQuantity { get; }
Property Value
Type | Description |
---|---|
Decimal |
AverageEntryPrice
Gets average entry price for position.
Declaration
Decimal AverageEntryPrice { get; }
Property Value
Type | Description |
---|---|
Decimal |
CostBasis
Get position cost basis.
Declaration
Decimal CostBasis { get; }
Property Value
Type | Description |
---|---|
Decimal |
Exchange
Gets asset exchange.
Declaration
Exchange Exchange { get; }
Property Value
Type | Description |
---|---|
Exchange |
IntegerAvailableQuantity
Get total number of shares available minus open orders (rounded to the nearest integer).
Declaration
Int64 IntegerAvailableQuantity { get; }
Property Value
Type | Description |
---|---|
Int64 |
IntegerQuantity
Get position quantity (rounded to the nearest integer).
Declaration
Int64 IntegerQuantity { get; }
Property Value
Type | Description |
---|---|
Int64 |
IntradayUnrealizedProfitLoss
Get position intraday unrealized profit loss.
Declaration
Decimal? IntradayUnrealizedProfitLoss { get; }
Property Value
Type | Description |
---|---|
System.Nullable<Decimal> |
IntradayUnrealizedProfitLossPercent
Get position intraday unrealized profit loss in percent.
Declaration
Decimal? IntradayUnrealizedProfitLossPercent { get; }
Property Value
Type | Description |
---|---|
System.Nullable<Decimal> |
MarketValue
Get current position market value.
Declaration
Decimal? MarketValue { get; }
Property Value
Type | Description |
---|---|
System.Nullable<Decimal> |
Quantity
Get position quantity (with the fractional part).
Declaration
Decimal Quantity { get; }
Property Value
Type | Description |
---|---|
Decimal |
Side
Get position side (short or long).
Declaration
PositionSide Side { get; }
Property Value
Type | Description |
---|---|
PositionSide |
Symbol
Gets asset symbol.
Declaration
String Symbol { get; }
Property Value
Type | Description |
---|---|
String |
UnrealizedProfitLoss
Get position unrealized profit loss.
Declaration
Decimal? UnrealizedProfitLoss { get; }
Property Value
Type | Description |
---|---|
System.Nullable<Decimal> |
UnrealizedProfitLossPercent
Get position unrealized profit loss in percent.
Declaration
Decimal? UnrealizedProfitLossPercent { get; }
Property Value
Type | Description |
---|---|
System.Nullable<Decimal> |