News sentiment

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

get
Get news sentiment

https://datascience.api.dev.bitcurate.com/news_sentiment
This endpoint allows you to get news 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.
after_date
optional
string
End date to get the trend, format 'm/d/Y H:M'. Default is now.
before_date
optional
string
Start date to get the trend, format 'm/d/Y H:M'. Default is now minus 2 days.
hist_interval
optional
string
size of date histogram, example '1h'. Default is '1h', only accept 'Nt', N = positive integer, t = ['h', 'd'].
Response
200: OK
Successfully retrieved.
{
"momentum": 502.9679573425243,
"sentiment": [
-0.1988198224959674,
0.49894172242115276,
1,
0.25637084305985414,
-0.5327631614036654,
-0.5339506157292299,
-0.5959005865508884,
0.38092650225684577,
-0.1076989015914761,
-0.8303662332155037,
0.41544573537534313,
0.6031120591969488,
-0.43778429911102246,
-0.057986690653610284,
0.024114015524393073,
-0.2676831233917619,
-0.14289493919463692,
-0.36432123000050565,
-0.1905050962799757,
-0.041231786752457866,
-0.2309772131636968,
-0.6821398586783978,
-0.8765374344037247,
-0.20006019597456515,
-0.11572887868628978,
0.2744850788490558,
0.7599054501099829,
-0.6105844781358943,
-0.48443079734228456,
0.06455813203529615,
-0.9187457341317836,
-0.02483371682698121,
0.7402548141991498,
-0.6177803658015679,
-0.13070281530578365,
-0.9914092866445864,
-0.9244725597576727,
0.3629265041624734,
-0.1810505941174455,
-1
],
"timestamp": [
"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-26 00:00:00",
"2019-07-26 01: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 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 12:00:00"
],
"volatility": 6.148309485264881
}
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']",
"status": 400
}
{
"message": "hist_interval must Nt, N = positive integer, t = interval",
"status": 400
}
{
"message": "data not available",
"status": 400
}