Skip to content

Commit

Permalink
Added dedicated command to update balance sheet.
Browse files Browse the repository at this point in the history
  • Loading branch information
cschladetsch committed Apr 14, 2021
1 parent c47e5f2 commit 23586d1
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 10 deletions.
4 changes: 2 additions & 2 deletions CoinSpotApi/CoinSpotApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
Expand Down
2 changes: 1 addition & 1 deletion CoinSpotApi/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Newtonsoft.Json" version="12.0.3" targetFramework="net48" />
<package id="Newtonsoft.Json" version="13.0.1" targetFramework="net48" />
</packages>
2 changes: 1 addition & 1 deletion CoinSpotUpdater.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30907.101
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CoinSpotUpdater", "CoinSpotUpdater\CoinSpotUpdater.csproj", "{FFCA23EB-06B8-40C6-B3DC-BC1C423DC762}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CoinSpotUpdaterApp", "CoinSpotUpdater\CoinSpotUpdaterApp.csproj", "{FFCA23EB-06B8-40C6-B3DC-BC1C423DC762}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{8A98C474-2B75-45CC-9AE9-589462E595B3}"
ProjectSection(SolutionItems) = preProject
Expand Down
6 changes: 3 additions & 3 deletions CoinSpotUpdater/App/Commands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ private static ConsoleColor CalcDiffColor(float diffGain)
ConsoleColor diffColor;
var neg = diffGain < 0;

if (Math.Abs(diffGain) < 0.01f)
if (Math.Abs(diffGain) < 0.05f)
diffColor = ConsoleColor.DarkGray;
else if (neg && diffGain > -0.08f)
else if (neg && diffGain > -0.10f)
diffColor = ConsoleColor.DarkRed;
else if (!neg && diffGain < 0.08f)
else if (!neg && diffGain < 0.25f)
diffColor = ConsoleColor.DarkGreen;
else
diffColor = diffGain < 0 ? ConsoleColor.Red : ConsoleColor.Green;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@
<Reference Include="Google.Apis.Sheets.v4, Version=1.50.0.2231, Culture=neutral, PublicKeyToken=4b01fa6e34db77ab, processorArchitecture=MSIL">
<HintPath>..\packages\Google.Apis.Sheets.v4.1.50.0.2231\lib\net45\Google.Apis.Sheets.v4.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
Expand Down
2 changes: 1 addition & 1 deletion CoinSpotUpdater/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
<package id="Google.Apis.Auth" version="1.50.0" targetFramework="net48" />
<package id="Google.Apis.Core" version="1.50.0" targetFramework="net48" />
<package id="Google.Apis.Sheets.v4" version="1.50.0.2231" targetFramework="net48" />
<package id="Newtonsoft.Json" version="12.0.3" targetFramework="net48" />
<package id="Newtonsoft.Json" version="13.0.1" targetFramework="net48" />
</packages>
3 changes: 3 additions & 0 deletions GoogleSheetsApi/GoogleSheetsApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
<PackageReference Include="Google.Apis.Sheets.v4">
<Version>1.50.0.2231</Version>
</PackageReference>
<PackageReference Include="Newtonsoft.Json">
<Version>13.0.1</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<None Include="credentials.json">
Expand Down

0 comments on commit 23586d1

Please sign in to comment.