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

Commit

Permalink
add price as algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
CelestialCrafter committed Oct 25, 2023
1 parent 70a3cdb commit fb77f33
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 @@ -10,7 +10,7 @@
def plot(algorithm):
prices = get_prices('ETH/USD', interval=1440)

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

Expand Down

0 comments on commit fb77f33

Please sign in to comment.