Skip to content

Throw exception on missing price #44

Description

@4TT1L4

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))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions