Fix: Incorrect Currency Assignment for Stock Prices (#1623) #1798

Merged
saphp merged 1 commits from fix/stock-currency-assignment into main 2025-02-05 03:27:00 +08:00

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