mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-24 09:38:35 +02:00
feat: add currencies to DCA list
This commit is contained in:
@@ -135,8 +135,8 @@ class DCAStrategy(models.Model):
|
|||||||
|
|
||||||
def current_price(self):
|
def current_price(self):
|
||||||
exchange_rate = get_exchange_rate(
|
exchange_rate = get_exchange_rate(
|
||||||
from_currency=self.payment_currency,
|
from_currency=self.target_currency,
|
||||||
to_currency=self.target_currency,
|
to_currency=self.payment_currency,
|
||||||
date=timezone.localtime(timezone.now()),
|
date=timezone.localtime(timezone.now()),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user