Skip to content

IsSuccessful Property

Summary

True if the trade is successful, false if there is an error.

Signature

1
public bool IsSuccessful {get;}

Return Value

bool

Declaring Type

cAlgo.API.TradeResult

Examples

1
2
3
 TradeResult result = ExecuteMarketOrder(TradeType.Buy, Symbol, 20000);
 if (result.IsSuccessful)
     Print("Buy at {0}", result.Position.EntryPrice);

Last update: December 5, 2022

Comments