From bf235ee5261f4b9ab96bf14af79505a0cda09c66 Mon Sep 17 00:00:00 2001 From: Aaron Fiore Date: Wed, 14 Jan 2026 16:39:18 -0800 Subject: [PATCH] container: finance: fetch: prices: add User-Agent CoinGecko now returns error 403 without a "descriptive" User-Agent --- .../src/finance/lib/internal/fetch/prices/internal/base.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/container/src/finance/lib/internal/fetch/prices/internal/base.php b/container/src/finance/lib/internal/fetch/prices/internal/base.php index c4ebd3d..017e2dd 100644 --- a/container/src/finance/lib/internal/fetch/prices/internal/base.php +++ b/container/src/finance/lib/internal/fetch/prices/internal/base.php @@ -2,7 +2,7 @@ // docker-finance | modern accounting for the power-user // -// Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC) +// Copyright (C) 2021-2026 Aaron Fiore (Founder, Evergreen Crypto LLC) // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -154,6 +154,7 @@ namespace dfi\prices\internal protected function request_impl(string $url, array $header): mixed { $headers = array( + 'User-Agent: docker-finance /' . $this->get_env()->get_env('API_VERSION'), 'Accept: application/json', 'Content-Type: application/json', );