Stocks Prices

API Endpoint: https://sennetai.com/api/stocks/prices/{stock_symbol}/

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

Curl Example

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

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

Response

Today: Price per minute
Week: Price per minute
Year: Price per day
-----------------------

{
    'today': '{"1615559400000":120.26, "1615559460000":119.95,...}',
    'week: '{"1614868200000":122.19, "1614868260000":122.11,...}',
    'year': '{"1584057600000":68.95, "1584316800000":60.08,...}',
}