Show / Hide Table of Contents

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 Source

AssetChangePercent

Gets position's asset price change in percent.

Declaration
Decimal? AssetChangePercent { get; }
Property Value
Type Description
System.Nullable<Decimal>
| Improve this Doc View Source

AssetClass

Gets asset class.

Declaration
AssetClass AssetClass { get; }
Property Value
Type Description
AssetClass
| Improve this Doc View Source

AssetCurrentPrice

Gets position's asset current price.

Declaration
Decimal? AssetCurrentPrice { get; }
Property Value
Type Description
System.Nullable<Decimal>
| Improve this Doc View Source

AssetId

Gets unique asset identifier.

Declaration
Guid AssetId { get; }
Property Value
Type Description
Guid
| Improve this Doc View Source

AssetLastPrice

Gets position's asset last trade price.

Declaration
Decimal? AssetLastPrice { get; }
Property Value
Type Description
System.Nullable<Decimal>
| Improve this Doc View Source

AvailableQuantity

Get total number of shares available minus open orders (with the fractional part).

Declaration
Decimal AvailableQuantity { get; }
Property Value
Type Description
Decimal
| Improve this Doc View Source

AverageEntryPrice

Gets average entry price for position.

Declaration
Decimal AverageEntryPrice { get; }
Property Value
Type Description
Decimal
| Improve this Doc View Source

CostBasis

Get position cost basis.

Declaration
Decimal CostBasis { get; }
Property Value
Type Description
Decimal
| Improve this Doc View Source

Exchange

Gets asset exchange.

Declaration
Exchange Exchange { get; }
Property Value
Type Description
Exchange
| Improve this Doc View Source

IntegerAvailableQuantity

Get total number of shares available minus open orders (rounded to the nearest integer).

Declaration
Int64 IntegerAvailableQuantity { get; }
Property Value
Type Description
Int64
| Improve this Doc View Source

IntegerQuantity

Get position quantity (rounded to the nearest integer).

Declaration
Int64 IntegerQuantity { get; }
Property Value
Type Description
Int64
| Improve this Doc View Source

IntradayUnrealizedProfitLoss

Get position intraday unrealized profit loss.

Declaration
Decimal? IntradayUnrealizedProfitLoss { get; }
Property Value
Type Description
System.Nullable<Decimal>
| Improve this Doc View Source

IntradayUnrealizedProfitLossPercent

Get position intraday unrealized profit loss in percent.

Declaration
Decimal? IntradayUnrealizedProfitLossPercent { get; }
Property Value
Type Description
System.Nullable<Decimal>
| Improve this Doc View Source

MarketValue

Get current position market value.

Declaration
Decimal? MarketValue { get; }
Property Value
Type Description
System.Nullable<Decimal>
| Improve this Doc View Source

Quantity

Get position quantity (with the fractional part).

Declaration
Decimal Quantity { get; }
Property Value
Type Description
Decimal
| Improve this Doc View Source

Side

Get position side (short or long).

Declaration
PositionSide Side { get; }
Property Value
Type Description
PositionSide
| Improve this Doc View Source

Symbol

Gets asset symbol.

Declaration
String Symbol { get; }
Property Value
Type Description
String
| Improve this Doc View Source

UnrealizedProfitLoss

Get position unrealized profit loss.

Declaration
Decimal? UnrealizedProfitLoss { get; }
Property Value
Type Description
System.Nullable<Decimal>
| Improve this Doc View Source

UnrealizedProfitLossPercent

Get position unrealized profit loss in percent.

Declaration
Decimal? UnrealizedProfitLossPercent { get; }
Property Value
Type Description
System.Nullable<Decimal>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX