CSA-AI / CSA_AI_Backend

The backend spring portfolio for the CSA_AI project
1 stars 0 forks source link

prelem stock count and currency #5

Closed dolphinalt closed 7 months ago

dolphinalt commented 7 months ago

Repurposed the /setStats endpoint to take info about stocks.

Format of the POST request should be as follows

{
    "id": 1,  <- this can be either a string or int
    "Date": MM-DD-YYYY,
    "AAPL": "1" <- this MUST be a string
    "GOGL": "20",
    etc...
    "Balance": "100000"
}

A lot of processing has to be done in the frontend, so might not be the best solution

DavidVasilev1 commented 7 months ago

BAD BAD BAD

Not good enough to be able to store the times of buy/sell of each stock, their monetary values, and other data like daily growth and etc if the user decides to keep the stock. Good start though but should improve for scalability for when we have more data. Possibly make a one-to-one relationship between the user and a new endpoint containing all of this data.

dolphinalt commented 7 months ago

D: