Interface IOrder
Encapsulates order information from Alpaca REST API.
Namespace: Alpaca.Markets
Assembly: Alpaca.Markets.dll
Syntax
public interface IOrder
Properties
| Improve this Doc View SourceAssetClass
Gets asset class.
Declaration
AssetClass AssetClass { get; }
Property Value
Type | Description |
---|---|
AssetClass |
AssetId
Gets unique asset identifier.
Declaration
Guid AssetId { get; }
Property Value
Type | Description |
---|---|
Guid |
AverageFillPrice
Gets order average fill price.
Declaration
Decimal? AverageFillPrice { get; }
Property Value
Type | Description |
---|---|
System.Nullable<Decimal> |
CancelledAtUtc
Gets order cancellation timestamp in UTC.
Declaration
DateTime? CancelledAtUtc { get; }
Property Value
Type | Description |
---|---|
System.Nullable<DateTime> |
ClientOrderId
Gets client-side (user specified) order identifier. Client Order IDs must be unique.
Declaration
String? ClientOrderId { get; }
Property Value
Type | Description |
---|---|
System.Nullable<String> |
CreatedAtUtc
Gets order creation timestamp in UTC.
Declaration
DateTime? CreatedAtUtc { get; }
Property Value
Type | Description |
---|---|
System.Nullable<DateTime> |
ExpiredAtUtc
Gets order expiration timestamp in UTC.
Declaration
DateTime? ExpiredAtUtc { get; }
Property Value
Type | Description |
---|---|
System.Nullable<DateTime> |
FailedAtUtc
Gets order rejection timestamp in UTC.
Declaration
DateTime? FailedAtUtc { get; }
Property Value
Type | Description |
---|---|
System.Nullable<DateTime> |
FilledAtUtc
Gets order fill timestamp in UTC.
Declaration
DateTime? FilledAtUtc { get; }
Property Value
Type | Description |
---|---|
System.Nullable<DateTime> |
FilledQuantity
Gets filled order quantity (with the fractional part).
Declaration
Decimal FilledQuantity { get; }
Property Value
Type | Description |
---|---|
Decimal |
HighWaterMark
Gets the current high water mark price for trailing stop orders.
Declaration
Decimal? HighWaterMark { get; }
Property Value
Type | Description |
---|---|
System.Nullable<Decimal> |
IntegerFilledQuantity
Gets filled order quantity (rounded to the nearest integer).
Declaration
Int64 IntegerFilledQuantity { get; }
Property Value
Type | Description |
---|---|
Int64 |
IntegerQuantity
Gets original order quantity (rounded to the nearest integer).
Declaration
Int64 IntegerQuantity { get; }
Property Value
Type | Description |
---|---|
Int64 |
Legs
Gets legs for this order.
Declaration
IReadOnlyList<IOrder> Legs { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<IOrder> |
LimitPrice
Gets order limit price for limit and stop-limit orders.
Declaration
Decimal? LimitPrice { get; }
Property Value
Type | Description |
---|---|
System.Nullable<Decimal> |
Notional
Gets original notional order quantity (with the fractional part).
Declaration
Decimal? Notional { get; }
Property Value
Type | Description |
---|---|
System.Nullable<Decimal> |
OrderClass
Gets order class.
Declaration
OrderClass OrderClass { get; }
Property Value
Type | Description |
---|---|
OrderClass |
OrderId
Gets unique server-side order identifier.
Declaration
Guid OrderId { get; }
Property Value
Type | Description |
---|---|
Guid |
OrderSide
Gets order side (buy or sell).
Declaration
OrderSide OrderSide { get; }
Property Value
Type | Description |
---|---|
OrderSide |
OrderStatus
Gets current order status.
Declaration
OrderStatus OrderStatus { get; }
Property Value
Type | Description |
---|---|
OrderStatus |
OrderType
Gets order type.
Declaration
OrderType OrderType { get; }
Property Value
Type | Description |
---|---|
OrderType |
Quantity
Gets original fractional order quantity (with the fractional part).
Declaration
Decimal? Quantity { get; }
Property Value
Type | Description |
---|---|
System.Nullable<Decimal> |
ReplacedAtUtc
Gets order replacement timestamp in UTC.
Declaration
DateTime? ReplacedAtUtc { get; }
Property Value
Type | Description |
---|---|
System.Nullable<DateTime> |
ReplacedByOrderId
Gets the order ID that this order was replaced by.
Declaration
Guid? ReplacedByOrderId { get; }
Property Value
Type | Description |
---|---|
System.Nullable<Guid> |
ReplacesOrderId
Gets the order ID that this order replaces.
Declaration
Guid? ReplacesOrderId { get; }
Property Value
Type | Description |
---|---|
System.Nullable<Guid> |
StopPrice
Gets order stop price for stop and stop-limit orders.
Declaration
Decimal? StopPrice { get; }
Property Value
Type | Description |
---|---|
System.Nullable<Decimal> |
SubmittedAtUtc
Gets order submission timestamp in UTC.
Declaration
DateTime? SubmittedAtUtc { get; }
Property Value
Type | Description |
---|---|
System.Nullable<DateTime> |
Symbol
Gets asset symbol.
Declaration
String Symbol { get; }
Property Value
Type | Description |
---|---|
String |
TimeInForce
Gets order duration.
Declaration
TimeInForce TimeInForce { get; }
Property Value
Type | Description |
---|---|
TimeInForce |
TrailOffsetInDollars
Gets the profit taking limit price for advanced order types.
Declaration
Decimal? TrailOffsetInDollars { get; }
Property Value
Type | Description |
---|---|
System.Nullable<Decimal> |
TrailOffsetInPercent
Gets the stop loss stop price for advanced order types.
Declaration
Decimal? TrailOffsetInPercent { get; }
Property Value
Type | Description |
---|---|
System.Nullable<Decimal> |
UpdatedAtUtc
Gets last order update timestamp in UTC.
Declaration
DateTime? UpdatedAtUtc { get; }
Property Value
Type | Description |
---|---|
System.Nullable<DateTime> |