34 sprint 2 market analytic metrics#80
Conversation
b4506f5 to
1c967c1
Compare
|
@Med-Yassine-B I see the issue. I think we should make the domain logic a bit clearer in the docs later, because this part can be confusing at first. For this change, the idea is actually pretty small: Please look at how the "yfinance" client works on the "develop" branch. The important part is that the provider/client should not return a raw "DataFrame" directly anymore. Instead, the "DataFrame" should be placed into the domain model response. So the flow should be: provider response / DataFrame In other words, please import the domain models and return a "MarketDataResponse", where the normalized price data is stored in "bars". I could refactor it myself, but I think it would be better if you try to adjust it based on the existing "yfinance" implementation. That way the structure becomes clearer and future changes will be easier for you as well. Cuz I can tell you that with the next sprint I gonna work with decorators and generators and I hope you know hiw to work with them. ^^' |
1c967c1 to
9897c86
Compare
BytecodeBrewer
left a comment
There was a problem hiding this comment.
Alright! I think that is ok. The service can just give a dataframe instead of the whole MarketDataResponse class.
|
@BytecodeBrewer Thanks for the merge ! |
|
@Med-Yassine-B Well, I think it’s fine how it looks right now. The new service for trend analysis will just pass the dataframe and for that we need a new ticket |
What changed?
Related issue
Closes #34
Tests
pytestChecklist
Notes
@BytecodeBrewer