Stock Sentiment Analysis History

Sentiment Analysis History

Timezone parameter

By default, this API returns data for Europe/Berlin timezone. Users can choose from 3 timezones:

1/ America/New_York
2/ Asia/Singapore
3/ Europe/Berlin

Request

Method URL           
GET idata/get_sentiment_history/
Params Values  
nameid string “nameid” will be concat of class type and id. eg: x_<id>

 

where x is:

  • c: company (in case of company, the result would be single company data)
  • in:index
  • pl:place
  • cm: <commodity> eg: cm_51
  • top : topic

Multiple name id’s can be specified in csv format

start_date string The start date in format YYYY-MM-DD. Default  is  “today”
end_date string The end date in format YYYY-MM-DD. Default is  90 days from start date
ndays number Default is  90 days from date
last_update number values:

 

  • 0 means, there is no valid last updated data
  • In case of any non zero value, the response will have valid “data” only if the current data at server is newer than the last updated version reported by the client

Response

status nameid Response
200 c_<company_id> Response will have the JSON structure as below

{ last_update: <integer timestamp> value ‘0’ will return current data

data: [{

name:<company name>

ticker:<company ticker>

start_date: <YYYY/MM/DD>

end_date: <YYYY/MM/DD>

sentiment: [{

high: <score in range 0 – 10>

low : <score in range 0 – 10>

sentiment : <score in range 0 – 10>

buzz : <score in range 0 – 10>

date : <DD/MM/YYYY> } … , …]},

{ name:<company name>

ticker:<company ticker> …}]}

where ;

sentiment data is in ascending date format

  • First element is the max date (start date)
  • Last element  is the min date (end date)

sentiment = “0” means no data found for the date

200 cm_<commodity_id> Response will have the JSON structure as below

{ last_update: <integer timestamp> value ‘0’ will return current data

data:

[{ name:<commodity name>

class:

type:

subtype:

start_date: <YYYY/MM/DD>

end_date: <YYYY/MM/DD>

sentiment: [{

high: <score in range 0 – 10>

low : <score in range 0 – 10>

sentiment : <score in range 0 – 10>

buzz : <score in range 0 – 10>

date : <DD/MM/YYYY> } … , …]},

{name:<commodity name>

class: …}]}

where ;

sentiment data is in ascending date format

  • First element is the max date (start date)
  • Last element  is the min date (end date)

Sentiment = “0” means no data found for the date

  400 {“error”:”Invalid params”}
  401 {“error”:”Invalid Auth key.”}
  500 {“error”:”Something went wrong. Please try again later.”}

Read our blog to find more! | Check our FAQ | Check our I-Feed API| Try our Excel Plugin