public OsCandleConverterUi() { InitializeComponent(); LabelOsa.Content = "V " + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; _candleConverter = new CandleConverter(TextBoxSource, TextBoxExit, ComboBoxTimeFrame, HostLog); Label1.Content = OsLocalization.Converter.Label1; Label2.Content = OsLocalization.Converter.Label2; ButtonSetSource.Content = OsLocalization.Converter.Label3; ButtonSetExitFile.Content = OsLocalization.Converter.Label3; Label4.Header = OsLocalization.Converter.Label4; ButtonStart.Content = OsLocalization.Converter.Label5; }
public CandlesSubscription(TimeFrame timeFrame, string symbol) { if (timeFrame == null) { throw new ArgumentNullException(nameof(timeFrame)); } if (symbol == null) { throw new ArgumentNullException(nameof(symbol)); } Symbol symbolObj = new Symbol(symbol); _additionalInitialMessageItems = new Dictionary <string, object> { { "key", $"trade:{timeFrame}:{symbolObj}" } }; _candleConverter = new CandleConverter(symbolObj); }
public void Listen(CandleConverter master) { master.LogMessageEvent += ProcessMessage; }
public CandlesHystoryRequest(TimeFrame timeFrame, string symbol) { TimeFrame = timeFrame ?? throw new ArgumentNullException(nameof(timeFrame)); Symbol = new Symbol(symbol ?? throw new ArgumentNullException(nameof(symbol))); _candleConverter = new CandleConverter(Symbol); }