Free API Integration to get live Market price for Investment

Is there any way we can integrate a freely available API to replace the market price in investment tracking? That way, it would be easier to track investments with the latest market prices.

In the current version, we have the market price, but it needs to be fed manually, so we want to make this process automated.

I think that might be possible, but it would depend on the situation. Most important is how you track the market price. Manually or automated, and how? Could you elaborate on that?