Skip to content

PendingOrder.CurrentPrice

property · PendingOrder · cAlgo.API

DesktopCLICloud

Gets the current price of the symbol for which the pending order is placed.

Definition

double CurrentPrice {get;}
pendingOrder.CurrentPrice: float

Returns double

Examples

foreach (var order in PendingOrders)
    Print("Order {0}: target {1}, current price {2}", order.Id, order.TargetPrice, order.CurrentPrice);
for order in api.PendingOrders:
    api.Print(f"Order {order.Id}: target {order.TargetPrice}, current price {order.CurrentPrice}")