Stage 04.3 - repositories, balance snapshots and environment mode fix
This commit is contained in:
@@ -312,9 +312,15 @@ class ExchangeService:
|
||||
else:
|
||||
updated_at = "n/a"
|
||||
|
||||
source = (
|
||||
"dzengi-demo-api"
|
||||
if "demo" in self.settings.exchange_base_url.lower()
|
||||
else "dzengi-api"
|
||||
)
|
||||
|
||||
return TickerPrice(
|
||||
symbol=symbol,
|
||||
price=float(price_raw),
|
||||
source="dzengi-demo-api",
|
||||
source=source,
|
||||
updated_at=updated_at,
|
||||
)
|
||||
Reference in New Issue
Block a user