From 37aab45c190c95343a4249ed1297b13d0b16f42f Mon Sep 17 00:00:00 2001 From: Saleh Almatrafi Date: Tue, 4 Feb 2025 22:27:00 +0300 Subject: [PATCH] Fix incorrect currency assignment for stock prices #1623 (#1798) --- app/models/provider/synth.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/provider/synth.rb b/app/models/provider/synth.rb index b7735575..bcb9f345 100644 --- a/app/models/provider/synth.rb +++ b/app/models/provider/synth.rb @@ -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