Inter IIT Tech Meet 10.0
Digital Alpha Challenge Backend Repo
-
On the terminal,
cd
into the project folder -
Run
./setup.sh
to create virtual environment and install required dependencies. -
Now execute
./start.sh
to host the server. -
Visit
localhost:5000
to access the frontend.
url: /companybyname
method: POST
Successful: 200
Parameters: {
"name": <name of the company>
}
Response: {
"cik": <cik of the company>,
"ticker": <ticker of the company>,
"ARR": <latest ARR from db>,
"NRR": <latest NRR/NDR from db>,
"Customers": <total customers of the company>
}
url: /companybycik
method: POST
Successful: 200
Parameters: {
"cik": <cik of the company>
}
Response: {
"name": <name of the company>,
"ticker": <ticker of the company>,
"ARR": <latest ARR from db>,
"NRR": <latest NRR/NDR from db>,
"Customers": <total customers of the company>
}
url: /companybyticker
method: POST
Successful: 200
Parameters: {
"ticker": <ticker of the company>
}
Response: {
"name": <name of the company>,
"cik": <cik of the company>,
"ARR": <latest ARR from db>,
"NRR": <latest NRR/NDR from db>,
"Customers": <total customers of the company>
}
url: /tsbyticker
method: POST
Successful: 200
Parameters: {
"ticker": <ticker of the company>
}
Response: {
"arrTS": <ARR timeseries>,
"nrrTS": <NRR timeseries>,
"custTS": <customer timeseries>,
"smTS": <sales and marketing expense timeseries>,
"empTS": <employee timeseries>,
"quarTS": <total customers of the company>,
"srcTS": <source filings for data>
}
url: /twitbyticker
method: POST
Successful: 200
Parameters: {
"ticker": <ticker of the company>
}
Response: {
"trendingWords": <trending words at twitter>
}
url: /qnabyticker
method: POST
Successful: 200
Parameters: {
"ticker": <ticker of the company>
}
Response: {
"qna": <array of dictionaries with keys 'question' and 'answer'>
"summary": <text summary>
}
url: /sentibyticker
method: POST
Successful: 200
Parameters: {
"ticker": <ticker of the company>
}
Response: {
"dictSenti": <Dictionary with probabilities of 6-7 classes according to the found occurrence>
"finbSenti": <Dictionary with probabilities of 'positive', 'neutral' & 'negative'>
}
url: /secbyticker
method: POST
Successful: 200
Parameters: {
"ticker": <ticker of the company>
}
Response: {
"sectionwise": <Dictionary of items 1-16 along with 1a,1b,7a,9a,9b>
}
url: /overviewbyticker
method: POST
Successful: 200
Parameters: {
"ticker": <ticker of the company>
}
Response: {
'description',
'exchange',
'quater',
'pe',
'divi',
'eps',
'profitmargin',
'operatingmarginttm'
}
url: /incometimeseries
method: POST
Successful: 200
Parameters: {
"ticker": <ticker of the company>,
"timeperiod": <annual (10-K forms)/quaterly (10-Q forms)>
}
Response: {
"data": [(date, opex, gpm, condition), ... ]
}
url: /earningstimeseries
method: POST
Successful: 200
Parameters: {
"ticker": <ticker of the company>,
"timeperiod": <annual (10-K forms)/quaterly (10-Q forms)>
}
Response: {
"data": [(date, eps), ... ]
}