Skip to content
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

Throw exception on missing price #44

Open
4TT1L4 opened this issue May 2, 2024 · 0 comments
Open

Throw exception on missing price #44

4TT1L4 opened this issue May 2, 2024 · 0 comments
Assignees

Comments

@4TT1L4
Copy link
Contributor

4TT1L4 commented May 2, 2024

Problem:

  • In some cases there is no price information available. In such cases the framework returns an empty array.

Solution:

  • The framework should not return an array for the current price. It should return a single price point. If there is no price information available then the framework should throw a special exception that could be handled by the client code.

Code:

return cast(List[MarketOHLC], self.process_response(response))

@4TT1L4 4TT1L4 self-assigned this May 2, 2024
@4TT1L4 4TT1L4 changed the title Exception on missing price Throw exception on missing price May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant