Getting Started

API endpoint: https://sennetai.com/api/

The Sennet API provides access to all the endpoints used for Sennet Dashboard. With Sennet API you can get historical prices, social media data or analized news for any symbol, from both stock and crypto markets.
To use this API, you need an API key. You can get your API key on your profile page.


Here you can find all the documentation and information related to Sennet AI API. Before using our API, make sure you have your authentication token, you can find it in your profile page. We are currently working on creating a better and more powerful API, so we recommend you to periodically check this docs to find new changes and updates.

Stock Market Data

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.

Request:

https://sennetai.com/api/stocks/market-data/AAPL/

Response:

{
   "sector":"Technology",
   "fullTimeEmployees":100000,
   "longBusinessSummary":"Apple Inc. designs, manufactures, and markets smartphones, personal computers, ta...",
   "city":"Cupertino",
   "state":"CA",
   "country":"United States",
   "website":"http://www.apple.com",
   "industry":"Consumer Electronics",
   "trailingAnnualDividendYield":0.005987149,
   "regularMarketPreviousClose":136.96,
   "open":136.6,
   "marketCap":2276105125888,
   "averageVolume":82668211,
   "dayLow":136.26,
   "volume":17219474,
   "f\iftyTwoWeekHigh":145.09,
   "fiftyTwoWeekLow":89.145,
   "dividendYield":0.0064,
   "dayHigh":137.19,
   "longName":"Apple Inc.",
   "symbol":"AAPL",
   "shortRatio":1.52,
   "regularMarketPrice":136.6,
   "logo_url":"https://logo.clearbit.com/apple.com"
}

Errors

{'Error':'Symbol __x__ is not available'}: This error occurs when the requested symbol is not available in our servers.

Stock prices

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

Parameters:

interval: The interval of today prices. Valid intervals for this endpoints are ["1m", "2m", "5m", "15m", "30m", "60m", "90m", "1h", "1d", "5d", "1wk", "1mo", "3mo"]. Default is "1d".
since: Start date to make the fetch. Valid date format is %Y-%m-%d (2021-06-30).
until: End date to make the fetch. Valid date format is %Y-%m-%d (2021-06-30).

To get the prices between two dates of a stock symbol you need to make a GET request.

Request:

https://sennetai.com/api/stocks/prices/AAPL/

Response:

{
    "1625154840000":136.375,
    "1625154900000":136.375,
    "1625154960000":136.320098877,
    "1625155020000":136.3217926025,
    "1625155080000":136.3159942627,
    "1625155140000":136.3182983398,
    "1625155200000":136.3500061035,
    ...
}

Errors

{'Error':'Symbol __x__ is not available'}: This error occurs when the requested symbol is not available in our servers.
{"Error":"Invalid date format"}: Since or until dates don't have valid format (%Y-%m-%d).
{'Error':'Invalid interval'}: This error occurs when the requested interval is not a valid one.
{"Error":"Invalid dates"}: Until is older than since.
{'Error':'Since or until date not set'}: Until and since paramenters are required to make the request.

Stock today prices

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

Parameters:

interval: The interval of today prices. Valid intervals for this endpoints are ["1m", "2m", "5m", "15m", "30m", "60m", "90m", "1h", "1d", "5d", "1wk", "1mo", "3mo"]. Default is "1m"

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

Request:

https://sennetai.com/api/stocks/prices/today/AAPL/?interval=1m

Response:

{
    "1625154840000":136.375,
    "1625154900000":136.375,
    "1625154960000":136.320098877,
    "1625155020000":136.3217926025,
    "1625155080000":136.3159942627,
    "1625155140000":136.3182983398,
    "1625155200000":136.3500061035,
    ...
}

Errors

{'Error':'Symbol __x__ is not available'}: This error occurs when the requested symbol is not available in our servers.
{'Error':'Invalid interval'}: This error occurs when the requested interval is not a valid one.

Stock week prices

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

Parameters:

