Cleanup some items.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user