olivernjeru / replicant-trader

0 stars 0 forks source link

Financial Instrument Tracker Bug #39

Closed olivernjeru closed 2 months ago

olivernjeru commented 2 months ago

Precursor, I set the Financial Instrument Tracker API call to PolygonIO to be one day before and tested it out, it worked. However, when I set up the application and tried to load Financial Instrument Tracker values for the three stock tickers, AAPL, TSLA and AMZN, I did not get any value back. I ony got an error, too many requests aparently which did not yield back any values to populate the table. This made me reverse the values back to 3 days and perform thorough testing. After all tests passed, I then used three days to be the default value.

This did not sit well with me as even for a project like this, data from three days ago is not usable, it beats the whole point of this application, faciliating the connection between a client and a market maker. For this relationship to exist and even thrive, we have to have somewhat realtime data, well, we work with what we have at the very least.

olivernjeru commented 2 months ago

This commit makes the PolygonIO API fetch only fetch one day before data for the Financial Instrument Tracker component, change startDate to be a day before. I have tested this out before pushing it, it works. I will keep an eye on it in the future just to make sure everything is okay and up to par in terms of performance and functionality.