December 11, 2023

Frontend Progress

Fetch function 1 (displaying each stock’s data, no sorting)

image

This fetch function is used to call in the DailyStocks endpoint of the API which then gets the ID of the month based on the button the user selects and displays that graph.

Fetch function 2 (displaying graphs in sorted order)

image

This fetch function is used to call in the monthly-stocks/{sorting-way} API in which depending on the type of sorting the user selects, the graph will grab the high function of those and display the graphs of all those months in order.

Generating Fibonacci Lines

image

This is inside the generategraph function which is drawing the Fibonacci lines at the corresponding decimal.