Compare commits
No commits in common. "e8a2f9b0fa2322f56b92a2546628680c8a6b753d" and "60979652d9f716fb334a7893098ea3268b965016" have entirely different histories.
e8a2f9b0fa
...
60979652d9
@ -97,7 +97,7 @@ def execute_strategy(callback, strategy):
|
|||||||
direction=direction,
|
direction=direction,
|
||||||
)
|
)
|
||||||
new_trade.save()
|
new_trade.save()
|
||||||
info = new_trade.post()
|
posted, info = new_trade.post()
|
||||||
log.debug(f"Posted trade: {posted} - {info}")
|
log.debug(f"Posted trade: {posted} - {info}")
|
||||||
|
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ GetAllAssetsSchema = {
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"id": "id",
|
"id": "id",
|
||||||
"class": "class_",
|
"class": "class",
|
||||||
"exchange": "exchange",
|
"exchange": "exchange",
|
||||||
"symbol": "symbol",
|
"symbol": "symbol",
|
||||||
"name": "name",
|
"name": "name",
|
||||||
|
@ -204,10 +204,10 @@ class Strategy(models.Model):
|
|||||||
account = models.ForeignKey(Account, on_delete=models.CASCADE)
|
account = models.ForeignKey(Account, on_delete=models.CASCADE)
|
||||||
hooks = models.ManyToManyField(Hook)
|
hooks = models.ManyToManyField(Hook)
|
||||||
enabled = models.BooleanField(default=False)
|
enabled = models.BooleanField(default=False)
|
||||||
take_profit_percent = models.FloatField(default=1.5)
|
take_profit_percent = models.FloatField(default=3.0)
|
||||||
stop_loss_percent = models.FloatField(default=1.0)
|
stop_loss_percent = models.FloatField(default=1.0)
|
||||||
price_slippage_percent = models.FloatField(default=2.5)
|
price_slippage_percent = models.FloatField(default=2.5)
|
||||||
trade_size_percent = models.FloatField(default=0.5)
|
trade_size_percent = models.FloatField(default=2.5)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.name
|
return self.name
|
||||||
|
Loading…
Reference in New Issue
Block a user