A lightweight library for requesting stock quotes from MarketWatch.
$ dotnet add package MarketWatchA lightweight library for requesting Stock Quotes from MarketWatch.
Example of requesting Microsoft stock data:
StockQuote myQuote = await StockQuote.QuoteAsync("MSFT");
Will return the following content:
{
"Symbol": "MSFT",
"Name": "Microsoft Corp.",
"Exchange": "U.S.: Nasdaq",
"Price": 265.23,
"PriceCurrency": "USD",
"PriceChange": -2.86,
"PriceChangePercent": -0.0107,
"Open": 265.85,
"DayLow": 263.85,
"DayHigh": 267.4,
"YearLow": 241.51,
"YearHigh": 349.67,
"MarketCap": 2E+12,
"SharesOutstanding": 7.4600003E+09,
"Float": 7.34E+09,
"Beta": 1.2,
"RevenuePerEmployee": 897150.0,
"PriceEarningsRatio": 27.5,
"EarningsPerShare": 9.64,
"Dividend": 0.62,
"ExDividendDate": "2022-08-17T00:00:00",
"SharesShort": 38080000.0,
"ShortPercentOfSharesOutstanding": 0.0052,
"AverageVolume": 25780000.0
}