Refactor execute_strategy into functions and send a price bound

This commit is contained in:
2022-11-10 19:52:52 +00:00
parent af9f874209
commit 8b52063473
3 changed files with 84 additions and 44 deletions

View File

@@ -69,7 +69,10 @@ class User(AbstractUser):
class Account(models.Model):
EXCHANGE_CHOICES = (("alpaca", "Alpaca"), ("oanda", "OANDA"))
EXCHANGE_CHOICES = (
("alpaca", "Alpaca"),
("oanda", "OANDA")
)
user = models.ForeignKey(User, on_delete=models.CASCADE)
name = models.CharField(max_length=255)
exchange = models.CharField(choices=EXCHANGE_CHOICES, max_length=255)