Don't show all signals on strategy page

This commit is contained in:
2022-12-01 07:20:35 +00:00
parent baed991eca
commit 2ee5f7b937
3 changed files with 40 additions and 2 deletions

View File

@@ -35,6 +35,11 @@ DAY_CHOICES = (
(6, "Saturday"),
(7, "Sunday"),
)
HOOK_TYPE_CHOICES = (
("entry", "Entry"),
("exit", "Exit"),
("trend", "Trend"),
)
class Plan(models.Model):
@@ -169,6 +174,7 @@ class Hook(models.Model):
name = models.CharField(max_length=1024)
hook = models.CharField(max_length=255, unique=True) # hook URL
received = models.IntegerField(default=0)
type = models.CharField(choices=HOOK_TYPE_CHOICES, max_length=255)
def __str__(self):
return f"{self.name} ({self.hook})"