tfukaza / harvest

Simple and intuitive Python framework for algorithmic trading. Easily create bots to live and paper trade stocks, crypto, and options!
https://tfukaza.github.io/harvest-website
MIT License
124 stars 26 forks source link

Dummy Streamer Refactor #272

Closed shershah010 closed 2 years ago

shershah010 commented 2 years ago

Refactors the dummy streamer so that OHLC generator returns the same data per symbol regardless of the current time.

Addes a new file called definitions.py which holds a bunch of classes, making utils.py smaller.

codecov[bot] commented 2 years ago

Codecov Report

Merging #272 (db10dc2) into main (b1dc0b5) will decrease coverage by 2.10%. The diff coverage is 78.32%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #272      +/-   ##
==========================================
- Coverage   55.62%   53.51%   -2.11%     
==========================================
  Files          24       25       +1     
  Lines        3869     3883      +14     
==========================================
- Hits         2152     2078      -74     
- Misses       1717     1805      +88     
Flag Coverage Δ
unittests 53.51% <78.32%> (-2.11%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
harvest/api/kraken.py 2.36% <0.00%> (-0.02%) :arrow_down:
harvest/api/robinhood.py 1.46% <0.00%> (-0.01%) :arrow_down:
harvest/api/webull.py 1.47% <0.00%> (-0.01%) :arrow_down:
harvest/api/polygon.py 19.72% <9.37%> (-0.28%) :arrow_down:
harvest/api/alpaca.py 3.50% <33.33%> (+0.45%) :arrow_up:
harvest/algo.py 40.54% <50.00%> (-20.10%) :arrow_down:
harvest/trader/trader.py 77.58% <50.00%> (-5.81%) :arrow_down:
harvest/api/paper.py 83.12% <75.00%> (-0.56%) :arrow_down:
harvest/api/dummy.py 82.60% <76.31%> (-8.39%) :arrow_down:
harvest/api/_base.py 68.84% <83.33%> (-0.36%) :arrow_down:
... and 12 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 9389ba4...db10dc2. Read the comment docs.