interval: The interval of week prices. Valid intervals for this endpoints are ["1m", "2m", "5m", "15m", "30m", "60m", "90m", "1h", "1d", "5d", "1wk", "1mo", "3mo"]. Default is "1m"

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

Request:

https://sennetai.com/api/stocks/prices/week/AAPL/?interval=1m

Response:

{
    "1625154840000":136.37502173,
    "1625154900000":136.37500102,
    "1625154960000":136.32988773,
    "1625155020000":136.32926025,
    "1625155080000":136.31942627,
    "1625155140000":136.31983398,
    "1625155200000":136.35061035,
    ...
}

Errors

{'Error':'Symbol __x__ is not available'}: This error occurs when the requested symbol is not available in our servers.

{'Error':'Invalid interval'}: This error occurs when the requested interval is not a valid one.

Stock year prices

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

Parameters:

interval: The interval of year prices. Valid intervals for this endpoints are ["1h", "1d", "5d", "1wk", "1mo", "3mo"]. Default is "1d"

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

Request:

https://sennetai.com/api/stocks/prices/year/AAPL/?interval=1d

Response:

{
    "1593561600000":90.4182510376,
    "1593648000000":90.4182510376,
    "1593993600000":92.8369598389,
    "1594080000000":92.5488891602,
    "1594166400000":94.7043685913
}

Errors

{'Error':'Symbol __x__ is not available'}: This error occurs when the requested symbol is not available in our servers.

{'Error':'Invalid interval'}: This error occurs when the requested interval is not a valid one.

Stock news

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

Parameters:

media: List of valid media to take news from. To pass media on the request, add each media name separated by a comma (media=CNBC,Bloomberg). Default to all media.

Valid media: 
['elEconomista', 'Teslarati', 'Bloomberg', 'Business Insider', 'CNBC', 'Investing.com', 'MarketWatch', 
'Adweek', 'TNW', 'Motley Fool', 'Seeking Alpha', 'Reuters', 'Fortune', 'Yahoo Finance', 'TheStreet',
'TechCrunch', 'TheStreet.com', "Barron's", 'Wall Street Journal', 'Forbes', 'Yahoo Tech', 'Simply Wall St',
'Benzinga', 'HEXUS', 'CNNMoney', 'Investopedia', "Investor's Business Daily", 'Wccftech', 'MarketBeat',
'24/7 Wall St.', 'InvestorsObserver', 'ETF Trends', 'StreetInsider.com', 'Markets Insider', 'Hot Hardware',
'The Motley Fool Canada', 'StockNews.com', 'Guiding Tech', 'Silicon Valley Business Journal', 
'Fast Company', 'Business Wire', 'Market Realist', 'Stockopedia', 'Fintech Zoom', 'Coindesk', 
'Cointelegraph', 'Crypto News Flash', 'Bitcoin News', 'Decrypt', 'FX Empire', 'Coin Idol', 'CryptoPotato',
'CoinGeek', 'Financial Times', 'Telegraph.co.uk', 'AMBCrypto', 'Somag News', 'StockNews', 'Investorplace.com',
'Business Matters', 'CryptoSlate', 'The Daily Hodl']

since: Start date to make the fetch. Valid date format is %Y-%m-%d (2021-06-30). You can't fetch news older than 7 days
until: End date to make the fetch. Valid date format is %Y-%m-%d (2021-06-30)

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

Request:

https://sennetai.com/api/stocks/news/AAPL/?media=Business Insider&since=2021-03-26&until=2021-03-27

Response:

[{
    "title":"Is Now The Time To Buy Stock In Microsoft, Disney, Apple Or...",
    "link":"https://markets.businessinsider.com/news/stocks/is-now-the...",
    "desc":"Read More Apple Inc. (NASDAQ:AAPL) went on an acquisition...",
    "media":"Business Insider",
    "date":1616873784.0,
    "symbol":"Apple Inc.",
    "media_impact":{
        "impact":3,
        "daily_visitors":495868
    },
    "timestamp":"19:36 27-03-2021",
    "summary":"WIIMs are a one-sentence description as to why that stock...",
    "article":"One of the most common questions traders have...",
    "volatility":{
        "down":0.5991602,
        "up":0.40083984,
        "compound":0.5494182
    },
    "move":{
        "down":0.53089947,
        "up":0.4691005,
        "compound":0.5154448
    },
    "sentiment":{
        "neg":0.0,
        "neu":0.945,
        "pos":0.055,
        "compound":0.9228
    }
}]

