Skip to content

Commit

Permalink
Fix incorrect currency assignment for stock prices #1623 (#1798)
Browse files Browse the repository at this point in the history
  • Loading branch information
saphp authored Feb 4, 2025
1 parent c9c5eb3 commit 37aab45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/provider/synth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def fetch_security_prices(ticker:, start_date:, end_date:, mic_code: nil)
{
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
Expand Down

0 comments on commit 37aab45

Please sign in to comment.