Public RESTful APIs

Authentication

Route Message Method Body Note
auth/register Request POST
{
    'email': $email,
    'password': $password,
    ...
}
                
Response
{
    'status': 200 OK,
    'token': $token
}
                
Continue to activate from email.
auth/login Request POST
{
    'email': $email,
    'password': $password
}
                
After registration. Support JWT and OAth 2.0.
Response
{
    'status': 200 OK,
    'token': $token
}
                
auth/resetPassword Request POST
{
    'email': $email,
    'password': $password,
    ...
}
                
After registration.
Response
{
    'status': 200 OK,
    'token': $token
}
                
Continue to activate from email.

Data

Route Message Method Body Note
data/analyzeFree Request GET
{
    'tickers': $tickers,
    'investor': $investor
}
                
No need registration.
Response
{
    'status': 200 OK,
    'portifolio': $portifolio summary,
    'others': $others
}
                
data/analyze Request GET
{
    'tickers': $tickers,
    'investor': $investor
}
                
Response
{
    'status': 200 OK,
    'portifolio': $portifolio summary,
    'others': $others
}
                
data/message Request POST
{
    'Name': $name,
    'message': $message
    ...
}
                
No need registration.
Response
{
    'status': 200 OK
}
                
Leave a message.

Users

Route Message Method Body Note
users/createCheckoutSession Request POST
{
    'price': "price_1diI6aRqm35bR32QSAl1OVci", // Pro
    'quantity': 1,
}
                
After adding related a product at Stripe side.
Response
{
    'status': 200 OK,
    'CHECKOUT_SESSION_ID': 'cs_test_aDzas2VtXJAwuRlUv...'
}
return.html
                
Go to analyze.html.
users/subscribe Request POST
{
    'email': $email,
    'tickers': $tickers
}
                
After registration.
Response
{
    'status': 200 OK
}
                
users/unsubscribe Request DELETE
{
    'email': $email,
    'ticker': $ticker
}
                
After subscribtion.
Response
{
    'status': 200 OK
}