Skip to content

Deal

Summary

Represents a deal.

Signature

1
public abstract interface Deal

Namespace

cAlgo.API

Properties

Id

Summary

Unique deal Id.

Signature

1
public abstract long Id {get;}

Return Value

long

PositionId

Summary

Position Id.

Signature

1
public abstract int PositionId {get;}

Return Value

int

OrderId

Summary

Order Id.

Signature

1
public abstract int OrderId {get;}

Return Value

int

PositionImpact

Summary

Returns deal position impact if deal is filled otherwise null.

Signature

1
public abstract DealPositionImpact? PositionImpact {get;}

Return Value

DealPositionImpact?

Status

Summary

Returns status of deal.

Signature

1
public abstract DealStatus Status {get;}

Return Value

DealStatus

VolumeInUnits

Summary

Deal filled volume amount in units.

Signature

1
public abstract double VolumeInUnits {get;}

Return Value

double

ExecutionPrice

Summary

Returns deal execution price if deal is filled otherwise null.

Signature

1
public abstract double? ExecutionPrice {get;}

Return Value

double?

SymbolName

Summary

Gets the symbol name.

Signature

1
public abstract string SymbolName {get;}

Return Value

string

Label

Summary

Gets the label.

Signature

1
public abstract string Label {get;}

Return Value

string

Comment

Summary

Gets the comment.

Signature

1
public abstract string Comment {get;}

Return Value

string

Channel

Summary

Gets the channel.

Signature

1
public abstract string Channel {get;}

Return Value

string

TradeType

Summary

Gets the TradeType.

Signature

1
public abstract TradeType TradeType {get;}

Return Value

TradeType

ExecutionTime

Summary

Returns deal execution time.

Signature

1
public abstract DateTime ExecutionTime {get;}

Return Value

DateTime

ClosedBy

Summary

If deal was an opening deal then this property will return the deals that closed current deal.

Signature

1
public abstract IReadonlyList<Deal> ClosedBy {get;}

Return Value

IReadonlyList

Closing

Summary

If deal was a closing deal then this property will return the deals that were closed by current deal.

Signature

1
public abstract IReadonlyList<Deal> Closing {get;}

Return Value

IReadonlyList