Errors

{'Error':'Symbol __x__ is not available'}: This error occurs when the requested symbol is not available in our servers.
{'Error': "Can't fetch news for date older than 7 days"}: This error occurs when the requested date range is older than 7 days.
{"Error":"Invalid date format"}: Since or until dates don't have valid format (%Y-%m-%d).
{"Error":"Invalid media names"}: Media names aren't valid.
{"Error":"Invalid type of 'media' argument"}: Media argument in request doesn't have valid type (media=CNBC,Investing.com).

Stock Social Sentiment

Endpoint: https://sennetai.com/api/stocks/social-sentiment/{stock_symbol}/

Parameters:

since: Start date to make the fetch. Valid date format is %Y-%m-%d (2021-06-30). You can't fetch news older than 15 days
until: End date to make the fetch. Valid date format is %Y-%m-%d (2021-06-30)

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

Request:

https://sennetai.com/api/stocks/social-sentiment/FB/since=2021-06-15&until=2021-06-25

Response:

{"weekly_sentiment":[
    {
        "neg":10,
        "neu":21,
        "pos":51
    },
    {
        "neg":11,
        "neu":35,
        "pos":33
    },
        ...
    ],
    "weekly_sentiment_percentage":[
    {
        "neg":12,
        "neu":26,
        "pos":62
    },
    {
        "neg":14,
        "neu":44,
        "pos":42
    },
        ...
    ]
}
This endpoint reponse may vary based on your plan. Check your plan features here

Errors

{'Error':'Symbol __x__ is not available'}: This error occurs when the requested symbol is not available in our servers.
{'Error': "Can't fetch social sentiment for date older than 15 days"}: This error occurs when the requested date range is older than 15 days.
{"Error":"Invalid date format"}: Since or until dates don't have valid format (%Y-%m-%d).

Stock Social Volume

Endpoint: https://sennetai.com/api/stocks/social-volume/{stock_symbol}/

Parameters:

since: Start date to make the fetch. Valid date format is %Y-%m-%d (2021-06-30). You can't fetch news older than 15 days
until: End date to make the fetch. Valid date format is %Y-%m-%d (2021-06-30)

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

Request:

https://sennetai.com/api/stocks/social-volume/AMZN/?since=2021-06-20&until=2021-06-30

Response:

