1c348566f0
feat: Add conditional data fetching logic for fiat and crypto currencies
...
- Introduced flags to prevent duplicate data fetching for fiat and crypto currencies.
- Added service status check to skip fetching data if it's already collected for the respective currency type.
- Implemented logging for successful and skipped data fetching for both fiat and crypto services.
- Reset flags before each scheduled task to allow fetching fresh data on every run.
- Enhanced error handling and logging for each service's data fetching attempt.
2025-04-21 23:14:56 +03:00
e7c2701d52
chore: Added currency fee types (fiat currency or cryptocurrency) to module.exports
2025-04-21 23:13:18 +03:00
85c8e69ee4
feat: Added support for getting fiat currency from DuckDuckGo search engine
2025-04-12 14:40:43 +03:00
16994607bb
fix: Fixed service name retrieval
2025-04-12 14:40:12 +03:00
9d85aba937
chore: The service name is passed together with the function
2025-04-12 14:39:49 +03:00
c7e955a9b6
chore: Removed keys from the config with the setting to select which type of currency to collect
2025-04-12 12:57:27 +03:00
1a63649bef
chore: Added logging of what data was received, whether it passed validation or not
2025-04-12 12:55:48 +03:00
f6b21ed84d
chore: Services loading has been redone, now in config file you can write which services will be loaded. You can also customize API token and base url
2025-04-12 12:50:10 +03:00
6125f99ec6
feat: Added support for coinmarketcap service for collecting cryptocurrency currency rate
2025-04-12 00:12:10 +03:00
f2618a1f3a
fix: Fixed a bug where only the last array response was added by the return function
2025-04-11 23:53:37 +03:00
62e42cf12a
fix: Fixed bug when currency with 4 letters did not pass validation
2025-04-11 23:52:02 +03:00
d3027506a6
chore: Added a function to truncate a number to ten thousandths (.000) without rounding off
2025-04-11 23:50:59 +03:00
4590bc8458
fix: corrected a typo in the currency key name
2025-04-11 17:41:14 +03:00
cef3258fa7
chore: I have moved the config retrieval to a separate file
2025-04-11 17:40:36 +03:00
c0701775c7
chore: Wrote an automatic database creation if not created. Data validation and writing currency rate to the database
2025-04-11 11:48:47 +03:00
b1a5cb279f
chore: Added support for docker compose
2025-04-11 11:46:58 +03:00
97fa1bd066
chore: Made it possible to output multiple errors, not just the first one
2025-04-11 11:45:53 +03:00
7605c5190a
fix: fixed the name of the password key in the config
2025-04-11 11:45:18 +03:00
c4f56eca74
chore: wrote connection and automatic database creation
2025-04-11 11:45:00 +03:00
bfb2018728
fix: Fixed an error in currency lists due to lack of hyphenation
2025-04-11 11:17:17 +03:00
0f5e473ea7
chore: written data validation via joi library
2025-04-10 16:45:16 +03:00
6bc34697e0
chore: An example config is written
2025-04-10 14:00:30 +03:00
622a3a7227
chore: Added files to gitignore: dependencies, config files, files from code editors and more
2025-04-10 03:05:54 +03:00
2bf01946e2
chore: Written automatic download of services from folder and cron task scheduler
2025-04-10 03:04:26 +03:00
7bab84cd45
chore: Adding license, disclaimer and description
2025-04-10 01:12:11 +03:00