Here is an example of a simple function that asks for a ticker and returns its current Yahoo Finance value. I needed this to solve for the VIX live value, hope this helps someone else as well.

Author