Error


Summary

The error code of an unsuccessful trade.

Syntax

public ErrorCode? Error{ get; }

Example 1

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