QuantConnect / Lean.Brokerages.ByBit

ByBit Brokerage Integration to LEAN
4 stars 5 forks source link

Fix: working of Data Downloader #22

Closed Romazes closed 2 months ago

Romazes commented 2 months ago

Description

This pull request addresses an issue with the data downloader for the Bybit brokerage plugin of Lean environment. The problem stemmed from an exception where the downloader couldn't be initialized due to the absence of a parameterless constructor. To resolve this, I've implemented a parameterless constructor, fixing the bug.

Related Issue

20

Motivation and Context

The motivation behind this fix is to ensure that the data downloader for Bybit follows the expected pattern and behavior set by other brokerage implementations in Lean. By providing a parameterless constructor, we enable smoother initialization of the downloader, eliminating the previously encountered exception.

Requires Documentation Change

N/A

How Has This Been Tested?

To validate the fix, I created a dotnet package of QuantConnect.BybitBrokerage.ToolBox and locally ran lean data download with --data-provider-historical ByBit. The test was successful, and I have attached a screenshot for reference.

Downloading process

1

Keep on disc (compare with screen above)

Time Zone Conversion: Upon checking the timestamp of the provided screenshot against my local time, I adjusted it to UTC by subtracting three hours.

image

Types of changes

Checklist: