This commit is contained in:
jwlee
2024-06-08 14:45:17 +09:00
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 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.MarketName = item["symbol"].ToString();
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);
}