private Task CreateCurrencyPair(string symbol, int pipsPosition, int ratePrecision, decimal sampleRate, string comment = null, bool activate = false) { var cp = new CurrencyPair(symbol, pipsPosition, ratePrecision, sampleRate, comment); if (activate) { cp.Activate(); } return(_repository.SaveAsync(cp)); }