Don't want to run a simulated investing portfolio but still want access to stock data? Use the following API call to receive summary stock data.
Example
Parameters
Example Response:
{
"Name": "General Electric Company",
"StockSymbol": "GE",
"Price": 7.03,
"DollarChange": -0.2,
"PercentChange": -0.0277,
"PreviousClose": 7.23,
"Open": 7.69,
"BidPrice": 7.07,
"BidQuantity": 36200,
"AskPrice": 7.1,
"AskQuantity": 28000,
"DayRangeLow": 7,
"DayRangeHigh": 7.75,
"YearRangeLow": 7,
"YearRangeHigh": 7.75,
"Volume": 95416797,
"AverageVolume": 84593544,
"MarketCap": 61161000960,
"Beta": 1.29,
"PriceEarningsRatio": null,
"EarningsPerShare": -0.62,
"EarningsDate": "2020-04-28T00:00:00",
"ForwardDividend": 0.04,
"ForwardDividendYield": 0.0055,
"ExDividendDate": "2020-03-05T00:00:00",
"YearTargetEstimate": 10.71,
"DataCollectedOn": "2020-04-07T22:53:10.3522555+00:00"
}
Example
- GET http://papertrade.azurewebsites.net/api/StockSummaryData?symbol=ge
Parameters
- symbol - The stock symbol of the company that you are requesting data for.
Example Response:
{
"Name": "General Electric Company",
"StockSymbol": "GE",
"Price": 7.03,
"DollarChange": -0.2,
"PercentChange": -0.0277,
"PreviousClose": 7.23,
"Open": 7.69,
"BidPrice": 7.07,
"BidQuantity": 36200,
"AskPrice": 7.1,
"AskQuantity": 28000,
"DayRangeLow": 7,
"DayRangeHigh": 7.75,
"YearRangeLow": 7,
"YearRangeHigh": 7.75,
"Volume": 95416797,
"AverageVolume": 84593544,
"MarketCap": 61161000960,
"Beta": 1.29,
"PriceEarningsRatio": null,
"EarningsPerShare": -0.62,
"EarningsDate": "2020-04-28T00:00:00",
"ForwardDividend": 0.04,
"ForwardDividendYield": 0.0055,
"ExDividendDate": "2020-03-05T00:00:00",
"YearTargetEstimate": 10.71,
"DataCollectedOn": "2020-04-07T22:53:10.3522555+00:00"
}