Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
add price plot
Browse files Browse the repository at this point in the history
  • Loading branch information
CelestialCrafter committed Nov 17, 2023
1 parent e276f8a commit 5c9f71b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def plot(algorithm):
config = json.load(open('config.json', 'r'))
prices = get_prices(config['pair'], interval=1440)

if algorithm not in get_algorithms():
if algorithm not in ['price', *get_algorithms()]:
return 'Invalid Algorithm', 404
import_module(f'plots.{algorithm}').plot(prices)

Expand Down

0 comments on commit 5c9f71b

Please sign in to comment.