Social media sentiment

This API is to get social media sentiment trend, volatility and momentum of the trend.

get
Get social media sentiment

https://datascience.api.dev.bitcurate.com/social_sentiment
This endpoint allows you to get social media sentiment trend, volatility and momentum of the trend.
Request
Response
Request
Query Parameters
query
optional
string
string query, example '(bitcoin OR btc) AND binance'. Default is None.
hist_interval
optional
string
size of date histogram, example '1h'. Default is '1h', only accept 'Nt', N = positive integer, t = ['h', 'd', 'm']. If 'm', only accept more than or equal to 10.
before_date
optional
string
Start date to get the trend, format 'm/d/Y H:M'. Default is now minus 2 days.
after_date
optional
string
End date to get the trend, format 'm/d/Y H:M'. Default is now.
Response
200: OK
Successfully retrieved.
{
"momentum": -167.9608366289358,
"sentiment": [
0.5953768867020057,
0.7756615455126166,
0.9433653749624589,
0.6807541997080415,
0.6300742430933031,
0.3454472530042436,
0.6796679085599864,
0.7706982252686616,
0.5812892347612946,
0.6325374439980733,
0.7994107283836103,
0.2009226998234046,
0.565026337895286,
0.6076323760406952,
0.6499977417921718,
0.9415451947397264,
0.7854378882771651,
0.5343944351849885,
0.6007306595138859,
0.5794716888501912,
0.5725688244859071,
0.6545301825851453,
0.8114579137094682,
0.7526972203791216,
0.8660539502305484,
0.8286415725647764,
0.9012031173280208,
0.7934898148078477,
0.7067458062045808,
0.8387053293698967,
0.846068000662088,
0.6113618977427511,
0.6368292492165564,
0.5735464314556624,
0.36700930179883917,
0.47437437972104113,
0.4424100051967885,
0.5188089526384538,
0.2494904439395249,
0.5797115392663867,
1,
0.5141918335498141,
0.45459729260294823,
0.7071325125948826,
0.4740779406128579,
0.5092763087297529,
0.5734063110312524,
0.6866298061532523,
0.7170301339823428,
0.8157494182046778,
0.981219205079449,
0.7344077966851725,
0.9015843855188141,
0.48198321680479883,
0.6454980729777602,
0.4012107769679174,
-1
],
"timestamp": [
"2019-07-25 07:00:00",
"2019-07-25 08:00:00",
"2019-07-25 09:00:00",
"2019-07-25 10:00:00",
"2019-07-25 11:00:00",
"2019-07-25 12:00:00",
"2019-07-25 13:00:00",
"2019-07-25 14:00:00",
"2019-07-25 15:00:00",
"2019-07-25 16:00:00",
"2019-07-25 17:00:00",
"2019-07-25 18:00:00",
"2019-07-25 19:00:00",
"2019-07-25 20:00:00",
"2019-07-25 21:00:00",
"2019-07-25 22:00:00",
"2019-07-25 23:00:00",
"2019-07-26 00:00:00",
"2019-07-26 01:00:00",
"2019-07-26 02:00:00",
"2019-07-26 03:00:00",
"2019-07-26 04:00:00",
"2019-07-26 05:00:00",
"2019-07-26 06:00:00",
"2019-07-26 07:00:00",
"2019-07-26 08:00:00",
"2019-07-26 09:00:00",
"2019-07-26 10:00:00",
"2019-07-26 11:00:00",
"2019-07-26 12:00:00",
"2019-07-26 13:00:00",
"2019-07-26 14:00:00",
"2019-07-26 15:00:00",
"2019-07-26 16:00:00",
"2019-07-26 17:00:00",
"2019-07-26 18:00:00",
"2019-07-26 19:00:00",
"2019-07-26 20:00:00",
"2019-07-26 21:00:00",
"2019-07-26 22:00:00",
"2019-07-26 23:00:00",
"2019-07-27 00:00:00",
"2019-07-27 01:00:00",
"2019-07-27 02:00:00",
"2019-07-27 03:00:00",
"2019-07-27 04:00:00",
"2019-07-27 05:00:00",
"2019-07-27 06:00:00",
"2019-07-27 07:00:00",
"2019-07-27 08:00:00",
"2019-07-27 09:00:00",
"2019-07-27 10:00:00",
"2019-07-27 11:00:00",
"2019-07-27 12:00:00",
"2019-07-27 13:00:00",
"2019-07-27 14:00:00",
"2019-07-27 15:00:00"
],
"volatility": 0.6375631170978117
}
400: Bad Request
Errors from parameters given.
{
"message": "distance from 2 dates need less than 90 days",
"status": 400
}
{
"message": "hist_interval only accept ['h', 'd', 'm']",
"status": 400
}
{
"message": "hist_interval must Nt, N = positive integer, t = interval",
"status": 400
}
{
"message": "'m' size only accept more than or equal to 10",
"status": 400
}
{
"message": "data not available",
"status": 400
}