feature exchange rate update automation

Automated downloading exchange rates from HMRC and updating the database. Added function call to the console and form applications.

Also added a form to show the console output in form application.
This commit is contained in:
Bobbie Hodgetts
2025-06-09 20:56:26 +01:00
committed by GitHub
parent 8e7cd00b74
commit ea0a52b2a0
25 changed files with 1095 additions and 179 deletions

View File

@@ -25,6 +25,7 @@ namespace bnhtradeScheduledTasks
Console.WriteLine();
Console.WriteLine("<1> Amazon reports");
Console.WriteLine("<2> Stock functions");
Console.WriteLine("<3> Account functions");
Console.WriteLine("");
Console.WriteLine("<8> Start scheduled nightly tasks");
Console.WriteLine("<9> Dev functions");
@@ -242,6 +243,34 @@ namespace bnhtradeScheduledTasks
} while (true);
}
else if (input == "3")
{
do
{
Console.Clear();
Console.WriteLine(consoleHeader);
Console.WriteLine("Main Menu > Account");
Console.WriteLine();
Console.WriteLine("<1> Update HMRC Exchange Rates");
Console.WriteLine();
Console.WriteLine("<0> Back");
Console.WriteLine("");
Console.Write("Enter an option >");
input = Console.ReadLine();
if (input == "0")
{
break;
}
else if (input == "1")
{
Console.Clear();
new bnhtrade.Core.Logic.Account.Currency().UpdateHmrcExchageRates();
Console.WriteLine("Complete, press any key to continue...");
Console.ReadKey();
}
} while (true);
}
else if (input == "8")
{
Console.Clear();