DealStatus
enum cAlgo.API Since 5.1
DesktopCLICloud
Represents the different status of a deal.
Definition
public enum DealStatus
Namespace: cAlgo.API · Group: Deals
Examples
foreach (var position in Positions)
{
foreach (var deal in position.Deals)
{
if (deal.Status == DealStatus.PartiallyFilled)
Print("Deal {0} of position {1} was only partially filled", deal.Id, position.Id);
}
}
for position in api.Positions:
for deal in position.Deals:
if deal.Status == DealStatus.PartiallyFilled:
api.Print(f"Deal {deal.Id} of position {position.Id} was only partially filled")
Values
| Name | Value | Description |
|---|---|---|
Filled | 0 | Filled. |
PartiallyFilled | 1 | Partially filled. |
Rejected | 2 | Rejected. |
Error | 3 | Error. |
Missed | 4 | Missed. |
InternallyRejected | 5 | Internally rejected. |