Social correlation

This API is to get social media sentiment trend correlated with requested pair and exchange.

get
Get social correlation

https://datascience.api.dev.bitcurate.com/social_correlation
This endpoint allows you to get social media sentiment trend correlated with requested pair and exchange.
Request
Response
Request
Query Parameters
corr
optional
string
Correlation function, only accept ['spearman, 'pearson'].
filtersize
optional
number
size of correlation. Correlation t = correlation last t sentiment and last t close. Default is 7. If hist_interval = 'd', 7 means 7d.
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
Start date to get the trend, format 'm/d/Y H:M'. Default is now.
pair
optional
string
pair, example 'ETH/USDT'. Default is 'ETH/USDT'.
exchange
optional
string
exchange, example 'binance'. Default is None. If None, it will average all exchanges for the pair.
Response
200: OK
Successfully retrieved.
{
"close": [
198.33434963226318,
199.92667043123313,
201.5873016357422,
201.41553679508948,
203.86012638636998,
202.8760763056138,
199.76356876918248,
197.22113509143855,
198.87662079754998,
202.04573212767676,
208.09006666100544,
212.73438605709353,
215.50514868866625,
215.28676986694336,
215.265799168178,
213.42609202432976,
212.1468302408854,
214.0560294642593,
213.59171699075137,
210.45347152931103,
208.05199508666993,
211.4760279935949,
212.24701575409594,
211.70174724033902,
215.11776399264372,
217.0824978593467,
218.56607856479943,
217.37699455762433,
215.87713968318744,
214.8074480329241,
216.35615975516183,
215.9928591111127,
212.2495061202015,
209.42399552289177,
213.56573661968864,
222.690486795762,
224.2430905822321,
224.18286852155413,
223.89988275784165,
223.6427461912306,
224.18593815394811,
223.94986149884653,
223.27948052156057,
226.2149946793266,
224.14716570818865,
224.22064834704503,
222.80405436924525,
222.5559695724153,
222.0118439162987,
220.9582360839844,
220.971792809049,
221.41960063125148,
220.5978677873131,
217.63220094953263,
217.47584047670716,
217.16756362915038,
218.52071774800618
],
"correlation": [
null,
null,
null,
null,
null,
null,
-0.5,
-0.3214285714285715,
-0.5357142857142858,
-0.5357142857142858,
-0.642857142857143,
-0.21428571428571433,
-0.28571428571428575,
-0.5357142857142858,
-0.642857142857143,
-0.4642857142857144,
0.1785714285714286,
0.25,
0.42857142857142866,
0.42857142857142866,
-0.07142857142857144,
-0.1785714285714286,
-0.1785714285714286,
-0.3571428571428572,
-0.5357142857142858,
-0.14285714285714288,
0.21428571428571433,
0.7500000000000002,
0.6785714285714287,
0.28571428571428575,
0.21428571428571433,
0.07142857142857144,
0.21428571428571433,
-0.28571428571428575,
-0.39285714285714296,
-0.3571428571428572,
-0.3571428571428572,
-0.28571428571428575,
-0.25,
-0.5,
-0.14285714285714288,
0.42857142857142866,
0.42857142857142866,
0.1785714285714286,
0.21428571428571433,
0.03571428571428572,
-0.5357142857142858,
-0.28571428571428575,
-0.5357142857142858,
0.03571428571428572,
0.5714285714285715,
0.8214285714285715,
0.8571428571428573,
0.7857142857142859,
0.07142857142857144,
-0.10714285714285716,
0.03571428571428572
],
"sentiment": [
1,
0.0720816001867243,
0.5421807855353731,
0.3269630294269184,
0.23851233158297525,
0.30725521452080085,
0.3704572317081681,
0.3617627556767543,
0.4697870990205117,
0.5371077168765093,
0.24818706914861766,
0.37538746354103925,
0.3517618103694745,
0.21181953703951473,
0.1845833361703607,
0.2893103767135509,
0.15783929648944373,
0.15856943809367752,
0.21483235938782266,
0.11351004743131615,
0.3361336426735031,
0.23856134325443998,
0.2672240190301015,
0.27832678562966345,
0.04241183621473865,
0.30544757364098185,
0.44100663959812303,
0.3966477412523691,
0.2620929946982695,
0.4767717244914771,
0.13856375916657807,
0.3674698966132544,
0.1696976231240249,
0.39981820302195265,
0.4043367895901771,
0.33131979983608945,
0.3446867348921629,
0.2008625110997659,
0.12024843037889744,
0.15799098077299217,
0.29106103062709315,
0.1590551576095861,
0.3428609885400092,
0.2529008307819753,
0.3429169644465903,
0.33658271185361494,
0.3883761856383035,
0.31268693765631494,
0.37848959671916915,
0.14503342882207423,
0.19465968502358055,
0.25556911937749555,
0.2094788355477564,
0.191239961843223,
0.5822954355450308,
0.198877887924328,
0
],
"timestamp": [
"2019-07-17T04:00:00",
"2019-07-17T05:00:00",
"2019-07-17T06:00:00",
"2019-07-17T07:00:00",
"2019-07-17T08:00:00",
"2019-07-17T09:00:00",
"2019-07-17T10:00:00",
"2019-07-17T11:00:00",
"2019-07-17T12:00:00",
"2019-07-17T13:00:00",
"2019-07-17T14:00:00",
"2019-07-17T15:00:00",
"2019-07-17T16:00:00",
"2019-07-17T17:00:00",
"2019-07-17T18:00:00",
"2019-07-17T19:00:00",
"2019-07-17T20:00:00",
"2019-07-17T21:00:00",
"2019-07-17T22:00:00",
"2019-07-17T23:00:00",
"2019-07-18T00:00:00",
"2019-07-18T01:00:00",
"2019-07-18T02:00:00",
"2019-07-18T03:00:00",
"2019-07-18T04:00:00",
"2019-07-18T05:00:00",
"2019-07-18T06:00:00",
"2019-07-18T07:00:00",
"2019-07-18T08:00:00",
"2019-07-18T09:00:00",
"2019-07-18T10:00:00",
"2019-07-18T11:00:00",
"2019-07-18T12:00:00",
"2019-07-18T13:00:00",
"2019-07-18T14:00:00",
"2019-07-18T15:00:00",
"2019-07-18T16:00:00",
"2019-07-18T17:00:00",
"2019-07-18T18:00:00",
"2019-07-18T19:00:00",
"2019-07-18T20:00:00",
"2019-07-18T21:00:00",
"2019-07-18T22:00:00",
"2019-07-18T23:00:00",
"2019-07-19T00:00:00",
"2019-07-19T01:00:00",
"2019-07-19T02:00:00",
"2019-07-19T03:00:00",
"2019-07-19T04:00:00",
"2019-07-19T05:00:00",
"2019-07-19T06:00:00",
"2019-07-19T07:00:00",
"2019-07-19T08:00:00",
"2019-07-19T09:00:00",
"2019-07-19T10:00:00",
"2019-07-19T11:00:00",
"2019-07-19T12:00:00"
]
}
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
}
{
"message": "corr only accept ['pearson', 'spearman']",
"status": 400
}
{
"message": "filtersize must bigger than 1",
"status": 400
}
{
"message": "filtersize is too big",
"status": 400
}