Commit Graph

5 Commits

Author SHA1 Message Date
MkDev11
eeff4edbea Add warning for TwelveData plan-restricted tickers (#803)
* Add warning for TwelveData plan-restricted tickers

Fixes #800

- Add Security::PlanRestrictionTracker concern using Rails cache
- Detect plan upgrade errors during Security::Price::Importer sync
- Display amber warning on /settings/hosting with affected tickers
- Include unit tests for the new functionality

* Scope plan restriction cache by provider

Addresses review feedback:
- Cache key now includes provider name to support multiple data providers
- Methods now require provider parameter for proper scoping
- Added tests for provider-scoped restrictions
- Added documentation explaining instance-level API key architecture

* Fix RuboCop array bracket spacing

* Fix empty array bracket spacing

* Move plan upgrade detection to Provider::TwelveData

* Fix provider scoping tests to use direct cache writes

---------

Co-authored-by: mkdev11 <jaysmth689+github@users.noreply.github.com>
2026-01-27 15:45:50 +01:00
ampersandru
cca14c919e Added a clickable drop down arrow that reveals list of instructions for Twelve Data Secret Key (#247)
* Added a clickable drop down arrow that reveals list of instructions for Twelve Data Secret Key

Signed-off-by: ampersandru <43594741+ampersandru@users.noreply.github.com>

* Fixed html spacing

Signed-off-by: ampersandru <43594741+ampersandru@users.noreply.github.com>

* Make display even more compact

* Remove <u> and use CSS classes instead

---------

Signed-off-by: ampersandru <43594741+ampersandru@users.noreply.github.com>
Co-authored-by: Juan José Mata <juanjo.mata@gmail.com>
2025-10-27 11:45:01 +01:00
ampersandru
53eb90f9a1 Added instructions on where and how to obtain API key for Twelve Data (#235)
* Added instructions on where and how to obtain API key for Twelve Data

Signed-off-by: ampersandru <43594741+ampersandru@users.noreply.github.com>

* added rel="noopener noreferrer" to links

Signed-off-by: ampersandru <43594741+ampersandru@users.noreply.github.com>

---------

Signed-off-by: ampersandru <43594741+ampersandru@users.noreply.github.com>
2025-10-26 17:58:18 +01:00
Juan José Mata
5d6915a994 Add OpenAI token configuration to self-hosting settings (#122)
* feat: add OpenAI settings partial
2025-08-23 08:04:59 +02:00
Vincent Teo
5bdefe6e63 feat: Add Twelve Data provider for exchange rates and securities (#2)
* feat: Add Twelve Data provider for exchange rates and securities

* test: fix hosting controller test, linting

* fix: add countries gem to handle country codes in Twelve Data provider

* fix: allow security search combobox to have no logo

* refactor: update Twelve Data provider use time series endpoint

* fix: set twelve data as default provider
2025-07-31 23:31:37 +02:00