Skip to content

Commit

Permalink
Throw exception in import-candles mode if dash is missing.
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptocoinserver committed Mar 28, 2021
1 parent 80f8797 commit 96a3536
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jesse/modes/import_candles_mode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ def run(exchange: str, symbol: str, start_date_str: str, skip_confirmation: bool
elif start_timestamp > today:
raise ValueError("Future's date is not accepted. start_date must be a string a representing date BEFORE today.")

# We just call this to throw a exception in case of a symbol without dash
jh.quote_asset(symbol)

click.clear()
symbol = symbol.upper()

Expand Down

0 comments on commit 96a3536

Please sign in to comment.