Skip to content

Error Property

Summary

The error code of an unsuccessful trade.

Signature

1
public ErrorCode? Error {get;}

Return Value

ErrorCode?

Declaring Type

cAlgo.API.TradeResult

Examples

1
2
3
4
 var mySymbol = MarketData.GetSymbol("EURUSD");
 TradeResult result = ExecuteMarketOrder(TradeType.Sell, mySymbol, 1);
 if(!result.IsSuccessful)
     Print("Error: {0}", result.Error);

Last update: December 5, 2022

Comments