FIX AI categorization & Twelvedata currency (#354)

* FIX AI categorization

* FIX twelve data API

Looking at api docs we were using the wrong field, currency is in meta tag.
This commit is contained in:
soky srm
2025-11-19 19:30:28 +01:00
committed by GitHub
parent 61eb611529
commit 1234fd5568
5 changed files with 10 additions and 11 deletions

View File

@@ -187,7 +187,7 @@ class Provider::TwelveData < Provider
symbol: symbol,
date: date.to_date,
price: price,
currency: parsed.dig("currency"),
currency: parsed.dig("meta", "currency") || parsed.dig("currency"),
exchange_operating_mic: exchange_operating_mic
)
end.compact