Cleanup some items.

This commit is contained in:
2025-11-21 15:02:25 -05:00
parent 92bd70045b
commit 827aefd1a2
3 changed files with 9 additions and 4 deletions

View File

@@ -162,8 +162,8 @@ namespace MarketData.Service
StringBuilder sb = new StringBuilder();
sb.Append("/api/EconomicIndicators/GetDistinctEconomicIndicators?").Append("token=").Append(accessToken);
String json = httpClient.GetStringAsync(sb.ToString()).Result;
List<String> priceIndices = JsonConvert.DeserializeObject<List<String>>(json);
return new ServiceResult(priceIndices);
List<String> indicatorCodes = JsonConvert.DeserializeObject<List<String>>(json);
return new ServiceResult(indicatorCodes);
}
catch (Exception exception)
{

View File

@@ -248,7 +248,12 @@ namespace MarketData.Utils
public static String FormatNumberConstrain(double value,int places=1,bool commas=false)
{
String strValue=null;
if(value>=1000000000)
if(value>=1000000000000)
{
value/=1000000000000;
strValue=Utility.FormatNumber(value,places,commas)+"T";
}
else if(value>=1000000000)
{
value/=1000000000;
strValue=Utility.FormatNumber(value,places,commas)+"B";

View File

@@ -41,7 +41,7 @@
<FormattedString.Spans>
<Span Text="Navigator" FontAttributes="Bold" FontSize="22" />
<Span Text=" " />
<Span Text="1.02" ForegroundColor="{StaticResource LightTextColor}" />
<Span Text="1.03" ForegroundColor="{StaticResource LightTextColor}" />
</FormattedString.Spans>
</FormattedString>
</Label.FormattedText>