Skip to content

Commit

Permalink
Add better error message to get_candles_by_pair()
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Jun 11, 2024
1 parent 788fbc3 commit 94124bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tradingstrategy/candle.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def get_candles_by_pair(
else:
pair_id = pair

assert type(pair_id) == int
assert type(pair_id) == int, f"Expected pair argument to be integer. Did you mean get_candles_by_pair(pair.internal_id)?"

if pair_id not in self.candles_cache:
try:
Expand Down

0 comments on commit 94124bc

Please sign in to comment.