{
    "weekly_volume":[
        87,
        163,
        510,
        221,
        301,
        317,
        30,
        64,
        121,
        221
    ],
    "weekly_scaled_volume":[
        17.06,
        31.96,
        100.0,
        43.33,
        59.02,
        62.16,
        5.88,
        12.55,
        23.73,
        43.33
],
This endpoint reponse may vary based on your plan. Check your plan features here

Errors

{'Error':'Symbol __x__ is not available'}: This error occurs when the requested symbol is not available in our servers.
{'Error': "Can't fetch social volume for date older than 15 days"}: This error occurs when the requested date range is older than 15 days.
{"Error":"Invalid date format"}: Since or until dates don't have valid format (%Y-%m-%d).

Stock Insiders

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

Parameters:

since: Start date to make the fetch. Valid date format is %Y-%m-%d (2021-06-30). You can't fetch insiders older than 15 days. Default is today insiders.
until: End date to make the fetch. Valid date format is %Y-%m-%d (2021-06-30). Default is today insiders.

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

Request:

https://sennetai.com/api/stocks/insiders/?since=2021-06-17&until=2021-06-20

Response:

{
    "stock_insiders":[
        {
            "Ticker":"FB",
            "Owner":"Zuckerberg Mark",
            "Relationship":"COB and CEO",
            "Date":"Jun 16",
            "Transaction":"Sale",
            "Cost":"None",
            "#Shares":"77,300",
            "Value ($)":"25,785,054",
            "#Shares Total":"0",
            "SEC Form 4":"Jun 16 09:38 PM",
            "Timestamp":"2021-06-17 00:00:00"
        },
        {
            "Ticker":"FB",
            "Owner":"Zuckerberg Mark",
            "Relationship":"COB and CEO",
            "Date":"Jun 15",
            "Transaction":"Sale",
            "Cost":"None",
            "#Shares":"77,300",
            "Value ($)":"26,045,687",
            "#Shares Total":"0",
            "SEC Form 4":"Jun 16 09:04 PM",
            "Timestamp":"2021-06-17 00:00:00"
        },
        {
            "Ticker":"FB",
            "Owner":"Zuckerberg Mark",
            "Relationship":"COB and CEO",
            "Date":"Jun 14",
            "Transaction":"Sale",
            "Cost":"None",
            "#Shares":"77,300",
            "Value ($)":"25,859,314",
            "#Shares Total":"0",
            "SEC Form 4":"Jun 16 08:55 PM",
            "Timestamp":"2021-06-17 00:00:00"
        },
        ...
    ]
}

Errors

{'Error':'Symbol __x__ is not available'}: This error occurs when the requested symbol is not available in our servers.
{'Error': "Can't fetch stock insiders for date older than 15 days"}: This error occurs when the requested date range is older than 15 days.
{"Error":"Invalid date format"}: Since or until dates don't have valid format (%Y-%m-%d).

All Stock Insiders

Endpoint: https://sennetai.com/api/stocks/insiders/

Parameters:

since: Start date to make the fetch. Valid date format is %Y-%m-%d (2021-06-30). You can't fetch insiders older than 7 days. Default is today insiders.
until: End date to make the fetch. Valid date format is %Y-%m-%d (2021-06-30). Default is today insiders.

To get all the insiders for a given date you need to make a GET request.

Request:

https://sennetai.com/api/stocks/insiders/?since=2021-06-26&until=2021-06-27

Response:

{
    "stocks_insiders":[
        {
            "Ticker":"BIGC",
            "Owner":"Alvarez Robert",
            "Relationship":"Chief Financial Officer",
            "Date":"Jun 23",
            "Transaction":"Sale",
            "Cost":"None",
            "#Shares":"6,587",
            "Value ($)":"428,223",
            "#Shares Total":"116,310",
            "SEC Form 4":"Jun 25 05:05 PM",
            "Timestamp":"2021-06-27 00:00:00"
        },
        {
            "Ticker":"MDLA",
            "Owner":"Stretch Leslie",
            "Relationship":"President & CEO",
            "Date":"Jun 24",
            "Transaction":"Option Exercise",
            "Cost":"None",
            "#Shares":"100,000",
            "Value ($)":"673,000",
            "#Shares Total":"963,345",
            "SEC Form 4":"Jun 25 05:03 PM",
            "Timestamp":"2021-06-27 00:00:00"
        },
        {
            "Ticker":"TLYS",
            "Owner":"SHAKED HEZY",
            "Relationship":"See Remarks",
            "Date":"Jun 23",
            "Transaction":"Option Exercise",
            "Cost":"None",
            "#Shares":"41,750",
            "Value ($)":"0",
            "#Shares Total":"101,750",
            "SEC Form 4":"Jun 25 05:01 PM",
            "Timestamp":"2021-06-27 00:00:00"
        },
        ...
    ]
}

Errors

{'Error':'Symbol __x__ is not available'}: This error occurs when the requested symbol is not available in our servers.
{'Error': "Can't fetch stock insiders for date older than 7 days"}: This error occurs when the requested date range is older than 7 days.
{"Error":"Invalid date format"}: Since or until dates don't have valid format (%Y-%m-%d).

Stock Super Investors

Endpoint: https://sennetai.com/api/stocks/super-investors/{stock_symbol}/

Parameters:

since: Start date to make the fetch. Valid date format is %Y-%m-%d (2021-06-30). You can't fetch super investors older than 15 days. Default is today insiders.
until: End date to make the fetch. Valid date format is %Y-%m-%d (2021-06-30). Default is today super investors.

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

Request:

https://sennetai.com/api/stocks/super-investors/AAPL/?since=2021-06-20&until=2021-06-22

Response:

{
    "stock_superinvestors":[
        {
            "Ticker":"AAPL",
            "Portfolio Manager":"Warren Buffett - Berkshire Hathaway",
            "% of portfolio":"40.07",
            "Shares":"887,135,554",
            "Recent activity":" ",
            "Date":"2021-06-22 00:00:00"
        },
        {
            "Ticker":"AAPL",
            "Portfolio Manager":"David Rolfe - Wedgewood Partners",
            "% of portfolio":"7.44",
            "Shares":"395,692",
            "Recent activity":"Reduce 11.64%",
            "Date":"2021-06-22 00:00:00"
        },
        {
            "Ticker":"AAPL",
            "Portfolio Manager":"Li Lu - Himalaya Capital Management",
            "% of portfolio":"4.69",
            "Shares":"759,600",
            "Recent activity":" ",
            "Date":"2021-06-22 00:00:00"
        },
        ...
    ]
}

Errors

{'Error':'Symbol __x__ is not available'}: This error occurs when the requested symbol is not available in our servers.
{'Error': "Can't fetch stock super investors for date older than 15 days"}: This error occurs when the requested date range is older than 15 days.
{"Error":"Invalid date format"}: Since or until dates don't have valid format (%Y-%m-%d).

Crypto Market Data

Endpoint: https://sennetai.com/api/crypto/market-data/{crypto_symbol}/

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

Request:

https://sennetai.com/api/crypto/market-data/BTC/

Response:

{
    "symbol":"BTC",
    "name":"Bitcoin",
    "price":33405,
    "description":"Bitcoin is the first successful internet money based on peer-to-peer technology...",
    "total_volume":27108247267,
    "market_cap":627599932344,
    "24h_change":-416.0407237911,
    "24h_change_percentage":-1.23013,
    "7d_change_percentage":-3.66453,
    "30d_change_percentage":-8.92941,
    "1y_change_percentage":261.88863
}

Errors

{'Error':'Symbol __x__ is not available'}: This error occurs when the requested symbol is not available in our servers.

Crypto prices

Endpoint: https://sennetai.com/api/crypto/prices/{crypto_symbol}/

Parameters:

since(required): Start date to make the fetch. Valid date format is %Y-%m-%d (2021-06-30).
until(required): End date to make the fetch. Valid date format is %Y-%m-%d (2021-06-30).

To get the prices between two dates of a crypto symbol you need to make a GET request.

Request:

https://sennetai.com/api/crypto/prices/BTC/?since=2021-06-29&until=2021-06-30

Response:

{
    "1624924921905":34556.8421269449,
    "1624928482953":35000.91995642084,
    "1624932044806":34731.1482753022,
    "1624935712460":34397.35580929206,
    "1624939379677":34646.860870141114,
    "1624942865216":34981.26402319882,
    "1624946533457":34776.437614360024,
    "1624950092261":35269.71335239218,
    ...
}

Errors

{'Error':'Symbol __x__ is not available'}: This error occurs when the requested symbol is not available in our servers.

Crypto today prices

Endpoint: https://sennetai.com/api/crypto/prices/today/{crypto_symbol}/

To get the prices of today from a crypto symbol you need to make a GET request. Returned prices have 5min interval.

Request:

https://sennetai.com/api/crypto/prices/today/BTC/

Response:

{
    "1625202039095":33090.17391,
    "1625202330423":33215.92297,
    "1625202587928":33278.06434,
    "1625202896951":33259.53721,
    "1625203164994":33219.68647,
    "1625203499798":33199.16581,
    "1625203811386":33162.43949,
    "1625204068402":33124.44693,
    "1625204397355":33072.15165,
    ...
}

Errors

{'Error':'Symbol __x__ is not available'}: This error occurs when the requested symbol is not available in our servers.

Crypto week prices

Endpoint: https://sennetai.com/api/crypto/prices/week/{crypto_symbol}/

To get the prices of the week from a crypto symbol you need to make a GET request. Returned prices have 1h interval.

Request:

https://sennetai.com/api/crypto/prices/week/BTC/

Response:

{
    "1625025727450":35273.74078,
    "1625029266165":34823.96282,
    "1625032905032":34933.13303,
    "1625036529796":35037.76004,
    "1625040068098":35339.11583,
    "1625043746276":34481.87227,
    "1625047303289":34675.97854,
    ...
}

Errors

{'Error':'Symbol __x__ is not available'}: This error occurs when the requested symbol is not available in our servers.

{'Error':'Invalid interval'}: This error occurs when the requested interval is not a valid one.

Crypto year prices

Endpoint: https://sennetai.com/api/crypto/prices/year/{crypto_symbol}/

Parameters:

To get the prices of the year from a crypto symbol you need to make a GET request. Returned prices have 1d interval.

Request:

https://sennetai.com/api/crypto/prices/year/BTC/

Response:

{
    "1624665600000":31943.13646,
    "1624752000000":32023.97390,
    "1624838400000":34607.29327,
    "1624924800000":34556.84212,
    "1625011200000":35968.99366,
    "1625097600000":35171.48630,
    "1625184000000":33677.56623,
    ...
}

Errors

{'Error':'Symbol __x__ is not available'}: This error occurs when the requested symbol is not available in our servers.

{'Error':'Invalid interval'}: This error occurs when the requested interval is not a valid one.

Crypto news

Endpoint: https://sennetai.com/api/crypto/news/{crypto_symbol}/

Parameters:

media: List of valid media to take news from. To pass media on the request, add each media name separated by a comma (media=CNBC,Bloomberg). Default to all media.

Valid media: 
['elEconomista', 'Teslarati', 'Bloomberg', 'Business Insider', 'CNBC', 'Investing.com', 'MarketWatch', 
'Adweek', 'TNW', 'Motley Fool', 'Seeking Alpha', 'Reuters', 'Fortune', 'Yahoo Finance', 'TheStreet',
'TechCrunch', 'TheStreet.com', "Barron's", 'Wall Street Journal', 'Forbes', 'Yahoo Tech', 'Simply Wall St',
'Benzinga', 'HEXUS', 'CNNMoney', 'Investopedia', "Investor's Business Daily", 'Wccftech', 'MarketBeat',
'24/7 Wall St.', 'InvestorsObserver', 'ETF Trends', 'StreetInsider.com', 'Markets Insider', 'Hot Hardware',
'The Motley Fool Canada', 'StockNews.com', 'Guiding Tech', 'Silicon Valley Business Journal', 
'Fast Company', 'Business Wire', 'Market Realist', 'Stockopedia', 'Fintech Zoom', 'Coindesk', 
'Cointelegraph', 'Crypto News Flash', 'Bitcoin News', 'Decrypt', 'FX Empire', 'Coin Idol', 'CryptoPotato',
'CoinGeek', 'Financial Times', 'Telegraph.co.uk', 'AMBCrypto', 'Somag News', 'StockNews', 'Investorplace.com',
'Business Matters', 'CryptoSlate', 'The Daily Hodl']

since: Start date to make the fetch. Valid date format is %Y-%m-%d (2021-06-30). You can't fetch news older than 7 days
until: End date to make the fetch. Valid date format is %Y-%m-%d (2021-06-30)

To get the news from a crypto symbol you need to make a GET request.

Request:

https://sennetai.com/api/crypto/news/BTC/?media=Forbes&since=2021-03-04&until=2021-03-05

Response:

[
    {
        "title":"What Is Bitcoin? The Discovery Of The First Digital Commodity",
        "link":"https://www.forbes.com/sites/philippsandner/2021/03/04/what ...",
        "desc":"Bitcoin is much more than interconnected processors. Far ...",
        "media":"Forbes",
        "date":1614816000.0,
        "symbol":"Bitcoin",
        "media_impact":{
            "impact":2,
            "daily_visitors":430089
        },
        "timestamp":"00:00 04-03-2021",
        "summary":"None",
        "article":"None",
        "volatility":{
            "down":0.63847774,
            "up":0.36152226,
            "compound":0.5687997
        },
        "move":{
            "down":0.51057214,
            "up":0.48942786,
            "compound":0.50528586
        },
        "sentiment":{
            "neg":0.0,
            "neu":1.0,
            "pos":0.0,
            "compound":0.0
        }
    }
]

Errors

{'Error':'Symbol __x__ is not available'}: This error occurs when the requested symbol is not available in our servers.
{'Error': "Can't fetch news for date older than 7 days"}: This error occurs when the requested date range is older than 7 days.
{"Error":"Invalid date format"}: Since or until dates don't have valid format (%Y-%m-%d).
{"Error":"Invalid media names"}: Media names aren't valid.
{"Error":"Invalid type of 'media' argument"}: Media argument in request doesn't have valid type (media=Bloomberg,Investing.com).

Crypto Social Sentiment

Endpoint: https://sennetai.com/api/crypto/social-sentiment/{crypto_symbol}/

Parameters:

since: Start date to make the fetch. Valid date format is %Y-%m-%d (2021-06-30). You can't fetch news older than 15 days
until: End date to make the fetch. Valid date format is %Y-%m-%d (2021-06-30)

To get the social sentiment from a crypto symbol you need to make a GET request.

Request:

https://sennetai.com/api/crypto/social-sentiment/BTC/since=2021-06-15&until=2021-06-25

Response:

{"weekly_sentiment":[
    {
        "neg":10,
        "neu":21,
        "pos":51
    },
    {
        "neg":11,
        "neu":35,
        "pos":33
    },
        ...
    ],
    "weekly_sentiment_percentage":[
    {
        "neg":12,
        "neu":26,
        "pos":62
    },
    {
        "neg":14,
        "neu":44,
        "pos":42
    },
        ...
    ]
}
This endpoint reponse may vary based on your plan. Check your plan features here

Errors

{'Error':'Symbol __x__ is not available'}: This error occurs when the requested symbol is not available in our servers.
{'Error': "Can't fetch social sentiment for date older than 15 days"}: This error occurs when the requested date range is older than 15 days.
{"Error":"Invalid date format"}: Since or until dates don't have valid format (%Y-%m-%d).

Crypto Social Volume

Endpoint: https://sennetai.com/api/crypto/social-volume/{crypto_symbol}/

Parameters:

since: Start date to make the fetch. Valid date format is %Y-%m-%d (2021-06-30). You can't fetch news older than 15 days
until: End date to make the fetch. Valid date format is %Y-%m-%d (2021-06-30)

To get the social volume from a crypto symbol you need to make a GET request.

Request:

https://sennetai.com/api/crypto/social-volume/BTC/?since=2021-06-20&until=2021-06-30

Response:

{
    "weekly_volume":[
        87,
        163,
        510,
        221,
        301,
        317,
        30,
        64,
        121,
        221
    ],
    "weekly_scaled_volume":[
        17.06,
        31.96,
        100.0,
        43.33,
        59.02,
        62.16,
        5.88,
        12.55,
        23.73,
        43.33
],
This endpoint reponse may vary based on your plan. Check your plan features here

Errors

{'Error':'Symbol __x__ is not available'}: This error occurs when the requested symbol is not available in our servers.
{'Error': "Can't fetch social volume for date older than 15 days"}: This error occurs when the requested date range is older than 15 days.
{"Error":"Invalid date format"}: Since or until dates don't have valid format (%Y-%m-%d).

Copyright ©2021 | Sennet AI