Skip to content

Commit

Permalink
feat: parameterless constructor of Downloader (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
Romazes authored May 7, 2024
1 parent 5c8b41e commit d1703f1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public class BybitBrokerageDownloader : IDataDownloader
private readonly string _market;
private readonly SymbolPropertiesDatabaseSymbolMapper _symbolMapper;

public BybitBrokerageDownloader() : this(Market.Bybit)
{ }

public BybitBrokerageDownloader(string market = Market.Bybit)
{
_market = market;
Expand Down Expand Up @@ -125,7 +128,7 @@ public static void DownloadHistory(List<string> tickers, string resolution, stri
//Load settings from config.json
var dataDirectory = Config.Get("data-folder", Globals.DataFolder);

var downloader = CreateDownloader(securityTypeEnum,market);
var downloader = CreateDownloader(securityTypeEnum, market);

foreach (var ticker in tickers)
{
Expand Down

0 comments on commit d1703f1

Please sign in to comment.