Market 데이터 수정

This commit is contained in:
USER002
2024-06-07 17:05:34 +09:00
parent 3b84645a04
commit d815d178bd
2 changed files with 13 additions and 0 deletions

View File

@@ -10,5 +10,12 @@ namespace BitgetAPI.Data
{ {
public string ExchangePlace { get; set; } public string ExchangePlace { get; set; }
public string MarketName { get; set; } public string MarketName { get; set; }
public double lastPr { get; set; }
public double change24h { get; set; }
public double baseVolume { get; set; }
public double quoteVolume { get; set; }
public double high24h { get; set; }
public double low24h { get; set; }
} }
} }

View File

@@ -117,6 +117,12 @@ namespace BitgetAPI.WebService
MarketInfo marketInfo = new MarketInfo(); MarketInfo marketInfo = new MarketInfo();
marketInfo.MarketName = item["symbol"].ToString(); marketInfo.MarketName = item["symbol"].ToString();
marketInfo.ExchangePlace = Enum.GetName(typeof(CommonProperty.ExchangePlace), commonProperty.selectedChangePlace); marketInfo.ExchangePlace = Enum.GetName(typeof(CommonProperty.ExchangePlace), commonProperty.selectedChangePlace);
marketInfo.lastPr = Convert.ToDouble(item["lastPr"]);
marketInfo.change24h = Convert.ToDouble(item["change24h"]);
marketInfo.baseVolume = Convert.ToDouble(item["baseVolume"]);
marketInfo.quoteVolume = Convert.ToDouble(item["quoteVolume"]);
marketInfo.high24h = Convert.ToDouble(item["high24h"]);
marketInfo.low24h = Convert.ToDouble(item["low24h"]);
commonProperty.marketInfoList.Add(marketInfo); commonProperty.marketInfoList.Add(marketInfo);
} }