Skip to content

PendingOrderType

Summary

Represents the type (Limit or Stop) of pending order.

Signature

1
public enum PendingOrderType

Namespace

cAlgo.API

Examples

1
2
3
4
 if(PendingOrders.Count > 0)
 {
     PendingOrderType type = PendingOrders[0].OrderType;
 }

See Also

Fields

Limit

Summary

A limit order is an order to buy or sell at a specific price or better.

Signature

1
public static PendingOrderType Limit;

Return Value

PendingOrderType

Examples

1
2
3
4
5
 foreach (var order in PendingOrders)
 {
     if(order.OrderType == PendingOrderType.Limit)
         Print(order.Id);
 }

Stop

Summary

A stop order is an order to buy or sell once the price of the symbol reaches a specified price.

Signature

1
public static PendingOrderType Stop;

Return Value

PendingOrderType

Examples

1
2
3
4
5
 foreach (var order in PendingOrders)
 {
     if(order.OrderType == PendingOrderType.Stop)
         Print(order.Id);
 }

StopLimit

Summary

A stop limit order is an order to buy or sell once the price of the symbol reaches specific price.Order has a parameter for maximum distance from that target price, where it can be executed.

Signature

1
public static PendingOrderType StopLimit;

Return Value

PendingOrderType

Examples

1
2
3
4
5
 foreach (var order in PendingOrders)
 {
     if(order.OrderType == PendingOrderType.StopLimit)
         Print(order.Id);
 }