feat: add currencies to DCA list

This commit is contained in:
Herculino Trotta
2024-11-15 22:32:32 -03:00
parent af5a58d7c3
commit 90aceda9aa

View File

@@ -135,8 +135,8 @@ class DCAStrategy(models.Model):
def current_price(self):
exchange_rate = get_exchange_rate(
from_currency=self.payment_currency,
to_currency=self.target_currency,
from_currency=self.target_currency,
to_currency=self.payment_currency,
date=timezone.localtime(timezone.now()),
)