Stocks Market Data

API Endpoint: https://sennetai.com/api/stocks/market-data/{stock_symbol}/

To get the market data from a stock symbol you need to make a GET request.

Curl Example

curl https://sennetai.com/api/stocks/market-data/AAPL/ -H 'Authorization:Token __your_api_token__'

curl https://sennetai.com/api/stocks/market-data/AAPL/ -H 'Authorization:Token FqWduKf7LZrhv8m28Ixd4IppRQLy4YQ0'

Response

{
"zip": "95014", 
"sector": "Technology", 
"fullTimeEmployees": 147000,
"longBusinessSummary": "Apple Inc. designs, manufactures, and markets smartphones, personal computers, tablets, wearables, and accessories worldwide....",
"city": "Cupertino", 
"phone": "408-996-1010", 
"state": "CA", 
"country": "United States", 
"companyOfficers": [], 
"website": "http://www.apple.com",
"maxAge": 1, 
"address1": "One Apple Park Way", 
"industry": "Consumer Electronics", 
"previousClose": 121.96, 
"regularMarketOpen": 120.4,
"twoHundredDayAverage": 123.12807, 
"trailingAnnualDividendYield": 0.0066169235, 
"payoutRatio": 0.2177, 
"volume24Hr": null, 
"regularMarketDayHigh": 121.1699,
"navPrice": null, 
"averageDailyVolume10Day": 134412614, 
"totalAssets": null, 
"regularMarketPreviousClose": 121.96, 
"fiftyDayAverage": 130.33147, 
"trailingAnnualDividendRate": 0.807, 
"open": 120.4, 
"toCurrency": null, 
"averageVolume10days": 134412614, 
"expireDate": null, 
"yield": null, 
"algorithm": null,
"dividendRate": 0.82, 
"exDividendDate": 1612483200, 
"beta": 1.251354, 
"circulatingSupply": null, 
"startDate": null, 
"regularMarketDayLow": 119.16, 
"priceHint": 2, 
"currency": "USD", 
"trailingPE": 32.826145, 
"regularMarketVolume": 88105050, 
"lastMarket": null, 
"maxSupply": null, 
"openInterest": null, 
"marketCap": 2031863726080, 
"volumeAllCurrencies": null, 
"strikePrice": null, 
"averageVolume": 112148646, 
"priceToSalesTrailing12Months": 6.907929, 
"dayLow": 119.16, 
"ask": 121.05, 
"ytdReturn": null, 
"askSize": 1000, 
"volume": 88105050, 
"fiftyTwoWeekHigh": 145.09, 
"forwardPE": 25.861113, 
"fromCurrency": null, 
"fiveYearAvgDividendYield": 1.42, 
"fiftyTwoWeekLow": 53.1525, 
"bid": 121, 
"tradeable": false, 
"dividendYield": 0.0068, 
"bidSize": 800, 
"dayHigh": 121.1699, 
"exchange": "NMS", 
"shortName": "Apple Inc.", 
"longName": "Apple Inc.", 
"exchangeTimezoneName": "America/New_York", 
"exchangeTimezoneShortName": "EST", 
"isEsgPopulated": false, 
"gmtOffSetMilliseconds": "-18000000", 
"quoteType": "EQUITY", 
"symbol": "AAPL", 
"messageBoardId": "finmb_24937", 
"market": "us_market", 
"annualHoldingsTurnover": null, 
"enterpriseToRevenue": 7.028, 
"beta3Year": null, 
"profitMargins": 0.21735, 
"enterpriseToEbitda": 24.273, 
"52WeekChange": 1.0141199, 
"morningStarRiskRating": null, 
"forwardEps": 4.68, 
"revenueQuarterlyGrowth": null, 
"sharesOutstanding": 16788100096, 
"fundInceptionDate": null, 
"annualReportExpenseRatio": null, 
"bookValue": 3.936, 
"sharesShort": 100799312, 
"sharesPercentSharesOut": 0.006, 
"fundFamily": null, 
"lastFiscalYearEnd": 1601078400, 
"heldPercentInstitutions": 0.59661996, 
"netIncomeToCommon": 63929999360, 
"trailingEps": 3.687, 
"lastDividendValue": 0.205, 
"SandP52WeekChange": 0.65093267, 
"priceToBook": 30.74949, 
"heldPercentInsiders": 0.00065, 
"nextFiscalYearEnd": 1664150400,
"mostRecentQuarter": 1608940800, 
"shortRatio": 0.97, 
"sharesShortPreviousMonthDate": 1611878400, 
"floatShares": 16770804261, 
"enterpriseValue": 2067080282112, 
"threeYearAverageReturn": null, 
"lastSplitDate": 1598832000, 
"lastSplitFactor": "4:1", 
"legalType": null, 
"lastDividendDate": 1612483200, 
"morningStarOverallRating": null, 
"earningsQuarterlyGrowth": 0.293, 
"dateShortInterest": 1614297600, 
"pegRatio": 2.02, 
"lastCapGain": null, 
"shortPercentOfFloat": 0.006, 
"sharesShortPriorMonth": 91862600, 
"impliedSharesOutstanding": null, 
"category": null, 
"fiveYearAverageReturn": null, 
"regularMarketPrice": 120.4, 
"logo_url": "https://logo.clearbit.com/apple.com"
                                }