Fix incorrect currency assignment for stock prices #1623 (#1798)

This commit is contained in:
Saleh Almatrafi
2025-02-04 22:27:00 +03:00
committed by GitHub
parent c9c5eb315a
commit 37aab45c19

View File

@@ -59,7 +59,7 @@ class Provider::Synth
{
date: price.dig("date"),
price: price.dig("close")&.to_f || price.dig("open")&.to_f,
currency: price.dig("currency") || "USD"
currency: body.dig("currency") || "USD"
}
end
end