-
Notifications
You must be signed in to change notification settings - Fork 4
Improvements. #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,15 +33,13 @@ | |
| namespace QuantConnect.Lean.DataSource.DataBento | ||
| { | ||
| /// <summary> | ||
| /// Data downloader class for pulling data from Data Provider | ||
| /// Data downloader for historical data from DataBento's Raw HTTP API | ||
| /// Converts DataBento data to Lean data types | ||
| /// </summary> | ||
| public class DataBentoDataDownloader : IDataDownloader, IDisposable | ||
| { | ||
| /// <inheritdoc cref="HttpClient"/> | ||
| private readonly HttpClient _httpClient; | ||
|
|
||
| private readonly string _apiKey; | ||
|
|
||
| private const decimal PriceScaleFactor = 1e-9m; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add an |
||
|
|
||
| /// <summary> | ||
|
|
@@ -72,8 +70,6 @@ public IEnumerable<BaseData> Get(DataDownloaderGetParameters parameters) | |
| { | ||
| var symbol = parameters.Symbol; | ||
| var resolution = parameters.Resolution; | ||
| var startUtc = parameters.StartUtc; | ||
| var endUtc = parameters.EndUtc; | ||
| var tickType = parameters.TickType; | ||
|
|
||
| var dataset = "GLBX.MDP3"; // hard coded for now. Later on can add equities and options with different mapping | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do this like
|
||
|
|
@@ -85,8 +81,8 @@ public IEnumerable<BaseData> Get(DataDownloaderGetParameters parameters) | |
| body.Append($"dataset={dataset}"); | ||
| body.Append($"&symbols={dbSymbol}"); | ||
| body.Append($"&schema={schema}"); | ||
| body.Append($"&start={startUtc:yyyy-MM-ddTHH:mm}"); | ||
| body.Append($"&end={endUtc:yyyy-MM-ddTHH:mm}"); | ||
| body.Append($"&start={parameters.StartUtc:yyyy-MM-ddTHH:mm}"); | ||
| body.Append($"&end={parameters.EndUtc:yyyy-MM-ddTHH:mm}"); | ||
| body.Append("&stype_in=parent"); | ||
| body.Append("&encoding=csv"); | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove.
This field is used only in .ctor.