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

Fix dummy streamer #269

Closed shershah010 closed 2 years ago

shershah010 commented 2 years ago

Currently the dummy streamer does not actual do anything when start is called. This fixes that and updates tests so that they do not break.

codecov[bot] commented 2 years ago

Codecov Report

Merging #269 (07fee5c) into main (f9d5958) will increase coverage by 0.13%. The diff coverage is 33.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #269      +/-   ##
==========================================
+ Coverage   55.69%   55.83%   +0.13%     
==========================================
  Files          24       24              
  Lines        3844     3847       +3     
==========================================
+ Hits         2141     2148       +7     
+ Misses       1703     1699       -4     
Flag Coverage Δ
unittests 55.83% <33.33%> (+0.13%) :arrow_up:

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

Impacted Files Coverage Δ
harvest/api/dummy.py 90.99% <0.00%> (-0.91%) :arrow_down:
harvest/utils.py 85.25% <0.00%> (ø)
harvest/trader/trader.py 83.39% <50.00%> (-0.53%) :arrow_down:
harvest/trader/tester.py 83.40% <0.00%> (+0.87%) :arrow_up:
harvest/api/yahoo.py 85.63% <0.00%> (+2.87%) :arrow_up:

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 f9d5958...07fee5c. Read the comment docs.