Skip to content

TradeResult Property

Summary

The result of a trade operation

Signature

1
public TradeResult TradeResult {get;}

Return Value

TradeResult

Declaring Type

cAlgo.API.TradeOperation

Examples

1
2
3
4
5
6
 TradeOperation operation = ExecuteMarketOrderAsync(TradeType.Buy, Symbol, 20000, "myLabel");
 // ...
 if (!operation.IsExecuting && operation.TradeResult.IsSuccessful)
 {
     Print("Trade {0} executed", operation.TradeResult.Position.Label);
 }

Last update: July 1, 2022

Comments