Error


Summary

Error code of un 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);