mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-11-17 22:33:53 +01:00
feat: add currencies to DCA list
This commit is contained in:
1 parent
af5a58d7c3
commit
90aceda9aa
1 file changed
+2
-2
@@ -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()),
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user